/* ==========================================================================
   MORE — 澳門學生活動薈
   樣式表 v8（全站重寫，非疊加）
   森林綠 #075C46 / 深綠 #064C3B / 墨綠 #103F33
   米白 #F6F3EA / 卡白 #FFFEFA / 次區 #EEECE2 / 線 #D8D7CE
   文字 #10110F / #252620 / #77786F・強調 #C9FF32（極小面積）
   ========================================================================== */

:root {
  --forest: #0e4d3c;
  --forest-bg: #0e4d3c;
  --forest-deep: #0a3a2d;
  --mint: #ddf7e8;
  --cream: #f8f7f2;
  --card: #ffffff;
  --sub: #eef4ef;
  --line: #dcdcd4;
  --ink: #1c1b1f;
  --text: #2a2a2c;
  --muted: #71716c;
  --on-dark: #f8f7f2;
  --accent: #c2f23e;
  --green-mid: #1bb37e;

  --ff: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Segoe UI", Arial, sans-serif;
  --ff-en: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ff-num: "Inter", "Helvetica Neue", Arial, sans-serif;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-full: 999px;

  --sh-1: 0 1px 2px rgba(16,17,15,.05), 0 10px 26px rgba(16,17,15,.06);
  --sh-2: 0 6px 14px rgba(16,17,15,.08), 0 26px 60px rgba(16,17,15,.12);

  --pad: clamp(18px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 900; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--pad); }
.container-narrow { max-width: 900px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-en); font-size: 11px; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase; color: var(--forest);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--forest); }

.hint { font-size: 13.5px; color: var(--muted); }
.notice {
  margin-top: 16px; padding: 16px 20px; border-radius: var(--r-sm);
  background: var(--sub); border-left: 4px solid var(--forest); font-size: 14.5px;
}
.empty-state {
  padding: 56px 24px; text-align: center; border-radius: var(--r-md);
  border: 1.5px dashed var(--line); color: var(--muted); font-size: 15px;
}

/* ---------- 導航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: var(--cream); border-bottom: 2px solid var(--ink);
}
.header-inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  min-height: 74px; padding-top: 10px; padding-bottom: 10px;
}
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px;
  background: var(--forest); color: var(--mint);
  font-family: var(--ff-num); font-size: 15px; font-weight: 900; letter-spacing: -.02em;
}
.logo-text {
  display: inline-flex; align-items: baseline; gap: 9px;
  font-size: 18px; font-weight: 900; letter-spacing: -.02em; color: var(--ink);
}
.logo-en {
  font-family: var(--ff-num); font-style: normal; font-size: 16px;
  font-weight: 900; letter-spacing: .06em; color: var(--forest);
}
.site-nav { display: flex; gap: 2px; justify-content: center; flex-wrap: wrap; }
.site-nav a {
  position: relative; padding: 9px 15px; border-radius: var(--r-full);
  font-size: 14.5px; font-weight: 700; color: var(--ink); transition: background .16s, color .16s;
}
.site-nav a:hover { background: var(--sub); }
.site-nav a.active { background: var(--ink); color: var(--on-dark); }
.site-nav a.active::after {
  content: ""; position: absolute; left: 50%; bottom: -3px; transform: translateX(-50%);
  width: 22px; height: 3px; background: var(--accent); border-radius: 2px;
}
.lang-switch {
  justify-self: end; background: transparent; border: 1.5px solid var(--ink);
  border-radius: var(--r-full); padding: 8px 16px; cursor: pointer;
  font-family: var(--ff-en); font-size: 11px; font-weight: 800;
  letter-spacing: .16em; color: var(--ink); transition: background .16s, color .16s;
}
.lang-switch:hover { background: var(--ink); color: var(--on-dark); }

/* ---------- 首頁主視覺 ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--cream);
  border-bottom: 2px solid var(--ink); padding: 64px 0 0;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 56px); align-items: stretch;
}
.hero-copy { padding-bottom: clamp(40px, 6vw, 76px); }
.brand-lockup {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 16px 6px 6px; margin-bottom: 26px;
  border: 1.5px solid var(--ink); border-radius: var(--r-full); background: var(--card);
}
.brand-lockup img { width: 30px; height: 30px; border-radius: 50%; display: block; }
.brand-lockup .bl-text {
  display: block; font-family: var(--ff-en); font-size: 9px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--forest);
}
.brand-lockup .bl-name { font-size: 13.5px; font-weight: 800; }
.hero h1 {
  font-size: clamp(42px, 7vw, 82px); line-height: 1.02;
  letter-spacing: -.045em; font-weight: 900; max-width: 9.5em;
}
.hero h1 .hl {
  position: relative; z-index: 0; padding: 0 .06em;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent);
}
.hero-sub { margin-top: 26px; max-width: 26em; font-size: 17px; line-height: 1.8; }
.hero-hand { margin-top: 18px; font-family: var(--ff-en); font-style: italic; font-size: 18px; font-weight: 500; color: var(--forest); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-visual { position: relative; display: flex; align-items: stretch; }
.hero-photo {
  position: relative; flex: 1; min-height: 420px; overflow: hidden;
  clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%); background: var(--sub);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-badge {
  position: absolute; left: -18px; bottom: 34px; z-index: 3;
  background: var(--accent); color: var(--ink); border-radius: var(--r-sm);
  padding: 10px 16px; font-family: var(--ff-en); font-size: 11px;
  font-weight: 900; letter-spacing: .14em; text-transform: uppercase; box-shadow: var(--sh-1);
}
.hero-zig { position: absolute; right: -6%; top: -6%; width: 62%; opacity: .9; z-index: 2; pointer-events: none; }
.hero-dots {
  position: absolute; right: 4%; bottom: 6%; width: 150px; height: 120px; z-index: 2;
  background-image: radial-gradient(var(--ink) 1.2px, transparent 1.3px);
  background-size: 10px 10px; opacity: .18; pointer-events: none;
}
.hero-arrow { display: none; }

.hero-stats { background: var(--ink); color: var(--on-dark); }
.hero-stats .container { display: flex; flex-wrap: wrap; }
.hero-stats .stat {
  display: flex; flex-direction: column; gap: 2px;
  padding: 22px 34px 22px 0; margin-right: 34px;
  border-right: 1px solid rgba(248,245,236,.18);
}
.hero-stats .stat:last-child { border-right: none; }
.hero-stats .stat strong {
  font-family: var(--ff-num); font-size: 30px; font-weight: 800;
  letter-spacing: -.03em; color: var(--accent); line-height: 1.1;
}
.hero-stats .stat span {
  font-family: var(--ff-en); font-size: 10.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(248,245,236,.62);
}
.hs-label { display: none; }

/* ---------- 搜尋 / 分類 ---------- */
.search-block { padding: clamp(34px, 5vw, 56px) 0 4px; }
.search-bar {
  display: flex; align-items: stretch; background: var(--card);
  border: 2px solid var(--ink); border-radius: var(--r-md); overflow: hidden;
}
.search-bar .sb-icon { display: grid; place-items: center; padding: 0 4px 0 18px; font-size: 18px; }
.search-bar input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-family: var(--ff); font-size: 16.5px; color: var(--ink); padding: 18px 12px 18px 10px;
}
.search-bar input::placeholder { color: var(--muted); }
.search-bar button {
  border: 0; cursor: pointer; padding: 0 28px;
  background: var(--forest); color: var(--on-dark);
  font-size: 16px; font-weight: 800; display: inline-flex; align-items: center;
  gap: 8px; transition: background .16s;
}
.search-bar button:hover { background: var(--forest-deep); }
.cat-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: transparent;
  font-size: 14px; font-weight: 700; color: var(--ink); transition: all .16s;
}
.cat-pill:hover { border-color: var(--ink); background: var(--card); }
.cat-pill.active { background: var(--forest-deep); border-color: var(--forest-deep); color: var(--on-dark); }
.cat-pill .cp-count { font-family: var(--ff-num); font-size: 11.5px; color: var(--muted); }
.cat-pill.active .cp-count { color: rgba(248,245,236,.7); }

/* ---------- 區塊 ---------- */
.section { padding: clamp(52px, 7vw, 96px) 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  border-top: 2px solid var(--ink); padding-top: 18px; margin-bottom: 30px;
}
.section-head > div { display: flex; flex-direction: column; }
.section-head h2 { font-size: clamp(28px, 4vw, 46px); line-height: 1.1; letter-spacing: -.035em; margin-top: 6px; }
.more-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-en); font-size: 12px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  border-bottom: 2px solid var(--accent); padding-bottom: 3px;
}
.more-link:hover { color: var(--forest); }
.article-open { font-family: var(--ff-en); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--forest); }
.page-head { padding: clamp(38px, 5vw, 64px) 0 8px; }
.page-head h1 { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.04em; }
.page-sub { margin-top: 14px; font-size: 16px; color: var(--muted); max-width: 42em; }

/* ---------- 卡片 ---------- */
.card-grid { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card {
  display: flex; flex-direction: column; position: relative;
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--forest); }
.card-poster {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block;
  background: var(--sub); border-bottom: 1.5px solid var(--line);
}
.card-top { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.card-title { padding: 16px 18px 0; font-size: 19.5px; font-weight: 900; line-height: 1.42; letter-spacing: -.015em; }
.card-meta { list-style: none; margin: 12px 0 0; padding: 0 18px; display: grid; }
.card-meta li {
  display: flex; gap: 10px; justify-content: space-between;
  padding: 8px 0; border-top: 1px dashed var(--line);
  font-size: 13.5px; color: var(--text);
}
.card-meta li > *:first-child { color: var(--muted); }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 18px 0; }
.card-foot {
  margin-top: auto; padding: 14px 18px; display: flex; align-items: center;
  justify-content: space-between; gap: 10px; border-top: 1.5px solid var(--line);
}
.card-org { font-size: 12.5px; font-weight: 700; color: var(--forest); }
.card-more {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--forest); color: var(--on-dark);
  font-size: 15px; font-weight: 900; transition: background .16s, transform .16s;
}
.card:hover .card-more { background: var(--accent); color: var(--ink); transform: rotate(-45deg); }
.card.expired { opacity: .62; }

.cat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.cat-tile {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 18px; border: 1.5px solid var(--line);
  border-radius: var(--r-md); background: var(--card); transition: all .18s;
}
.cat-tile:hover { border-color: var(--forest); background: var(--forest); color: var(--on-dark); }
.cat-tile:hover .cat-count { color: rgba(248,245,236,.7); }
.cat-icon { font-size: 24px; line-height: 1; }
.cat-name { font-size: 16px; font-weight: 900; letter-spacing: -.01em; }
.cat-count { font-family: var(--ff-num); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: var(--r-xs);
  background: var(--forest-deep); color: var(--on-dark);
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.tag-pill {
  display: inline-block; padding: 4px 10px; border-radius: var(--r-xs);
  border: 1px solid var(--line); background: transparent;
  font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.tag-pill:hover { background: var(--forest); color: var(--on-dark); border-color: var(--forest); }
.deadline { display: inline-block; padding: 4px 11px; border-radius: var(--r-xs); font-size: 12px; font-weight: 800; }
.deadline.ok { background: var(--sub); color: var(--forest); }
.deadline.soon { background: var(--accent); color: var(--ink); }
.deadline.urgent { background: #ffd9cd; color: #a33418; }
.deadline.closed { background: var(--sub); color: var(--muted); }
.pending-tag { display: inline-block; padding: 4px 11px; border-radius: var(--r-xs); background: var(--mint); color: var(--forest-deep); font-size: 12px; font-weight: 800; }
.edu-tag, .verified-tag { display: inline-block; padding: 3px 9px; border-radius: var(--r-xs); background: var(--sub); color: var(--muted); font-size: 11.5px; font-weight: 700; margin-left: 6px; }

.filter-bar {
  display: grid; gap: 14px; margin: 26px 0 32px; padding: 20px;
  border: 1.5px solid var(--ink); border-radius: var(--r-md); background: var(--card);
}
.filter-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  padding: 9px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--line);
  background: transparent; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .15s;
}
.filter-chip:hover { border-color: var(--ink); }
.filter-chip.active { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-row input[type="search"], .filter-row select {
  font-family: var(--ff); font-size: 15px; padding: 12px 15px;
  border-radius: var(--r-sm); border: 1.5px solid var(--line);
  background: var(--cream); color: var(--ink);
}
.filter-row input[type="search"] { flex: 1; min-width: 210px; }
.filter-row input:focus, .filter-row select:focus { outline: none; border-color: var(--forest); }

/* ---------- 按鈕 ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: var(--r-full);
  border: 2px solid var(--forest); background: var(--forest); color: var(--on-dark);
  font-size: 15.5px; font-weight: 800; letter-spacing: .01em; cursor: pointer;
  transition: transform .16s, background .16s, color .16s, box-shadow .16s;
}
.btn:hover { background: var(--forest-deep); border-color: var(--forest-deep); transform: translateY(-2px); box-shadow: var(--sh-1); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn.is-disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.btn-white { background: var(--card); color: var(--ink); border-color: var(--ink); }
.btn-white:hover { background: var(--ink); color: var(--on-dark); }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--on-dark); }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  border: 2.5px solid rgba(16,17,15,.2); border-top-color: var(--ink);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.mini-btn {
  padding: 7px 14px; border-radius: var(--r-full); border: 1.5px solid var(--line);
  background: transparent; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: all .15s;
}
.mini-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.pill-off { opacity: .4; cursor: not-allowed; }

/* ---------- 深綠面板 ---------- */
.section-tint {
  position: relative; overflow: hidden;
  background: var(--forest-bg); color: var(--on-dark);
  border-radius: var(--r-lg); margin: 32px 0; padding: clamp(44px, 6vw, 72px) 0;
}
.section-tint::before, .brand-banner::before, .page-hero::before, .shenxue-banner::before, .title-banner::before {
  content: ""; position: absolute; right: -6%; top: -18%; width: 440px; height: 400px;
  opacity: .16; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 160'%3E%3Cpath d='M10 130 L70 40 L105 84 L140 30 L190 118' fill='none' stroke='%23B8DCCB' stroke-width='5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: contain;
}
.section-tint > *, .brand-banner > *, .page-hero > *, .shenxue-banner > *, .title-banner > * { position: relative; z-index: 2; }
.section-tint .section-head { border-top-color: rgba(248,245,236,.3); }
.section-tint .section-head h2 { color: var(--on-dark); }
.section-tint .eyebrow { color: var(--mint); }
.section-tint .eyebrow::before { background: var(--mint); }
.section-tint .card { background: #0a3b2e; border-color: rgba(248,245,236,.22); }
.section-tint .card-title { color: var(--on-dark); }
.section-tint .card-meta li { border-top-color: rgba(248,245,236,.18); color: rgba(248,245,236,.9); }
.section-tint .card-meta li > *:first-child { color: rgba(248,245,236,.6); }
.section-tint .card-foot { border-top-color: rgba(248,245,236,.22); }
.section-tint .card-org { color: var(--mint); }
.section-tint .more-link { color: var(--on-dark); }
.section-tint .hint { color: rgba(248,245,236,.72); }
.section-intro { color: rgba(248,245,236,.82); font-size: 16px; max-width: 46em; margin: -8px 0 26px; }

.brand-banner {
  position: relative; overflow: hidden;
  background: var(--forest-bg); color: var(--on-dark);
  border-radius: var(--r-lg); padding: clamp(40px, 6vw, 76px); margin: 44px 0;
}
.brand-banner h2 { font-size: clamp(34px, 6vw, 68px); line-height: 1.02; letter-spacing: -.045em; color: var(--on-dark); }
.brand-banner p { margin-top: 16px; max-width: 34em; font-size: 16.5px; color: rgba(248,245,236,.82); }
.brand-banner .bb-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  font-size: 16px; font-weight: 900; color: var(--ink);
  background: var(--accent); border-radius: var(--r-full); padding: 12px 22px; transition: transform .16s;
}
.brand-banner .bb-link:hover { transform: translateX(4px); }

.page-hero {
  position: relative; overflow: hidden;
  background: var(--forest-bg); color: var(--on-dark);
  border-radius: var(--r-lg); padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 56px);
  margin: 28px 0 32px;
}
.page-hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.02; letter-spacing: -.045em; color: var(--on-dark); }
.page-hero .eyebrow { color: var(--mint); }
.page-hero .eyebrow::before { background: var(--mint); }
.page-hero .ph-sub { margin-top: 14px; font-size: clamp(17px, 2.2vw, 22px); font-weight: 700; color: rgba(248,245,236,.94); }
.page-hero .ph-sub em { font-style: normal; border-bottom: 5px solid var(--accent); padding-bottom: 2px; }
.page-hero .ph-arrow {
  display: inline-grid; place-items: center; margin-top: 26px;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: var(--ink); font-size: 22px; font-weight: 900;
}

.shenxue-banner {
  position: relative; overflow: hidden;
  background: var(--forest); color: var(--on-dark);
  border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); margin: 26px 0 34px;
}
.shenxue-banner h2 { font-size: clamp(24px, 3vw, 34px); color: var(--on-dark); letter-spacing: -.03em; }
.path-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin-top: 20px; }
.path-card { padding: 20px; border-radius: var(--r-md); background: rgba(248,245,236,.09); border: 1px solid rgba(248,245,236,.14); }
.path-num { font-family: var(--ff-num); font-size: 12px; font-weight: 800; letter-spacing: .2em; color: var(--accent); }
.path-card h3 { font-size: 16.5px; color: var(--on-dark); margin: 6px 0; letter-spacing: -.01em; }
.path-card p { font-size: 13.5px; color: rgba(248,245,236,.8); }
.banner-note { margin-top: 18px; font-size: 12.5px; color: var(--mint); }

/* ---------- 內頁 ---------- */
.detail-card {
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); margin-bottom: 22px;
}
.detail-card h1 { font-size: clamp(28px, 4vw, 46px); line-height: 1.1; letter-spacing: -.035em; margin: 10px 0 20px; }
.detail-meta { list-style: none; margin: 20px 0; padding: 0; display: grid; }
.detail-meta li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.dm-label { font-family: var(--ff-en); font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--forest); }
.detail-desc { margin-top: 22px; padding-top: 20px; border-top: 2px solid var(--ink); }
.detail-desc h2 { font-family: var(--ff-en); font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--forest); margin-bottom: 12px; }
.detail-poster { width: 100%; border-radius: var(--r-md); display: block; margin-bottom: 14px; }
.poster-credit { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--forest); }

.form-card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--forest); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; font-family: var(--ff); font-size: 15px; padding: 13px 15px;
  border-radius: var(--r-sm); border: 1.5px solid var(--line);
  background: var(--cream); color: var(--ink); transition: border-color .16s, background .16s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--forest); background: var(--card); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }

.profile-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.profile-row h1 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.03em; }
.career-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.cstat { padding: 22px 18px; border-radius: var(--r-md); background: var(--sub); border: 1.5px solid var(--line); }
.cstat strong { display: block; font-family: var(--ff-num); font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; color: var(--forest); }
.cstat span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.career-sub { font-size: 18px; font-weight: 900; letter-spacing: -.02em; margin: 26px 0 14px; }
.career-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 26px 0 14px; }
.career-row .career-sub { margin: 0; }

.title-banner {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 20px;
  background: var(--forest-bg); color: var(--on-dark);
  border-radius: var(--r-lg); padding: 26px 28px; margin-bottom: 20px;
}
.title-icon { font-size: 38px; line-height: 1; }
.title-name { font-size: clamp(22px, 2.8vw, 32px); font-weight: 900; letter-spacing: -.03em; color: var(--on-dark); }
.title-desc { font-size: 14px; color: rgba(248,245,236,.78); margin-top: 4px; }

.badge-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.badge-card { padding: 22px 16px; border-radius: var(--r-md); text-align: center; background: var(--card); border: 1.5px solid var(--line); transition: transform .18s, border-color .18s; }
.badge-card:hover { transform: translateY(-3px); border-color: var(--forest); }
.badge-card.locked { opacity: .45; }
.badge-icon { display: block; font-size: 30px; margin-bottom: 8px; }
.badge-name { font-size: 14.5px; font-weight: 900; }
.badge-desc { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.badge-tag, .badge-lock { display: inline-block; margin-top: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--forest); }

.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; margin-bottom: 20px; }
.tl-dot { position: absolute; left: -26px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--forest); border: 2px solid var(--cream); }
.tl-title { font-size: 15.5px; font-weight: 900; }
.tl-meta { font-size: 12px; color: var(--muted); }
.tl-feedback { margin-top: 6px; font-size: 14px; }
.tl-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

.viz-box { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.viz-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.viz-bars { flex: 1; display: flex; align-items: center; gap: 10px; }
.viz-bars-base { flex: 1; height: 10px; border-radius: var(--r-full); background: var(--sub); overflow: hidden; }
.vbar-fill { height: 100%; background: var(--forest); border-radius: var(--r-full); }
.viz-cap { font-size: 12.5px; color: var(--muted); }
.viz-meta { font-family: var(--ff-num); font-size: 12px; font-weight: 700; }
.vbar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.vbar-track { flex: 1; height: 10px; border-radius: var(--r-full); background: var(--sub); overflow: hidden; }
.heatmap-wrap { overflow-x: auto; }
.hm-label, .hm-legend { font-size: 12px; color: var(--muted); }
.hm-s0, .hm-s1, .hm-s2, .hm-s3 { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin: 0 2px; }
.hm-s0 { background: var(--sub); }
.hm-s1 { background: #cfe6da; }
.hm-s2 { background: #7cc0a4; }
.hm-s3 { background: var(--forest); }
.chart-switch { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }

.gallery-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-sm); display: block; }
.gallery-cap { font-size: 12px; color: var(--muted); margin-top: 6px; }
.comment-item { padding: 18px 20px; border-radius: var(--r-md); background: var(--card); border: 1.5px solid var(--line); margin-bottom: 12px; }
.comment-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.comment-user { font-size: 14.5px; font-weight: 900; }
.comment-time { font-size: 12px; color: var(--muted); }
.comment-body { margin-top: 7px; font-size: 15px; }
.comment-login { padding: 26px; border-radius: var(--r-md); background: var(--sub); text-align: center; }
.comment-hint { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }

.article-card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; overflow: hidden; }
.article-card summary { padding: 20px 22px; cursor: pointer; list-style: none; }
.article-card summary::-webkit-details-marker { display: none; }
.article-card h3 { font-size: 18px; letter-spacing: -.02em; margin-top: 6px; }
.article-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--muted); }
.article-body { padding: 0 22px 22px; font-size: 15px; }
.article-body p { margin-top: 10px; }
.article-excerpt { font-size: 14px; color: var(--muted); }

.about-card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.org-head { display: flex; align-items: center; gap: 14px; }
.org-icon { width: 56px; height: 56px; border-radius: var(--r-md); display: grid; place-items: center; background: rgba(248,245,236,.12); font-size: 26px; }
.org-desc { font-size: 15px; }
.org-link { font-weight: 800; color: var(--mint); }

.step-list { display: grid; gap: 10px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step-num { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--on-dark); font-family: var(--ff-num); font-size: 12.5px; font-weight: 800; }

.review-head { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 28px; margin-bottom: 20px; }
.review-head h1 { font-size: clamp(30px, 4vw, 46px); color: var(--forest-deep); letter-spacing: -.04em; }
.review-feedback { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--r-sm); background: var(--sub); margin-bottom: 10px; font-size: 14.5px; }
.review-feedback::before { content: "🛡"; }
.coming-panel { text-align: center; padding: clamp(38px, 6vw, 64px) 24px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-md); margin: 22px 0 30px; }
.coming-panel .cp-ico { font-size: 48px; line-height: 1; }
.coming-panel h2 { font-size: clamp(24px, 3.2vw, 34px); margin: 16px 0 10px; letter-spacing: -.03em; }
.coming-panel p { max-width: 36em; margin: 0 auto; color: var(--muted); font-size: 15px; }
.forum-block { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.forum-block p + p { margin-top: 10px; }

.weekly-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.wk-label { font-size: 14.5px; font-weight: 700; }
.wk-status { font-size: 13px; color: var(--muted); }

.site-footer {
  margin-top: 70px; padding: clamp(40px, 6vw, 70px) 0 36px;
  background: var(--forest-deep); color: rgba(248,245,236,.78); font-size: 13.5px;
}
.site-footer .container { display: grid; gap: 18px; }
.site-footer p { margin: 0 0 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { color: var(--mint); font-weight: 700; }
.footer-links a:hover { color: var(--accent); }
.copyright { margin-top: 8px; padding-top: 16px; border-top: 1px solid rgba(248,245,236,.16); font-family: var(--ff-num); font-size: 11.5px; letter-spacing: .12em; color: rgba(248,245,236,.45); }

.app-tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: var(--card); border-top: 1.5px solid var(--ink);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}
.app-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px; min-height: 48px; justify-content: center; font-size: 11.5px; font-weight: 800; color: var(--muted); }
.app-tab-ico { font-size: 21px; line-height: 1; }
.app-tab.on { color: var(--forest-deep); }
@media (max-width: 768px) {
  .app-tabbar { display: flex; }
  body { padding-bottom: 78px; }
}

@media (max-width: 980px) {
  .header-inner { grid-template-columns: auto auto; }
  .site-nav { order: 3; grid-column: 1 / -1; width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 6px; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: 0 0 auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { min-height: 300px; aspect-ratio: 16 / 10; clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 97%); }
  .hero-zig, .hero-dots { display: none; }
  .hero-badge { left: 12px; bottom: 12px; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(34px, 9vw, 46px); }
  .hero-copy { padding-bottom: 34px; }
  .hero-stats .container { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-stats .stat { padding: 16px 0; margin-right: 0; border-right: none; }
  .search-bar input { font-size: 15.5px; padding: 15px 10px; }
  .search-bar button { padding: 0 18px; font-size: 15px; }
  .cat-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .cat-pills::-webkit-scrollbar { display: none; }
  .cat-pill { flex: 0 0 auto; }
  .card-grid { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 28px; }
  .detail-meta li { grid-template-columns: 1fr; gap: 4px; }
  .detail-card, .form-card, .page-hero, .brand-banner, .section-tint, .shenxue-banner, .title-banner { border-radius: var(--r-md); }
  .detail-card, .form-card, .review-head, .forum-block { padding: 20px 18px; }
  .career-stats { grid-template-columns: 1fr 1fr; }
  .cstat strong { font-size: 28px; }
  .logo-en { font-size: 14px; }
}

/* 文字卡（無圖片）：標籤不浮在圖上 */
.card--text .card-top { position: static; padding: 18px 18px 0; }
.card--text .card-title { padding-top: 14px; }

/* ==========================================================================
   HERO 斜切照片拼貼（依參考圖）
   ========================================================================== */
.hero-kicker {
  font-size: 13px; font-weight: 800; letter-spacing: .1em;
  color: var(--forest); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(44px, 7.6vw, 92px); line-height: 1.0; letter-spacing: -.05em; }
.hero-hand { font-family: var(--ff-en); font-style: italic; font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px); color: var(--ink); margin-top: 18px; letter-spacing: .01em; }
.hero-hand span { display: inline-block; color: var(--forest); }
.hero .brand-lockup { margin-top: 34px; margin-bottom: 0; }

.hero-collage {
  position: relative; min-height: 520px; align-self: stretch;
}
.hc-frame {
  position: absolute; overflow: hidden; background: var(--sub);
  border: 2px solid var(--ink);
}
.hc-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-frame-a {
  width: 62%; height: 70%; left: 0; top: 4%;
  clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
  z-index: 2;
}
.hc-frame-b {
  width: 52%; height: 56%; right: 0; bottom: 2%;
  clip-path: polygon(0 0, 100% 9%, 100% 100%, 0 91%);
  z-index: 3;
}
.hc-halftone {
  position: absolute; right: 2%; top: 0; width: 46%; height: 34%; z-index: 1;
  background-image: radial-gradient(var(--ink) 1.3px, transparent 1.4px);
  background-size: 11px 11px; opacity: .22;
}
.hc-cross {
  position: absolute; z-index: 5; font-size: 26px; font-weight: 300;
  color: var(--ink); line-height: 1;
}
.hc-cross-a { left: 2%; bottom: 16%; }
.hc-cross-b { right: 6%; top: 6%; }
.hc-mark {
  position: absolute; left: 0; bottom: 0; z-index: 5;
  background: var(--accent); color: var(--ink);
  border: 2px solid var(--ink); padding: 8px 16px;
  font-family: var(--ff-num); font-size: 15px; font-weight: 900; letter-spacing: .12em;
}

/* 分類藥丸（黑底選中） */
.cat-pill { border-radius: var(--r-full); }
.cat-pill.active { background: var(--ink); border-color: var(--ink); color: var(--accent); }

@media (max-width: 980px) {
  .hero-collage { min-height: 340px; margin-top: 30px; }
  .hero h1 { font-size: clamp(38px, 10vw, 54px); }
}

/* ==========================================================================
   MOCKUP MATCH — 依照手機參考圖（442×889 CSS px）重建首頁骨架
   ========================================================================== */

body { background: #f8f7f2; }

/* ---- 頂欄：M MORE ........ EN ☰ ---- */
.site-header { position: sticky; top: 0; z-index: 90; background: #f8f7f2; border-bottom: 0; }
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 18px 10px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-mark { width: 30px; height: 30px; display: block; object-fit: contain; }
.brand-word {
  font-family: var(--ff-num); font-size: 24px; font-weight: 900;
  letter-spacing: -.03em; color: var(--ink); line-height: 1;
}
.header-actions { display: inline-flex; align-items: center; gap: 10px; }
.header-actions .lang-switch {
  border: 1.5px solid var(--ink); border-radius: var(--r-sm);
  background: transparent; padding: 6px 12px;
  font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--ink);
}
.nav-toggle {
  background: transparent; border: 0; padding: 4px 6px; cursor: pointer;
  font-size: 24px; line-height: 1; color: var(--ink);
}
/* 手機：選單收合 */
.site-nav {
  display: none; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid var(--line); padding: 6px 18px 12px;
}
.site-nav.open { display: grid; }
.site-nav a {
  padding: 12px 4px; border-radius: 0; font-size: 15px; font-weight: 700;
  border-bottom: 1px solid var(--line); background: transparent; color: var(--ink);
}
.site-nav a.active { background: transparent; color: var(--forest); }
.site-nav a.active::after { display: none; }

/* ---- HERO ---- */
.hero {
  border-bottom: 0; padding: 6px 0 0; overflow: hidden; background: #f8f7f2;
}
.hero-top { padding: 0 18px; }
.hero-kicker {
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
  color: var(--forest); margin-bottom: 10px;
}
.hero h1 {
  font-size: clamp(34px, 10.6vw, 50px); line-height: 1.02; letter-spacing: -.045em;
  font-weight: 900; color: var(--ink); max-width: none;
}
.hero h1 .hl {
  background: var(--accent); box-shadow: 0 0 0 3px var(--accent);
  padding: 0 .04em;
}
.hero-hand {
  margin-top: 10px; font-family: var(--ff-en); font-style: italic; font-weight: 700;
  font-size: 19px; letter-spacing: .02em; color: var(--ink);
  transform: rotate(-2deg); display: inline-block;
}
.hero-hand-arrow { color: var(--forest); font-style: normal; }

/* 拼貼：滿版、高度約 46vw */
.hero-collage {
  position: relative; margin-top: 12px; height: 47vw; max-height: 240px;
  overflow: hidden;
}
.hc-photo { position: absolute; overflow: hidden; }
.hc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-photo-1 {
  left: 0; top: 0; width: 76%; height: 74%;
  clip-path: polygon(0 0, 100% 8%, 100% 100%, 0 88%);
  z-index: 2;
}
.hc-photo-2 {
  right: 0; top: 26%; width: 46%; height: 62%;
  clip-path: polygon(0 12%, 100% 0, 100% 88%, 0 100%);
  z-index: 3;
  border-left: 3px solid #f8f7f2;
}
.hc-green {
  position: absolute; left: 0; bottom: 0; width: 68%; height: 42%; z-index: 1;
  background: var(--forest);
  clip-path: polygon(0 22%, 100% 0, 62% 100%, 0 100%);
}
.hc-dots {
  position: absolute; right: 0; top: 0; width: 40%; height: 34%; z-index: 1;
  background-image: radial-gradient(#1c1b1f 1.4px, transparent 1.5px);
  background-size: 10px 10px; opacity: .5;
}
.hc-cross {
  position: absolute; z-index: 5; font-size: 22px; font-weight: 300;
  color: #1c1b1f; line-height: 1;
}
.hc-cross-1 { left: 6%; bottom: 8%; z-index: 6; color: #f8f7f2; }
.hc-cross-2 { right: 6%; top: 4%; }

/* ---- 搜尋 ---- */
.search-block { padding: 12px 18px 0; }
.search-bar {
  display: flex; align-items: stretch;
  background: #ffffff; border: 2px solid var(--ink);
  border-radius: 12px; overflow: hidden; height: 54px;
}
.search-bar .sb-icon { display: grid; place-items: center; padding-left: 14px; font-size: 17px; }
.search-bar input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-family: var(--ff); font-size: 15px; color: var(--ink); padding: 0 10px;
}
.search-bar input::placeholder { color: #8b8b84; }
.search-bar button {
  border: 0; cursor: pointer; width: 62px; background: var(--forest); color: #f8f7f2;
  font-size: 20px; font-weight: 900; display: grid; place-items: center;
}

/* ---- 分類 ---- */
.cat-pills {
  display: flex; gap: 10px; margin-top: 14px;
  overflow-x: auto; padding-bottom: 4px; scrollbar-width: none;
}
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pill {
  flex: 0 0 auto; padding: 8px 16px; border-radius: var(--r-sm);
  border: 1.5px solid var(--ink); background: transparent;
  font-size: 14px; font-weight: 700; color: var(--ink);
}
.cat-pill.active { background: var(--ink); border-color: var(--ink); color: #f8f7f2; }

/* ---- WHAT'S ON ---- */
.whatson { padding: 18px 18px 0; }
.whatson-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.whatson-head h2 {
  font-size: clamp(26px, 7.4vw, 34px); line-height: 1.1; letter-spacing: -.04em;
  margin-top: 4px;
}
.whatson-head .eyebrow { font-size: 10.5px; letter-spacing: .22em; }
.whatson-head .more-link {
  font-size: 13px; font-weight: 800; color: var(--ink);
  border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}
.whatson .card-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
.whatson .card { border-radius: 14px; border: 1.5px solid var(--ink); }
.whatson .card-poster { aspect-ratio: 4 / 3; border-bottom: 0; }
.whatson .card-top { position: absolute; top: 8px; left: 8px; }
.whatson .card-top .chip {
  background: #ffffff; color: var(--ink); border: 1.5px solid var(--ink);
  border-radius: 6px; padding: 3px 8px; font-size: 11px; text-transform: none; letter-spacing: 0;
}
.whatson .card-title {
  padding: 10px 12px 12px; font-size: 15px; line-height: 1.35; letter-spacing: -.01em;
}
.whatson .card-meta, .whatson .card-tags, .whatson .card-foot { display: none; }

/* ---- 綠色橫幅 ---- */
.cta-band {
  margin: 20px 0 0; padding: 26px 20px 30px;
  background: var(--forest); color: #f8f7f2; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; right: -10%; top: -30%; width: 70%; height: 160%;
  background-image: radial-gradient(rgba(248,247,242,.5) 1.4px, transparent 1.5px);
  background-size: 10px 10px; opacity: .25;
}
.cta-band h2 {
  position: relative; z-index: 2;
  font-size: clamp(28px, 8.4vw, 40px); line-height: 1.06; letter-spacing: -.04em;
  color: #f8f7f2;
}
.cta-link {
  position: relative; z-index: 2; display: inline-block; margin-top: 10px;
  font-size: 15px; font-weight: 800; color: var(--accent);
  border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}

/* ---- 桌機：回到左右分欄 ---- */
@media (min-width: 900px) {
  .header-bar { padding: 16px 0 12px; max-width: 1180px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
  .nav-toggle { display: none; }
  .site-nav { display: flex !important; gap: 6px; border-top: 0; padding: 0 40px 12px; max-width: 1180px; margin: 0 auto; }
  .site-nav a { border-bottom: 0; padding: 8px 14px; border-radius: var(--r-full); font-size: 14.5px; }
  .site-nav a:hover { background: var(--sub); }
  .site-nav a.active { background: var(--ink); color: #f8f7f2; }

  .hero { max-width: 1180px; margin: 0 auto; padding: 26px 40px 0; }
  .hero-top { padding: 0; }
  .hero h1 { font-size: clamp(52px, 6vw, 86px); }
  .hero-collage { height: 420px; margin-top: 26px; }
  .search-block { max-width: 1180px; margin: 0 auto; padding: 22px 40px 0; }
  .whatson { max-width: 1180px; margin: 0 auto; padding: 34px 40px 0; }
  .whatson .card-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .whatson .card-title { font-size: 17px; padding: 12px 16px 16px; }
  .cta-band { margin-top: 40px; padding: 64px calc((100% - 1100px) / 2); }
  .cta-band h2 { font-size: clamp(40px, 5vw, 64px); }
}

/* ==========================================================================
   MOCKUP MATCH v2 — 依逐行比對結果收緊比例（442×889）
   參考圖實測：標題 8–24%、照片 25–45%、搜尋 46–52%、卡片 66–82%、CTA 83–93%
   ========================================================================== */
.header-bar { padding: 12px 18px 8px; }
.brand-mark { width: 26px; height: 26px; }
.brand-word { font-size: 22px; }

.hero { padding: 0; }
.hero-top { padding: 0 18px; }
.hero-kicker { font-size: 11.5px; margin-bottom: 6px; }
.hero h1 { font-size: clamp(32px, 10vw, 46px); line-height: 1.0; letter-spacing: -.05em; }
.hero-hand { margin-top: 6px; font-size: 16.5px; }

.hero-collage { margin-top: 8px; height: 40vw; max-height: 190px; }
.hc-photo-1 { width: 72%; height: 78%; }
.hc-photo-2 { width: 44%; height: 58%; top: 30%; }
.hc-green { height: 46%; }

.search-block { padding: 8px 18px 0; }
.search-bar { height: 50px; border-radius: 10px; }
.search-bar input { font-size: 14.5px; }
.search-bar button { width: 56px; font-size: 19px; }
.cat-pills { margin-top: 10px; gap: 8px; }
.cat-pill { padding: 7px 14px; font-size: 13px; }

.whatson { padding: 14px 18px 0; }
.whatson-head { margin-bottom: 10px; }
.whatson-head h2 { font-size: clamp(24px, 7vw, 30px); }
.whatson .card-grid { gap: 10px; }
.whatson .card-poster { aspect-ratio: 2 / 1; }
.whatson .card-title { padding: 8px 10px 10px; font-size: 13.5px; line-height: 1.3; }
.whatson .card-top { top: 6px; left: 6px; }
.whatson .card-top .chip { padding: 2px 7px; font-size: 10px; }

.cta-band { margin: 16px 0 0; padding: 18px 20px 20px; }
.cta-band h2 { font-size: clamp(24px, 7.4vw, 30px); }
.cta-link { font-size: 13.5px; margin-top: 6px; }

@media (min-width: 900px) {
  .header-bar { padding: 16px 40px 12px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-word { font-size: 26px; }
  .hero { padding: 20px 40px 0; }
  .hero h1 { font-size: clamp(48px, 6vw, 84px); }
  .hero-collage { height: 380px; margin-top: 22px; }
  .search-block { padding: 20px 40px 0; }
  .search-bar { height: 58px; }
  .whatson { padding: 30px 40px 0; }
  .whatson .card-poster { aspect-ratio: 16 / 10; }
  .whatson .card-title { font-size: 17px; padding: 12px 16px 16px; }
  .cta-band { margin-top: 36px; padding: 56px calc((100% - 1100px) / 2); }
  .cta-band h2 { font-size: clamp(38px, 4.6vw, 60px); }
}

/* MOCKUP MATCH v3 — 把搜尋列上移到 46% 位置（參考圖 409px） */
.header-bar { padding: 10px 18px 6px; }
.brand-mark { width: 24px; height: 24px; }
.brand-word { font-size: 21px; }
.header-actions .lang-switch { padding: 5px 10px; font-size: 11px; }
.nav-toggle { font-size: 21px; }

.hero-kicker { margin-bottom: 4px; font-size: 11px; }
.hero h1 { font-size: clamp(30px, 9.4vw, 40px); line-height: .98; }
.hero-hand { margin-top: 4px; font-size: 15.5px; }
.hero-collage { margin-top: 6px; height: 32vw; max-height: 145px; }
.search-block { padding-top: 6px; }
.search-bar { height: 46px; }
.cat-pills { margin-top: 8px; }
.cat-pill { padding: 6px 13px; font-size: 12.5px; }
.whatson { padding-top: 12px; }
.whatson-head h2 { font-size: clamp(22px, 6.6vw, 28px); }

/* ==========================================================================
   MOCKUP MATCH v4 — 逐項修正視覺比對結果
   ========================================================================== */

/* 1) 頂欄：EN 純文字 + 直線 + 三橫線漢堡 */
.header-actions { gap: 8px; }
.header-actions .lang-switch {
  border: 0; background: transparent; padding: 0;
  font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--ink);
}
.ha-sep { font-size: 13px; color: var(--line); }
.nav-toggle { padding: 2px; }
.nav-toggle .bars { display: inline-flex; flex-direction: column; gap: 4px; width: 22px; }
.nav-toggle .bars i { display: block; height: 2.5px; background: var(--ink); border-radius: 2px; }

/* 2) 標題「更多」：實色黃綠方塊（無圓角） */
.hero h1 .hl {
  background: var(--accent);
  box-shadow: none;
  padding: 0 .06em;
  border-radius: 0;
}

/* 3) GO FIND MORE：手寫斜體 + 黃綠斜向刷痕 */
.hero-hand {
  position: relative; display: inline-block;
  font-family: "Bradley Hand", "Segoe Script", var(--ff-en);
  font-style: italic; font-weight: 700; font-size: 18px;
  transform: rotate(-4deg); padding: 2px 6px;
  z-index: 1;
}
.hero-hand::before {
  content: ""; position: absolute; left: -4px; right: -6px; bottom: -2px; height: 9px;
  background: var(--accent); transform: skewX(-18deg) rotate(-2deg);
  z-index: -1; opacity: .9;
}
.hero-hand-arrow { color: var(--ink); font-style: normal; }

/* 4) HERO 圖形：森林綠 M 折線帶 + 斜切照片 + 黃綠斜角徽章 */
.hero-collage { position: relative; height: 34vw; max-height: 152px; margin-top: 10px; overflow: hidden; }
.hc-ribbon {
  position: absolute; left: -2%; bottom: -6%; width: 86%; height: 92%;
  background: var(--forest);
  clip-path: polygon(0 74%, 22% 18%, 40% 52%, 58% 8%, 78% 46%, 100% 20%, 100% 100%, 0 100%);
  z-index: 1;
}
.hc-photo-1 {
  left: 10%; top: 4%; width: 52%; height: 78%; z-index: 3;
  clip-path: polygon(0 12%, 100% 0, 100% 88%, 0 100%);
  border: 0;
}
.hc-photo-2 {
  right: 4%; top: 12%; width: 34%; height: 66%; z-index: 4;
  clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 90%);
  border: 3px solid #f8f7f2;
}
.hc-badge {
  position: absolute; right: 10%; top: 4%; z-index: 6;
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--accent); color: var(--ink);
  font-size: 18px; font-weight: 900;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  padding-left: 6px;
}
.hc-dots {
  position: absolute; left: 62%; top: 4%; width: 34%; height: 40%; z-index: 2;
  background-image: radial-gradient(#1c1b1f 1.5px, transparent 1.6px);
  background-size: 9px 9px; opacity: .45;
}
.hc-cross { position: absolute; z-index: 7; font-size: 18px; font-weight: 300; color: #1c1b1f; }
.hc-cross-1 { left: 2%; bottom: 4%; color: #f8f7f2; }
.hc-cross-2 { right: 2%; bottom: 6%; }

/* 5) 分類：方形標籤（6px 圓角）、黑底選中 */
.cat-pill {
  border-radius: 6px; border: 1.5px solid var(--ink);
  padding: 7px 14px; font-size: 13px; font-weight: 700; background: transparent;
}
.cat-pill.active { background: var(--ink); color: #f8f7f2; }

/* 6) 卡片：深色邊框、方形照片、角落標籤、收藏書籤 */
.whatson .card { border: 1.5px solid var(--ink); border-radius: 8px; background: #fff; }
.whatson .card-poster { aspect-ratio: 1 / 1; }
.whatson .card-top .chip {
  background: #fff; border: 1.5px solid var(--ink); border-radius: 4px;
}
.whatson .card-title { font-size: 13px; font-weight: 700; }
.card-save {
  position: absolute; right: 8px; top: 8px; z-index: 3;
  width: 24px; height: 24px; display: grid; place-items: center;
  background: rgba(255,255,255,.9); border: 1.5px solid var(--ink); border-radius: 4px;
  font-size: 11px; color: var(--ink);
}

/* 7) 底部導航：線性圖示 + 選中底線 */
.app-tab { gap: 4px; }
.app-tab-ico {
  font-size: 17px; font-weight: 300; line-height: 1;
  filter: grayscale(1); opacity: .75;
}
.app-tab.on .app-tab-ico { filter: none; opacity: 1; }
.app-tab span:last-child { font-size: 11px; font-weight: 700; }
.app-tab.on { color: var(--forest); }
.app-tab.on::before {
  content: ""; position: absolute; top: 0; width: 22px; height: 2.5px;
  background: var(--forest); border-radius: 2px;
}
.app-tab { position: relative; }
/* MOCKUP MATCH v5 — 卡片比例、CTA 進首屏、漢堡修正 */

.whatson .card-poster { aspect-ratio: 2 / 1; object-fit: cover; object-position: center 45%; }
.whatson .card { border-radius: 8px; }
.whatson .card-title {
  font-size: 12.5px; padding: 7px 9px 9px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.whatson .card-save { width: 20px; height: 20px; font-size: 9px; }

/* 收緊上方間距，讓綠色橫幅落在首屏 83–93% */
.header-bar { padding: 8px 18px 6px; }
.hero h1 { font-size: clamp(30px, 9vw, 38px); }
.hero-collage { height: 30vw; max-height: 132px; margin-top: 8px; }
.search-block { padding: 6px 18px 0; }
.search-bar { height: 44px; }
.cat-pill { padding: 6px 12px; font-size: 12.5px; }
.whatson { padding: 10px 18px 0; }
.whatson-head { margin-bottom: 8px; }
.whatson-head h2 { font-size: clamp(20px, 6.4vw, 26px); }
.cta-band { margin: 12px 0 0; padding: 16px 20px 18px; }
.cta-band h2 { font-size: clamp(22px, 7vw, 28px); }

/* 漢堡圖示不被裁切 */
.nav-toggle { overflow: visible; }
.nav-toggle .bars { width: 20px; }
.nav-toggle .bars i { height: 2px; }


/* MOCKUP MATCH v6 — 修正 min-height 撐爆拼貼 */
.hero-collage { min-height: 0; height: 45vw; max-height: 210px; margin-top: 10px; }
@media (max-width: 980px) { .hero-collage { min-height: 0; margin-top: 10px; } }
@media (min-width: 900px) { .hero-collage { height: 380px; max-height: none; } }
/* ==========================================================================
   MOCKUP MATCH v7 — 品牌放大、厚幾何背景、全站統一
   ========================================================================== */

/* ---------- 頂欄品牌：加大 ---------- */
.header-bar { align-items: center; }
.brand { gap: 12px; }
.brand-mark { width: 44px; height: 44px; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-word {
  font-family: var(--ff-num); font-size: 30px; font-weight: 900;
  letter-spacing: -.03em; color: var(--ink);
}
.brand-cn {
  margin-top: 3px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--forest);
}

@media (min-width: 900px) {
  .brand-mark { width: 52px; height: 52px; }
  .brand-word { font-size: 38px; }
  .brand-cn { font-size: 15px; margin-top: 4px; }
}

/* ---------- 全站背景：厚幾何線條 + 漸變 ---------- */
body {
  background:
    radial-gradient(60rem 40rem at 92% -8%, rgba(14,77,60,.10), transparent 62%),
    radial-gradient(46rem 30rem at -10% 6%, rgba(27,179,126,.09), transparent 58%),
    #f8f7f2;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' preserveAspectRatio='none'%3E%3Cpath d='M-20 240 L70 60 L150 190 L230 40 L320 200 L420 70' fill='none' stroke='%230e4d3c' stroke-width='26' opacity='.07'/%3E%3Cpath d='M-20 300 L80 140 L170 250 L260 120 L360 260 L440 150' fill='none' stroke='%231bb37e' stroke-width='14' opacity='.05'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 120% auto;
  background-position: center top;
}
body > * { position: relative; z-index: 1; }

/* ---------- HERO：品牌展示區（取代海報拼貼） ---------- */
.hero-collage { display: none; }

.brand-showcase {
  position: relative; overflow: hidden;
  margin-top: 14px; padding: 26px 22px 30px;
  background: var(--forest);
  color: #f8f7f2;
  border-radius: 0;
}
.brand-showcase::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 160' preserveAspectRatio='none'%3E%3Cpath d='M-10 150 L40 40 L85 110 L130 20 L200 120' fill='none' stroke='%23c2f23e' stroke-width='12'/%3E%3Cpath d='M-10 176 L50 80 L95 140 L145 60 L210 150' fill='none' stroke='%23b8dccb' stroke-width='6' opacity='.55'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 118% auto; background-position: right bottom;
  opacity: .5;
}
.brand-showcase > * { position: relative; z-index: 2; }
.bs-mark { width: 54px; height: 54px; display: block; filter: brightness(0) invert(1); }
.bs-cn {
  margin-top: 14px;
  font-size: clamp(34px, 10.4vw, 46px); font-weight: 900;
  letter-spacing: -.03em; line-height: 1.02; color: #f8f7f2;
}
.bs-en {
  margin-top: 8px;
  font-family: var(--ff-num); font-size: 10.5px; font-weight: 800;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}
.bs-slogan {
  margin-top: 12px; font-family: var(--ff-en); font-style: italic;
  font-size: 16px; font-weight: 700; color: rgba(248,247,242,.9);
}
.bs-rule {
  margin-top: 16px; height: 4px; width: 64px; background: var(--accent);
}

@media (min-width: 900px) {
  .brand-showcase { padding: 44px 48px 52px; }
  .bs-mark { width: 72px; height: 72px; }
  .bs-cn { font-size: clamp(48px, 5vw, 72px); }
  .bs-en { font-size: 13px; letter-spacing: .28em; }
  .bs-slogan { font-size: 20px; }
}

/* ---------- 標題：移除螢光筆高亮 ---------- */
.hero h1 .hl {
  background: transparent; box-shadow: none; padding: 0;
  color: var(--forest);
}

/* ---------- 分類：完整 7 類 + 更精緻外觀 ---------- */
.cat-pills {
  display: flex; gap: 8px; flex-wrap: wrap; overflow: visible;
}
.cat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: var(--r-full) !important;
  border: 1.5px solid var(--ink);
  padding: 8px 15px; font-size: 13px; font-weight: 700;
  background: #fff; color: var(--ink);
  transition: background .15s, color .15s, transform .1s;
}
.cat-pill:hover { transform: translateY(-1px); }
.cat-pill .cp-n {
  font-family: var(--ff-num); font-size: 11px; font-weight: 700;
  color: var(--muted);
}
.cat-pill.active { background: var(--forest); border-color: var(--forest); color: #f8f7f2; }
.cat-pill.active .cp-n { color: rgba(248,247,242,.7); }

/* ---------- 卡片：首頁顯示全部 ---------- */
.whatson .card-grid { grid-template-columns: 1fr 1fr; }

/* ---------- 深綠面板內文對比修正 ---------- */
.section-tint .article-excerpt,
.section-tint .card-meta,
.section-tint .article-body { color: rgba(248,247,242,.86); }
.section-tint .article-meta { color: rgba(248,247,242,.6); }
.section-tint .article-card { background: #0a3b2e; border-color: rgba(248,247,242,.22); }
.section-tint .article-card h3 { color: #f8f7f2; }
.section-tint .article-excerpt { color: rgba(248,247,242,.85); }

/* ==========================================================================
   MOCKUP MATCH v8 — 文字卡、圖表、表單、路線圖、標題層級
   ========================================================================== */

/* ---- 無圖文字卡（修正標籤浮空、內容錯位） ---- */
.card--text { display: block; padding: 0 0 14px; }
.card--text .card-top {
  position: static; padding: 16px 18px 0; display: flex; gap: 6px; flex-wrap: wrap;
}
.card--text .card-title { padding: 12px 18px 0; font-size: 17.5px; }
.card--text .article-excerpt { padding: 8px 18px 0; color: var(--muted); line-height: 1.6; }
.card--text .card-foot { margin: 14px 18px 0; }
.card--text .card-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 800; color: var(--forest);
}

/* ---- 棒形圖（補回數據列樣式） ---- */
.viz-bars { display: block; }
.viz-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.vbar-row {
  display: grid; grid-template-columns: 92px 1fr 34px;
  align-items: center; gap: 10px; margin-bottom: 10px;
}
.vbar-label { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.vbar-track {
  height: 12px; background: var(--sub); border-radius: var(--r-full);
  overflow: hidden; border: 1px solid var(--line);
}
.vbar-fill { height: 100%; border-radius: var(--r-full); min-width: 3px; }
.vbar-count { font-family: var(--ff-num); font-size: 12.5px; font-weight: 800; text-align: right; }
.viz-caption, .donut-label { font-size: 12.5px; color: var(--muted); }

/* ---- 表單：公開學校資訊對齊 ---- */
.form-group label.export-check {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; color: var(--ink);
  letter-spacing: 0; text-transform: none; line-height: 1.4;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--cream); cursor: pointer;
}
.form-group label.export-check input[type="checkbox"] {
  width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--forest); margin: 0;
}

/* ---- 升學路線圖：數字放大成圓牌 ---- */
.path-card { position: relative; padding-top: 46px; }
.path-num {
  position: absolute; top: 14px; left: 18px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--ink);
  font-family: var(--ff-num); font-size: 22px; font-weight: 900;
  letter-spacing: 0; line-height: 1;
}
.path-card h3 { font-size: 19px; margin: 0 0 6px; }
.path-card p { font-size: 14px; line-height: 1.65; }

/* ---- 區塊標題：加左側粗線，與正文區隔 ---- */
.section-head h2, .page-head h1 { position: relative; }
.section-head h2::before {
  content: ""; position: absolute; left: -14px; top: .2em; bottom: .2em;
  width: 5px; background: var(--forest); border-radius: 3px;
}
.section-tint .section-head h2::before,
.shenxue-banner .section-head h2::before { background: var(--accent); }

/* 內頁頁首（投稿 / 論壇 / 關於 / 審核） */
.page-head {
  border-left: 6px solid var(--forest); padding-left: 18px;
  margin: 26px 0 18px;
}
.page-head h1 { font-size: clamp(28px, 7vw, 40px); letter-spacing: -.04em; }
.page-head .page-sub { margin-top: 8px; font-size: 15px; color: var(--muted); }
@media (min-width: 900px) {
  .page-head { border-left-width: 8px; padding-left: 24px; }
  .page-head h1 { font-size: clamp(36px, 4vw, 52px); }
}

/* ---- 卡片：深綠幾何背景更明顯 ---- */
.section-tint { background: linear-gradient(150deg, #0e4d3c 0%, #0a3a2d 62%, #082b21 100%); }
.section-tint::after {
  content: ""; position: absolute; left: -6%; bottom: -22%; width: 420px; height: 420px;
  background-image: radial-gradient(rgba(248,247,242,.35) 1.6px, transparent 1.7px);
  background-size: 12px 12px; opacity: .18; pointer-events: none;
}

/* ==========================================================================
   MOCKUP MATCH v9 — 細節修正（11 項）
   ========================================================================== */

/* 11) 頂欄：深森林綠底 + 米白字 + 少量黃綠 */
.site-header {
  background: var(--forest);
  border-bottom: 0;
  box-shadow: 0 6px 20px rgba(6,40,30,.18);
}
.brand-word { color: #f8f7f2; }
.brand-cn { color: var(--mint); }
.header-actions .lang-switch { color: #f8f7f2; }
.ha-sep { color: rgba(248,247,242,.35); }
.nav-toggle .bars i { background: #f8f7f2; }
.site-nav { border-top: 1px solid rgba(248,247,242,.16); }
.site-nav a { color: rgba(248,247,242,.88); }
.site-nav a:hover { background: rgba(248,247,242,.12); color: #fff; }
.site-nav a.active { background: var(--accent); color: var(--ink); }
.site-nav a.active::after { display: none; }
@media (min-width: 900px) {
  .site-nav a { color: rgba(248,247,242,.9); }
  .site-nav a.active { background: var(--accent); color: var(--ink); }
}
/* 深色頂欄上的 logo 反白 */
.brand-mark { filter: brightness(0) invert(1); }

/* 1) 升學卡簡介：提亮 */
.section-tint .article-excerpt,
.section-tint .article-body,
.section-tint .card-meta { color: rgba(248,247,242,.94); }
.section-tint .article-card { background: #0b4335; border-color: rgba(248,247,242,.28); }
.section-tint .article-card h3 { color: #f8f7f2; }
.section-tint .article-meta { color: rgba(248,247,242,.72); }

/* 3) 升學頁首：標誌浮水印加粗、位置調整 */
.page-hero::before {
  background-image: url("../images/icons/logo-mark-light.png");
  background-size: 74% auto;
  background-position: right -6% center;
  right: -4%; top: 0; width: 62%; height: 100%;
  opacity: .2;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 160' preserveAspectRatio='none'%3E%3Cpath d='M-10 150 L44 44 L92 112 L140 26 L206 122' fill='none' stroke='%23c2f23e' stroke-width='14' opacity='.55'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 108% auto; background-position: left bottom;
  opacity: .35;
}
.page-hero > * { position: relative; z-index: 3; }

/* 4) 路線圖：數字與文字不重疊 */
.path-card { padding: 66px 20px 20px; }
.path-num { top: 16px; left: 20px; width: 44px; height: 44px; font-size: 23px; }

/* 5) 官方文件卡：前往按鈕顏色與換行 */
.card--text .card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: nowrap;
}
.card--text .card-org { color: var(--forest); font-weight: 800; }
.card--text .card-more {
  flex: 0 0 auto; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: var(--r-full);
  background: var(--forest); color: #f8f7f2 !important;
  font-size: 12px; font-weight: 800;
}

/* 6) 論壇：文字對齊、不再重疊 */
.coming-panel { text-align: left; }
.coming-panel .cp-ico { display: block; margin-bottom: 10px; }
.coming-panel h2 { margin: 0 0 10px; }
.coming-panel p { text-align: left; margin: 0; }
.forum-block p { line-height: 1.85; }
#forum-content .card { padding-bottom: 16px; }

/* 7) 關於頁：區塊間距 */
.about-card + .about-card,
.about-card + .detail-card,
.detail-card + .about-card { margin-top: 20px; }
.container-narrow > .section-head { margin-top: 34px; margin-bottom: 16px; }

/* 8) 標題：手機不再過大 */
.section-head h2 { font-size: clamp(21px, 5.4vw, 38px); }
.page-head h1 { font-size: clamp(26px, 6.2vw, 44px); }
.detail-card h1 { font-size: clamp(22px, 5.6vw, 36px); }
@media (min-width: 900px) {
  .section-head h2 { font-size: clamp(28px, 3.2vw, 40px); }
  .page-head h1 { font-size: clamp(34px, 3.6vw, 48px); }
}

/* 9) 每週檢查：左內容 / 右狀態 */
.weekly-row {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 12px 18px;
  padding: 16px 0;
}
.weekly-row .wk-label { font-weight: 800; }
.weekly-row .wk-status { text-align: right; color: var(--muted); font-size: 13.5px; }
.weekly-row .mini-btn, .weekly-row a.mini-btn { justify-self: end; }

/* 10a) 圖表：加大、置中 */
.viz-box { width: 100%; padding: 24px 20px; }
.viz-box svg { display: block; width: 100%; height: auto; }
.viz-row { align-items: center; }
.vbar-row { grid-template-columns: 110px 1fr 40px; }
.heatmap-wrap { display: block; overflow-x: auto; padding-bottom: 6px; }
.heatmap-svg { display: block; width: 100%; min-width: 520px; height: auto; }
.hm-legend { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; }

/* 10b) 參與足跡：熱力圖顏色（修正全部深綠） */
.heatmap-svg rect.h0 { fill: #e8e6dd; }
.heatmap-svg rect.h1 { fill: #a9dbc5; }
.heatmap-svg rect.h2 { fill: #4fae8e; }
.heatmap-svg rect.h3 { fill: #0e4d3c; }
.heatmap-svg rect { stroke: rgba(28,27,31,.06); }
.heatmap-svg text.hm-label { fill: var(--muted); font-size: 9px; font-family: var(--ff-num); }

/* 甜甜圈 / 折線圖容器置中 */
.donut-svg, .line-svg, .radar-svg { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.chart-switch { justify-content: center; }


/* v10 漸變銜接已按指示移除（回復純深綠頂欄） */
/* ==========================================================================
   MOCKUP MATCH v11 — 第 1–5 項細節
   ========================================================================== */

/* 1) 首頁升學卡：箭頭旁文字改白色 */
.section-tint .card--text .card-org,
.section-tint .card--text .card-more { color: #f8f7f2 !important; }

/* 2) 官方文件卡：前往 → 只剩白色箭頭的圓按鈕 */
.card--text .card-more {
  width: 34px; height: 34px; padding: 0 !important;
  border-radius: 50%; justify-content: center;
  background: var(--forest); color: #f8f7f2 !important;
  font-size: 15px; line-height: 1;
}
.card--text .card-more::after { content: ""; }

/* 3) 每週檢查清單：左內容、右綠勾 */
.weekly-row {
  display: grid; grid-template-columns: 1fr auto auto;
  align-items: center; gap: 10px 14px; padding: 15px 0;
}
.weekly-row .wk-label { text-align: left; }
.weekly-row .wk-label strong { font-size: 15px; font-weight: 800; }
.weekly-row .wk-label .hint { display: block; margin-top: 3px; font-size: 12.5px; }
.weekly-row .wk-status {
  font-size: 19px; line-height: 1; text-align: center; min-width: 26px;
  color: var(--forest);
}
.weekly-row .mini-btn { white-space: nowrap; }
@media (max-width: 520px) {
  .weekly-row { grid-template-columns: 1fr auto; }
  .weekly-row .mini-btn { grid-column: 1 / -1; justify-self: start; }
}

/* 4) 圖片尺寸收斂 */
.card-poster { max-height: 260px; }
.whatson .card-poster { max-height: 150px; }
.detail-poster { max-height: 420px; object-fit: contain; background: var(--sub); }
.gallery-item img { max-height: 220px; object-fit: cover; }
.badge-icon, .cat-icon { line-height: 1; }

/* 圖表：適當尺寸、不被裁切 */
.viz-box { overflow: visible; }
.viz-box svg { display: block; margin: 0 auto; height: auto; }
.donut-svg { width: min(100%, 220px); max-height: 220px; }
.radar-svg { width: min(100%, 360px); max-height: 330px; overflow: visible; }
.line-svg { width: 100%; max-height: 300px; }
.heatmap-svg { max-height: 190px; }

/* ==========================================================================
   v12 — 手機版專用版面（≤899px）；桌面版完全不受影響
   內容相同，只換排版：單欄大卡、加大品牌區、放大字級與觸控尺寸
   ========================================================================== */

@media (max-width: 899px) {
  /* ---- 基本 ---- */
  body { font-size: 16px; }
  .container, .container-narrow { padding-left: 16px; padding-right: 16px; }

  /* ---- 品牌展示區：加大 ---- */
  .brand-showcase { padding: 30px 20px 36px; margin-top: 12px; }
  .bs-mark { width: 64px; height: 64px; }
  .bs-cn { font-size: clamp(38px, 10.2vw, 48px); margin-top: 16px; letter-spacing: -.035em; }
  .bs-en { font-size: 11px; letter-spacing: .18em; margin-top: 10px; line-height: 1.6; }
  .bs-slogan { font-size: 17px; margin-top: 14px; }
  .bs-rule { margin-top: 18px; height: 5px; width: 72px; }

  /* ---- HERO ---- */
  .hero { padding-top: 8px; }
  .hero h1 { font-size: clamp(34px, 9.6vw, 46px); line-height: 1.05; }
  .hero-kicker { font-size: 12px; margin-bottom: 6px; }
  .hero-hand { font-size: 17px; margin-top: 8px; }

  /* ---- 搜尋、分類 ---- */
  .search-block { padding-top: 12px; }
  .search-bar { height: 50px; }
  .search-bar input { font-size: 15.5px; }
  .search-bar button { width: 58px; }
  .cat-pills { gap: 8px; margin-top: 12px; }
  .cat-pill { padding: 10px 16px; font-size: 14px; }

  /* ---- 首頁活動：單欄大卡（顯示完整資訊）---- */
  .whatson { padding-top: 20px; }
  .whatson .card-grid { grid-template-columns: 1fr; gap: 16px; }
  .whatson .card { border-radius: 14px; }
  .whatson .card-poster { aspect-ratio: 16 / 10; max-height: 240px; }
  .whatson .card-title { font-size: 17.5px; line-height: 1.35; padding: 12px 16px 0; }
  .whatson .card-top { position: absolute; top: 10px; left: 10px; }
  .whatson .card-top .chip { padding: 4px 9px; font-size: 11.5px; }
  .whatson .card-save { width: 26px; height: 26px; font-size: 12px; }
  .whatson .card-meta { display: grid; padding: 0 16px; margin-top: 10px; }
  .whatson .card-meta li { font-size: 13.5px; padding: 7px 0; }
  .whatson .card-tags { display: flex; padding: 10px 16px 0; }
  .whatson .card-foot {
    display: flex; margin: 12px 16px 0; padding-top: 12px;
    border-top: 1.5px solid var(--line);
  }
  .whatson .card-org { font-size: 13px; }
  .whatson .card-more { width: 36px; height: 36px; }

  /* ---- 一般卡片網格：單欄 ---- */
  .card-grid { grid-template-columns: 1fr; gap: 14px; }
  .card-title { font-size: 17px; }
  .card-meta { font-size: 13.5px; }
  .card-poster { max-height: 240px; }

  /* ---- 區塊標題放大 ---- */
  .section-head { padding-top: 16px; margin-bottom: 20px; }
  .section-head h2 { font-size: clamp(24px, 6.4vw, 30px); }
  .section { padding: 44px 0; }

  /* ---- 內頁 ---- */
  .page-head { margin: 20px 0 14px; padding-left: 16px; border-left-width: 5px; }
  .page-head h1 { font-size: clamp(27px, 7.2vw, 34px); }
  .page-sub { font-size: 14.5px; }
  .detail-card { padding: 20px 18px; border-radius: 16px; }
  .detail-card h1 { font-size: clamp(23px, 6.4vw, 30px); }
  .detail-meta li { font-size: 14.5px; }
  .detail-poster { max-height: 320px; }
  .form-card { padding: 20px 18px; border-radius: 16px; }
  .form-group input, .form-group select, .form-group textarea { min-height: 48px; font-size: 15.5px; }

  /* ---- 按鈕與觸控 ---- */
  .btn { min-height: 48px; padding: 14px 24px; font-size: 15.5px; }
  .mini-btn { min-height: 38px; padding: 8px 14px; }
  .site-nav a { min-height: 46px; display: flex; align-items: center; font-size: 15.5px; }
  .app-tab { min-height: 54px; }

  /* ---- 深綠面板 ---- */
  .section-tint { padding: 40px 0; border-radius: 20px; margin: 22px 0; }
  .brand-banner { padding: 36px 20px; border-radius: 20px; }
  .brand-banner h2 { font-size: clamp(28px, 8vw, 38px); }
  .page-hero { padding: 34px 20px 38px; border-radius: 20px; }
  .page-hero h1 { font-size: clamp(30px, 8.4vw, 40px); }
  .shenxue-banner, .title-banner { border-radius: 20px; }
  .path-grid { grid-template-columns: 1fr; }

  /* ---- 頁腳 ---- */
  .site-footer { padding: 36px 0 28px; }
  .footer-links { font-size: 13px; line-height: 2; }
}

/* 小手機（≤400px）再收一點 */
@media (max-width: 400px) {
  .bs-cn { font-size: 36px; }
  .hero h1 { font-size: 33px; }
  .whatson .card-title { font-size: 16.5px; }
  .cat-pill { padding: 9px 14px; font-size: 13.5px; }
}


/* 品牌區：英文全名加大，讓人看懂 MORE 是縮寫 */
.bs-en { font-size: 12.5px; letter-spacing: .16em; line-height: 1.55; font-weight: 800; }
@media (min-width: 900px) { .bs-en { font-size: 15px; letter-spacing: .2em; } }
.brand-cn { font-size: 14px; }
@media (min-width: 900px) { .brand-cn { font-size: 16px; } }


/* 品牌區英文再放大 */
.bs-en { font-size: 14px !important; letter-spacing: .14em; line-height: 1.5; }
@media (min-width: 900px) { .bs-en { font-size: 18px !important; letter-spacing: .16em; } }
.brand-cn { font-size: 15px; }
@media (min-width: 900px) { .brand-cn { font-size: 17px; } }


/* ==========================================================================
   v15 — 品牌 banner 領頭 + 垂直 MORE + 獎學金頁卡片對比
   ========================================================================== */
.hero { padding: 10px 0 0; border-bottom: 0; }
.brand-showcase { padding: 34px 22px 40px; margin-top: 0; border-radius: 0 0 26px 26px; }
.bs-cn { font-size: clamp(22px, 6vw, 30px); letter-spacing: .02em; margin-top: 12px; font-weight: 800; }

/* 垂直 MORE：M 特別大 */
.bs-letters {
  display: flex; flex-direction: column; align-items: flex-start;
  margin: 6px 0 10px; line-height: .86;
  font-family: var(--ff-num); font-weight: 900; letter-spacing: -.04em;
  color: var(--accent);
}
.bs-letters span { display: block; font-size: clamp(34px, 9.6vw, 46px); }
.bs-letters .l1 { font-size: clamp(56px, 16vw, 78px); letter-spacing: -.06em; }
.bs-en { font-size: 11.5px !important; letter-spacing: .12em; color: rgba(248,247,242,.72); font-weight: 700; }
.bs-rule { margin-top: 16px; }

@media (min-width: 900px) {
  .brand-showcase { padding: 48px 56px 56px; border-radius: 0 0 32px 32px; }
  .bs-cn { font-size: clamp(30px, 3vw, 40px); }
  .bs-letters span { font-size: 58px; }
  .bs-letters .l1 { font-size: 104px; }
  .bs-en { font-size: 13px !important; }
}

/* 獎學金頁：淺底上的路線卡要看得見 */
main > .path-grid .path-card,
.section > .container > .path-grid .path-card {
  background: #ffffff;
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-card, 0 1px 2px rgba(16,17,15,.05));
}
main > .path-grid .path-card h3,
.section > .container > .path-grid .path-card h3 { color: var(--ink); }
main > .path-grid .path-card p,
.section > .container > .path-grid .path-card p { color: var(--muted); }
main > .path-grid .path-num,
.section > .container > .path-grid .path-num {
  background: var(--forest); color: var(--accent);
}


/* ==========================================================================
   v16 — 品牌區：字母與對應英文同行，四行並列，字母同尺寸
   ========================================================================== */
.bs-words { margin: 12px 0 14px; display: flex; flex-direction: column; gap: 4px; }
.bw-row {
  display: flex; align-items: baseline; gap: 12px;
  line-height: 1.12;
}
.bw-l {
  font-family: var(--ff-num); font-weight: 900;
  font-size: clamp(26px, 7.2vw, 34px); letter-spacing: -.02em;
  color: var(--accent); min-width: 1.1em;
}
.bw-w {
  font-family: var(--ff-num); font-weight: 800;
  font-size: clamp(15px, 4.2vw, 19px); letter-spacing: .06em;
  text-transform: uppercase; color: #f8f7f2;
}
.bs-letters, .bs-en { display: none !important; }
@media (min-width: 900px) {
  .bw-l { font-size: 40px; }
  .bw-w { font-size: 22px; letter-spacing: .1em; gap: 16px; }
  .bs-words { gap: 6px; margin: 16px 0 18px; }
}


/* v17 — 品牌四行：首字母＋其餘字母，同色系 */
.bs-words { margin: 12px 0 14px; display: flex; flex-direction: column; gap: 2px; }
.bw-row { display: flex; align-items: baseline; gap: 2px; line-height: 1; }
.bw-l {
  font-family: var(--ff-num); font-weight: 900;
  font-size: clamp(30px, 8.4vw, 40px); letter-spacing: -.02em;
  color: var(--accent); min-width: 1.02em;
}
.bw-w {
  font-family: var(--ff-num); font-weight: 800;
  font-size: clamp(30px, 8.4vw, 40px); letter-spacing: -.01em;
  color: var(--accent); text-transform: none;
}
@media (min-width: 900px) {
  .bw-l, .bw-w { font-size: 46px; }
  .bs-words { gap: 4px; }
}


/* v18 — 品牌英文：完整單詞四行，字級收細，無中間空白 */
.bs-words { margin: 10px 0 12px; display: flex; flex-direction: column; gap: 0; }
.bs-words .bw-row {
  font-family: var(--ff-num); font-weight: 800;
  font-size: clamp(20px, 5.6vw, 26px);
  line-height: 1.16; letter-spacing: .01em;
  color: var(--accent);
}
@media (min-width: 900px) {
  .bs-words { margin: 14px 0 16px; }
  .bs-words .bw-row { font-size: 30px; line-height: 1.18; }
}
/* 舊的分拆樣式失效 */
.bw-l, .bw-w { display: none !important; }
.bw-row { display: block !important; }

/* v20 — Banner 背景幾何線條減弱，避免與黃綠英文撞色 */
.brand-showcase::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 160' preserveAspectRatio='none'%3E%3Cpath d='M-10 150 L40 40 L85 110 L130 20 L200 120' fill='none' stroke='%23cfe9dc' stroke-width='7'/%3E%3Cpath d='M-10 176 L50 80 L95 140 L145 60 L210 150' fill='none' stroke='%23e6f4ec' stroke-width='3'/%3E%3C/svg%3E");
  opacity: .16;
  background-size: 112% auto;
  background-position: right bottom;
}
@media (min-width: 900px) {
  .brand-showcase::after { opacity: .14; }
}


/* v21 — Banner 右側標誌 */
.brand-showcase {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  position: relative;
}
.bs-text { flex: 1 1 auto; min-width: 0; position: relative; z-index: 3; }
.bs-logo {
  flex: 0 0 auto;
  width: clamp(96px, 27vw, 132px);
  height: auto;
  opacity: .96;
  position: relative; z-index: 3;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.18));
}
@media (min-width: 900px) {
  .brand-showcase { gap: 40px; }
  .bs-logo { width: clamp(160px, 15vw, 220px); }
}
@media (max-width: 340px) {
  .bs-logo { width: 84px; }
}

/* v22 — Banner 標誌：加大、往左靠、輪廓更清晰 */
.brand-showcase { gap: 10px; }
.bs-logo {
  width: clamp(122px, 34vw, 168px) !important;
  margin-right: 2px;
  opacity: .95;
  filter: brightness(1.25) contrast(1.05) drop-shadow(0 8px 18px rgba(0,0,0,.22));
}
@media (min-width: 900px) {
  .brand-showcase { gap: 28px; }
  .bs-logo { width: clamp(210px, 19vw, 280px) !important; margin-right: 22px; }
}
@media (max-width: 360px) {
  .bs-logo { width: 108px !important; }
}

/* v23 — 標誌改用高度控制，確保不會超出 banner 右邊 */
.bs-logo {
  width: auto !important;
  height: 112px !important;
  max-width: 36% !important;
  object-fit: contain;
  margin-right: 4px;
}
@media (min-width: 900px) {
  .bs-logo { height: 200px !important; max-width: 22% !important; margin-right: 24px; }
}
/* ==========================================================================
   LIGHT THEME v1 — 對照參考圖：米白紙感 + 橄欖綠 + 近黑字
   ========================================================================== */
:root {
  --forest: #55782C;          /* 主綠（橄欖） */
  --deep: #3F5D24;            /* 深綠 */
  --ink: #17170F;             /* 近黑 */
  --cream: #F6F4E8;           /* 頁面底色 */
  --paper: #FCFBF6;           /* 更亮的紙白 */
  --sub: #EFEBDD;             /* 淡底 */
  --line: #E2DFD2;            /* 分隔線 */
  --muted: #77776B;           /* 次要文字 */
  --accent: #55782C;          /* 原螢光綠 → 橄欖綠 */
  --sage: #DCE5C9;            /* 淺鼠尾草 */
  --sage-2: #C9D8AC;
  --mint: #DCE5C9;
}

/* ---- 底色與文字 ---- */
html, body {
  background: #F6F4E8 !important;
  color: var(--ink);
}
body::before { display: none !important; }   /* 移除深色背景紋理 */
body {
  background-image:
    radial-gradient(50rem 34rem at 100% 0%, rgba(167,185,135,.20), transparent 60%),
    radial-gradient(40rem 26rem at -6% 4%, rgba(167,185,135,.12), transparent 55%) !important;
}

/* ---- 頂欄：米白 + 綠標 + 黑字 ---- */
.site-header {
  background: #F6F4E8 !important;
  border-bottom: 1px solid var(--line);
  box-shadow: none !important;
}
.brand-mark { filter: none !important; }
.brand-word { color: var(--ink) !important; }
.brand-cn { color: var(--forest) !important; font-weight: 700; }
.header-actions .lang-switch { color: var(--ink) !important; }
.ha-sep { color: var(--line) !important; }
.nav-toggle .bars i { background: var(--ink) !important; }
.site-nav {
  background: #F6F4E8;
  border-top: 1px solid var(--line) !important;
}
.site-nav a { color: var(--ink) !important; }
.site-nav a:hover { background: var(--sub) !important; color: var(--ink) !important; }
.site-nav a.active {
  background: transparent !important;
  color: var(--forest) !important;
  box-shadow: inset 0 -3px 0 var(--forest);
}

/* ---- Banner：米白 + 黑色大字 + 綠首字母 + 山形 ---- */
.hero { padding: 0 !important; }
.brand-showcase {
  background: linear-gradient(180deg, #F7F5EA 0%, #F3F1E3 100%) !important;
  color: var(--ink) !important;
  border-radius: 0 !important;
  padding: 30px 22px 34px !important;
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px; overflow: hidden; position: relative;
}
.brand-showcase::after { display: none !important; }
.bs-text { position: relative; z-index: 3; flex: 1 1 auto; min-width: 0; }
.bs-cn {
  color: var(--ink) !important;
  font-weight: 900 !important;
  font-size: clamp(30px, 8.6vw, 40px) !important;
  letter-spacing: -.02em; margin: 0 0 10px !important; line-height: 1.05;
}
.bs-words { display: flex !important; flex-direction: column; gap: 0 !important; margin: 0 !important; }
.bs-words .bw-row {
  display: block !important;
  line-height: .96 !important;
  font-family: var(--ff-num);
  font-weight: 900;
  letter-spacing: -.045em;
  color: var(--ink);
}
.bw-l, .bw-w {
  display: inline !important;
  font-size: clamp(34px, 9.6vw, 46px) !important;
  font-weight: 900 !important;
  letter-spacing: -.045em !important;
}
.bw-l { color: var(--forest) !important; }
.bw-w { color: var(--ink) !important; }
.bs-logo { display: none !important; }
.bs-rule { display: none !important; }
.bs-mountains {
  position: absolute; right: -6%; bottom: -4%;
  width: 62%; max-width: 340px; height: auto;
  z-index: 1; opacity: .95; pointer-events: none;
}
@media (min-width: 900px) {
  .brand-showcase { padding: 56px 56px 60px !important; }
  .bs-cn { font-size: clamp(40px, 4.4vw, 58px) !important; }
  .bw-l, .bw-w { font-size: clamp(54px, 5.4vw, 78px) !important; }
  .bs-mountains { width: 44%; right: 2%; bottom: -2%; }
}

/* ---- 區塊標題 ---- */
.eyebrow { color: var(--forest) !important; }
.eyebrow::before { background: var(--forest) !important; }
.section-head h2 { color: var(--ink) !important; }
.section-head h2::before { background: var(--forest) !important; }
.section-head .head-link, .head-link { color: var(--forest) !important; }

/* ---- 搜尋列 ---- */
.search-bar {
  background: #FFFFFF !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}
.search-bar input { color: var(--ink) !important; }
.search-bar button { background: var(--forest) !important; color: #FBF9F0 !important; }

/* ---- 分類膠囊 ---- */
.cat-pill {
  background: #FFFFFF !important;
  border: 1.5px solid var(--line) !important;
  color: var(--ink) !important;
}
.cat-pill.active {
  background: var(--forest) !important;
  border-color: var(--forest) !important;
  color: #FBF9F0 !important;
}
.cat-pill .cp-n { color: var(--muted) !important; }
.cat-pill.active .cp-n { color: rgba(251,249,240,.75) !important; }

/* ---- 卡片：白底細邊 ---- */
.card, .whatson .card {
  background: #FFFFFF !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}
.card--text { background: #FFFFFF !important; }
.card-top .chip {
  background: #FFFFFF !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
}
.card-top .chip--green, .chip[style*="0b7a5c"] { color: var(--forest) !important; }
.card-save {
  background: #FFFFFF !important; border: 1px solid var(--line) !important;
  color: var(--ink) !important; border-radius: 8px !important;
}
.card-title, .card--text .card-title { color: var(--ink) !important; }
.card-meta { border-top: 1px dashed var(--line) !important; }
.card-meta li {
  border-bottom: 1px dashed var(--line) !important;
  color: var(--ink) !important; padding: 10px 0 !important;
}
.card-meta .dm-label { color: var(--muted) !important; }
.card-tags .tag { background: var(--sub) !important; color: var(--ink) !important; }
.card-org { color: var(--muted) !important; }
.card-more { background: var(--forest) !important; color: #FBF9F0 !important; }
.card--text .card-more { background: var(--forest) !important; color: #FBF9F0 !important; }
.card-poster { background: #ECF0E2 !important; }
.card-open { color: var(--ink) !important; }

/* ---- 深色區塊 → 淺鼠尾草 ---- */
.section-tint {
  background: #EFEEDF !important;
  border-radius: 20px;
}
.section-tint::after { display: none !important; }
.section-tint .article-excerpt,
.section-tint .article-body,
.section-tint .card-meta li,
.section-tint .card-org { color: var(--ink) !important; }
.section-tint .card--text .card-org,
.section-tint .card--text .card-more { color: var(--ink) !important; }
.section-tint .card { background: #FFFFFF !important; }
.section-tint .article-card {
  background: #FFFFFF !important;
  border-color: var(--line) !important;
}
.section-tint .article-card h3,
.section-tint .section-head h2 { color: var(--ink) !important; }
.section-tint .article-meta { color: var(--muted) !important; }

.page-hero, .shenxue-banner, .brand-banner {
  background: linear-gradient(160deg, #F1EFDE 0%, #E7E9D2 100%) !important;
  color: var(--ink) !important;
}
.page-hero::before, .page-hero::after { display: none !important; }
.page-hero h1, .ph-sub, .shenxue-banner h2, .brand-banner h2 { color: var(--ink) !important; }
.page-hero .eyebrow { color: var(--forest) !important; }
.banner-note { color: var(--muted) !important; }

/* ---- CTA 橫幅 ---- */
.cta-band {
  background: var(--forest) !important;
  color: #FBF9F0 !important;
}
.cta-band h2 { color: #FBF9F0 !important; }
.cta-link { color: #FBF9F0 !important; border-color: rgba(251,249,240,.5) !important; }

/* ---- 按鈕 ---- */
.btn { background: var(--forest) !important; color: #FBF9F0 !important; border-color: var(--forest) !important; }
.btn:hover { background: var(--deep) !important; }
.btn-ghost { background: transparent !important; color: var(--forest) !important; border: 1.5px solid var(--forest) !important; }
.mini-btn { background: var(--forest) !important; color: #FBF9F0 !important; }

/* ---- 表單 ---- */
.form-card, .detail-card, .about-card, .coming-panel {
  background: #FFFFFF !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}
.form-group label { color: var(--ink) !important; }
.form-group input, .form-group select, .form-group textarea {
  background: #FFFFFF !important; border: 1.5px solid var(--line) !important; color: var(--ink) !important;
}
.hint { color: var(--muted) !important; }
.coming-panel h2, .about-card h3, .detail-card h2 { color: var(--ink) !important; }

/* ---- 底部導航：米白 + 黑圖標 + 綠選中 ---- */
.app-tabbar {
  background: rgba(250,249,241,.98) !important;
  border-top: 1px solid var(--line) !important;
  backdrop-filter: none !important;
}
.app-tab { color: var(--ink) !important; }
.app-tab.on { color: var(--forest) !important; }
.app-tab.on::after { background: var(--forest) !important; }

/* ---- 頁腳 ---- */
.site-footer {
  background: #F1EFE2 !important;
  color: var(--muted) !important;
  border-top: 1px solid var(--line) !important;
}
.site-footer a { color: var(--forest) !important; }

/* ---- 其他雜項 ---- */
.path-card { background: #FFFFFF !important; border: 1px solid var(--line) !important; }
.path-num { background: var(--forest) !important; color: #FBF9F0 !important; }
.path-card h3 { color: var(--ink) !important; }
.path-card p { color: var(--muted) !important; }
.viz-box { background: #FFFFFF !important; border: 1px solid var(--line) !important; }
.stat-card, .cstat { background: #FFFFFF !important; border: 1px solid var(--line) !important; }
.heatmap-svg rect.h0 { fill: #E7E7DA !important; }
.heatmap-svg rect.h1 { fill: #C9D8AC !important; }
.heatmap-svg rect.h2 { fill: #7E9A4E !important; }
.heatmap-svg rect.h3 { fill: #55782C !important; }


/* LIGHT v2 — 修正卡片圖片溢出與細節 */
.card, .card--text, .whatson .card { overflow: hidden !important; }
.card-poster, .whatson .card-poster {
  width: 100% !important; display: block !important;
  object-fit: cover !important;
  border-radius: 13px 13px 0 0 !important;
  margin: 0 !important;
}
.whatson .card-body, .card-body { padding: 0 !important; }
.whatson .card-title { padding: 14px 16px 0 !important; }
.whatson .card-meta { margin: 10px 16px 0 !important; padding: 0 !important; }
.whatson .card-tags { padding: 10px 16px 0 !important; }
.whatson .card-foot { margin: 10px 16px 14px !important; }
.card-meta li:last-child { border-bottom: 0 !important; }
/* 標題更貼近參考圖（黑、重、緊） */
.card-title, .whatson .card-title { font-weight: 900 !important; letter-spacing: -.01em !important; }
.section-head h2 { font-weight: 900 !important; }
.bs-cn { font-weight: 900 !important; }
/* ==========================================================================
   LIGHT v3 — 收尾：卡片比例、頁首山形、標籤配色
   ========================================================================== */

/* 桌面卡片：3 欄、4:3 圖 */
@media (min-width: 900px) {
  .whatson .card-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
  .whatson .card-poster { aspect-ratio: 4 / 3; max-height: 320px; }
  .whatson .card-title { font-size: 19px; }
}
/* 平板：2 欄 */
@media (min-width: 640px) and (max-width: 899px) {
  .whatson .card-grid { grid-template-columns: 1fr 1fr; }
  .whatson .card-poster { aspect-ratio: 4 / 3; }
}

/* 內頁頁首：加山形 + 重排箭頭 */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #F4F2E4 0%, #E9EBD6 100%) !important;
}
.page-hero::after {
  content: "" !important; display: block !important;
  position: absolute; right: -4%; bottom: -6%;
  width: 46%; max-width: 420px; height: 78%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 220' preserveAspectRatio='xMaxYMax meet'%3E%3Cpolygon points='320,220 320,40 250,130 190,50 120,170 60,100 0,220' fill='%23A7B987' opacity='.5'/%3E%3Cpolygon points='320,220 320,110 260,180 205,120 140,215 80,160 30,220' fill='%23506B3E' opacity='.45'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right bottom; background-size: contain;
  z-index: 1; pointer-events: none;
}
.page-hero > * { position: relative; z-index: 3; }
.ph-arrow {
  position: absolute !important; right: 24px; bottom: 20px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--forest) !important; color: #FBF9F0 !important;
  display: grid !important; place-items: center;
  font-size: 18px; z-index: 4;
}

/* 「全部」連結：綠色方塊箭頭 */
.head-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; color: var(--ink) !important; }
.head-link::after {
  content: ""; display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 5px;
  background: var(--forest); color: #FBF9F0; font-size: 12px;
}

/* 標籤／截止：綠系 */
.chip { background: #FFFFFF !important; border: 1px solid var(--line) !important; color: var(--ink) !important; }
.deadline, .deadline.ok { background: transparent !important; color: var(--forest) !important; font-weight: 800; border: 0 !important; }
.deadline.closed { color: #A6543A !important; }
.tag-pill { background: var(--sub) !important; color: var(--ink) !important; border: 0 !important; }

/* 卡片圖片區底色（載入前） */
.card-poster { background: #ECF0E2 !important; }

/* 分類膠囊數量 */
.cat-pill .cp-n { opacity: .8; }

/* 深綠 CTA 保持深綠但用橄欖 */
.cta-band { background: var(--forest) !important; border-radius: 18px; }
.page-hero { border-radius: 18px; }
.section-tint { border-radius: 18px; }


/* LIGHT v4 — 卡片結構對齊參考圖：標籤列在白底、圖片內縮圓角 */
.card, .whatson .card { display: flex !important; flex-direction: column; }
.card-top {
  position: static !important;
  order: -1;
  padding: 12px 14px 10px !important;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  background: #FFFFFF;
}
.card-save { top: 12px !important; right: 12px !important; }
.card-poster, .whatson .card-poster {
  order: 0;
  margin: 0 12px !important;
  border-radius: 10px !important;
  width: calc(100% - 24px) !important;
}
.whatson .card-title { order: 1; padding: 14px 16px 0 !important; }
.card-meta { order: 2; }
.whatson .card-tags { order: 3; }
.card-foot { order: 4; }
/* 標籤縮小一點、貼近參考 */
.card-top .chip { padding: 5px 10px !important; font-size: 12.5px !important; border-radius: 8px !important; }
.card-top .deadline { font-size: 12.5px !important; }


/* ==========================================================================
   LIGHT v5 — 對照新版參考圖微調
   ========================================================================== */
/* 標題改炭灰、內文炭黑 */
.bs-cn { color: #4A4A46 !important; letter-spacing: .01em !important; }
.bw-l { color: #4C7A2B !important; }
.bw-w { color: #3A3A35 !important; }
.bs-words .bw-row { line-height: .9 !important; }
.bs-words { margin-bottom: 2px !important; }

/* 四行底下的細線 */
.bs-rule {
  display: block !important;
  width: 58px !important; height: 3px !important;
  background: #C9D8AC !important;
  margin-top: 12px !important;
  border-radius: 2px;
}

/* 山形加大、加層次 */
.bs-mountains { width: 82% !important; right: -12% !important; bottom: -14% !important; opacity: 1 !important; }
@media (min-width: 900px) { .bs-mountains { width: 46% !important; right: 0 !important; bottom: -8% !important; } }

/* 棕櫚葉陰影（右上） */
.brand-showcase::before {
  content: "" !important; display: block !important;
  position: absolute; right: -6%; top: -12%;
  width: 62%; height: 62%;
  background: radial-gradient(ellipse at 70% 20%, rgba(107,124,74,.20), transparent 62%),
              radial-gradient(ellipse at 40% 40%, rgba(107,124,74,.12), transparent 60%);
  filter: blur(2px); z-index: 0; pointer-events: none;
}
.bs-text { z-index: 3; }

/* 卡片右上箭頭：方形細邊 */
.card-save {
  width: 34px !important; height: 34px !important;
  border-radius: 9px !important;
  display: grid !important; place-items: center;
  font-size: 15px !important; font-weight: 800;
  background: #FFFFFF !important;
  border: 1px solid var(--line) !important;
  color: #2F2F2A !important;
}

/* 標籤：比賽＝細邊膠囊；截止＝無邊、炭黑字 */
.card-top .chip {
  border: 1px solid #DAD6C6 !important;
  background: #FFFFFF !important;
  color: #2F2F2A !important;
  font-weight: 700;
}
.card-top .deadline, .card-top .deadline.ok {
  background: transparent !important;
  border: 0 !important;
  color: #2F2F2A !important;
  font-weight: 700;
}

/* 底部導航：選中項綠色橫線在圖標上方 */
.app-tab { position: relative; }
.app-tab.on::after {
  content: ""; position: absolute; left: 50%; top: 0;
  transform: translateX(-50%);
  width: 46px; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--forest) !important;
}
.app-tab.on { color: #2F2F2A !important; }
.app-tab .app-tab-ico { font-size: 22px; }

/* 內頁頁首標題顏色一致 */
.page-hero h1, .section-head h2 { color: #3A3A35 !important; }
.card-title { color: #2F2F2A !important; }

/* LIGHT v6 — banner 細節收尾 */
.bs-rule {
  display: block !important;
  width: 72px !important; height: 4px !important;
  background: #A7B987 !important;
  margin: 14px 0 0 !important;
  border-radius: 2px;
}
.bs-mountains { width: 58% !important; right: -6% !important; bottom: -12% !important; }
@media (min-width: 900px) { .bs-mountains { width: 40% !important; right: 1% !important; bottom: -6% !important; } }
.brand-showcase { padding-bottom: 40px !important; }
@media (min-width: 900px) { .brand-showcase { padding-bottom: 64px !important; } }
/* 文字與山形留白 */
.bs-text { max-width: 82%; }
@media (min-width: 900px) { .bs-text { max-width: 62%; } }

/* Shared language fixes: whole phrases, accessible labels and long English words. */
.bs-words[hidden] { display: none !important; }
html[lang="en"] { --ff: "Inter", "Helvetica Neue", Arial, sans-serif; }
html[lang="en"] .brand-cn { max-width: 220px; font-size: 10px; letter-spacing: .035em; line-height: 1.4; }
html[lang="en"] .card-title, html[lang="en"] .article-card h3 { overflow-wrap: anywhere; }
.header-actions .lang-switch { min-width: 40px; min-height: 44px; display: inline-grid; place-items: center; }
.nav-toggle { min-width: 44px; min-height: 44px; }
.app-tab-ico svg { display: block; width: 23px; height: 23px; }


/* ==========================================================================
   v6 之後重套：箭頭圖示 / 文件卡等高 / 留言框
   ========================================================================== */
/* 自訂箭頭（取代系統 emoji） */
.ar {
  display: inline-block;
  width: .82em; height: .82em;
  vertical-align: -.04em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.8 11.2 11.2 4.8M5.9 4.8h5.3v5.3' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.8 11.2 11.2 4.8M5.9 4.8h5.3v5.3' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.card-more .ar, .card-save .ar { width: 1em; height: 1em; }
/* 「全部」連結的綠色方塊箭頭 */
.head-link::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.8 11.2 11.2 4.8M5.9 4.8h5.3v5.3' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center 58%;
  background-size: 13px 13px;
}

/* 官方文件卡：等高、底部對齊 */
#docs-grid { align-items: stretch; }
#docs-grid .card--text {
  display: flex; flex-direction: column;
  height: 100%;
}
#docs-grid .card--text .card-foot {
  margin-top: auto !important;
  padding-top: 14px;
}
#docs-grid .card--text .article-excerpt { flex: 1 1 auto; }

/* 留言輸入框加大 */
#comment-input {
  min-height: 150px !important;
  padding: 15px 16px !important;
  font-size: 15.5px !important;
  line-height: 1.7 !important;
  border-radius: 12px !important;
}
@media (max-width: 899px) {
  #comment-input { min-height: 180px !important; font-size: 16px !important; }
}
#part-feedback { min-height: 140px !important; }
