/* ===== 視覺設定（參考：米灰底＋亮藍主色＋黃色點綴） ===== */
:root {
  --bg: #F0EDE8;            /* 米灰底 */
  --bg-card: #FFFFFF;
  --bg-soft: #FAF8F4;
  --text: #4a4a4a;
  --text-soft: #7a7a76;
  --heading: #2b2b2b;
  --line: #e2ddd5;
  --accent: #0090D8;        /* 主色：亮藍 */
  --accent-dark: #0072AD;
  --accent-light: #9CDBEF;  /* 淺天藍 */
  --accent-pale: #DDF2FA;
  --yellow: #FFDA00;        /* 點綴 */
  --gray-circle: #B1B2AE;
  --accent-contrast: #ffffff;
  --radius: 20px;
  --font: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-en: "Nunito", "Noto Sans TC", sans-serif;
  --maxw: 1080px;
}
/* ===== 版面 ===== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-weight: 400; color: var(--text); background: var(--bg); line-height: 2; font-size: 15px; letter-spacing: .06em; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.6; margin: 0 0 .7em; color: var(--heading); font-weight: 500; letter-spacing: .08em; }
h1 { font-size: clamp(1.4rem, 3vw, 1.75rem); }
h2 { font-size: clamp(1.1rem, 2.2vw, 1.3rem); margin-top: 2em; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; }
.small { font-size: .82rem; color: var(--text-soft); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 6px 10px; z-index: 10; }
.kicker { font-family: var(--font-en); font-weight: 800; font-size: .68rem; letter-spacing: .2em; color: var(--accent); margin: 0 0 .4em; }

/* 英文小標（h1/h2 的 data-en） */
[data-en]::before { content: attr(data-en); display: block; font-family: var(--font-en); font-weight: 800; color: var(--accent); letter-spacing: .2em; font-size: .68rem; margin-bottom: .3em; }
/* 置中的段落標題：大英文＋中文小標＋短線 */
h2.sec { text-align: center; font-size: .78rem; font-weight: 400; color: var(--text-soft); letter-spacing: .24em; margin: 0 0 3.6em; }
h2.sec::before { font-size: clamp(1.9rem, 4.5vw, 2.6rem); letter-spacing: .1em; line-height: 1.1; margin-bottom: .5em; font-weight: 800; }
h2.sec::after { content: ""; display: block; width: 28px; height: 1px; background: var(--accent); margin: 1.4em auto 0; opacity: .6; }

/* header */
.site-header { background: rgba(240,237,232,.92); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); font-weight: 700; }
.brand small { display: block; font-family: var(--font-en); font-size: .7rem; font-weight: 800; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; line-height: 1.1; }
.brand span { line-height: 1.25; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.nav a { text-decoration: none; color: var(--text); padding: 6px 11px; border-radius: 999px; font-size: .88rem; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.nav a.lang { border: 1.5px solid var(--accent); color: var(--accent); margin-left: 8px; font-family: var(--font-en); font-weight: 800; font-size: .78rem; }
.menu-btn { display: none; background: none; border: 1.5px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 5px 14px; font: inherit; font-size: .9rem; }
@media (max-width: 880px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 70px; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 20px 18px; }
  .nav.open { display: flex; }
  .nav a.lang { margin-left: 0; text-align: center; }
}

/* hero */
.hero { padding: 40px 0 56px; position: relative; }
.hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
.hero .tagline { font-family: var(--font-en); font-weight: 800; color: var(--accent); font-size: .7rem; letter-spacing: .22em; line-height: 1.8; margin-bottom: 1.6em; }
.hero h1 { font-size: clamp(1.45rem, 3vw, 1.95rem); line-height: 1.75; letter-spacing: .1em; font-weight: 500; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: .92rem; max-width: 30em; color: var(--text); }
/* 首屏拼貼（之後可換成照片：img 加 class="photo"） */
.collage { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 440px; }
.tile { border-radius: 22px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; padding: 22px; }
.tile img { width: 100%; height: 100%; object-fit: contain; }
.tile img.photo { object-fit: cover; }
.tile:has(img.photo) { padding: 0; }
.tile.t1 { grid-row: 1 / 3; background: var(--accent-pale); }
.tile.t3 { background: #FAF8F4; }
/* 消息列 */
.newsbar { display: flex; align-items: center; gap: 18px; background: #fff; border-radius: 999px; padding: 6px 6px 6px 26px; margin-top: 40px; text-decoration: none; color: var(--text); font-size: .86rem; box-shadow: 0 4px 18px rgba(0,0,0,.04); }
.newsbar .tag { font-family: var(--font-en); font-weight: 800; font-size: .66rem; letter-spacing: .2em; color: var(--accent); }
.newsbar .date { font-family: var(--font-en); font-size: .78rem; color: var(--text-soft); }
.newsbar .txt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.newsbar .more { background: var(--accent); color: #fff; font-family: var(--font-en); font-weight: 800; font-size: .7rem; letter-spacing: .2em; border-radius: 999px; padding: 10px 26px; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .collage { height: 300px; }
  .newsbar .date { display: none; }
}
@media (max-width: 520px) { .newsbar { padding-left: 18px; gap: 10px; } .newsbar .more { padding: 10px 16px; } .newsbar .txt { white-space: normal; line-height: 1.6; font-size: .82rem; } }

/* 背景超大鏤空字 + 頁尾前的插圖 */
.bigword { font-family: var(--font-en); font-weight: 900; font-size: clamp(3.6rem, 14vw, 10.5rem); letter-spacing: .04em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(0,144,216,.22); pointer-events: none; user-select: none; line-height: .8; text-align: center; }
.closing { position: relative; overflow: hidden; padding-top: 40px; text-align: center; }
.closing img { position: relative; z-index: 1; width: min(380px, 70%); display: block; margin: 0 auto -6px; }
.closing .bigword { position: relative; margin-top: -0.55em; }

/* 內頁標題 */
.page-head { padding: 56px 0 24px; position: relative; }
.head-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.page-head h1::before { font-size: clamp(1.9rem, 5vw, 2.7rem); font-weight: 800; letter-spacing: .1em; line-height: 1.1; margin-bottom: .55em; }
.page-head h1 { font-size: .85rem; color: var(--text-soft); font-weight: 400; letter-spacing: .24em; }
.page-head h1::after { content: ""; display: block; width: 28px; height: 1px; background: var(--accent); opacity: .6; margin: 1.2em 0 0; }
.page-head p { max-width: 30em; font-size: .95rem; }
.head-art { background: #fff; border-radius: 22px; padding: 28px; height: 260px; display: flex; align-items: center; justify-content: center; }
.head-art img { max-height: 100%; width: auto; }
@media (max-width: 760px) { .head-grid { grid-template-columns: 1fr; gap: 24px; } .head-art { height: 200px; } }

.section { padding: 88px 0; }
.section.alt { background: var(--bg-soft); }
.prose { max-width: 44em; margin: 0 auto; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--accent); }

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-block; padding: 12px 34px; border-radius: 999px; background: var(--accent); color: var(--accent-contrast); text-decoration: none; font-size: .88rem; font-weight: 500; letter-spacing: .14em; transition: background .2s; }
.btn:hover { background: var(--accent-dark); }
.btn.outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn.outline:hover { background: var(--accent); color: #fff; }

/* 卡片：細線、輕量 */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 20px; }
.card { border-radius: var(--radius); padding: 30px 28px; background: var(--bg-card); }
.card h3 { margin-bottom: .5em; }
.card h3::after { content: ""; display: block; width: 20px; height: 1px; background: var(--accent); margin-top: .7em; }
.card p { font-size: .9rem; }
.card p:last-child { margin-bottom: 0; }
.card ul { padding-left: 1.2em; margin: 0; font-size: .9rem; }
.card li::marker { color: var(--accent); }
.card .num { font-family: var(--font-en); font-size: .68rem; color: var(--accent); font-weight: 800; letter-spacing: .2em; }

/* 插圖＋文字交錯列 */
.rows { display: grid; gap: 64px; max-width: 920px; margin: 0 auto; }
.row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.row.rev > figure { order: 2; }
.row figure { background: #fff; border-radius: 22px; padding: 30px; height: 250px; display: flex; align-items: center; justify-content: center; }
.row figure img { max-height: 100%; }
.row h3 { font-size: 1.12rem; }
.row p { font-size: .92rem; }
@media (max-width: 760px) { .rows { gap: 48px; } .row { grid-template-columns: 1fr; gap: 20px; } .row.rev > figure { order: 0; } .row figure { height: 200px; } }

/* 做法圖解：插圖＋圓形以細線串起來 */
.diagram { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.diagram-art img { width: 100%; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.flow::before { content: ""; position: absolute; left: 12%; right: 12%; top: 70px; border-top: 1px dashed var(--accent); opacity: .6; }
.flow li { text-align: center; position: relative; }
.flow .dot { width: 140px; height: 140px; max-width: 100%; aspect-ratio: 1; margin: 0 auto 16px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-size: .95rem; font-weight: 500; letter-spacing: .1em; position: relative; }
.flow .dot small { font-family: var(--font-en); font-weight: 800; font-size: .6rem; letter-spacing: .2em; opacity: .85; }
.flow .d1 .dot { background: var(--accent); }
.flow .d2 .dot { background: var(--accent-light); color: #10425c; }
.flow .d3 .dot { background: var(--gray-circle); color: #2b2b2b; }
.flow .d4 .dot { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.flow li p { font-size: .84rem; line-height: 1.8; margin: 0; padding: 0 6px; }
@media (max-width: 900px) { .diagram { grid-template-columns: 1fr; } .diagram-art { max-width: 220px; margin: 0 auto; } }
@media (max-width: 640px) { .flow { grid-template-columns: 1fr 1fr; row-gap: 28px; } .flow::before { display: none; } .flow .dot { width: 120px; height: 120px; } }

/* 參與方式 */
.joins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.join { text-decoration: none; color: var(--text); text-align: center; }
.join figure { background: #fff; border-radius: 50%; aspect-ratio: 1; width: 78%; margin: 0 auto 22px; display: flex; align-items: center; justify-content: center; padding: 13%; transition: transform .25s; }
.join:hover figure { transform: translateY(-4px); }
.join:nth-child(1) figure { background: var(--accent-pale); }
.join h3 { margin-bottom: .5em; }
.join p { font-size: .88rem; }
.join .go { display: inline-block; font-size: .84rem; color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.join .go::after { content: " →"; }
@media (max-width: 760px) { .joins { grid-template-columns: 1fr; gap: 48px; } .join figure { width: 220px; } }

/* 圓形（其他頁仍可用） */
.circles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; justify-items: center; }
.circle { width: 100%; max-width: 300px; aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 34px; color: #fff; text-decoration: none; }
.circle.c1 { background: var(--accent); } .circle.c2 { background: var(--accent-light); color: #10425c; } .circle.c3 { background: var(--gray-circle); color: #2b2b2b; }

.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.steps li { counter-increment: s; background: var(--bg-card); border-radius: var(--radius); padding: 24px 20px; text-align: center; font-size: .88rem; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--font-en); font-weight: 800; font-size: 1.3rem; color: var(--accent); line-height: 1.1; margin-bottom: 10px; }
.steps li strong { display: block; color: var(--heading); font-weight: 500; margin-bottom: 4px; font-size: .95rem; }

.table-wrap { overflow-x: auto; background: var(--bg-card); border-radius: var(--radius); padding: 8px 10px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .88rem; }
th, td { border-bottom: 1px solid var(--line); padding: 14px 16px; text-align: left; vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: none; }
thead th { color: var(--accent); font-weight: 500; }
tbody th { color: var(--heading); font-weight: 500; white-space: nowrap; }

.note { background: #fff; border-left: 3px solid var(--yellow); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0; font-size: .9rem; }
.figure { background: #fff; border-radius: var(--radius); padding: 22px; margin: 28px 0; }
.figure figcaption { font-size: .82rem; color: var(--text-soft); margin-top: 10px; text-align: center; }
.form-embed { width: 100%; min-height: 720px; border: none; background: #fff; border-radius: var(--radius); margin-top: 16px; }
.center { text-align: center; }

/* footer */
.site-footer { background: var(--accent); color: #fff; padding: 44px 0 20px; font-size: .9rem; margin-top: 0; position: relative; overflow: hidden; }
.site-footer a { color: #fff; }
.site-footer strong { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; position: relative; z-index: 1; }
.footer-inner p { margin: 4px 0 0; color: rgba(255,255,255,.85); font-size: .9rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; font-size: .92rem; }
.site-footer .small { color: rgba(255,255,255,.75); position: relative; z-index: 1; }

/* 審稿標記：平常隱藏，網址加 ?review 才顯示 */
.aux { display: none; }
body.review .aux { display: inline; }
body.review .aux-block { outline: 2px dashed #c58a00; outline-offset: 4px; }
.section:not(.alt) + .section:not(.alt) { padding-top: 16px; }
