
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --accent: #e11d48;
      --accent-dark: #1a1a2e;
      --bg: #ffffff;
      --bg-warm: #fafaf9;
      --bg-card: #ffffff;
      --text: #292524;
      --text-muted: #78716c;
      --text-bright: #1c1917;
      --border: #e7e5e4;
      --border-light: #f5f5f4;
      --radius: 8px;
      --radius-lg: 12px;
      --max-width: 760px;
      --wide-width: 1200px;
      --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
      --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
      --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
      --transition: 0.2s ease;
    }

    body {
      font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      background: var(--bg-warm);
      color: var(--text);
      line-height: 1.8;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    a { color: inherit; }

    .container {
      max-width: var(--wide-width);
      margin: 0 auto;
      padding: 0 clamp(1rem, 4vw, 2rem);
    }

    /* ===== Accent Stripe ===== */
    .accent-stripe {
      height: 4px;
      background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
    }

    /* ===== Header ===== */
    .site-header {
      background: var(--bg);
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: var(--shadow-sm);
    }
    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 2rem;
      height: 64px;
    }
    .site-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 1.5rem;
      font-weight: 900;
      color: var(--text-bright);
      text-decoration: none;
      letter-spacing: -0.02em;
      white-space: nowrap;
    }
    .logo-text { line-height: 1; }
    .site-logo:hover { color: var(--accent); }
    .logo-img {
      height: 36px;
      width: auto;
      display: block;
    }
    .site-nav {
      display: flex;
      gap: 0.25rem;
      align-items: center;
    }
    .nav-link {
      color: var(--text);
      text-decoration: none;
      font-size: 0.9rem;
      font-weight: 700;
      padding: 0.4rem 0.85rem;
      border-radius: 6px;
      transition: all var(--transition);
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }
    .nav-link:hover {
      background: var(--bg-warm);
      color: var(--accent);
    }
    .nav-link.active {
      color: var(--accent);
      background: color-mix(in srgb, var(--accent) 8%, transparent);
    }
    .mobile-menu-btn {
      display: none;
      flex-direction: column;
      gap: 5px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 4px;
    }
    .mobile-menu-btn span {
      display: block;
      width: 22px;
      height: 2px;
      background: var(--text-bright);
      border-radius: 2px;
      transition: var(--transition);
    }

    /* ===== Footer ===== */
    .site-footer {
      background: var(--accent-dark);
      color: #d6d3d1;
      padding: 3rem 0 0;
      margin-top: 4rem;
    }
    .footer-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr;
      gap: 2.5rem;
      padding-bottom: 2.5rem;
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .footer-logo {
      font-size: 1.25rem;
      font-weight: 900;
      color: #fff;
      text-decoration: none;
      display: inline-block;
      margin-bottom: 0.75rem;
    }
    .footer-desc {
      font-size: 0.85rem;
      line-height: 1.7;
      color: #a8a29e;
    }
    .footer-heading {
      font-size: 0.8rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: #fff;
      margin-bottom: 1rem;
    }
    .footer-cat-links {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
    .footer-cat-links a {
      color: #a8a29e;
      text-decoration: none;
      font-size: 0.85rem;
      transition: color var(--transition);
    }
    .footer-cat-links a:hover { color: #fff; }
    .footer-bottom {
      padding: 1.5rem 0;
      text-align: center;
    }
    .footer-text {
      color: #78716c;
      font-size: 0.8rem;
    }

    /* ===== Hero Card ===== */
    .hero-card {
      display: block;
      position: relative;
      border-radius: var(--radius-lg);
      overflow: hidden;
      min-height: 480px;
      background-size: cover;
      background-position: center;
      text-decoration: none;
      color: #fff;
      margin-bottom: 2rem;
      transition: transform var(--transition), box-shadow var(--transition);
    }
    .hero-card:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow-lg);
    }
    .hero-content {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 2.5rem;
    }
    .hero-category {
      display: inline-block;
      font-size: 0.75rem;
      font-weight: 700;
      color: #fff;
      padding: 0.3rem 0.85rem;
      border-radius: 4px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 1rem;
    }
    .hero-title {
      font-size: clamp(1.6rem, 4vw, 2.4rem);
      font-weight: 900;
      line-height: 1.25;
      margin-bottom: 0.75rem;
      text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    .hero-excerpt {
      font-size: 1rem;
      line-height: 1.6;
      opacity: 0.9;
      max-width: 600px;
      margin-bottom: 0.75rem;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .hero-meta {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.85rem;
      opacity: 0.8;
    }

    /* ===== Article Cards ===== */
    .articles-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.75rem;
    }
    .article-card {
      background: var(--bg-card);
      border-radius: var(--radius-lg);
      overflow: hidden;
      transition: transform var(--transition), box-shadow var(--transition);
      box-shadow: var(--shadow-sm);
      border: 1px solid var(--border-light);
    }
    .article-card:hover {
      box-shadow: var(--shadow-md);
      transform: translateY(-4px);
    }
    .card-image {
      display: block;
      overflow: hidden;
    }
    .card-image img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      display: block;
      transition: transform 0.4s ease;
    }
    .article-card:hover .card-image img {
      transform: scale(1.05);
    }
    .card-body { padding: 1.25rem 1.5rem 1.5rem; }
    .card-category {
      display: inline-block;
      font-size: 0.7rem;
      font-weight: 700;
      padding: 0.2rem 0.65rem;
      border-radius: 4px;
      text-decoration: none;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 0.65rem;
    }
    /* ===== 嚴選 / Featured badge ===== */
    .card-tagline { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.65rem; }
    .card-tagline .card-category { margin-bottom: 0; }
    .featured-badge {
      display: inline-flex; align-items: center; gap: 0.18rem;
      font-size: 0.6rem; font-weight: 800; letter-spacing: 0.02em;
      padding: 0.06rem 0.4rem; border-radius: 999px;
      text-decoration: none; white-space: nowrap; vertical-align: middle;
      color: #7a4f00;
      background: linear-gradient(135deg, #ffe08a 0%, #f7c948 100%);
      border: 1px solid #e8b424;
    }
    .card-tagline .featured-badge, .cat-tagline .featured-badge { margin-left: 6px; }
    .featured-badge:hover { filter: brightness(1.05); }
    .featured-badge-lg { font-size: 0.8rem; padding: 0.3rem 0.85rem; margin-bottom: 0.9rem; }
    .hero-tagline { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
    .card-image, .cat-thumb { position: relative; }
    .card-featured-ribbon {
      position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2;
      display: inline-flex; align-items: center; gap: 0.28rem;
      font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em;
      padding: 0.2rem 0.55rem; border-radius: 999px;
      color: #7a4f00;
      background: linear-gradient(135deg, #ffe08a 0%, #f7c948 100%);
      border: 1px solid #e8b424;
      box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }
    .card-title {
      font-size: 1.1rem;
      font-weight: 900;
      line-height: 1.4;
      margin-bottom: 0.5rem;
    }
    .card-title a {
      color: var(--text-bright);
      text-decoration: none;
      transition: color var(--transition);
    }
    .card-title a:hover { color: var(--accent); }
    .card-excerpt {
      color: var(--text-muted);
      font-size: 0.88rem;
      line-height: 1.65;
      margin-bottom: 1rem;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .card-meta {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.78rem;
      color: var(--text-muted);
    }
    .meta-dot::after {
      content: '\00B7';
      font-weight: 900;
    }
    .read-time { white-space: nowrap; }
    .card-tags { display: flex; gap: 0.4rem; margin-left: auto; }
    .tag {
      background: var(--bg-warm);
      color: var(--text-muted);
      padding: 0.15rem 0.6rem;
      border-radius: 9999px;
      font-size: 0.72rem;
      text-decoration: none;
      border: 1px solid var(--border);
      transition: all var(--transition);
    }
    .tag:hover {
      background: var(--accent);
      color: #fff;
      border-color: var(--accent);
    }

    /* ===== CTA Banner ===== */
    .cta-banner {
      background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
      border-radius: var(--radius-lg);
      padding: 3rem 2.5rem;
      margin: 3rem 0;
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    .cta-banner::before {
      content: '';
      position: absolute;
      top: -50%;
      right: -20%;
      width: 400px;
      height: 400px;
      background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
      border-radius: 50%;
    }
    .cta-inner { position: relative; z-index: 1; }
    .cta-content { max-width: 600px; margin: 0 auto; }
    .cta-text {
      font-size: 1.35rem;
      font-weight: 900;
      color: #fff;
      margin-bottom: 1.25rem;
      line-height: 1.4;
    }
    .cta-button {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      background: #fff;
      color: var(--accent);
      padding: 0.85rem 2.25rem;
      border-radius: 9999px;
      text-decoration: none;
      font-weight: 900;
      font-size: 1rem;
      transition: all var(--transition);
      box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }
    .cta-button:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    }
    .cta-arrow {
      transition: transform var(--transition);
    }
    .cta-button:hover .cta-arrow {
      transform: translateX(3px);
    }

    /* ===== Pagination ===== */
    .pagination {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.35rem;
      margin: 3rem 0 1rem;
    }
    .page-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 40px;
      height: 40px;
      padding: 0 0.5rem;
      border-radius: 8px;
      font-size: 0.88rem;
      font-weight: 700;
      text-decoration: none;
      color: var(--text);
      background: var(--bg-card);
      border: 1px solid var(--border);
      transition: all var(--transition);
    }
    .page-btn:hover:not(.disabled):not(.active) {
      background: var(--accent);
      color: #fff;
      border-color: var(--accent);
    }
    .page-btn.active {
      background: var(--accent);
      color: #fff;
      border-color: var(--accent);
      box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 40%, transparent);
    }
    .page-btn.disabled {
      opacity: 0.35;
      cursor: default;
    }
    .page-ellipsis {
      color: var(--text-muted);
      padding: 0 0.25rem;
      font-size: 0.85rem;
    }

    /* ===== Article Page ===== */
    .article-hero-img {
      width: 100%;
      max-height: 500px;
      object-fit: cover;
      border-radius: var(--radius-lg);
      margin-bottom: 2rem;
      box-shadow: var(--shadow-md);
    }
    .article-content {
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 2.5rem 0;
    }
    .article-header {
      margin-bottom: 2rem;
      text-align: center;
    }
    .article-header h1 {
      font-size: clamp(1.8rem, 5vw, 2.8rem);
      font-weight: 900;
      line-height: 1.2;
      color: var(--text-bright);
      margin-bottom: 1.25rem;
      letter-spacing: -0.02em;
    }
    .article-meta-bar {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1rem;
      flex-wrap: wrap;
      color: var(--text-muted);
      font-size: 0.85rem;
      padding-bottom: 1.75rem;
      border-bottom: 2px solid var(--border);
    }
    .article-meta-bar .card-category {
      margin-bottom: 0;
    }

    /* Article Body */
    .article-body {
      font-size: 1.1rem;
      color: var(--text);
    }
    .article-body > p:first-of-type::first-letter {
      float: left;
      font-size: 3.5rem;
      font-weight: 900;
      line-height: 1;
      margin-right: 0.1em;
      margin-top: 0.05em;
      color: var(--accent);
    }
    .article-body h2 {
      font-size: 1.5rem;
      font-weight: 900;
      color: var(--text-bright);
      margin: 2.5rem 0 0.85rem;
      letter-spacing: -0.01em;
    }
    .article-body h3 {
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--text-bright);
      margin: 2rem 0 0.6rem;
    }
    .article-body p {
      margin-bottom: 1.5rem;
      line-height: 2;
    }
    .article-body ul, .article-body ol {
      margin: 1rem 0 1.5rem 1.5rem;
    }
    .article-body li {
      margin-bottom: 0.5rem;
      line-height: 1.9;
    }
    .article-body blockquote {
      position: relative;
      border: none;
      padding: 2rem 2.5rem;
      margin: 2.5rem -1rem;
      background: var(--bg-warm);
      border-radius: var(--radius-lg);
      font-size: 1.2rem;
      font-weight: 700;
      font-style: italic;
      color: var(--text-bright);
      line-height: 1.7;
      border-left: 4px solid var(--accent);
    }
    .article-body blockquote::before {
      content: '\201C';
      position: absolute;
      top: 0.5rem;
      left: 1rem;
      font-size: 3rem;
      color: var(--accent);
      opacity: 0.3;
      line-height: 1;
      font-style: normal;
    }
    .article-body blockquote p {
      margin-bottom: 0;
    }
    .article-body img {
      display: block;
      max-width: 100%;
      max-height: 80vh;
      width: auto;
      height: auto;
      margin: 2rem auto 0.6rem;
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
    }
    /* 圖片下方的斜體說明文字 → 置中、淡、小，像圖說 */
    .article-body p > em:only-child {
      display: block;
      text-align: center;
      font-style: normal;
      font-size: 0.85rem;
      color: var(--text-muted);
      margin: 0 0 1.6rem;
    }
    .article-body code {
      background: #f5f5f4;
      padding: 0.2rem 0.4rem;
      border-radius: 4px;
      font-size: 0.85em;
    }
    .article-body pre {
      background: var(--accent-dark);
      color: #e2e8f0;
      padding: 1.5rem;
      border-radius: var(--radius);
      overflow-x: auto;
      margin: 2rem 0;
    }
    .article-body pre code {
      background: none;
      padding: 0;
      color: inherit;
    }
    .article-body a {
      color: var(--accent);
      text-decoration: underline;
      text-underline-offset: 3px;
      font-weight: 500;
    }
    .article-body a:hover {
      text-decoration-thickness: 2px;
    }

    /* ===== Comparison / data tables (評比表) ===== */
    .article-body table {
      width: 100%;
      border-collapse: collapse;
      margin: 1.75rem 0;
      font-size: 0.95rem;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
    }
    .article-body thead th {
      background: var(--accent);
      color: #fff;
      font-weight: 700;
      text-align: left;
      padding: 0.8rem 1rem;
    }
    .article-body tbody td {
      padding: 0.7rem 1rem;
      border-top: 1px solid var(--border-light);
      vertical-align: top;
    }
    .article-body tbody tr:nth-child(even) { background: var(--bg-warm); }
    .article-body tbody tr:hover {
      background: color-mix(in srgb, var(--accent) 7%, transparent);
    }
    @media (max-width: 640px) {
      .article-body table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
      }
    }

    /* Article Tags */
    .article-tags {
      margin-top: 2.5rem;
      padding-top: 1.5rem;
      border-top: 1px solid var(--border);
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
    }
    .article-tags .tag {
      font-size: 0.82rem;
      padding: 0.35rem 0.85rem;
    }

    /* Related Articles */
    .related-section {
      max-width: var(--wide-width);
      margin: 3.5rem auto 0;
      padding: 0 clamp(1rem, 4vw, 2rem);
    }
    .related-heading {
      font-size: 1.5rem;
      font-weight: 900;
      color: var(--text-bright);
      margin-bottom: 1.5rem;
      padding-bottom: 0.75rem;
      border-bottom: 3px solid var(--accent);
      display: inline-block;
    }
    /* 延伸閱讀：橫向滑動卡片（swiper 風）—— 卡片固定寬、可左右滑，避免擠在窄欄被壓成又高又窄 */
    .related-grid {
      display: flex;
      align-items: flex-start;
      gap: 1.25rem;
      margin-bottom: 2rem;
      overflow-x: auto;
      scroll-snap-type: x proximity;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      -ms-overflow-style: none;
      padding-bottom: 10px;
    }
    .related-grid::-webkit-scrollbar { display: none; }
    .related-grid > .article-card {
      flex: 0 0 280px;
      scroll-snap-align: start;
    }
    /* 延伸閱讀卡片做得緊湊一點：封面壓低，整張不會又高又泡 */
    .related-grid > .article-card .card-image img { height: 150px; }
    .related-grid > .article-card .card-body { padding: 1rem 1.1rem 1.1rem; }
    .related-grid > .article-card .card-excerpt { -webkit-line-clamp: 2; }
    /* 窄卡片放不下標籤會被擠成直排，延伸閱讀就不顯示標籤(分類 chip 已足夠) */
    .related-grid > .article-card .card-tags { display: none; }
    .related-grid > .article-card .card-meta { flex-wrap: wrap; }
    @media (max-width: 640px) {
      .related-grid > .article-card { flex-basis: 84%; }
    }

    /* ===== Section Title ===== */
    .section-header {
      margin-bottom: 2rem;
    }
    .section-title {
      font-size: 2rem;
      font-weight: 900;
      color: var(--text-bright);
      margin-bottom: 0.35rem;
      letter-spacing: -0.02em;
    }
    .section-title-accent {
      display: inline-block;
      width: 50px;
      height: 4px;
      background: var(--accent);
      border-radius: 2px;
      margin-bottom: 0.5rem;
    }
    .section-desc {
      color: var(--text-muted);
      font-size: 1rem;
    }

    /* ===== Breadcrumbs ===== */
    .breadcrumbs {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.85rem;
      color: var(--text-muted);
      margin-bottom: 1.5rem;
      flex-wrap: wrap;
    }
    .breadcrumb-link {
      color: var(--text-muted);
      text-decoration: none;
      transition: color var(--transition);
    }
    .breadcrumb-link:hover {
      color: var(--accent);
    }
    .breadcrumb-sep {
      color: var(--border);
      font-size: 0.75rem;
    }
    .breadcrumb-current {
      color: var(--text);
      font-weight: 500;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      max-width: 300px;
    }

    /* ===== Sidebar Layout ===== */
    .content-with-sidebar {
      display: grid;
      grid-template-columns: 1fr 340px;
      gap: 2.5rem;
      align-items: start;
    }
    .content-main { min-width: 0; }
    .content-sidebar {
      position: sticky;
      top: 80px;
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    /* Sidebar Widgets */
    .sidebar-widget {
      background: var(--bg-card);
      border-radius: var(--radius-lg);
      border: 1px solid var(--border-light);
      padding: 1.5rem;
      box-shadow: var(--shadow-sm);
    }
    .sidebar-widget-title {
      font-size: 0.9rem;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--text-bright);
      margin-bottom: 1rem;
      padding-bottom: 0.65rem;
      border-bottom: 2px solid var(--accent);
    }
    .sidebar-article-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.85rem;
    }
    .sidebar-article-item a {
      display: flex;
      gap: 0.75rem;
      text-decoration: none;
      color: var(--text);
      transition: color var(--transition);
    }
    .sidebar-article-item a:hover { color: var(--accent); }
    .sidebar-article-num {
      flex-shrink: 0;
      width: 24px;
      height: 24px;
      border-radius: 4px;
      background: var(--bg-warm);
      color: var(--text-muted);
      font-size: 0.75rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .sidebar-article-item:nth-child(-n+3) .sidebar-article-num {
      background: var(--accent);
      color: #fff;
    }
    .sidebar-article-title {
      font-size: 0.88rem;
      font-weight: 500;
      line-height: 1.45;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    /* ===== Ranking widget (TOP, 縮圖) ===== */
    .rank-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
    .rank-item a { display: flex; gap: 11px; text-decoration: none; color: var(--text); align-items: flex-start; }
    .rank-item a:hover .rank-title { color: var(--accent); }
    .rank-thumb {
      position: relative; width: 84px; height: 54px; border-radius: 8px;
      overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, #2b2b3a, #1a1a28);
    }
    .rank-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .rank-badge {
      position: absolute; left: 0; top: 0; font-size: 0.6rem; font-weight: 900; color: #fff;
      padding: 1px 7px; border-bottom-right-radius: 7px; background: #9ca3af; z-index: 1;
    }
    .rank-c1 .rank-badge { background: #ff3b6a; }
    .rank-c2 .rank-badge { background: #ff8f1f; }
    .rank-c3 .rank-badge { background: #ffb800; color: #5a3b00; }
    .rank-c4 .rank-badge { background: #22c08a; }
    .rank-c5 .rank-badge { background: #3b82f6; }
    .rank-info { min-width: 0; flex: 1; }
    .rank-title {
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
      overflow: hidden; font-size: 0.86rem; font-weight: 500; line-height: 1.45;
      transition: color var(--transition);
    }
    .rank-meta { display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }

    /* Email Capture Widget */
    .email-widget-headline {
      font-size: 1rem;
      font-weight: 900;
      color: var(--text-bright);
      margin-bottom: 0.5rem;
      line-height: 1.4;
    }
    .email-widget-desc {
      font-size: 0.85rem;
      color: var(--text-muted);
      margin-bottom: 1rem;
      line-height: 1.6;
    }
    .email-form {
      display: flex;
      gap: 0.5rem;
    }
    .email-input {
      flex: 1;
      padding: 0.6rem 0.85rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      font-size: 0.85rem;
      font-family: inherit;
      outline: none;
      transition: border-color var(--transition);
    }
    .email-input:focus { border-color: var(--accent); }
    /* ===== Email trust popup ===== */
    .email-popup-overlay {
      position: fixed; inset: 0; z-index: 1000;
      display: flex; align-items: center; justify-content: center; padding: 20px;
      background: rgba(15, 23, 42, 0.55);
      opacity: 0; visibility: hidden; transition: opacity 0.25s ease;
    }
    .email-popup-overlay.visible { opacity: 1; visibility: visible; }
    .email-popup {
      position: relative; background: #fff; border-radius: 16px;
      max-width: 420px; width: 100%; padding: 32px 28px; text-align: center;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
      transform: translateY(14px); transition: transform 0.25s ease;
    }
    .email-popup-overlay.visible .email-popup { transform: translateY(0); }
    .email-popup-close {
      position: absolute; top: 8px; right: 14px;
      background: none; border: none; font-size: 1.7rem; line-height: 1;
      color: #9aa0a8; cursor: pointer;
    }
    .email-popup-emoji { font-size: 2.4rem; margin-bottom: 6px; }
    .email-popup-title { font-size: 1.2rem; font-weight: 900; color: #1c1917; line-height: 1.5; margin-bottom: 8px; }
    .email-popup-sub { font-size: 0.95rem; color: #78716c; margin-bottom: 18px; }
    .email-popup .email-form { flex-direction: column; gap: 10px; }
    .email-popup .email-input { width: 100%; padding: 12px 14px; font-size: 1rem; }
    .email-popup .email-submit { width: 100%; padding: 12px; font-size: 1rem; border-radius: 8px; }
    .email-popup .email-submit-soft { font-size: 0.86rem; font-weight: 700; letter-spacing: .02em; }
    .email-popup .email-thank-you { display: none; font-weight: 700; color: var(--accent); margin-top: 8px; }
    @media (max-width: 480px) { .email-popup { padding: 26px 20px; } .email-popup-title { font-size: 1.08rem; } }
    .email-submit {
      padding: 0.6rem 1.1rem;
      background: var(--accent);
      color: #fff;
      border: none;
      border-radius: 6px;
      font-size: 0.85rem;
      font-weight: 700;
      font-family: inherit;
      cursor: pointer;
      white-space: nowrap;
      transition: background var(--transition);
    }
    .email-submit:hover { filter: brightness(1.1); }
    .email-thank-you {
      display: none;
      font-size: 0.9rem;
      color: var(--accent);
      font-weight: 700;
      padding: 0.5rem 0;
    }

    /* Categories Widget */
    .sidebar-cat-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
    }
    .sidebar-cat-item a {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.45rem 0.65rem;
      border-radius: 6px;
      text-decoration: none;
      font-size: 0.85rem;
      color: var(--text);
      transition: all var(--transition);
    }
    .sidebar-cat-item a:hover {
      background: var(--bg-warm);
      color: var(--accent);
    }
    .sidebar-cat-count {
      font-size: 0.75rem;
      color: var(--text-muted);
      background: var(--bg-warm);
      padding: 0.15rem 0.5rem;
      border-radius: 9999px;
    }

    /* TOC Widget */
    .toc-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
    }
    .toc-list a {
      display: block;
      padding: 0.35rem 0.5rem;
      font-size: 0.85rem;
      color: var(--text-muted);
      text-decoration: none;
      border-left: 2px solid transparent;
      border-radius: 0 4px 4px 0;
      transition: all var(--transition);
      line-height: 1.45;
    }
    .toc-list a:hover {
      color: var(--accent);
      border-left-color: var(--accent);
      background: color-mix(in srgb, var(--accent) 5%, transparent);
    }
    .toc-list .toc-h3 { padding-left: 1.25rem; font-size: 0.82rem; }

    /* Share Buttons */
    .share-buttons {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
      margin-top: 1.5rem;
      padding-top: 1rem;
      border-top: 1px solid var(--border);
    }
    .share-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.5rem 1rem;
      border-radius: 6px;
      font-size: 0.82rem;
      font-weight: 600;
      text-decoration: none;
      transition: all var(--transition);
      border: 1px solid var(--border);
      color: var(--text);
      background: var(--bg-card);
      font-family: inherit;
      cursor: pointer;
    }
    .share-btn:hover { border-color: var(--accent); color: var(--accent); }
    .share-btn svg { width: 16px; height: 16px; }

    /* Like Button */
    .like-button {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 1.1rem;
      border-radius: 9999px;
      border: 1px solid var(--border);
      background: var(--bg-card);
      color: var(--text-muted);
      font-size: 0.88rem;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: all var(--transition);
    }
    .like-button:hover, .like-button.liked {
      border-color: #e11d48;
      color: #e11d48;
    }
    .like-button.liked { background: #fef2f2; }
    .like-button svg { width: 18px; height: 18px; }

    /* Author Card */
    .author-card {
      display: flex;
      gap: 1rem;
      align-items: flex-start;
      padding: 1.5rem;
      background: var(--bg-warm);
      border-radius: var(--radius-lg);
      margin: 2rem 0;
    }
    .author-avatar {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      object-fit: cover;
      flex-shrink: 0;
    }
    .author-avatar-placeholder {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      background: var(--accent);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      font-weight: 900;
      flex-shrink: 0;
    }
    .author-info { flex: 1; min-width: 0; }
    .author-name {
      font-size: 1rem;
      font-weight: 900;
      color: var(--text-bright);
      margin-bottom: 0.25rem;
    }
    .author-name a { text-decoration: none; color: inherit; }
    .author-name a:hover { color: var(--accent); }
    .author-bio {
      font-size: 0.85rem;
      color: var(--text-muted);
      line-height: 1.6;
    }
    .author-meta {
      font-size: 0.78rem;
      color: var(--text-muted);
      margin-top: 0.35rem;
    }

    /* Figures Section */
    .figures-section {
      margin-bottom: 2.5rem;
    }
    .figures-grid {
      display: flex;
      gap: 1.25rem;
      overflow-x: auto;
      padding-bottom: 0.5rem;
      scrollbar-width: thin;
    }
    .figure-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.6rem;
      padding: 1.25rem 1.5rem;
      background: var(--bg-card);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-sm);
      text-decoration: none;
      color: inherit;
      min-width: 140px;
      transition: transform 0.2s, box-shadow 0.2s;
      flex-shrink: 0;
    }
    .figure-card:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow-md);
    }
    .figure-avatar {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      object-fit: cover;
    }
    .figure-avatar-placeholder {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      background: var(--accent);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2rem;
      font-weight: 900;
    }
    .figure-name {
      font-weight: 800;
      font-size: 0.95rem;
      color: var(--text-bright);
      text-align: center;
    }
    .figure-count {
      font-size: 0.78rem;
      color: var(--text-muted);
    }

    /* Floating Email Banner */
    .floating-email-banner {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: var(--accent-dark);
      color: #fff;
      padding: 1rem 2rem;
      z-index: 90;
      transform: translateY(100%);
      transition: transform 0.4s ease;
      box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    }
    .floating-email-banner.visible { transform: translateY(0); }
    .floating-email-inner {
      max-width: var(--wide-width);
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1rem;
      flex-wrap: wrap;
    }
    .floating-email-text {
      font-size: 0.95rem;
      font-weight: 700;
    }
    .floating-email-close {
      position: absolute;
      top: 0.5rem;
      right: 1rem;
      background: none;
      border: none;
      color: rgba(255,255,255,0.6);
      font-size: 1.25rem;
      cursor: pointer;
    }
    .floating-email-close:hover { color: #fff; }

    /* Trending Section */
    .trending-section {
      margin-bottom: 2.5rem;
      padding-bottom: 1.5rem;
      border-bottom: 1px solid var(--border);
    }
    .trending-heading {
      font-size: 1.3rem;
      font-weight: 900;
      color: var(--text-bright);
      margin-bottom: 1.25rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .trending-badge {
      background: var(--accent);
      color: #fff;
      font-size: 0.65rem;
      font-weight: 700;
      padding: 0.2rem 0.6rem;
      border-radius: 4px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    /* FAQ Section */
    .faq-section { margin: 2.5rem 0; }
    .faq-heading {
      font-size: 1.3rem;
      font-weight: 900;
      color: var(--text-bright);
      margin-bottom: 1rem;
    }
    .faq-item {
      border: 1px solid var(--border);
      border-radius: var(--radius);
      margin-bottom: 0.5rem;
      overflow: hidden;
    }
    .faq-question {
      padding: 1rem 1.25rem;
      font-weight: 700;
      font-size: 0.95rem;
      color: var(--text-bright);
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .faq-answer {
      padding: 0 1.25rem 1rem;
      font-size: 0.9rem;
      color: var(--text-muted);
      line-height: 1.7;
    }

    /* ===== Reading Progress Bar ===== */
    .read-progress {
      position: fixed;
      top: 0; left: 0;
      height: 3px;
      width: 0;
      background: linear-gradient(90deg, var(--accent), var(--accent-dark));
      z-index: 9999;
    }

    /* ===== Back to Top ===== */
    .to-top {
      position: fixed; right: 18px; bottom: 18px; z-index: 60;
      width: 44px; height: 44px; border-radius: 50%;
      background: var(--accent); color: #fff; border: none; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 4px 16px rgba(0,0,0,.25);
      opacity: 0; visibility: hidden; transform: translateY(8px);
      transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    }
    .to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
    .to-top:hover { filter: brightness(1.08); }
    @media (max-width: 640px) { .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; } }

    /* ===== TLDR ===== */
    .tldr-box {
      border: 1px solid var(--border);
      border-left: 4px solid var(--accent);
      border-radius: var(--radius);
      padding: 1rem 1.25rem;
      margin: 1.5rem 0;
      background: var(--bg-soft, rgba(127,127,127,0.05));
    }
    .tldr-label {
      font-size: 0.8rem;
      font-weight: 900;
      letter-spacing: 0.05em;
      color: var(--accent);
      text-transform: uppercase;
      margin-bottom: 0.5rem;
    }
    .tldr-box p, .tldr-box ul {
      margin: 0;
      font-size: 0.95rem;
      line-height: 1.8;
      color: var(--text-bright);
    }
    .tldr-box ul { padding-left: 1.25rem; }
    .tldr-box li { margin-bottom: 0.25rem; }

    /* ===== Empty State ===== */
    .empty-state {
      text-align: center;
      padding: 4rem 2rem;
      color: var(--text-muted);
      font-size: 1.1rem;
      grid-column: 1 / -1;
    }

    /* ===== Responsive ===== */
    @media (max-width: 1024px) {
      .content-with-sidebar { grid-template-columns: 1fr; }
      .content-sidebar { position: static; }
      .articles-grid { grid-template-columns: repeat(2, 1fr); }
      .related-grid { grid-template-columns: repeat(2, 1fr); }
      .footer-grid { grid-template-columns: 1fr 1fr; }
      .hero-card { min-height: 380px; }
    }
    @media (max-width: 640px) {
      .articles-grid { grid-template-columns: 1fr; }
      .related-grid { grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
      .hero-card { min-height: 300px; }
      .hero-content { padding: 1.5rem; }
      .hero-title { font-size: 1.4rem; }
      .cta-banner { padding: 2rem 1.5rem; }
      .cta-text { font-size: 1.1rem; }
      /* 手機文章排版：縮小內文、收緊行高、拉開標題階層 */
      .article-content { padding: 1.75rem 0; }
      .article-header { margin-bottom: 1.5rem; }
      .article-header h1 { font-size: 1.6rem; line-height: 1.3; margin-bottom: 0.85rem; letter-spacing: -0.01em; }
      .article-meta-bar { font-size: 0.78rem; gap: 0.55rem; padding-bottom: 1.25rem; }
      .article-body { font-size: 1rem; }
      .article-body p { line-height: 1.7; margin-bottom: 1.15rem; }
      .article-body h2 { font-size: 1.3rem; margin: 1.9rem 0 0.7rem; }
      .article-body h3 { font-size: 1.12rem; margin: 1.5rem 0 0.5rem; }
      .article-body ul, .article-body ol { margin: 0.9rem 0 1.15rem 1.25rem; }
      .article-body li { line-height: 1.7; }
      .article-body > p:first-of-type::first-letter { font-size: 2.6rem; }
      .article-body blockquote {
        margin: 2rem 0;
        padding: 1.5rem;
      }
      .site-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
      }
      .site-nav.open { display: flex; }
      .mobile-menu-btn { display: flex; }
      .header-inner { position: relative; }
    }

    
    /* ===== GUIDE / LIBRARY 共用（資源站文章頁）===== */
    body { background: #eef0f3; }
    /* 綠色頂部 accent bar */
    .site-header { border-top: 5px solid #22c08a; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
    .nav-link { text-transform: none; letter-spacing: 0; font-weight: 500; }
    .nav-link:hover, .nav-link.active { color: var(--accent); background: #f3f4f6; }
    /* 內容：白色軟圓角大卡片浮在灰底 */
    .article-content {
      background: #fff; border-radius: 16px; border: none;
      box-shadow: 0 6px 24px rgba(20,30,50,.06);
      padding: clamp(1.5rem, 4vw, 2.75rem); max-width: 900px; margin: 0 auto;
    }
    .article-header { text-align: left; }
    .article-meta-bar { justify-content: flex-start; }
    .article-body > p:first-of-type::first-letter {
      float: none; font-size: inherit; line-height: inherit; margin: 0; color: inherit; font-weight: inherit;
    }
    /* 粉紅 section 左槓 */
    .article-body h2 { border-left: 4px solid #ff4d7d; padding-left: 14px; margin-left: 0; }
    .related-heading { border-bottom: none; border-left: 4px solid #ff4d7d; padding: 0 0 0 12px; }
    .sidebar-widget-title { border-bottom-color: #ff4d7d; }
    /* 軟圓角卡片（sidebar / 文章卡）*/
    .sidebar-widget, .article-card {
      border-radius: 16px; border: 1px solid #f0f1f4;
      box-shadow: 0 6px 24px rgba(20,30,50,.06);
    }
    .hero-card { border-radius: 16px; }
    /* footer 改白底 */
    .site-footer { background: #fff; border-top: 1px solid #edeef1; }
    .site-footer .footer-text, .site-footer .footer-cat-links a, .site-footer .footer-desc { color: #7a828c; }
    .site-footer .footer-heading, .site-footer .footer-logo { color: #2b2f36; }
    /* 加寬內容（修太窄）*/
    .article-content { max-width: none; }
    /* 資源下載框 */
    .res-block { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid #f0f1f4; border-radius: 14px; box-shadow: 0 6px 24px rgba(20,30,50,.06); padding: 18px; margin: 2rem 0; flex-wrap: wrap; }
    .res-thumb { position: relative; width: 240px; max-width: 45%; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: #111; }
    .res-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .res-badge { position: absolute; left: 0; top: 0; background: linear-gradient(135deg,#ff7a59,#ff3b6a); color: #fff; font-size: .72rem; font-weight: 900; padding: 4px 12px; border-bottom-right-radius: 10px; }
    .res-info { flex: 1; min-width: 220px; }
    .res-title { font-weight: 900; font-size: 1.05rem; color: #1f2329; margin-bottom: 6px; }
    .res-note { font-size: .85rem; color: var(--text-muted); margin-bottom: 10px; }
    .res-price { color: #ff3b6a; font-weight: 900; font-size: 1.6rem; margin-bottom: 12px; }
    .res-price span { font-size: .85rem; }
    .res-btn { display: block; text-align: center; background: linear-gradient(135deg,#5aa9ff,#3b82f6); color: #fff; padding: 12px; border-radius: 8px; font-weight: 900; text-decoration: none; }
    /* 評論區 */
    .comments { background: #fff; border-radius: 16px; box-shadow: 0 6px 24px rgba(20,30,50,.06); padding: 24px 28px; margin-top: 24px; }
    .cmt-bar { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 18px; }
    .cmt-count { font-weight: 900; color: #1f2329; }
    .cmt-tabs span { font-size: .9rem; color: var(--text-muted); margin-left: 14px; }
    .cmt-tabs .on { color: var(--accent); font-weight: 700; }
    .cmt-input { background: #f3f4f6; border-radius: 10px; padding: 12px 16px; color: var(--text-muted); font-size: .9rem; margin-bottom: 20px; }
    .cmt-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border-light); }
    .cmt-av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,#9aa7b8,#7a8699); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; flex-shrink: 0; }
    .cmt-av-author { background: linear-gradient(135deg,#3b82f6,#2563eb); }
    .cmt-body { flex: 1; min-width: 0; }
    .cmt-head { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
    .cmt-name { font-weight: 700; font-size: .92rem; color: #1f2329; }
    .cmt-lv { background: #ffedd5; color: #c2680c; font-size: .6rem; font-weight: 700; padding: 1px 5px; border-radius: 5px; }
    .cmt-author-tag { background: #dcfce7; color: #16a34a; font-size: .62rem; font-weight: 700; padding: 1px 6px; border-radius: 5px; }
    .cmt-text { font-size: .94rem; color: #3a3f47; line-height: 1.7; }
    .cmt-foot { font-size: .78rem; color: var(--text-muted); margin-top: 6px; }
    .cmt-foot a { color: var(--text-muted); text-decoration: none; }
    .cmt-loc { background: #f3f4f6; padding: 1px 7px; border-radius: 4px; }
    .cmt-reply { display: flex; gap: 10px; background: #f7f8fa; border-radius: 10px; padding: 12px; margin-top: 12px; }
    /* 相關推薦：圖上疊標題橫排（張小白）*/
    .related-grid { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 2px; grid-template-columns: none; scrollbar-width: none; -ms-overflow-style: none; }
    .related-grid::-webkit-scrollbar { display: none; }
    .g-rel-card { position: relative; flex: 0 0 240px; height: 150px; border-radius: 12px; overflow: hidden; display: block; background: #1a1a28; }
    .g-rel-card img { width: 100%; height: 100%; object-fit: cover; }
    .g-rel-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.78), transparent 55%); }
    .g-rel-card .g-rel-title { position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff; font-weight: 700; font-size: .95rem; line-height: 1.4; z-index: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    
    /* ===== LIBRARY TEMPLATE (情感資料庫 / 資源目錄) ===== */
    .filter-bar { display: flex; gap: 10px; background: #fff; border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.04); flex-wrap: wrap; }
    .filter-chip { background: #f3f4f6; border-radius: 8px; padding: 7px 14px; font-size: .88rem; color: #555; cursor: pointer; }
    .filter-chip:hover { background: #e8eaed; }
    .catalog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .cat-card { display: flex; gap: 14px; background: #fff; border-radius: 10px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.05); text-decoration: none; color: var(--text); transition: .15s; }
    .cat-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); transform: translateY(-2px); }
    .cat-thumb { width: 130px; aspect-ratio: 4/3; align-self: center; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg,#1a1a28,#2b2b3a); }
    .cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .cat-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
    .cat-tagline { font-size: .78rem; color: var(--accent); display: flex; align-items: center; gap: 5px; margin-bottom: 5px; }
    .cat-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
    .cat-title { font-size: 1rem; font-weight: 700; color: #1f2329; line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
    .cat-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: auto; }
    .cat-meta { display: flex; align-items: center; gap: 12px; font-size: .76rem; color: #9aa0a8; margin-top: 8px; }
    .cat-get { margin-left: auto; color: #ff8f1f; font-weight: 700; }
    /* 大篇幅 hero（背景圖 + 精選文章）*/
    .lib-hero { display: block; position: relative; min-height: 320px; border-radius: 14px; overflow: hidden; background-size: cover; background-position: center; background-color: #1a2238; margin-bottom: 24px; text-decoration: none; }
    .lib-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,15,30,.3), rgba(10,15,30,.78)); }
    .lib-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 56px 30px; text-align: center; color: #fff; }
    .lib-hero-cat { display: inline-block; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 14px; border-radius: 999px; margin-bottom: 16px; }
    .lib-hero-title { font-size: clamp(1.5rem, 4vw, 2.3rem); font-weight: 900; line-height: 1.3; margin-bottom: 14px; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
    .lib-hero-excerpt { font-size: 1rem; opacity: .9; margin-bottom: 22px; }
    .lib-hero-btn { display: inline-block; background: #fff; color: #1f2329; padding: 11px 28px; border-radius: 999px; font-weight: 700; }
    .lib-section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
    .lib-section-head h2 { font-size: 1.5rem; font-weight: 900; color: #1f2329; }
    .lib-section-sub { font-size: .85rem; color: #9aa0a8; }
    @media (max-width: 760px) {
      .catalog-grid { grid-template-columns: 1fr; }
      .cat-card { flex-direction: column; padding: 12px; gap: 12px; }
      .cat-thumb { width: 100%; aspect-ratio: 16/9; align-self: stretch; }
      .cat-title { -webkit-line-clamp: 2; }
      .cat-desc { -webkit-line-clamp: 2; }
      .lib-hero { min-height: 230px; }
      .lib-hero-inner { padding: 34px 18px; }
      .lib-hero-title { font-size: clamp(1.3rem, 6vw, 1.8rem); }
      .lib-section-head { gap: 8px; flex-wrap: wrap; }
      .lib-section-head h2 { font-size: 1.3rem; }
      .filter-bar { gap: 8px; padding: 10px 12px; }
      .filter-chip { padding: 6px 11px; font-size: .82rem; }
    }
    /* 文章頁 h2/標題用主題色（覆蓋 guide 粉紅）*/
    .article-body h2 { border-left-color: var(--accent); }
    .related-heading { border-left-color: var(--accent); }
    .sidebar-widget-title { border-bottom-color: var(--accent); }
    