@charset "utf-8";

/* 暉盈國際事業有限公司 — 製圖語彙
   中文一律系統黑體，不下載、不閃爍
   數值使用自行託管的窄體子集（8 KB，僅拉丁字母數字） */

/* 跨頁淡入轉場（支援的瀏覽器自動生效，其餘忽略） */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

@font-face {
  font-family: "HY Num";
  src: url("../font/num-500.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "HY Num";
  src: url("../font/num-700.woff2") format("woff2");
  font-weight: 601 900; font-style: normal; font-display: swap;
}

:root {
  /* 紙面 —— 暖米紙色，配深藍版頭像牛皮紙上的曬圖 */
  --paper:   #EFE9DB;
  --paper-2: #E6DDC8;
  --sheet:   #FFFFFF;

  /* 墨 */
  --ink:   #131C26;
  --ink-2: #3D4854;
  --muted: #69737F;

  /* 石板藍（方案 B）—— 深色帶與反白剖面圖的底 */
  --blue:   #24506B;
  --blue-2: #2F6183;

  --rule:   #C3B99F;
  --rule-2: #D9D1BC;
  --rev:    #24506B;   /* 強調色＝石板藍，全站不再用紅 */
  --sand:   #D8CFB4;   /* 深色面上的暖灰點綴 */

  --w-page: 1280px;
  --w-text: 780px;

  --f-num: "HY Num", "PingFang TC", "Microsoft JhengHei", sans-serif;

  /* 內文一律系統黑體 */
  --f-body: "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", system-ui, sans-serif;

  /* 標題字體 —— 固定系統黑體 */
  --f-disp:  "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", sans-serif;
  --w-disp:  700;
  --ls-disp: .02em;
  --sc-disp: 1;      /* 字級倍率 */
  --lh-disp: 1.42;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15.5px;
  line-height: 1.9;
  font-feature-settings: "palt" 1;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--f-disp);
  font-weight: var(--w-disp);
  letter-spacing: var(--ls-disp);
  line-height: var(--lh-disp);
}

:focus-visible { outline: 2.5px solid var(--rev); outline-offset: 2px; }

.page { width: min(var(--w-page), calc(100% - 48px)); margin: 0 auto; }
.text { width: min(var(--w-text), calc(100% - 48px)); margin: 0 auto; }

.num { font-family: var(--f-num); font-weight: 600; letter-spacing: .015em; font-variant-numeric: tabular-nums; }

/* ── 頁首 ───────────────────────────────────── */

.masthead {
  position: sticky; top: 0; z-index: 60;
  background: var(--sheet);
  border-bottom: 2px solid var(--ink);
}
.masthead .page { display: flex; align-items: center; gap: 22px; min-height: 78px; }

.mark { display: flex; align-items: center; gap: 13px; }
.mark img { height: 40px; width: auto; }
.mark .nm {
  font-family: var(--f-disp); font-weight: var(--w-disp);
  font-size: 16px; line-height: 1.25; letter-spacing: var(--ls-disp); white-space: nowrap;
}
.mark .nm small {
  display: block; font-family: var(--f-num); font-weight: 500;
  font-size: 11.5px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  padding: 9px 13px; font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s, background-color .15s;
}
.nav a:hover { color: var(--blue); border-bottom-color: var(--blue); }
.nav a.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 700; }
.nav .ask {
  margin-left: 12px; padding: 11px 20px;
  background: var(--ink); color: #fff; font-weight: 700;
  border: 2px solid var(--ink); border-bottom-width: 2px;
}
.nav .ask:hover, .nav a.ask.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.nav .lang {
  margin-left: 8px; padding: 8px 12px; font-family: var(--f-num); font-weight: 600;
  font-size: 14px; letter-spacing: .06em; border: 2px solid var(--rule); color: var(--ink-2);
  transition: color .15s, border-color .15s, background-color .15s;
}
.nav .lang:hover { border-color: var(--blue); color: #fff; background: var(--blue); }

.navbtn {
  display: none; margin-left: auto;
  border: 2px solid var(--ink); background: var(--sheet); color: var(--ink);
  padding: 9px 15px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}

/* ── 深色大版頭 ─────────────────────────────── */

.hero {
  position: relative; background: var(--blue); color: #fff;
  border-bottom: 3px solid var(--ink); overflow: hidden;
}
.hero > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .42;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(36,80,107,.84) 0%, rgba(36,80,107,.62) 55%, rgba(36,80,107,.4) 100%);
}
.hero .page { position: relative; z-index: 1; padding: 92px 0 84px; }

/* 次要頁面版頭：固定框高，讓底圖在三條產品線／各部位頁一律等大，
   不受標題行數或剖面圖層數影響 */
.hero.sub .page { padding: 64px 0; min-height: 420px; align-content: center; }

.hero-2col { display: grid; grid-template-columns: minmax(0,1fr) 520px; gap: 60px; align-items: center; }
.hero h1 {
  font-size: calc(clamp(31px, 4.1vw, 50px) * var(--sc-disp));
  max-width: 19ch; margin-bottom: 22px; color: #fff;
}
.hero .lead { max-width: 44ch; color: #C6D2DC; font-size: 16.5px; }
.hero .acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* 淺色版頭（次要頁面） */
.head { background: var(--sheet); border-bottom: 3px solid var(--ink); }
.head .page { padding: 58px 0 52px; }
.head h1 {
  font-size: calc(clamp(29px, 3.6vw, 44px) * var(--sc-disp));
  max-width: 22ch; margin-bottom: 18px;
}
.head .lead { max-width: 46ch; color: var(--ink-2); font-size: 16.5px; }
.head-2col { display: grid; grid-template-columns: minmax(0,1fr) 1fr; gap: 52px; align-items: center; }
.head-fig { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.head-fig > .section-fig { display: flex; flex-direction: column; justify-content: center; }
.head-fig > .plate { display: flex; flex-direction: column; }
.head-fig > .plate img { flex: 1 1 auto; min-height: 0; }

.tag {
  display: inline-block; font-family: var(--f-num); font-weight: 700;
  font-size: 12.5px; letter-spacing: .4em; color: var(--muted); margin-bottom: 16px;
}
.hero .tag { color: var(--sand); }

/* ── 區塊 ───────────────────────────────────── */

.band { background: var(--sheet); border-bottom: 3px solid var(--ink); }
.band.grey { background: var(--sheet); }
.band.dark { background: var(--blue); color: #C6D2DC; }
.band.dark h2, .band.dark h3 { color: #fff; }
.band > .page, .band > .text { padding: 74px 0; }
.band.slim > .page, .band.slim > .text { padding: 46px 0; }

.cap { margin-bottom: 40px; max-width: 58ch; }
.cap .no { font-family: var(--f-body); font-size: 12.5px; letter-spacing: .16em; color: var(--muted); margin-bottom: 9px; font-weight: 700; }
.band.dark .cap .no { color: #9DAEBC; }
.cap h2 { font-size: calc(clamp(23px, 2.7vw, 32px) * var(--sc-disp)); margin-bottom: 12px; }
.cap p { color: var(--muted); font-size: 15.5px; }
.band.dark .cap p { color: #9DAEBC; }

/* ── 圖面索引 ───────────────────────────────── */

.index { border-top: 2px solid var(--ink); }
.index a {
  display: flex; gap: 24px; align-items: center;
  padding: 24px 12px; border-bottom: 1px solid var(--rule);
  transition: background-color .15s, padding-left .2s;
}
.index a:hover { background: var(--paper-2); padding-left: 22px; }
.band.dark .index { border-top-color: rgba(255,255,255,.5); }
.band.dark .index a { border-bottom-color: rgba(255,255,255,.16); }
.band.dark .index a:hover { background: rgba(255,255,255,.07); }
.index .code { flex: 0 0 52px; font-family: var(--f-num); font-size: 21px; font-weight: 600; color: var(--muted); }
.index a:hover .code { color: var(--rev); }
.index h3 { flex: 1 1 210px; min-width: 0; font-size: calc(22px * var(--sc-disp)); }
.index .sub { display: block; font-family: var(--f-num); font-weight: 500; font-size: 12.5px; color: var(--muted); letter-spacing: .1em; margin-top: 2px; text-transform: uppercase; }
.index .desc { flex: 1 1 250px; min-width: 0; color: var(--ink-2); font-size: 14px; line-height: 1.8; }
.band.dark .index .desc { color: #9DAEBC; }
.index .go { flex: 0 0 92px; font-family: var(--f-num); font-weight: 600; font-size: 15px; color: var(--ink-2); text-align: right; transition: color .15s, transform .2s; }
.index a:hover .go { color: var(--rev); transform: translateX(5px); }
.band.dark .index .go, .band.dark .index .code { color: #8FA3B4; }
.band.dark .index a:hover .go, .band.dark .index a:hover .code { color: var(--sand); }

/* ── 產品卡（含照片）─────────────────────────── */

.cards { display: flex; flex-wrap: wrap; gap: 22px; }
.card {
  flex: 1 1 300px; min-width: 0; background: var(--sheet);
  border: 2px solid var(--ink); display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover {
  border-color: var(--blue);
  box-shadow: 0 10px 28px rgba(19,28,38,.14);
  transform: translateY(-3px);
}
.card .ph { position: relative; border-bottom: 2px solid var(--ink); overflow: hidden; }
.card:hover .ph { border-bottom-color: var(--blue); }
.card .ph img { width: 100%; height: 230px; object-fit: cover; transition: transform .4s ease; }
.card:hover .ph img { transform: scale(1.05); }
.card .bd { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: calc(21px * var(--sc-disp)); margin-bottom: 4px; transition: color .15s; }
.card:hover h3 { color: var(--blue); }
.card .en { font-family: var(--f-num); font-size: 12.5px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; margin-bottom: 12px; }
.card p { font-size: 14px; color: var(--ink-2); line-height: 1.8; flex: 1; margin-bottom: 16px; }
.card .go {
  font-family: var(--f-num); font-weight: 600; font-size: 14.5px;
  color: var(--ink); letter-spacing: .04em;
  transition: color .15s, transform .2s;
}
.card:hover .go { color: var(--blue); transform: translateX(5px); }

/* ── 照片 ───────────────────────────────────── */

.plate { margin: 0; border: 2px solid var(--ink); background: var(--sheet); padding: 9px 9px 0; }
.plate img { width: 100%; height: 208px; object-fit: cover; }
.plate figcaption {
  padding: 9px 2px 10px; font-size: 12px; color: var(--muted);
  display: flex; justify-content: space-between; gap: 12px;
}
.plate figcaption span:last-child { font-family: var(--f-num); font-weight: 600; letter-spacing: .06em; }
.plate.tall img { height: 322px; }
.plate.wide img { height: 240px; }
.plates { display: flex; flex-wrap: wrap; gap: 20px; }
.plates > figure { flex: 1 1 260px; min-width: 0; }

/* 滿版照片牆 */
.wall { display: flex; flex-wrap: wrap; gap: 3px; border-top: 3px solid var(--ink); }
.wall figure { position: relative; margin: 0; flex: 1 1 240px; min-width: 0; }
.wall img { width: 100%; height: 100%; min-height: 210px; object-fit: cover; }
.wall figcaption {
  position: absolute; left: 0; bottom: 0; right: 0;
  background: linear-gradient(transparent, rgba(15,37,52,.9));
  color: #fff; font-size: 12.5px; padding: 26px 14px 11px;
  display: flex; justify-content: space-between; gap: 10px;
}
.wall figcaption span:last-child { font-family: var(--f-num); font-weight: 600; color: #A9BCCB; }

/* ── 剖面圖 ─────────────────────────────────── */

.section-fig { margin: 0; background: var(--paper-2); border: 2px solid var(--ink); padding: 22px 20px 16px; }
.section-fig svg { width: 100%; height: auto; display: block; }
.section-fig figcaption {
  margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--rule);
  font-size: 12.5px; color: var(--muted);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.section-fig figcaption b { font-family: var(--f-disp); font-weight: var(--w-disp); color: var(--ink); letter-spacing: .04em; }
.section-fig.rev { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.42); }
.section-fig.rev figcaption { border-top-color: rgba(255,255,255,.28); color: #9DAEBC; }
.section-fig.rev figcaption b { color: #fff; }

/* ── 版頭剖面圖輪播（首頁）───────────────────── */

.figslider { position: relative; }
.figslider .trk {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.figslider .trk::-webkit-scrollbar { display: none; }
.figslider .sl { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; }
.figslider .sl .section-fig { height: 100%; }
.figslider .dots { display: flex; gap: 9px; justify-content: center; margin-top: 16px; }
.figslider .dots button {
  width: 34px; height: 5px; padding: 0; border: 0; cursor: pointer;
  background: rgba(255,255,255,.28);
}
.figslider .dots button:hover { background: rgba(255,255,255,.55); }
.figslider .dots button[aria-current="true"] { background: #fff; }

.lay-l  { font-family: "PingFang TC","Microsoft JhengHei",sans-serif; font-size: 12.5px; fill: #131C26; }
.lay-n  { font-family: "HY Num","PingFang TC",sans-serif; font-weight: 600; font-size: 14px; fill: #3D4854; }
.lay-r  { fill: #24506B; }
.lay-ld { stroke: #69737F; stroke-width: .9; }
.rev .lay-l { fill: #E4EDF4; }
.rev .lay-n { fill: #AFC5D4; }
.rev .lay-r { fill: #D8CFB4; }
.rev .lay-ld { stroke: #6E8598; }

/* ── 明細表 ─────────────────────────────────── */

.schedule { border-top: 2px solid var(--ink); }
.row { display: flex; align-items: stretch; border-bottom: 1px solid var(--rule); scroll-margin-top: 96px; }
.row > .k {
  flex: 0 0 76px; padding: 28px 18px 28px 0; border-right: 1px solid var(--rule);
  font-family: var(--f-num); font-weight: 600; font-size: 20px; color: var(--muted);
}
.row > .v { flex: 1 1 auto; min-width: 0; padding: 28px 0 28px 26px; }
.row h3 { font-size: calc(21px * var(--sc-disp)); margin-bottom: 4px; }
.row .role { font-family: var(--f-body); font-weight: 700; font-size: 12.5px; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.row > .v > p { color: var(--ink-2); font-size: 15px; max-width: 72ch; margin-bottom: 20px; }

/* 收合式明細列：summary 只露出 名稱＋小標＋一句簡述；
   展開時整列鋪上淺藍透明底，內部各區塊再各自成一張白卡 */
.schedule details.acc { border-bottom: 1px solid var(--rule); scroll-margin-top: 96px; }
.schedule details.acc[open] {
  background: rgba(36,80,107,.06);
  box-shadow: inset 3px 0 0 var(--blue);
}
/* 展開後簡述移入內文區，標題列只留 編號＋名稱＋小標 */
.schedule .acc[open] summary .brief { display: none; }
.schedule .acc[open] summary .t { flex: 1 1 auto; }
.schedule .acc summary {
  display: flex; align-items: center; gap: 26px;
  padding: 21px 20px; cursor: pointer; list-style: none;
  transition: background-color .15s;
}
.schedule .acc:not([open]) summary:hover { background: rgba(36,80,107,.05); }
.schedule .acc summary::-webkit-details-marker { display: none; }
.schedule .acc summary .k {
  flex: 0 0 50px; font-family: var(--f-num); font-weight: 600;
  font-size: 19px; color: var(--muted);
}
.schedule .acc summary .t { flex: 0 0 250px; min-width: 0; }
.schedule .acc summary h3 { font-size: calc(19px * var(--sc-disp)); }
.schedule .acc summary .role {
  display: block; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; color: var(--muted); margin-top: 4px;
}
.schedule .acc summary .brief {
  flex: 1 1 240px; min-width: 0;
  font-size: 14px; color: var(--ink-2); line-height: 1.75;
}
.schedule .acc summary .tg {
  flex: 0 0 32px; height: 32px; position: relative;
  border: 2px solid var(--ink); background: var(--sheet);
  transition: background-color .15s, border-color .15s, transform .15s;
}
.schedule .acc summary:hover .tg { border-color: var(--blue); transform: scale(1.08); }
.schedule .acc summary .tg::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 3px;
  background: var(--ink); transform: translate(-50%,-50%);
}
.schedule .acc summary .tg::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 13px;
  background: var(--ink); transform: translate(-50%,-50%);
}
.schedule .acc[open] summary .tg::before { display: none; }
.schedule .acc[open] summary .tg { background: var(--ink); }
.schedule .acc[open] summary .tg::after { background: #fff; }
.schedule .acc summary:hover h3 { color: var(--rev); }
.schedule .acc .rb { padding: 2px 20px 28px 96px; }
.schedule .acc .rb > p { color: var(--ink-2); font-size: 15px; max-width: 72ch; margin-bottom: 18px; }

.cols { display: flex; flex-wrap: wrap; gap: 34px; border-top: 1px dashed var(--rule); padding-top: 18px; }
.cols > div { flex: 1 1 260px; min-width: 0; }
.cols h5 { font-family: var(--f-body); font-weight: 700; font-size: 12px; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; }

/* 展開後的內部區塊：各自一張白卡 */
.acc .cols { border-top: 0; padding-top: 0; gap: 12px; }
.acc .cols > div {
  flex: 1 1 220px; background: var(--sheet);
  border: 1px solid rgba(36,80,107,.18); padding: 15px 18px 17px;
}
.acc .cols h5 {
  color: var(--blue); border-bottom: 1px solid rgba(36,80,107,.14);
  padding-bottom: 8px; margin-bottom: 12px;
}
.acc .cols .use { color: var(--ink-2); font-size: 14px; line-height: 1.9; }

.marks { list-style: none; margin: 0; padding: 0; }
.marks li { font-size: 14px; line-height: 1.8; color: var(--ink-2); padding-left: 18px; position: relative; margin-bottom: 7px; }
.marks li:last-child { margin-bottom: 0; }
.marks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 9px; height: 2px; background: var(--ink); }

.data { display: block; }
.data div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dotted var(--rule); font-size: 13.5px; }
.data div:last-child { border-bottom: 0; }
.data span:first-child { color: var(--muted); white-space: nowrap; }
.data b { font-family: var(--f-num); font-weight: 600; font-size: 15.5px; text-align: right; }

/* ── 跳頁索引 ───────────────────────────────── */

.jump { display: flex; flex-wrap: wrap; gap: 0; border: 2px solid var(--ink); margin-bottom: 40px; background: var(--sheet); }
.jump a {
  padding: 12px 16px; font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  border-right: 1px solid var(--rule); flex: 1 1 auto; text-align: center;
  transition: background-color .15s, color .15s;
}
.jump a:last-child { border-right: 0; }
.jump a:hover { background: var(--blue); color: #fff; }

/* ── 色卡（緊湊格狀：hover／點擊顯示色名）──────── */

.swgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.swgrid .sw {
  position: relative; margin: 0; padding: 0; display: block;
  border: 2px solid var(--ink); background: var(--sheet); cursor: pointer;
  font: inherit; overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.swgrid .sw:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(19,28,38,.15); }
.swgrid .sw img { width: 100%; height: 104px; object-fit: cover; display: block; transition: transform .3s ease; }
.swgrid .sw:hover img { transform: scale(1.07); }
.swgrid .sw .nm {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(19,28,38,.9); color: #fff;
  font-family: var(--f-disp); font-size: 13.5px; letter-spacing: .06em;
  padding: 8px 6px; text-align: center;
  opacity: 0; transform: translateY(4px); transition: opacity .16s, transform .16s;
}
.swgrid .sw:hover .nm, .swgrid .sw:focus-visible .nm, .swgrid .sw.on .nm {
  opacity: 1; transform: none;
}

/* ── 表格 ───────────────────────────────────── */

.tbl-wrap { overflow-x: auto; border: 2px solid var(--ink); background: var(--sheet); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th, table.tbl td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.tbl th {
  background: var(--ink); color: #fff; border-bottom: 0;
  font-family: var(--f-body); font-weight: 700; font-size: 12.5px; letter-spacing: .08em;
}
table.tbl td { color: var(--ink-2); }
table.tbl td:first-child { color: var(--ink); font-weight: 500; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tr:nth-child(even) td { background: #F5F5F3; }
table.tbl td.n, table.tbl th.n { text-align: right; }
table.tbl td.n { font-family: var(--f-num); font-weight: 600; font-size: 15.5px; color: var(--ink); }

/* ── 條號文章 ───────────────────────────────── */

.doc { border-top: 2px solid var(--ink); }
.clause { display: flex; align-items: stretch; border-bottom: 1px solid var(--rule); }
.clause .s {
  flex: 0 0 80px; padding: 25px 16px 25px 0; border-right: 1px solid var(--rule);
  font-family: var(--f-num); font-weight: 600; font-size: 15px; color: var(--muted); letter-spacing: .06em;
}
.clause .b { flex: 1 1 auto; min-width: 0; padding: 25px 0 25px 24px; }
.clause h2 { font-size: calc(20px * var(--sc-disp)); margin-bottom: 12px; }
.clause p { color: var(--ink-2); font-size: 15.5px; line-height: 2.05; margin-bottom: 14px; }
.clause p:last-child { margin-bottom: 0; }
.clause b { color: var(--ink); font-weight: 700; }
.clause.note { background: var(--paper-2); }
.band.grey .clause.note { background: var(--sheet); }
.clause.note .s { color: var(--rev); }
.clause.note .b { border-left: 3px solid var(--rev); padding-left: 21px; }

.abstract {
  font-size: 17px; line-height: 2.05; color: var(--ink);
  border-left: 3px solid var(--rev); padding-left: 22px; margin-bottom: 40px;
}

/* ── 文章列表 ───────────────────────────────── */

.posts { border-top: 2px solid var(--ink); }
.posts a {
  display: flex; gap: 28px; align-items: flex-start;
  padding: 24px 12px; border-bottom: 1px solid var(--rule);
  transition: background-color .15s, padding-left .2s;
}
.posts a:hover { background: var(--paper-2); padding-left: 22px; }
.posts a:hover h3 { color: var(--blue); }
.posts h3 { transition: color .15s; }
.posts .th { flex: 0 0 230px; border: 2px solid var(--ink); }
.posts .th img { width: 100%; height: 142px; object-fit: cover; }
.posts a > span:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.posts h3 { font-size: calc(20px * var(--sc-disp)); margin-bottom: 8px; }
.posts p { font-size: 14px; color: var(--muted); line-height: 1.8; }
.posts .meta { flex: 0 0 96px; font-family: var(--f-num); font-weight: 600; font-size: 14px; color: var(--muted); text-align: right; }
.posts a:hover .meta { color: var(--rev); }

/* ── 詢價單 ─────────────────────────────────── */

.form-sheet { border: 2px solid var(--ink); background: var(--sheet); }
.form-hd { display: flex; justify-content: space-between; gap: 16px; padding: 13px 20px; background: var(--ink); color: #fff; flex-wrap: wrap; }
.form-hd b { font-family: var(--f-disp); font-weight: var(--w-disp); font-size: 15px; letter-spacing: .1em; }
.form-hd span { font-family: var(--f-num); font-weight: 600; font-size: 14px; color: #9DAEBC; letter-spacing: .08em; }
.fields { display: flex; flex-wrap: wrap; }
.fld { flex: 0 0 50%; max-width: 50%; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 14px 18px 16px; }
.fld:nth-child(2n) { border-right: 0; }
.fld.full { flex: 0 0 100%; max-width: 100%; border-right: 0; }
.fld label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; letter-spacing: .04em; }
.fld label i { font-family: var(--f-num); font-weight: 600; font-style: normal; color: var(--rev); margin-right: 9px; font-size: 13px; }
.fld input, .fld select, .fld textarea {
  width: 100%; border: 0; border-bottom: 2px solid var(--rule); background: transparent;
  font: inherit; font-size: 15px; color: var(--ink); padding: 4px 0 7px;
}
.fld textarea { min-height: 96px; resize: vertical; line-height: 1.9; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 0; border-bottom-color: var(--rev); }
.form-ft { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px; flex-wrap: wrap; }
.form-ft small { font-size: 13px; color: var(--muted); flex: 1 1 260px; }

/* ── 按鈕 ───────────────────────────────────── */

.btn {
  display: inline-block; padding: 14px 30px;
  font-family: var(--f-body); font-size: 15px; font-weight: 700; letter-spacing: .04em;
  border: 2px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: scale(.98); }
.btn:hover { background: var(--rev); border-color: var(--rev); color: #fff; }
.btn.line { background: var(--sheet); color: var(--ink); }
.btn.line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.rev { background: #fff; color: var(--blue); border-color: #fff; }
.btn.rev:hover { background: var(--rev); border-color: var(--rev); color: #fff; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn.ghost:hover { background: #fff; color: var(--blue); border-color: #fff; }

/* ── 詢問帶 ─────────────────────────────────── */

.ask-band { background: var(--sheet); color: var(--ink-2); border-bottom: 3px solid var(--ink); }
.ask-band .page { padding: 46px 0; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.ask-band h2 { color: var(--ink); font-size: calc(25px * var(--sc-disp)); margin-bottom: 7px; }
.ask-band p { max-width: 60ch; font-size: 14.5px; }
.ask-band .btn { background: var(--ink); color: #fff; border-color: var(--ink); }
.ask-band .btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── 頁尾 ───────────────────────────────────── */

.foot { background: var(--blue); color: #A9B7C4; }
.foot .page { padding: 52px 0 26px; }
.foot .grid { display: flex; flex-wrap: wrap; gap: 36px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.2); }
.foot .grid > div:first-child { flex: 1 1 250px; }
.foot .grid > div { flex: 1 1 150px; min-width: 0; }
.foot img { height: 40px; width: auto; margin-bottom: 14px; }
.foot h4 { font-family: var(--f-body); font-weight: 700; font-size: 12.5px; letter-spacing: .12em; color: #7E90A0; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.foot ul li { margin-bottom: 8px; }
.foot p { font-size: 14px; }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot .end { padding-top: 20px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: #7E90A0; }

/* ── 語言提示 ───────────────────────────────── */

.langbar { background: var(--ink); color: #C6D2DC; font-size: 14px; }
.langbar .page { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 11px 0; flex-wrap: wrap; }
.langbar a { color: #fff; border-bottom: 2px solid rgba(255,255,255,.5); }
.langbar button { background: transparent; border: 2px solid rgba(255,255,255,.35); color: #C6D2DC; padding: 5px 13px; font: inherit; font-size: 13px; cursor: pointer; }

/* ── 常見問題 ───────────────────────────────── */

.qa { border-top: 2px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary {
  cursor: pointer; list-style: none; padding: 19px 44px 19px 0; position: relative;
  font-family: var(--f-disp); font-weight: var(--w-disp); font-size: calc(16.5px * var(--sc-disp));
  letter-spacing: var(--ls-disp);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 13px; height: 3px;
  background: var(--ink); transform: translateY(-50%);
}
.qa summary::before {
  content: ""; position: absolute; right: 11px; top: 50%; width: 3px; height: 13px;
  background: var(--ink); transform: translateY(-50%);
}
.qa details[open] summary::before { display: none; }
.qa .a { padding: 0 44px 22px 0; font-size: 15px; line-height: 2.05; color: var(--ink-2); }

/* ── 動畫（僅首頁剖面圖）─────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .fig-anim .lay { opacity: 0; animation: rise .5s cubic-bezier(.2,.7,.3,1) forwards; }
  .fig-anim .lay:nth-child(1) { animation-delay: .06s }
  .fig-anim .lay:nth-child(2) { animation-delay: .18s }
  .fig-anim .lay:nth-child(3) { animation-delay: .30s }
  .fig-anim .lay:nth-child(4) { animation-delay: .42s }
  .fig-anim .lay:nth-child(5) { animation-delay: .54s }
  .fig-anim .lay:nth-child(6) { animation-delay: .66s }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }

/* ── 響應式 ─────────────────────────────────── */

@media (max-width: 1080px) {
  .hero-2col, .head-2col { grid-template-columns: 1fr; gap: 36px; }
  .hero.sub .page { min-height: 0; padding: 56px 0; }
  .posts a { flex-wrap: wrap; }
  .posts .th { flex: 0 0 180px; }
  .posts .meta { flex: 1 1 100%; text-align: left; }
}

@media (max-width: 760px) {
  .page, .text { width: calc(100% - 32px); }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--sheet); border-bottom: 3px solid var(--ink);
    padding: 8px 16px 18px; margin: 0;
  }
  .nav.open a { border-bottom: 1px solid var(--rule-2); padding: 13px 4px; }
  .nav.open .ask, .nav.open .lang { margin: 10px 0 0; text-align: center; }
  .navbtn { display: block; }
  .masthead .page { position: relative; }
  .band > .page, .band > .text { padding: 48px 0; }
  .hero .page { padding: 54px 0 48px; }
  .head .page { padding: 42px 0 38px; }
  .head-fig { grid-template-columns: 1fr; }
  .cols { gap: 22px; }
  .index a { flex-wrap: wrap; gap: 6px 14px; padding: 20px 0; }
  .index .code { flex: 0 0 40px; }
  .index h3 { flex: 1 1 auto; }
  .index .desc { flex: 1 1 100%; }
  .index .go { display: none; }
  .row { flex-direction: column; }
  .row > .k { flex: none; border-right: 0; border-bottom: 1px dashed var(--rule); padding: 16px 0 10px; }
  .row > .v { padding: 18px 0 26px; }
  .clause { flex-direction: column; }
  .clause .s { flex: none; border-right: 0; padding: 20px 0 0; }
  .clause .b { padding: 10px 0 24px; }
  .clause.note .b { padding-left: 16px; }
  .fld { flex: 0 0 100%; max-width: 100%; border-right: 0; }
  .plates > figure, .cards > .card { flex: 1 1 100%; }
  .posts a { flex-direction: column; gap: 16px; }
  .posts .th { flex: 1 1 100%; }
  .swgrid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .swgrid .sw img { height: 78px; }
  .swgrid .sw .nm { font-size: 12px; padding: 6px 4px; }
  .schedule .acc summary { flex-wrap: wrap; gap: 8px 16px; padding: 18px 14px; }
  .schedule .acc summary .t { flex: 1 1 auto; }
  .schedule .acc summary .brief { flex: 1 1 100%; order: 3; }
  .schedule .acc summary .tg { order: 2; }
  .schedule .acc .rb { padding: 2px 14px 24px; }
  .jump a { flex: 1 1 44%; }
  .wall img { min-height: 190px; }
  .card .ph img { height: 200px; }
  .plate img { height: 190px; }
  .plate.tall img { height: 230px; }
  .posts .th img { height: 180px; }
  .foot .grid > div { flex: 1 1 100%; }
}
