:root {
  --green: #176c2b;
  --signal: #39ff68;
  --ink: #101310;
  --paper: #f7f7f2;
  --white: #ffffff;
  --line: #cfd3cd;
  --muted: #626862;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 17px; line-height: 1.8; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.reading-header {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 78px;
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 0 32px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.reading-brand { width: 108px; height: 58px; overflow: hidden; }
.reading-brand img { width: 76px; height: 76px; object-fit: cover; transform: translateY(-8px); }
.reading-header nav { display: flex; justify-content: center; gap: clamp(24px, 4vw, 58px); font-size: 14px; font-weight: 800; }
.reading-header a { padding: 8px 0; border-bottom: 2px solid transparent; }
.reading-header a:hover, .reading-header a:focus-visible { color: var(--green); border-color: var(--green); }
.reading-home { font-weight: 900; }

.articles-intro {
  min-height: 64svh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .58fr);
  gap: clamp(44px, 8vw, 130px);
  align-items: end;
  padding: clamp(90px, 11vw, 170px) clamp(24px, 7vw, 110px) clamp(72px, 9vw, 130px);
  color: var(--white);
  background: var(--green);
}
.articles-intro h1 { max-width: 7em; margin: 0; font-family: var(--serif); font-size: clamp(68px, 8vw, 112px); line-height: .98; letter-spacing: -.035em; }
.articles-intro h1 span { display: block; white-space: nowrap; }
.articles-intro p { max-width: 28em; margin: 0 0 12px; font-size: clamp(19px, 1.55vw, 24px); }

.articles-list { padding: clamp(74px, 9vw, 130px) clamp(24px, 7vw, 110px); background: var(--paper); }
.articles-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.articles-list-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(42px, 5vw, 76px); line-height: 1; letter-spacing: -.03em; }
.articles-list-heading p { margin: 0; color: var(--muted); font-size: 15px; }
.article-row { display: grid; grid-template-columns: 132px minmax(250px, .72fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid var(--line); }
.article-row:first-of-type { border-top: 2px solid var(--ink); }
.article-date { margin: 8px 0 0; color: var(--green); font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.article-date span, .article-date time { display: block; }
.article-topic { margin-bottom: 7px; color: var(--ink); letter-spacing: 0; }
.article-topic a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.article-topic a:hover, .article-topic a:focus-visible { color: var(--green); }
.article-thumb { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--ink); }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 320ms ease, opacity 220ms ease; }
.article-row--featured .article-thumb { aspect-ratio: 4 / 3; }
.article-thumb--geo { display: block; padding: 0; background: var(--ink); }
.article-thumb--geo img { object-position: center; }
.article-thumb-fallback { height: 100%; display: grid; place-items: end start; padding: 22px; color: var(--white); background: var(--green); font-family: var(--serif); font-size: 24px; font-weight: 900; }
.article-row:hover .article-thumb img, .article-thumb:focus-visible img { transform: scale(1.035); }
.article-copy { min-width: 0; padding-top: 1px; }
.article-row h3 { margin: 0; font-family: var(--serif); font-size: clamp(29px, 3vw, 48px); line-height: 1.16; letter-spacing: -.025em; }
.article-row h3 a { background-image: linear-gradient(var(--green), var(--green)); background-position: 0 100%; background-repeat: no-repeat; background-size: 0 2px; transition: color 160ms ease, background-size 220ms ease; }
.article-row h3 .title-line { display: block; white-space: nowrap; }
.article-row h3 a:hover, .article-row h3 a:focus-visible { color: var(--green); background-size: 100% 2px; }
.article-summary { margin: 6px 0 22px; color: var(--muted); }
.continue-link { display: inline-block; padding-bottom: 5px; border-bottom: 2px solid var(--ink); font-size: 15px; font-weight: 900; }
.continue-link:hover, .continue-link:focus-visible { color: var(--green); border-color: var(--green); }
.articles-empty { margin: 0; padding: 48px 0; border-top: 2px solid var(--ink); color: var(--muted); }

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .62fr);
  gap: clamp(44px, 8vw, 130px);
  align-items: end;
  min-height: 68svh;
  padding: clamp(90px, 11vw, 170px) clamp(24px, 7vw, 110px) clamp(72px, 9vw, 130px);
  background: var(--white);
}
.article-heading { max-width: 920px; }
.article-context-link { display: inline-block; margin-bottom: 24px; padding-bottom: 5px; border-bottom: 2px solid var(--ink); font: 900 14px/1.4 var(--sans); }
.article-context-link:hover, .article-context-link:focus-visible { color: var(--green); border-color: var(--green); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 28px; color: #000; font-size: 16px; font-weight: 800; letter-spacing: .04em; }
.article-heading h1 { margin: 0; color: #000; font-family: var(--sans); font-size: clamp(44px, 5vw, 68px); font-weight: 800; line-height: 1.22; letter-spacing: -.025em; text-wrap: balance; }
.article-heading h1 span { display: block; white-space: nowrap; }
.article-deck { max-width: 34em; margin: 0 0 8px; color: #000; font-size: clamp(21px, 1.55vw, 24px); font-weight: 500; line-height: 1.8; }
.article-body { padding: clamp(72px, 9vw, 130px) 24px; color: #000; background: var(--paper); font-family: var(--sans); font-size: 21px; font-weight: 500; line-height: 1.9; }
.article-body > * { width: min(100%, 760px); margin-right: auto; margin-left: auto; }
.article-body > .alignwide { width: min(100%, 1080px); }
.article-body > .alignfull { width: calc(100% + 48px); max-width: none; margin-left: -24px; }
.article-body h2 { margin-top: 2.3em; margin-bottom: .7em; color: #000; font-family: var(--sans); font-size: clamp(32px, 3.4vw, 44px); font-weight: 800; line-height: 1.35; letter-spacing: -.015em; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin-top: 2em; margin-bottom: .6em; color: #000; font-family: var(--sans); font-size: clamp(26px, 2.3vw, 32px); font-weight: 800; line-height: 1.45; }
.article-body p, .article-body li { overflow-wrap: anywhere; }
.article-body p { margin-top: 0; margin-bottom: 1.35em; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: .55em; }
.article-body a { color: #000; font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.article-body blockquote { margin-top: 2.2em; margin-bottom: 2.2em; padding: 28px 0; color: #000; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: clamp(24px, 2.3vw, 30px); font-weight: 700; line-height: 1.7; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body figure { margin-top: 2.8em; margin-bottom: 2.8em; }
.article-body figcaption { margin-top: 10px; color: #000; font-size: 16px; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 19px; }
.article-body th, .article-body td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th { border-top: 2px solid var(--ink); }

/* 舊文章保留 Elementor 內容結構；閱讀版型統一接管文字可讀性。 */
.seed-office-single-article .article-body .elementor,
.seed-office-single-article .article-body .elementor p,
.seed-office-single-article .article-body .elementor li,
.seed-office-single-article .article-body .elementor span,
.seed-office-single-article .article-body .elementor strong,
.seed-office-single-article .article-body .elementor em,
.seed-office-single-article .article-body .elementor small,
.seed-office-single-article .article-body .elementor a,
.seed-office-single-article .article-body .elementor-heading-title {
  color: #000 !important;
  font-family: var(--sans) !important;
}
.seed-office-single-article .article-body .elementor-widget-text-editor,
.seed-office-single-article .article-body .elementor-widget-text-editor p {
  font-size: 21px !important;
  font-weight: 500 !important;
  line-height: 1.9 !important;
}
.seed-office-single-article .article-body .elementor-heading-title {
  font-size: clamp(28px, 3vw, 38px) !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
}

.article-navigation { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; padding: 0 clamp(24px, 7vw, 110px) clamp(74px, 9vw, 130px); background: var(--paper); }
.article-navigation a, .article-navigation span { min-height: 78px; display: flex; flex-direction: column; justify-content: center; padding: 14px 18px; border-top: 2px solid var(--ink); }
.article-navigation a:hover, .article-navigation a:focus-visible { color: var(--white); background: var(--green); border-color: var(--green); }
.article-navigation small { color: #000; font-size: 14px; font-weight: 800; letter-spacing: .06em; }
.article-navigation a:hover small, .article-navigation a:focus-visible small { color: var(--white); }
.article-navigation strong { font-size: 17px; }
.article-navigation .next-link { text-align: right; }
.article-navigation .articles-back { min-width: 150px; align-items: center; color: var(--white); background: var(--ink); }
.article-navigation .is-empty { color: var(--muted); border-color: var(--line); }

.reading-footer { min-height: 210px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 30px; padding: 42px clamp(24px, 7vw, 110px); background: var(--white); border-top: 1px solid var(--line); }
.reading-footer img { width: 110px; }
.reading-footer p { margin: 0; }
.reading-footer p:last-child { color: var(--muted); text-align: right; }
.seed-office-single-article .reading-footer p { color: #000; font-size: 17px; }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

@media (max-width: 980px) {
  .reading-header { grid-template-columns: 1fr auto; }
  .reading-header nav { display: none; }
  .articles-intro, .article-hero { grid-template-columns: 1fr; }
  .articles-intro p, .article-deck { max-width: 650px; }
  .article-row { grid-template-columns: 110px minmax(220px, .72fr) minmax(0, 1fr); gap: 26px; }
  .article-row h3 { font-size: clamp(28px, 3.6vw, 40px); }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .reading-header { height: 68px; padding: 0 16px; }
  .reading-brand { height: 54px; }
  .reading-brand img { width: 70px; height: 70px; }
  .reading-home { font-size: 15px; }
  .articles-intro, .article-hero { min-height: auto; gap: 38px; padding: 82px 24px 64px; }
  .articles-intro h1 { max-width: none; font-size: 48px; }
  .articles-list { padding: 72px 24px; }
  .articles-list-heading { display: block; margin-bottom: 28px; }
  .articles-list-heading p { margin-top: 12px; }
  .article-row { grid-template-columns: 1fr; gap: 16px; padding: 32px 0 42px; }
  .article-date { margin: 0; }
  .article-thumb, .article-row--featured .article-thumb { aspect-ratio: 4 / 3; }
  .article-copy { padding-top: 3px; }
  .article-row h3 { font-size: 34px; }
  .article-row h3 .title-line { white-space: normal; text-wrap: balance; }
  .article-heading h1 { font-size: 34px; line-height: 1.3; }
  .article-meta { margin-bottom: 22px; }
  .article-deck { font-size: 20px; }
  .article-body { padding: 72px 24px; font-size: 20px; line-height: 1.9; }
  .article-body h2 { font-size: 30px; line-height: 1.4; }
  .article-body h3 { font-size: 25px; }
  .seed-office-single-article .article-body .elementor-widget-text-editor,
  .seed-office-single-article .article-body .elementor-widget-text-editor p { font-size: 20px !important; }
  .seed-office-single-article .article-body .elementor-heading-title { font-size: 28px !important; }
  .article-body table { display: block; overflow-x: auto; }
  .article-navigation { grid-template-columns: 1fr 1fr; padding: 0 24px 72px; }
  .article-navigation .articles-back { grid-column: 1 / -1; grid-row: 1; }
  .article-navigation .previous-link { grid-column: 1; }
  .article-navigation .next-link { grid-column: 2; }
  .reading-footer { grid-template-columns: 1fr; align-items: start; }
  .reading-footer p:last-child { text-align: left; }
}

@media (max-width: 390px) {
  .articles-intro h1 { font-size: 42px; }
  .article-heading h1 { font-size: 32px; }
  .article-navigation { gap: 12px; }
  .article-navigation a, .article-navigation span { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
