/* ============ Reset & Base ============ */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    /* Warm, editorial palette — newspaper feel */
    --bg:          #faf6ef;   /* warm cream */
    --bg-alt:      #ffffff;   /* card / paper */
    --bg-soft:     #f3eddf;   /* warmer cream block */
    --text:        #2a261f;   /* warm near-black */
    --text-soft:   #6f6a62;   /* warm gray */
    --text-faint:  #a8a298;   /* faint warm gray */
    --line:        #e7e0d2;   /* gentle border */
    --line-soft:   #f1ebdd;
    --green:       #4a7d5f;   /* sage green primary */
    --green-deep:  #2f5f44;   /* deeper green for headings */
    --green-soft:  #e3eee5;   /* light green tag bg */
    --amber:       #c89968;   /* honey amber for highlights */
    --amber-soft:  #f5ead8;   /* light amber bg */
    --coral:       #c66e5e;   /* warm coral (negatives, soft) */
    --plum:        #8d6b8e;   /* muted plum */
    --plum-soft:   #ece2ed;
    --teal:        #5a8f95;
    --teal-soft:   #e1ecee;
    --shadow-sm:   0 1px 3px  rgba(70, 60, 40, 0.05);
    --shadow-md:   0 4px 16px rgba(70, 60, 40, 0.07);
    --shadow-lg:   0 12px 36px rgba(70, 60, 40, 0.10);

    /* Legacy aliases for inline references inside article bodies */
    --accent: var(--green-deep);
    --cyan: var(--teal);
    --violet: var(--plum);
    --muted: var(--text-soft);
    --bg-0: var(--bg);
    --bg-2: var(--bg-soft);
    --danger: var(--coral);
  }
  html, body {
    background: var(--bg);
    color: var(--text);
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  body { min-height: 100vh; overflow-x: hidden; }
  h1, h2, h3, h4 { font-family: "Noto Serif TC", "PMingLiU", "新細明體", serif; font-weight: 700; letter-spacing: -0.005em; line-height: 1.3; color: var(--text); }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }
  .container { max-width: 1140px; margin: 0 auto; padding: 0 24px; position: relative; }

  @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

  /* ============ Nav ============ */
  .nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 0 18px;
    border-bottom: 1px solid var(--line);
  }
  .logo { font-family: "Noto Serif TC", serif; font-weight: 900; font-size: 22px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; color: var(--text); }
  .logo__mark {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--green);
    display: grid; place-items: center; color: white; font-weight: 900; font-size: 17px;
    font-family: "Noto Serif TC", serif;
  }
  .logo__cn { font-family: "Noto Sans TC", sans-serif; color: var(--text-soft); font-size: 13px; font-weight: 400; margin-left: 6px; }
  .nav__menu { display: flex; gap: 4px; align-items: center; }
  .nav__menu a { padding: 8px 14px; border-radius: 6px; font-size: 14px; color: var(--text-soft); transition: 0.18s; font-weight: 500; }
  .nav__menu a:hover, .nav__menu a.is-active { color: var(--green-deep); background: var(--green-soft); }
  .nav__cta {
    padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 700;
    background: var(--amber-soft); color: #8a6332;
    transition: 0.18s;
  }
  .nav__cta:hover { background: var(--amber); color: white; }

  /* ============ Hero ============ */
  .hero { padding: 80px 0 90px; position: relative; }
  .hero__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px; border-radius: 999px;
    background: var(--green-soft); color: var(--green-deep);
    font-size: 12px; letter-spacing: 0.06em;
    font-weight: 700;
  }
  .hero__eyebrow .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
  .hero__title {
    font-family: "Noto Serif TC", serif;
    font-size: clamp(34px, 5.4vw, 60px);
    line-height: 1.18;
    font-weight: 700;
    margin: 22px 0 22px;
    letter-spacing: -0.012em;
    color: var(--text);
    max-width: 780px;
  }
  .hero__title .grad { color: var(--green-deep); }
  .hero__sub { color: var(--text-soft); font-size: 18px; max-width: 620px; margin-bottom: 36px; line-height: 1.7; }
  .hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
  .btn { padding: 13px 24px; border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer; transition: 0.18s; border: none; font-family: inherit; }
  .btn-primary { background: var(--green); color: white; }
  .btn-primary:hover { background: var(--green-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
  .btn-ghost { background: white; color: var(--green-deep); border: 1px solid var(--line); }
  .btn-ghost:hover { border-color: var(--green); color: var(--green); }

  /* ============ Sections ============ */
  section { padding: 56px 0; }
  .section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .section-head h2 {
    font-family: "Noto Serif TC", serif;
    font-size: clamp(26px, 3.6vw, 34px); font-weight: 700; letter-spacing: -0.01em;
    color: var(--text);
  }
  .section-head h2 .accent { color: var(--green); font-weight: 400; margin-right: 4px; }
  .section-head .sub { color: var(--text-soft); font-size: 14px; margin-top: 6px; }
  .tag {
    display: inline-flex; padding: 3px 10px; border-radius: 4px;
    font-size: 11px; font-weight: 700;
    background: var(--green-soft); color: var(--green-deep);
    border: 1px solid transparent;
  }
  .tag.cy { background: var(--teal-soft); color: #3d6a72; }
  .tag.vi { background: var(--plum-soft); color: #6e4e70; }
  .tag.am { background: var(--amber-soft); color: #8a6332; }

  /* "新手必讀" pinned card */
  .pinned {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 30px;
    background: linear-gradient(135deg, var(--green-soft) 0%, var(--plum-soft) 100%);
    border: 1px solid var(--green);
    border-radius: 14px;
    cursor: pointer;
    transition: 0.2s;
    margin: 24px 0 8px;
    box-shadow: var(--shadow-sm);
  }
  .pinned:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--green-deep); }
  .pinned__badge {
    flex-shrink: 0;
    padding: 8px 16px;
    background: var(--green);
    color: white;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    font-family: "Noto Serif TC", serif;
    white-space: nowrap;
  }
  .pinned__content { flex: 1; min-width: 0; }
  .pinned__title { font-family: "Noto Serif TC", serif; font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 4px; line-height: 1.4; }
  .pinned__desc { color: var(--text-soft); font-size: 14.5px; line-height: 1.65; }
  .pinned__cta { color: var(--green-deep); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
  @media (max-width: 700px) {
    .pinned { flex-direction: column; align-items: flex-start; padding: 20px 22px; gap: 12px; }
  }

  /* Featured grid: full-width hero on top + 3 cols below */
  .grid-feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .grid-feat .is-hero { grid-column: 1 / -1; }
  .grid-feat-2 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-top: 20px; }
  @media (max-width: 980px) { .grid-feat, .grid-feat-2 { grid-template-columns: 1fr; } }
  .card {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    transition: 0.2s;
    cursor: pointer;
    display: flex; flex-direction: column; gap: 14px;
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  .card:hover { transform: translateY(-3px); border-color: var(--green); box-shadow: var(--shadow-md); }
  .card__cover {
    height: 170px; border-radius: 10px; position: relative; overflow: hidden;
    background: var(--bg-soft);
  }
  .card.is-hero .card__cover { height: 280px; }
  .card.is-hero .card__title, .card.is-hero .card__excerpt { max-width: 760px; }
  .card__title { font-family: "Noto Serif TC", serif; font-size: 20px; font-weight: 700; line-height: 1.4; color: var(--text); letter-spacing: -0.005em; }
  .card.is-hero .card__title { font-size: 28px; line-height: 1.3; }
  .card__excerpt { color: var(--text-soft); font-size: 14.5px; line-height: 1.7; }
  .card__meta { display: flex; align-items: center; justify-content: space-between; color: var(--text-faint); font-size: 12.5px; margin-top: auto; padding-top: 8px; }
  .card__author { display: flex; align-items: center; gap: 8px; }
  .card__author .avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--green); display: grid; place-items: center; font-weight: 700; font-size: 11px; color: white; font-family: "Noto Serif TC", serif; }

  /* SVG cover backgrounds (warm, gentle) */
  .cover-etf {
    background:
      radial-gradient(circle at 25% 75%, rgba(74,125,95,0.18), transparent 55%),
      radial-gradient(circle at 80% 25%, rgba(200,153,104,0.15), transparent 55%),
      linear-gradient(135deg, #f5ebd9 0%, #e3eee5 100%);
  }
  .cover-stock {
    background:
      radial-gradient(circle at 30% 30%, rgba(200,153,104,0.22), transparent 55%),
      radial-gradient(circle at 70% 70%, rgba(198,110,94,0.14), transparent 55%),
      linear-gradient(135deg, #f6ecd6 0%, #f1ddc8 100%);
  }
  .cover-edu {
    background:
      radial-gradient(circle at 50% 25%, rgba(141,107,142,0.20), transparent 55%),
      radial-gradient(circle at 50% 80%, rgba(90,143,149,0.18), transparent 55%),
      linear-gradient(135deg, #ece2ed 0%, #e1ecee 100%);
  }
  .cover-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

  /* Categories */
  .cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  @media (max-width: 800px) { .cats { grid-template-columns: 1fr; } }
  .cat {
    border: 1px solid var(--line); border-radius: 14px; padding: 28px;
    background: var(--bg-alt);
    transition: 0.2s; cursor: pointer; position: relative; overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  .cat:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .cat__icon { font-size: 36px; margin-bottom: 14px; line-height: 1; }
  .cat__title { font-size: 22px; font-weight: 700; margin-bottom: 8px; font-family: "Noto Serif TC", serif; color: var(--text); }
  .cat__desc { color: var(--text-soft); font-size: 14.5px; line-height: 1.7; }
  .cat__count { position: absolute; top: 18px; right: 18px; font-size: 12px; color: var(--text-faint); }

  /* ============ Article reading progress + TOC ============ */
  .article-progress {
    position: fixed; top: 0; left: 0; right: 0;
    height: 3px; z-index: 120;
    background: rgba(74,125,95,0.10);
    pointer-events: none;
    opacity: 0; transition: opacity 0.3s;
  }
  .article-view.is-open ~ .article-progress,
  .article-progress.is-active { opacity: 1; }
  .article-progress__bar {
    height: 100%; width: 0%;
    background: var(--green);
    transition: width 0.1s linear;
  }
  .article-toc {
    position: fixed; top: 96px; right: 24px; z-index: 105;
    width: 220px; max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 18px 20px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 12px;
    display: none;
    box-shadow: var(--shadow-sm);
  }
  .article-view.is-open .article-toc.has-items { display: block; }
  .article-toc__head { font-size: 11px; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-family: "Noto Serif TC", serif; font-weight: 700; }
  .article-toc ol { list-style: none; counter-reset: tocnum; padding: 0; margin: 0; }
  .article-toc li { counter-increment: tocnum; padding: 5px 0; }
  .article-toc a {
    color: var(--text-soft); text-decoration: none;
    display: block; padding-left: 24px; position: relative;
    line-height: 1.5; font-size: 13px;
    transition: 0.15s;
  }
  .article-toc a::before {
    content: counter(tocnum, decimal-leading-zero);
    position: absolute; left: 0; top: 0;
    color: var(--text-faint); font-size: 10px;
  }
  .article-toc a:hover { color: var(--text); }
  .article-toc a.is-active { color: var(--green-deep); font-weight: 700; }
  .article-toc a.is-active::before { color: var(--green); }
  @media (max-width: 1180px) {
    .article-toc { display: none !important; }
  }

  /* ============ Related articles (end of article) ============ */
  .related {
    margin-top: 56px; padding-top: 32px;
    border-top: 1px solid var(--line);
  }
  .related__title {
    font-family: "Noto Serif TC", serif;
    font-size: 20px; font-weight: 700; margin-bottom: 20px;
    color: var(--text); letter-spacing: -0.01em;
  }
  .related__title .accent { color: var(--green); font-weight: 400; margin-right: 4px; }
  .related__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  @media (max-width: 700px) { .related__grid { grid-template-columns: 1fr; } }
  .related__card {
    display: flex; flex-direction: column; gap: 10px;
    padding: 18px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    transition: 0.18s;
  }
  .related__card:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
  .related__tag { font-size: 11px; color: var(--text-faint); }
  .related__h { font-family: "Noto Serif TC", serif; font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--text); }
  .related__meta { font-size: 12px; color: var(--text-faint); margin-top: auto; padding-top: 6px; }

  /* Article view (modal-like full-screen) */
  .article-view {
    display: none; position: fixed; inset: 0; z-index: 100;
    background: var(--bg);
    overflow-y: auto;
  }
  .article-view.is-open { display: block; }
  .article-view__container { max-width: 720px; margin: 0 auto; padding: 80px 24px 120px; position: relative; }
  .article-view__close {
    position: fixed; top: 20px; right: 20px; z-index: 110;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--bg-alt); border: 1px solid var(--line); cursor: pointer;
    display: grid; place-items: center; color: var(--text); font-size: 18px;
    transition: 0.18s;
    box-shadow: var(--shadow-sm);
  }
  .article-view__close:hover { background: var(--text); color: var(--bg-alt); border-color: var(--text); }
  .article-view__tag { margin-bottom: 16px; }
  .article-view__title { font-family: "Noto Serif TC", serif; font-size: clamp(28px, 4.5vw, 42px); font-weight: 700; line-height: 1.3; margin-bottom: 16px; letter-spacing: -0.012em; color: var(--text); }
  .article-view__meta { color: var(--text-soft); font-size: 13.5px; margin-bottom: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
  .article-view__cover { height: 280px; border-radius: 12px; margin-bottom: 36px; position: relative; overflow: hidden; }
  .article-view__cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .article-view__body { font-size: 17px; line-height: 1.95; color: var(--text); }
  .article-view__body h3 { font-family: "Noto Serif TC", serif; font-size: 24px; font-weight: 700; margin: 40px 0 16px; color: var(--text); letter-spacing: -0.005em; }
  .article-view__body p { margin-bottom: 20px; }
  .article-view__body strong { color: var(--green-deep); font-weight: 700; }
  .article-view__body ul, .article-view__body ol { margin: 0 0 22px 24px; }
  .article-view__body li { margin-bottom: 10px; }
  .article-view__body table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14.5px; }
  .article-view__body th, .article-view__body td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
  .article-view__body th { background: var(--bg-soft); color: var(--green-deep); font-weight: 700; font-family: "Noto Serif TC", serif; }
  .article-view__body tr:last-child td { border-bottom: none; }
  .article-view__body blockquote {
    border-left: 3px solid var(--green);
    padding: 14px 22px; margin: 24px 0;
    background: var(--green-soft);
    border-radius: 0 8px 8px 0;
    color: var(--text);
    font-family: "Noto Serif TC", serif;
    font-size: 16.5px;
    font-weight: 600;
    line-height: 1.7;
  }
  .article-view__body code { background: var(--bg-soft); padding: 2px 7px; border-radius: 4px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.88em; color: var(--green-deep); }
  .disclaimer { margin-top: 48px; padding: 18px 22px; border: 1px solid var(--amber); border-radius: 10px; color: var(--text-soft); font-size: 13.5px; background: var(--amber-soft); line-height: 1.7; }
  .disclaimer strong { color: #8a6332 !important; }

  /* ============ Article Interactives ============ */
  /* TL;DR */
  .tldr {
    margin: 0 0 36px;
    padding: 24px 28px;
    border-radius: 12px;
    background: var(--green-soft);
    border-left: 4px solid var(--green);
  }
  .tldr h4 { font-family: "Noto Serif TC", serif; font-size: 17px; color: var(--green-deep); margin-bottom: 14px; font-weight: 700; }
  .tldr ul { margin: 0; padding-left: 0; list-style: none; }
  .tldr li { padding: 4px 0; font-size: 15px; line-height: 1.7; color: var(--text); position: relative; padding-left: 16px; }
  .tldr li::before { content: "▸"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
  .tldr li strong { color: var(--green-deep); margin-right: 4px; }

  /* (Live-data card and compound calculator styles removed in v1.0 — pure text site) */

  /* ============ Ad Slots ============ */
  .ad {
    position: relative;
    border: 1px solid var(--amber);
    background: var(--amber-soft);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.18s;
  }
  .ad:hover { box-shadow: var(--shadow-md); }
  .ad__label {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 9px; border-radius: 4px;
    background: var(--amber); color: white;
    font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  }
  .ad__close {
    position: absolute; top: 8px; right: 10px; z-index: 2;
    background: transparent; border: none; color: var(--text-soft);
    font-size: 14px; cursor: pointer; padding: 4px 6px; line-height: 1;
  }
  .ad__close:hover { color: var(--text); }
  .ad-banner {
    margin: 24px 0 0;
    min-height: 110px;
    display: flex; align-items: center; justify-content: center;
    padding: 20px 24px;
  }
  .ad-banner__inner {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  }
  .ad-banner__copy { flex: 1; min-width: 220px; }
  .ad-banner__title { font-family: "Noto Serif TC", serif; font-size: 18px; font-weight: 700; margin-bottom: 4px; color: #6a4a1f; }
  .ad-banner__sub { color: var(--text-soft); font-size: 13.5px; }
  .ad-banner__cta {
    padding: 10px 20px; border-radius: 8px; background: var(--amber); color: white;
    font-weight: 700; font-size: 13px; white-space: nowrap;
    transition: 0.18s;
  }
  .ad-banner__cta:hover { background: #a8804f; }
  .ad-card {
    background: var(--amber-soft);
    border-color: var(--amber);
  }
  .ad-card .card__cover {
    background: linear-gradient(135deg, #f5ead8 0%, #ecd5b3 100%);
  }
  .ad-inline {
    margin: 32px 0;
    padding: 28px 24px;
    text-align: left;
    background: var(--amber-soft);
    border: 1px solid var(--amber);
  }
  .ad-inline__title { font-family: "Noto Serif TC", serif; font-size: 17px; font-weight: 700; margin-bottom: 6px; color: #6a4a1f; }
  .ad-inline__sub { color: var(--text-soft); font-size: 13.5px; margin-bottom: 14px; line-height: 1.6; }
  .ad-inline__cta { display: inline-block; padding: 8px 16px; border-radius: 6px; background: var(--amber); color: white; font-weight: 700; font-size: 13px; }
  .ad-inline__cta:hover { background: #a8804f; }

  /* Advertise CTA box */
  .nl {
    margin-top: 48px;
    background: var(--amber-soft);
    border: 1px solid var(--amber);
    border-radius: 18px; padding: 40px 44px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  }
  .nl__title { font-family: "Noto Serif TC", serif; font-size: 24px; font-weight: 700; margin-bottom: 8px; color: #6a4a1f; }
  .nl__sub { color: var(--text-soft); font-size: 14.5px; line-height: 1.75; }
  /* Footer */
  footer { padding: 48px 0 64px; border-top: 1px solid var(--line); margin-top: 48px; color: var(--text-soft); font-size: 13.5px; background: var(--bg-soft); }
  .footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; margin-bottom: 32px; }
  @media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
  .footer-col h4 { color: var(--text); font-size: 14px; margin-bottom: 14px; font-weight: 700; font-family: "Noto Serif TC", serif; }
  .footer-col a { display: block; padding: 4px 0; color: var(--text-soft); transition: 0.18s; }
  .footer-col a:hover { color: var(--green-deep); }
  .footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-faint); }

  /* ============ Article page (multi-page version) ============ */
  .article-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 24px 100px;
    position: relative;
  }
  .article-page__back {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--text-soft); font-size: 14px;
    margin-bottom: 24px;
    text-decoration: none;
    transition: 0.18s;
  }
  .article-page__back:hover { color: var(--green-deep); }
  .article-page__tag { margin-bottom: 16px; }
  .article-page__title {
    font-family: "Noto Serif TC", serif;
    font-size: clamp(28px, 4.5vw, 42px);
    font-weight: 700; line-height: 1.3;
    margin-bottom: 16px; letter-spacing: -0.012em;
    color: var(--text);
  }
  .article-page__meta { color: var(--text-soft); font-size: 13.5px; margin-bottom: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
  .article-page__cover { height: 280px; border-radius: 12px; margin-bottom: 36px; position: relative; overflow: hidden; }
  .article-page__cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .article-page__body { font-size: 17px; line-height: 1.95; color: var(--text); }
  .article-page__body h3 { font-family: "Noto Serif TC", serif; font-size: 24px; font-weight: 700; margin: 40px 0 16px; color: var(--text); letter-spacing: -0.005em; }
  .article-page__body p { margin-bottom: 20px; }
  .article-page__body strong { color: var(--green-deep); font-weight: 700; }
  .article-page__body ul, .article-page__body ol { margin: 0 0 22px 24px; }
  .article-page__body li { margin-bottom: 10px; }
  .article-page__body table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14.5px; }
  .article-page__body th, .article-page__body td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
  .article-page__body th { background: var(--bg-soft); color: var(--green-deep); font-weight: 700; font-family: "Noto Serif TC", serif; }
  .article-page__body tr:last-child td { border-bottom: none; }
  .article-page__body blockquote {
    border-left: 3px solid var(--green); padding: 14px 22px; margin: 24px 0;
    background: var(--green-soft); border-radius: 0 8px 8px 0;
    color: var(--text); font-family: "Noto Serif TC", serif;
    font-size: 16.5px; font-weight: 600; line-height: 1.7;
  }
  .article-page__body code { background: var(--bg-soft); padding: 2px 7px; border-radius: 4px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.88em; color: var(--green-deep); }

  /* ============ Inline chart figures ============ */
  .chart-figure {
    margin: 32px 0;
    padding: 18px 18px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .chart-figure svg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
  }
  .chart-figure figcaption {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-soft);
    font-family: "Noto Sans TC", sans-serif;
  }
  .chart-figure figcaption strong { color: var(--green-deep); }


  /* ============ Share bar (article footer) ============ */
  .share-bar {
    display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
    padding: 18px 0; margin: 36px 0 12px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .share-bar__label {
    font-family: "Noto Serif TC", serif;
    font-size: 14px; font-weight: 700;
    color: var(--text); margin-right: 6px;
  }
  .share-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    font-size: 13px; font-weight: 500;
    color: var(--text); cursor: pointer;
    transition: 0.15s;
    text-decoration: none;
    font-family: inherit;
  }
  .share-btn:hover {
    border-color: var(--green);
    color: var(--green-deep);
    background: var(--green-soft);
    transform: translateY(-1px);
  }
  .share-btn.is-copied {
    border-color: var(--green);
    background: var(--green);
    color: white;
  }
  .share-btn__icon {
    font-size: 14px; line-height: 1; font-weight: 700;
  }
  @media (max-width: 600px) {
    .share-bar { gap: 6px; padding: 14px 0; }
    .share-bar__label { width: 100%; margin-bottom: 4px; }
    .share-btn { padding: 7px 11px; font-size: 12px; }
  }


  /* Article H2 (top-level section) — matches what h3 was, slight visual hierarchy */
  .article-page__body h2 {
    font-family: "Noto Serif TC", serif;
    font-size: 26px; font-weight: 700;
    margin: 44px 0 18px; color: var(--text);
    letter-spacing: -0.008em;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
  }
  .article-page__body h3 {
    font-size: 20px; margin: 32px 0 12px;
  }


  /* ============ Share variants: top bar + floating sidebar ============ */
  .share-bar--top {
    margin: 16px 0 28px;
    padding: 12px 0;
  }
  .share-bar--top .share-bar__label {
    font-size: 13px;
    margin-right: 4px;
  }
  .share-bar--top .share-btn {
    padding: 6px 12px;
    font-size: 12.5px;
  }

  /* Floating sticky share sidebar (desktop only, > 1340px) */
  .share-floating {
    position: fixed;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 50;
    padding: 14px 10px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
  }
  .share-floating__label {
    font-family: "Noto Serif TC", serif;
    font-size: 11px;
    color: var(--text-faint);
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--line);
    padding-bottom: 6px;
  }
  .share-floating .share-btn {
    width: 40px; height: 40px;
    padding: 0;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid var(--line-soft);
  }
  .share-floating .share-btn:hover {
    transform: scale(1.05);
  }
  .share-floating .share-btn .share-btn__icon { font-size: 16px; }

  @media (min-width: 1340px) {
    .share-floating { display: flex; }
  }


  /* ============ Google AdSense placeholder styling ============ */
  .ad-placeholder {
    background: repeating-linear-gradient(135deg,
      rgba(74,125,95,0.04) 0 12px,
      rgba(255,255,255,0) 12px 24px),
      var(--bg-soft);
    border: 1px dashed var(--green);
    color: var(--text-soft);
    text-align: center;
  }
  .ad-placeholder__inner {
    padding: 28px 24px;
  }
  .ad-placeholder__inner--card {
    padding: 60px 18px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .ad-placeholder__title {
    font-family: "Noto Serif TC", serif;
    font-size: 18px; font-weight: 700;
    color: var(--green-deep);
    margin-bottom: 6px;
  }
  .ad-placeholder__sub {
    color: var(--text-faint);
    font-size: 13px;
    line-height: 1.6;
  }
  .ad__hint {
    font-size: 11px;
    color: var(--text-faint);
    font-style: italic;
  }


  /* Bottom article ad slot */
  .ad-bottom {
    margin: 32px 0 24px;
    border-radius: 12px;
  }
