:root {
    --color-bg: #fff0f6;
    --color-card-bg: #ffffff;
    --color-primary: #ff85c0;
    --color-primary-dark: #d6336c;
    --color-text: #333333;
    --color-subtext: #666666;
    --color-border: #ffced4;
    --color-footer: #999999;
    --color-overlay-bg: rgba(255, 133, 192, 0.8);
  }
  
  /* 全局重置 */
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    font-family: sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
  }
  
  /* 列表容器 */
  .notes-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }
  
  /* 卡片 */
  .note-card {
    display: flex;
    flex-direction: column;
    background: var(--color-card-bg);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 1px 4px rgba(214,51,108,0.1);
  }
  .note-card:hover,
  .note-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(214,51,108,0.2);
  }
  
  /* 标题区 */
  .note-header {
    padding: 12px;
  }
  .note-title {
    font-size: 1.25rem;
    line-height: 1.2;
    color: var(--color-primary-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* 图片网格 */
  .note-images {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 4px;
    padding: 0 12px 8px;
  }
  .img-wrapper { position: relative; background: #eee; overflow: hidden; }
  .img-wrapper.skeleton::after { /* 骨架动画保持不变 */ }
  .img-wrapper img { width:100%; aspect-ratio:1/1; object-fit:cover; }
  
  /* 数量叠加 */
  .count-overlay {
    position: absolute; top:6px; left:6px;
    padding:2px 6px; font-size:0.75rem;
    background: var(--color-overlay-bg);
    color: #fff; border-radius:4px;
  }
  .more-overlay {
    position: absolute; top:6px; right:6px;
    padding:2px 6px; font-size:0.75rem;
    background: var(--color-overlay-bg);
    color: #fff; border-radius:4px;
  }
  
  /* 底部标签 */
  .note-footer {
    padding:8px 12px;
    font-size:0.85rem;
    color: var(--color-footer);
    border-top:1px solid var(--color-border);
  }
  
  /* 响应式 */
  @media (min-width:480px) { .notes-container { grid-template-columns: repeat(2,1fr); } }
  @media (min-width:768px) { .notes-container { grid-template-columns: repeat(3,1fr); } }
  
  /* 详情页 */
  .detail-header {
    position:fixed; top:0; left:0; right:0; height:48px;
    background: var(--color-card-bg);
    display:flex; align-items:center; padding:0 12px;
    box-shadow:0 1px 4px rgba(214,51,108,0.1); z-index:1000;
  }
  .back-btn,
  .floating-back { color: var(--color-primary-dark); }
  .floating-back { background: var(--color-primary-dark); }
  
  /* PDF 容器 & 图片区等其他样式保持不变 */
  

  /* 固定顶部导航 *内容页面css代码*/
.detail-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 48px;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  .back-btn {
    font-size: 1.5rem;
    text-decoration: none;
    color: #333;
    margin-right: 8px;
  }
  .detail-header .title {
    flex: 1;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* 页面内容距离顶部留出空间 */
  .content {
    padding-top: 56px; /* header height + 间距 */
  }
  
  /* 详情信息区 */
  .detail-info {
    padding: 0 12px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
  }
  
  /* 图片预览网格 */
  .detail-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 12px;
    background: #fafafa;
  }
  .detail-images img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 4px;
  }
  
  /* PDF.js 阅读器 */
  .pdf-container {
    width: 100%;
    height: calc(100vh - 56px - 120px); /* header + images 区域预估高度 */
    overflow: hidden;
  }
  .pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
  }
  
  /* 浮动返回按钮 */
  .floating-back {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    z-index: 1001;
  }
  
  /* 优雅的粉色调图片覆盖信息 */
.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
    color: #d63384; /* 深粉色字体 */
    background: rgba(255, 255, 255, 0.7); /* 半透明白底 */
    border-radius: 4px;
  }
  
  .count-overlay {
    top: 4px;
    left: 4px;
    right: auto;
    bottom: auto;
    width: auto;
    height: auto;
    padding: 2px 6px;
    position: absolute;
  }
  
  .more-overlay {
    bottom: 4px;
    right: 4px;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    padding: 2px 6px;
    position: absolute;
  }

/*-*/
.top-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 54px;
    background: rgba(255,255,255,0.73);  /* 纯白半透明 */
    backdrop-filter: blur(14px);         /* 加强毛玻璃感 */
    z-index: 999;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 16px rgba(255,105,180,0.07);
    transition: background 0.3s;
    border-bottom: 1.5px solid rgba(255,182,193,0.14);
  }
  
  .nav-inner {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 18px;
  }
  
  .site-title {
    font-size: 1.22rem;
    color: #e45197;           /* 保持偏粉主色 */
    font-weight: 700;
    letter-spacing: 2px;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  }
  
  /* 顶部空间留足 */
  .notes-container {
    padding-top: 64px;
  }
  