:root {
    --bg: #f5f7fb;
    --ink: #16233a;
    --muted: #5b6b83;
    --line: #e6ebf4;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --violet: #8b5cf6;
    --card: #ffffff;
    --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
    --shadow-hover: 0 4px 10px rgba(15, 23, 42, .08), 0 20px 44px rgba(15, 23, 42, .12);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", -apple-system, system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  a { color: inherit; text-decoration: none; }

  /* ===== Hero ===== */
  .hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: clamp(64px, 10vw, 120px) 20px clamp(72px, 11vw, 128px);
    background:
      radial-gradient(1200px 600px at 80% -10%, rgba(139, 92, 246, .45), transparent 60%),
      radial-gradient(900px 520px at 8% 0%, rgba(34, 211, 238, .30), transparent 55%),
      linear-gradient(160deg, #0b1226 0%, #0e1b3a 55%, #12103a 100%);
  }

  .hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 78%);
    pointer-events: none;
  }

  .hero-inner {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
  }

  .brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    margin-bottom: 26px;
  }

  .brand-mark .dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    box-shadow: 0 0 12px rgba(34, 211, 238, .8);
  }

  .hero h1 {
    font-size: clamp(44px, 9vw, 84px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.05;
    background: linear-gradient(100deg, #fff 0%, #c7f7ff 40%, #d7c9ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }

  .hero .tagline {
    margin-top: 18px;
    font-size: clamp(16px, 2.4vw, 20px);
    color: rgba(255, 255, 255, .82);
    letter-spacing: .02em;
  }

  .hero .desc {
    margin: 16px auto 0;
    max-width: 620px;
    font-size: 15px;
    color: rgba(255, 255, 255, .62);
  }

  .follow-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 32px;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    color: #062d3a;
    background: linear-gradient(100deg, #7ff0ff, #9fb8ff);
    box-shadow: 0 8px 24px rgba(34, 211, 238, .28);
  }

  .follow-pill svg { width: 18px; height: 18px; }

  /* ===== Section ===== */
  .main {
    max-width: 1080px;
    margin: 0 auto;
    padding: clamp(40px, 7vw, 72px) 20px 80px;
  }

  .section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
    flex-wrap: wrap;
  }

  .section-head h2 {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 700;
    letter-spacing: -.01em;
  }

  .section-head .hint {
    font-size: 14px;
    color: var(--muted);
  }

  /* ===== Cards ===== */
  .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  @media (min-width: 721px) {
    .literature-albums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }

  .card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 26px 26px 24px;
    box-shadow: var(--shadow);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    overflow: hidden;
  }

  .card::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet));
    opacity: 0;
    transition: opacity .22s ease;
  }

  .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #d5ddf0;
  }

  .card:hover::after { opacity: 1; }

  .card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
  }

  .icon-wrap {
    flex: none;
    width: 52px; height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--g1), var(--g2));
    box-shadow: 0 8px 18px var(--glow);
  }

  .icon-wrap svg { width: 28px; height: 28px; }

  .count {
    flex: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    background: #f0f4fb;
    border: 1px solid var(--line);
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
  }

  .card h3 {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: 8px;
  }

  .card .series {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--series, var(--blue));
    margin-bottom: 10px;
  }

  .card .desc {
    font-size: 14.5px;
    color: var(--muted);
    flex: 1;
  }

  .card .go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
  }

  .card .go svg { width: 16px; height: 16px; transition: transform .2s ease; }
  .card:hover .go svg { transform: translateX(3px); }

  /* 系列配色 */
  .c1 { --g1: #06b6d4; --g2: #3b82f6; --glow: rgba(59, 130, 246, .35); --series: #0891b2; }
  .c2 { --g1: #8b5cf6; --g2: #d946ef; --glow: rgba(139, 92, 246, .35); --series: #7c3aed; }
  .c3 { --g1: #f59e0b; --g2: #f97316; --glow: rgba(249, 115, 22, .32); --series: #d97706; }
  .c4 { --g1: #10b981; --g2: #22d3ee; --glow: rgba(16, 185, 129, .32); --series: #059669; }

  /* ===== 底部关注 ===== */
  .cta {
    margin-top: 40px;
    border-radius: 20px;
    padding: clamp(28px, 5vw, 44px);
    color: #fff;
    text-align: center;
    background:
      radial-gradient(600px 300px at 50% -20%, rgba(34, 211, 238, .35), transparent 60%),
      linear-gradient(150deg, #0b1226, #151238);
    border: 1px solid rgba(255, 255, 255, .08);
  }

  .cta h3 {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 700;
    margin-bottom: 10px;
  }

  .cta p {
    color: rgba(255, 255, 255, .7);
    font-size: 15px;
    max-width: 520px;
    margin: 0 auto;
  }

  .cta .wechat {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 12px 26px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #062d3a;
    background: linear-gradient(100deg, #7ff0ff, #c0b8ff);
  }

  .cta .wechat svg { width: 20px; height: 20px; }

  .cta .search {
    margin-top: 12px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .5);
  }

  .cta .search b { color: rgba(255, 255, 255, .85); }

  .cta-qr {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
  }

  .cta-qr img {
    width: 140px;
    height: 140px;
    border-radius: 14px;
    background: #fff;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    display: block;
  }

  .cta-qr-hint {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .62);
  }

  /* ===== 交流群 ===== */
  .community {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 28px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
  }

  .community-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 260px;
    flex: 1;
  }

  .community .badge {
    flex: none;
    margin-top: 2px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #fff;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981, #22d3ee);
    box-shadow: 0 6px 14px rgba(16, 185, 129, .28);
  }

  .community h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: 5px;
  }

  .community p {
    font-size: 14px;
    color: var(--muted);
  }

  .community-id-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
  }

  .community-qr {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .community-qr img {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    display: block;
  }

  .qr-hint {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--muted);
  }

  .wechat-id {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .03em;
    color: var(--ink);
    background: #f0f4fb;
    border: 1px dashed #c3cde0;
    padding: 10px 18px;
    border-radius: 12px;
    white-space: nowrap;
  }

  .copy-btn {
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    box-shadow: 0 6px 16px rgba(59, 130, 246, .28);
    transition: transform .2s ease, filter .2s ease;
  }

  .copy-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
  .copy-btn.copied { background: linear-gradient(135deg, #10b981, #059669); }

  @media (max-width: 720px) {
    .community { padding: 22px 20px; }
    .community-id-row { width: 100%; }
    .community-qr {
      width: 100%;
      flex-direction: row;
      justify-content: center;
      gap: 14px;
    }
    .wechat-id { flex: 1; text-align: center; }
    .copy-btn { flex: 1; }
  }

  /* ===== Footer ===== */
  footer {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px 40px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
  }

  footer .sep { margin: 0 8px; color: #c3cde0; }

  /* ===== 响应式 ===== */
  @media (max-width: 720px) {
    .grid { grid-template-columns: 1fr; gap: 16px; }
    .card { padding: 22px 20px 20px; }
    .section-head { flex-direction: column; gap: 6px; }
  }

  @media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
  }

/* Dedicated catalog page navigation. */
.library-hero { padding-top: clamp(48px, 7vw, 78px); padding-bottom: clamp(52px, 7vw, 88px); }
.library-hero .hero-inner { max-width: 1000px; }
.library-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; color: #e3efff; font-size: 14px; border-bottom: 1px solid rgba(227,239,255,.6); }
.library-back:hover { color: #fff; border-color: #fff; }
.library-back:focus-visible, .library-jump:focus-visible { outline: 3px solid #7df0ff; outline-offset: 4px; }
.library-main { padding-top: clamp(28px, 5vw, 56px); }
@media (max-width: 600px) { .library-hero { padding: 42px 20px 56px; } }

