/**
 * hk_gafei — Forest Green + Amber, magazine-style theme (Traditional Chinese)
 * Base reset, tokens, typography, layout primitives
 */
@charset "UTF-8";
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font: 16px/1.6 'Inter', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  color: var(--c-ink);
  background: var(--c-bg);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { border: 0; display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; transition: color .2s ease; }
a:hover { color: var(--c-accent); }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Noto Serif TC', 'Songti TC', 'Microsoft JhengHei', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
}
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

:root {
  /* brand */
  --c-brand:       #1f4d3a;   /* deep forest green - primary */
  --c-brand-deep:  #143128;   /* deeper green for hover */
  --c-brand-soft:  #2d6a52;   /* lighter green */

  /* accent */
  --c-accent:      #c98a3b;   /* warm amber */
  --c-accent-deep: #a26f2a;   /* deeper amber for hover */
  --c-accent-soft: #e5b87a;   /* lighter amber */

  /* secondary / sage */
  --c-sage:        #7d9c7c;
  --c-moss:        #4a6e57;

  /* surfaces */
  --c-bg:          #f5f2ea;   /* warm cream background */
  --c-bg-alt:      #efe9d8;   /* darker cream for stripe */
  --c-surface:     #ffffff;
  --c-surface-2:   #faf7ef;
  --c-border:      #e0dccb;
  --c-border-soft: #ece8d8;

  /* text */
  --c-ink:         #1a2a22;   /* dark moss-green */
  --c-text:        #3a4843;
  --c-mute:        #7c847f;
  --c-light:       #a9ada6;

  /* category tag colors (5 stripe tones) */
  --c-tag-1:       #1f4d3a;
  --c-tag-2:       #c98a3b;
  --c-tag-3:       #7d9c7c;
  --c-tag-4:       #a26f2a;
  --c-tag-5:       #4a6e57;

  /* layout */
  --w-page:        1280px;
  --w-narrow:      1100px;
  --w-content:     920px;
  --gap-md:        16px;
  --gap-lg:        24px;
  --gap-xl:        40px;
  --r-sm:          4px;
  --r-md:          8px;
  --r-lg:          16px;

  /* type scale */
  --fs-h1: 40px;
  --fs-h2: 28px;
  --fs-h3: 22px;
  --fs-h4: 18px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-xs: 12px;
}

.clear, .blank { clear: both; width: 100%; overflow: hidden; }
.blank { height: 20px; }
.fl { float: left; }
.fr { float: right; }

.page {
  width: var(--w-page);
  max-width: calc(100% - 32px);
  margin: 0 auto;
}
.narrow { width: var(--w-narrow); max-width: calc(100% - 32px); margin: 0 auto; }
.content-width { width: var(--w-content); max-width: calc(100% - 32px); margin: 0 auto; }

/* ============================================================
 * 1. Top utility bar
 * ============================================================ */
.topbar {
  background: var(--c-brand);
  color: #d8e4dc;
  font-size: var(--fs-xs);
  letter-spacing: .03em;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar .page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}
.topbar-left { display: flex; align-items: center; gap: 18px; }
.topbar-left .tb-date { font-variant-numeric: tabular-nums; opacity: .85; }
.topbar-left .tb-tag { color: var(--c-accent-soft); }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-right a { color: #d8e4dc; opacity: .9; }
.topbar-right a:hover { color: var(--c-accent); opacity: 1; }
.topbar-right .subscribe {
  background: var(--c-accent);
  color: var(--c-brand-deep);
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 14px;
  letter-spacing: .04em;
}
.topbar-right .subscribe:hover { background: var(--c-accent-soft); color: var(--c-brand-deep); }
.topbar-social { display: inline-flex; gap: 10px; }
.topbar-social a {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  transition: background .2s;
}
.topbar-social a:hover { background: var(--c-accent); }
.topbar-social svg { width: 12px; height: 12px; fill: #d8e4dc; }
.topbar-social a:hover svg { fill: var(--c-brand-deep); }

/* ============================================================
 * 2. Masthead (logo + tagline + search)
 * ============================================================ */
.masthead {
  background: var(--c-bg);
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--c-border);
}
.masthead .page {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.mh-left { justify-self: start; }
.mh-right { justify-self: end; }
.mh-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.mh-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--c-brand);
}
.mh-logo img { height: 64px; width: auto; }
.mh-logo .mh-word {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.mh-logo .mh-word b {
  font-family: 'Playfair Display', 'Noto Serif TC', 'Songti TC', 'Microsoft JhengHei', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--c-brand);
  line-height: 1.1;
}
.mh-logo .mh-word span {
  display: block;
  font-size: 11px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--c-mute);
  margin-top: 4px;
}
.mh-tagline {
  font-family: 'Playfair Display', 'Noto Serif TC', 'Songti TC', 'Microsoft JhengHei', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: var(--c-mute);
  letter-spacing: .04em;
}
.mh-tagline em {
  color: var(--c-accent-deep);
  font-style: italic;
  font-weight: 600;
}

.mh-search {
  display: flex;
  align-items: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 24px;
  padding: 4px 4px 4px 18px;
  width: 280px;
  transition: border-color .2s;
}
.mh-search:focus-within { border-color: var(--c-accent); }
.mh-search input {
  border: 0;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 14px;
  color: var(--c-ink);
}
.mh-search input::placeholder { color: var(--c-light); }
.mh-search button {
  border: 0;
  background: var(--c-brand);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mh-search button:hover { background: var(--c-brand-deep); }
.mh-search button svg { width: 14px; height: 14px; fill: #fff; }

.mh-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.mh-meta .mh-issue {
  font-family: 'Playfair Display', 'Noto Serif TC', 'Songti TC', 'Microsoft JhengHei', Georgia, serif;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-brand);
}
.mh-meta .mh-issue b { color: var(--c-accent); }
.mh-meta .mh-meta-sub {
  font-size: 12px;
  color: var(--c-mute);
}

/* ============================================================
 * 3. Navigation
 * ============================================================ */
.navbar {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(31,77,58,.04);
}
.navbar .page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-main { display: flex; align-items: center; gap: 6px; flex: 1; }
.nav-main > li { position: relative; }
.nav-main > li > a {
  display: block;
  padding: 0 18px;
  line-height: 56px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--c-ink);
  position: relative;
  text-transform: uppercase;
}
.nav-main > li > a::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px; bottom: 14px;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
.nav-main > li > a:hover,
.nav-main > li.current > a { color: var(--c-brand); }
.nav-main > li > a:hover::after,
.nav-main > li.current > a::after { transform: scaleX(1); }
.nav-main li.has-sub > a::before {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border: 4px solid transparent;
  border-top-color: var(--c-mute);
  vertical-align: middle;
  transform: translateY(-2px);
}
.nav-main .sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-top: 2px solid var(--c-accent);
  padding: 8px 0;
  box-shadow: 0 8px 24px rgba(31,77,58,.08);
  display: none;
}
.nav-main li.has-sub:hover .sub { display: block; }
.nav-main .sub li a {
  display: block;
  padding: 8px 18px;
  font-size: 13px;
  color: var(--c-text);
}
.nav-main .sub li a:hover { background: var(--c-bg); color: var(--c-brand); }

.nav-side {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--c-mute);
}
.nav-side a { color: var(--c-text); }
.nav-side a:hover { color: var(--c-accent); }
.nav-side .nav-search-trigger {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-bg);
  color: var(--c-brand);
}
.nav-side .nav-search-trigger:hover { background: var(--c-brand); color: #fff; }
.nav-side .nav-search-trigger svg { width: 14px; height: 14px; fill: currentColor; }

/* ============================================================
 * 4. Hero swiper (full-width magazine-style)
 * ============================================================ */
.hero {
  margin: 0 0 var(--gap-xl);
  position: relative;
}
.hero-swiper {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  background: var(--c-brand-deep);
}
.hero-swiper .swiper-slide {
  position: relative;
  overflow: hidden;
}
.hero-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-swiper .swiper-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,.7) 100%),
    linear-gradient(to right, rgba(20,49,40,.55) 0%, rgba(20,49,40,0) 60%);
}
.hero-swiper .hero-caption {
  position: absolute;
  left: 7%;
  bottom: 12%;
  max-width: 620px;
  color: #fff;
  z-index: 2;
}
.hero-caption .hero-cat {
  display: inline-block;
  background: var(--c-accent);
  color: var(--c-brand-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 18px;
}
.hero-caption h2 {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hero-caption h2 a { color: #fff; }
.hero-caption h2 a:hover { color: var(--c-accent-soft); }
.hero-caption p {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,.85);
  max-width: 520px;
  margin-bottom: 18px;
}
.hero-caption .hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.hero-caption .hero-meta b { color: var(--c-accent); }

.swiper-pagination-bullet {
  background: rgba(255,255,255,.5);
  opacity: 1;
  width: 24px; height: 3px;
  border-radius: 2px;
}
.swiper-pagination-bullet-active {
  background: var(--c-accent);
  width: 36px;
}

.hero-nav {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 3;
  transform: translateY(-50%);
}
.hero-nav .swiper-button-prev,
.hero-nav .swiper-button-next {
  position: static;
  width: 48px; height: 48px;
  background: rgba(20,49,40,.55);
  border-radius: 50%;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.hero-nav .swiper-button-prev::after,
.hero-nav .swiper-button-next::after { font-size: 18px; font-weight: 700; }
.hero-nav .swiper-button-prev:hover,
.hero-nav .swiper-button-next:hover { background: var(--c-accent); color: var(--c-brand-deep); }

/* hero side rail (small 3 thumbnails on the right) */
.hero-rail {
  position: absolute;
  right: 7%;
  top: 12%;
  bottom: 12%;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}
.hero-rail .rail-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  background: rgba(20,49,40,.65);
  border-left: 3px solid var(--c-accent);
  padding: 10px 12px;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  backdrop-filter: blur(4px);
}
.hero-rail .rail-item:hover { background: rgba(20,49,40,.85); color: var(--c-accent-soft); }
.hero-rail .rail-item b {
  font-family: 'Playfair Display', 'Noto Serif TC', 'Songti TC', 'Microsoft JhengHei', Georgia, serif;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

/* ============================================================
 * 5. Section common (titles, eyebrows)
 * ============================================================ */
section.section { padding: var(--gap-xl) 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--c-brand);
  position: relative;
}
.section-head::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 60px; height: 2px;
  background: var(--c-accent);
}
.section-title {
  font-family: 'Playfair Display', 'Noto Serif TC', 'Songti TC', 'Microsoft JhengHei', Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--c-brand);
  line-height: 1.1;
}
.section-title small {
  display: block;
  font-family: 'Inter', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  font-style: normal;
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--c-mute);
  font-weight: 500;
  margin-bottom: 4px;
}
.section-title em {
  font-style: italic;
  color: var(--c-accent);
}
.section-more {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-mute);
  font-weight: 600;
}
.section-more:hover { color: var(--c-accent); }
.section-more::after { content: " →"; }

/* ============================================================
 * 6. Editor's Picks — 3 columns (1 large + 2 small)
 * ============================================================ */
.picks {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 28px;
  border-radius: var(--r-md);
}
.picks-feature {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
}
.picks-feature img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .6s ease;
}
.picks-feature:hover img { transform: scale(1.04); }
.picks-feature .picks-cat {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--c-brand);
  color: #fff;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 2px;
}
.picks-feature h3 {
  font-size: 28px;
  margin: 20px 0 10px;
  line-height: 1.2;
}
.picks-feature h3 a { color: var(--c-brand); }
.picks-feature h3 a:hover { color: var(--c-accent-deep); }
.picks-feature p {
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.65;
  margin-bottom: 14px;
}
.picks-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--c-mute);
  letter-spacing: .04em;
}
.picks-meta .picks-author {
  color: var(--c-accent-deep);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.picks-meta .dot { width: 3px; height: 3px; background: var(--c-mute); border-radius: 50%; }

.picks-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.picks-side .pick-mini {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: flex-start;
}
.picks-side .pick-mini img {
  width: 110px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--r-sm);
}
.picks-side .pick-mini .pm-body { min-width: 0; }
.picks-side .pick-mini h4 {
  font-size: 15px;
  font-family: 'Playfair Display', 'Noto Serif TC', 'Songti TC', 'Microsoft JhengHei', Georgia, serif;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}
.picks-side .pick-mini h4 a { color: var(--c-ink); }
.picks-side .pick-mini h4 a:hover { color: var(--c-brand); }
.picks-side .pick-mini .pm-meta {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-mute);
}
.picks-side .pick-mini .pm-meta .cat-tag {
  color: var(--c-accent-deep);
  font-weight: 700;
  margin-right: 6px;
}

/* ============================================================
 * 7. Trending — left feature + right list (magazine layout)
 * ============================================================ */
.trending {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: flex-start;
}
.trending-feature {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 0;
  border-radius: var(--r-md);
  overflow: hidden;
}
.trending-feature .tf-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.trending-feature .tf-body { padding: 22px 26px 26px; }
.trending-feature .tf-cat {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--c-accent-deep);
  margin-bottom: 10px;
}
.trending-feature h2 {
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.trending-feature h2 a { color: var(--c-brand); }
.trending-feature h2 a:hover { color: var(--c-accent-deep); }
.trending-feature p {
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.7;
  margin-bottom: 14px;
}
.trending-feature .tf-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--c-mute);
  letter-spacing: .04em;
}
.trending-feature .tf-meta b { color: var(--c-accent-deep); font-weight: 600; }

.trending-list {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 22px 26px;
  border-radius: var(--r-md);
}
.trending-list h3 {
  font-size: 18px;
  font-family: 'Playfair Display', 'Noto Serif TC', 'Songti TC', 'Microsoft JhengHei', Georgia, serif;
  color: var(--c-brand);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--c-border);
}
.trending-list ol { counter-reset: trend; list-style: none; }
.trending-list ol li {
  counter-increment: trend;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px dashed var(--c-border);
}
.trending-list ol li:last-child { border-bottom: 0; }
.trending-list ol li::before {
  content: counter(trend, decimal-leading-zero);
  font-family: 'Playfair Display', 'Noto Serif TC', 'Songti TC', 'Microsoft JhengHei', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  font-style: italic;
  color: var(--c-accent);
  line-height: 1;
}
.trending-list ol li h4 {
  font-size: 14px;
  font-family: 'Inter', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}
.trending-list ol li h4 a { color: var(--c-ink); }
.trending-list ol li h4 a:hover { color: var(--c-accent-deep); }
.trending-list ol li .tl-meta {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-mute);
}

/* ============================================================
 * 8. Featured grid — 1 hero + 2 medium + 4 mini
 * ============================================================ */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.fg-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.fg-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(31,77,58,.1); }
.fg-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.fg-card .fg-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.fg-card .fg-cat {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 700;
}
.fg-card h3 {
  font-size: 18px;
  font-family: 'Playfair Display', 'Noto Serif TC', 'Songti TC', 'Microsoft JhengHei', Georgia, serif;
  line-height: 1.3;
  font-weight: 700;
}
.fg-card h3 a { color: var(--c-ink); }
.fg-card h3 a:hover { color: var(--c-brand); }
.fg-card .fg-meta {
  margin-top: auto;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-mute);
}
.fg-card.large { grid-column: span 2; grid-row: span 2; }
.fg-card.large img { aspect-ratio: 16 / 10; }
.fg-card.large h3 { font-size: 24px; }
.fg-card.large .fg-body { padding: 22px 26px 26px; gap: 10px; }
.fg-card.large p { font-size: 14px; color: var(--c-text); line-height: 1.6; }

.fg-card.t-1 .fg-cat { color: var(--c-tag-1); }
.fg-card.t-2 .fg-cat { color: var(--c-tag-2); }
.fg-card.t-3 .fg-cat { color: var(--c-tag-3); }
.fg-card.t-4 .fg-cat { color: var(--c-tag-4); }
.fg-card.t-5 .fg-cat { color: var(--c-tag-5); }
.fg-card.t-1 { border-top: 3px solid var(--c-tag-1); }
.fg-card.t-2 { border-top: 3px solid var(--c-tag-2); }
.fg-card.t-3 { border-top: 3px solid var(--c-tag-3); }
.fg-card.t-4 { border-top: 3px solid var(--c-tag-4); }
.fg-card.t-5 { border-top: 3px solid var(--c-tag-5); }

/* ============================================================
 * 9. Latest Newsroom — long horizontal cards
 * ============================================================ */
.newsroom {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.newsroom-item {
  display: grid;
  grid-template-columns: 240px 1fr 120px;
  gap: 24px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--c-border-soft);
  align-items: center;
  transition: background .2s;
}
.newsroom-item:last-child { border-bottom: 0; }
.newsroom-item:hover { background: var(--c-surface-2); }
.newsroom-item img {
  width: 240px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--r-sm);
}
.newsroom-item .nr-body { min-width: 0; }
.newsroom-item .nr-cat {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--c-accent-deep);
  margin-bottom: 8px;
}
.newsroom-item h3 {
  font-size: 22px;
  font-family: 'Playfair Display', 'Noto Serif TC', 'Songti TC', 'Microsoft JhengHei', Georgia, serif;
  line-height: 1.25;
  margin-bottom: 8px;
}
.newsroom-item h3 a { color: var(--c-ink); }
.newsroom-item h3 a:hover { color: var(--c-brand); }
.newsroom-item p {
  font-size: 14px;
  color: var(--c-text);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.newsroom-item .nr-meta {
  font-size: 12px;
  color: var(--c-mute);
  display: flex;
  flex-direction: column;
  gap: 6px;
  letter-spacing: .04em;
  text-align: right;
}
.newsroom-item .nr-meta b {
  color: var(--c-brand);
  font-family: 'Playfair Display', 'Noto Serif TC', 'Songti TC', 'Microsoft JhengHei', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.newsroom-item .nr-meta small { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }

/* ============================================================
 * 10. Topic cloud
 * ============================================================ */
.topics {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 28px 32px;
}
.topics-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.topics-cloud a {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  border-radius: 24px;
  font-size: 13px;
  color: var(--c-text);
  letter-spacing: .02em;
  transition: all .2s ease;
}
.topics-cloud a:hover {
  background: var(--c-brand);
  color: #fff;
  border-color: var(--c-brand);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(31,77,58,.15);
}

/* ============================================================
 * 11. Article (show) page
 * ============================================================ */
.article-page {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 32px 0 60px;
  align-items: flex-start;
}
.article-main {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 40px 48px;
}
.ap-crumbs {
  font-size: 13px;
  color: var(--c-mute);
  letter-spacing: .04em;
  margin-bottom: 18px;
}
.ap-crumbs a { color: var(--c-text); }
.ap-crumbs a:hover { color: var(--c-accent); }
.ap-crumbs .sep { margin: 0 8px; color: var(--c-light); }

.ap-cat {
  display: inline-block;
  background: var(--c-brand);
  color: #fff;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 18px;
}
.ap-title {
  font-size: 38px;
  line-height: 1.2;
  color: var(--c-brand);
  margin-bottom: 18px;
  font-weight: 700;
}
.ap-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--c-mute);
  letter-spacing: .04em;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.ap-meta b { color: var(--c-accent-deep); font-weight: 700; }
.ap-meta .sep { width: 1px; height: 14px; background: var(--c-border); }

.ap-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-text);
}
.ap-body p { margin-bottom: 18px; }
.ap-body h2, .ap-body h3, .ap-body h4 {
  color: var(--c-brand);
  margin: 32px 0 14px;
  position: relative;
  padding-left: 14px;
}
.ap-body h2 { font-size: 24px; }
.ap-body h3 { font-size: 20px; }
.ap-body h2::before, .ap-body h3::before, .ap-body h4::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  background: var(--c-accent);
  border-radius: 2px;
}
.ap-body blockquote {
  border-left: 3px solid var(--c-accent);
  background: var(--c-surface-2);
  padding: 14px 20px;
  margin: 20px 0;
  color: var(--c-ink);
  font-style: italic;
  font-family: 'Playfair Display', 'Noto Serif TC', 'Songti TC', 'Microsoft JhengHei', Georgia, serif;
  font-size: 17px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.ap-body img { max-width: 100%; height: auto; border-radius: var(--r-sm); margin: 18px auto; }
.ap-body a { color: var(--c-accent-deep); border-bottom: 1px solid var(--c-accent-soft); }
.ap-body a:hover { color: var(--c-brand); border-color: var(--c-brand); }

.ap-note {
  margin-top: 30px;
  padding: 22px 26px;
  background: var(--c-surface-2);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-text);
}
.ap-note h2 {
  font-size: 18px;
  font-family: 'Playfair Display', 'Noto Serif TC', 'Songti TC', 'Microsoft JhengHei', Georgia, serif;
  color: var(--c-accent-deep);
  margin: 0 0 12px;
  padding: 0;
}
.ap-note h2::before { display: none; }
.ap-note p { margin-bottom: 8px; }
.ap-note p:last-child { margin-bottom: 0; }

.ap-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px dashed var(--c-border);
  font-size: 13px;
  color: var(--c-mute);
}
.ap-share b { color: var(--c-ink); letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }

.ap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.ap-tags a {
  display: inline-block;
  padding: 5px 12px;
  background: var(--c-bg);
  border-radius: 14px;
  font-size: 12px;
  color: var(--c-text);
  letter-spacing: .04em;
}
.ap-tags a:hover { background: var(--c-brand); color: #fff; }

.ap-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--c-border);
}
.ap-prevnext a {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 14px;
  background: var(--c-surface-2);
  border-radius: var(--r-md);
  align-items: center;
}
.ap-prevnext a:hover { background: var(--c-brand); color: #fff; }
.ap-prevnext a img { width: 100px; height: 70px; object-fit: cover; border-radius: var(--r-sm); }
.ap-prevnext a small { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; opacity: .7; }
.ap-prevnext a h4 { font-size: 14px; font-family: 'Playfair Display', 'Noto Serif TC', 'Songti TC', 'Microsoft JhengHei', Georgia, serif; font-weight: 600; line-height: 1.3; }
.ap-prevnext .next { text-align: right; }
.ap-prevnext .next img { order: 2; }
.ap-prevnext .next .pn-body { order: 1; }

.related {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.related h3 {
  font-size: 20px;
  font-family: 'Playfair Display', 'Noto Serif TC', 'Songti TC', 'Microsoft JhengHei', Georgia, serif;
  color: var(--c-brand);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-border);
}
.related ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.related ul li { padding: 6px 0; border-bottom: 1px dashed var(--c-border-soft); font-size: 14px; }
.related ul li::before { content: "›"; color: var(--c-accent); margin-right: 8px; font-weight: 700; }
.related ul li a { color: var(--c-text); }
.related ul li a:hover { color: var(--c-brand); }

/* right aside */
.right-aside { display: flex; flex-direction: column; gap: 24px; }
.ra-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 22px 24px;
}
.ra-card h3 {
  font-size: 18px;
  font-family: 'Playfair Display', 'Noto Serif TC', 'Songti TC', 'Microsoft JhengHei', Georgia, serif;
  color: var(--c-brand);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--c-border);
  display: flex; justify-content: space-between; align-items: baseline;
}
.ra-card h3 small { font-size: 11px; color: var(--c-mute); letter-spacing: .12em; text-transform: uppercase; font-family: 'Inter', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif; font-weight: 600; }
.ra-card ul li { padding: 10px 0; border-bottom: 1px dashed var(--c-border-soft); font-size: 14px; line-height: 1.45; }
.ra-card ul li:last-child { border-bottom: 0; }
.ra-card ul li a { color: var(--c-text); }
.ra-card ul li a:hover { color: var(--c-accent); }

.ra-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.ra-top-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-sm); }
.ra-top-img h4 { font-size: 16px; font-family: 'Playfair Display', 'Noto Serif TC', 'Songti TC', 'Microsoft JhengHei', Georgia, serif; margin-top: 8px; }
.ra-top-img h4 a { color: var(--c-ink); }

.ra-rank ol { counter-reset: rk; }
.ra-rank ol li {
  counter-increment: rk;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px dashed var(--c-border-soft);
}
.ra-rank ol li::before {
  content: counter(rk);
  font-family: 'Playfair Display', 'Noto Serif TC', 'Songti TC', 'Microsoft JhengHei', Georgia, serif;
  font-style: italic;
  font-size: 22px;
  color: var(--c-accent);
  font-weight: 700;
  line-height: 1;
}
.ra-rank ol li h4 { font-size: 14px; font-family: 'Inter', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif; font-weight: 500; line-height: 1.4; }
.ra-rank ol li h4 a { color: var(--c-ink); }

/* ============================================================
 * 12. List / category page
 * ============================================================ */
.list-page {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 32px 0 60px;
}
.list-main { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 28px 32px; }
.list-head {
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--c-brand);
  position: relative;
}
.list-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 60px; height: 2px; background: var(--c-accent); }
.list-head h1 { font-size: 32px; color: var(--c-brand); }
.list-head p { font-size: 14px; color: var(--c-mute); margin-top: 6px; }

.list-rows { display: flex; flex-direction: column; }
.list-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--c-border-soft);
  align-items: flex-start;
}
.list-row:last-child { border-bottom: 0; }
.list-row img { width: 220px; height: 150px; object-fit: cover; border-radius: var(--r-sm); }
.list-row .lr-cat { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; font-weight: 700; color: var(--c-accent-deep); margin-bottom: 6px; }
.list-row h2 { font-size: 22px; font-family: 'Playfair Display', 'Noto Serif TC', 'Songti TC', 'Microsoft JhengHei', Georgia, serif; line-height: 1.25; margin-bottom: 8px; }
.list-row h2 a { color: var(--c-ink); }
.list-row h2 a:hover { color: var(--c-brand); }
.list-row p { font-size: 14px; color: var(--c-text); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
.list-row .lr-meta { font-size: 12px; color: var(--c-mute); letter-spacing: .04em; }

.pagelist {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pagelist a, .pagelist span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--c-text);
}
.pagelist a:hover { background: var(--c-brand); color: #fff; border-color: var(--c-brand); }
.pagelist .active { background: var(--c-brand); color: #fff; border-color: var(--c-brand); }

/* ============================================================
 * 13. Friends link block
 * ============================================================ */
.links-block {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 24px 28px;
}
.links-block h3 {
  font-size: 18px;
  font-family: 'Playfair Display', 'Noto Serif TC', 'Songti TC', 'Microsoft JhengHei', Georgia, serif;
  color: var(--c-brand);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
}
.links-block ul { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.links-block ul li a {
  font-size: 13px;
  color: var(--c-mute);
  padding: 4px 8px;
  border-radius: var(--r-sm);
}
.links-block ul li a:hover { background: var(--c-brand); color: #fff; }

/* ============================================================
 * 14. Footer
 * ============================================================ */
footer.site-footer {
  background: var(--c-brand-deep);
  color: #c4d3c8;
  margin-top: 60px;
}
.footer-top {
  padding: 50px 0 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 40px;
}
.footer-col h4 {
  font-family: 'Playfair Display', 'Noto Serif TC', 'Songti TC', 'Microsoft JhengHei', Georgia, serif;
  font-size: 16px;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.footer-col p { font-size: 13px; line-height: 1.7; color: #a8b9b0; margin-bottom: 12px; }
.footer-col ul li { padding: 5px 0; font-size: 13px; }
.footer-col ul li a { color: #c4d3c8; }
.footer-col ul li a:hover { color: var(--c-accent-soft); }
.footer-about .footer-logo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-about .footer-logo img { height: 36px; filter: brightness(0) invert(1); }
.footer-about .footer-logo b { font-family: 'Playfair Display', 'Noto Serif TC', 'Songti TC', 'Microsoft JhengHei', Georgia, serif; font-size: 22px; color: #fff; }

.footer-newsletter input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.04);
  color: #fff;
  border-radius: var(--r-sm);
  margin-bottom: 10px;
  font-size: 13px;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,.4); }
.footer-newsletter input:focus { outline: none; border-color: var(--c-accent); }
.footer-newsletter button {
  width: 100%;
  padding: 11px;
  background: var(--c-accent);
  color: var(--c-brand-deep);
  border: 0;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-newsletter button:hover { background: var(--c-accent-soft); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  font-size: 12px;
  letter-spacing: .04em;
  color: #8fa295;
}
.footer-bottom .page {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.footer-bottom a { color: #c4d3c8; }
.footer-bottom a:hover { color: var(--c-accent-soft); }
.footer-bottom .fb-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ============================================================
 * 15. Misc — to-top, helpers
 * ============================================================ */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-brand);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s, background .2s, transform .2s;
  z-index: 40;
  cursor: pointer;
  border: 0;
  box-shadow: 0 8px 20px rgba(31,77,58,.25);
}
.to-top:hover { background: var(--c-accent); color: var(--c-brand-deep); transform: translateY(-2px); }
.to-top.is-visible { opacity: 1; visibility: visible; }

.page-end { height: 30px; }

/* ============================================================
 * 16. Responsive (compact)
 * ============================================================ */
@media (max-width: 1100px) {
  :root { --w-page: 100%; --w-narrow: 100%; --w-content: 100%; }
  .masthead .page { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .mh-left, .mh-right { justify-self: center; }
  .picks, .trending, .article-page, .list-page { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .fg-card.large { grid-column: span 2; grid-row: span 1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero-swiper { height: 360px; }
  .hero-caption h2 { font-size: 26px; }
  .hero-rail { display: none; }
  .featured-grid { grid-template-columns: 1fr; }
  .fg-card.large { grid-column: span 1; }
  .newsroom-item { grid-template-columns: 1fr; }
  .newsroom-item img { width: 100%; height: auto; }
  .ap-title { font-size: 28px; }
  .article-main { padding: 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .navbar .page { overflow-x: auto; }
}