/* ==========================================================================
   嘉潤建設 Jia Ruen — site.css
   ========================================================================== */

:root {
    --ink: #12161a;
    --ink-2: #1b2127;
    --ink-3: #2a3238;
    --paper: #ffffff;
    --sand: #f7f4ee;
    --sand-2: #eae4d9;
    --line: #e3ded5;
    --line-dark: rgba(255, 255, 255, .16);
    --text: #20262c;
    --muted: #686f76;
    --muted-dark: rgba(255, 255, 255, .66);
    --gold: #b3924e;
    --gold-2: #d8bf8b;
    --gold-text: #8a6b31;
    --gold-soft: rgba(179, 146, 78, .13);
    --danger: #b4423a;

    --serif: "Noto Serif TC", "Songti TC", "Source Han Serif TC", serif;
    --sans: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;

    --container: 1200px;
    --narrow: 760px;
    --radius: 2px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.85;
    color: var(--text);
    background: var(--paper);
    letter-spacing: .012em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.42;
    letter-spacing: .02em;
    margin: 0;
    color: var(--ink);
    text-wrap: balance;
}
p { margin: 0 0 1.1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(179, 146, 78, .24); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--ink); color: #fff; padding: 12px 20px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- 容器 ---------- */
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 48px, var(--narrow)); }

/* ---------- 通用元件 ---------- */
.eyebrow {
    font-family: var(--sans);
    font-size: 11.5px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold-text);
    margin: 0 0 18px;
    font-weight: 500;
}
.section-title {
    font-size: clamp(25px, 3.1vw, 38px);
    letter-spacing: .025em;
    font-weight: 600;
}
.section-lead { margin-top: 16px; color: var(--muted); }
.lead { font-size: 17px; color: var(--ink-3); }
.muted { color: var(--muted); }
.note { font-size: 13px; color: var(--muted); }
.empty { color: var(--muted); padding: 48px 0; text-align: center; }
.tnum { font-variant-numeric: tabular-nums; }

.section { padding: clamp(64px, 8vw, 120px) 0; }
.section--tight { padding: clamp(40px, 5vw, 72px) 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: rgba(255, 255, 255, .78); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 32px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap;
}
.section-head--dark .link-arrow { color: var(--gold-2); }

.link-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; letter-spacing: .08em; color: var(--ink);
    border-bottom: 1px solid currentColor; padding-bottom: 3px;
    transition: gap .3s var(--ease), color .3s var(--ease);
}
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover { gap: 14px; color: var(--gold); }

/* ---------- 按鈕 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 0 30px;
    font-size: 14px; letter-spacing: .12em; font-weight: 500;
    border: 1px solid transparent; border-radius: var(--radius);
    cursor: pointer; transition: all .3s var(--ease); text-align: center;
}
.btn__icon { width: 16px; height: 16px; fill: currentColor; flex: none; }
.btn--gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn--gold:hover { background: #9c7d3d; border-color: #9c7d3d; }
.btn--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ink:hover { background: var(--ink-3); border-color: var(--ink-3); }
.btn--line { background: transparent; color: currentColor; border-color: currentColor; }
.btn--line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--danger { background: transparent; color: var(--danger); border-color: rgba(180, 66, 58, .4); }
.btn--danger:hover { background: var(--danger); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 13px; }
.btn--block { width: 100%; }
.btn.is-disabled { opacity: .45; pointer-events: none; cursor: default; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- 標籤 / meta ---------- */
.meta {
    display: flex; align-items: center; gap: 14px;
    font-size: 12.5px; color: var(--muted); margin: 0 0 12px; letter-spacing: .06em;
}
.meta time { font-variant-numeric: tabular-nums; }
.tag {
    display: inline-block; padding: 3px 10px;
    background: var(--gold-soft); color: var(--gold-text);
    font-size: 11.5px; letter-spacing: .08em; border-radius: var(--radius);
}
.chip {
    display: inline-block; padding: 2px 10px; margin-right: 10px;
    background: var(--sand-2); color: var(--ink-3);
    font-size: 11.5px; border-radius: 999px;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 100;
    height: var(--header-h);
    transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.site-header__inner {
    width: min(100% - 48px, var(--container)); margin-inline: auto; height: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: block; line-height: 0; }
.brand__logo { height: 32px; width: auto; transition: opacity .3s var(--ease); }
.brand__logo--dark { display: none; }

.nav { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 28px); }
.nav a {
    font-size: 13px; letter-spacing: .08em; color: rgba(255, 255, 255, .88);
    padding: 6px 0; position: relative; transition: color .3s var(--ease);
}
.nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--gold-2); transform: scaleX(0); transform-origin: left;
    transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-reserve { color: #fff; }

.site-header.is-solid {
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .07);
    height: 68px;
    backdrop-filter: blur(10px);
}
.site-header.is-solid .nav a { color: var(--ink-3); }
.site-header.is-solid .nav a.is-active { color: var(--ink); }
.site-header.is-solid .brand__logo--light { display: none; }
.site-header.is-solid .brand__logo--dark { display: block; }
.site-header.is-solid .header-reserve { color: var(--ink); }
.site-header.is-solid .header-reserve:hover { background: var(--ink); color: #fff; }

/* 首頁以外：預設就實心 */
body:not(.page-home) .site-header {
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .07);
    height: 68px;
}
body:not(.page-home) .site-header .nav a { color: var(--ink-3); }
body:not(.page-home) .site-header .nav a.is-active { color: var(--ink); }
body:not(.page-home) .brand__logo--light { display: none; }
body:not(.page-home) .brand__logo--dark { display: block; }
body:not(.page-home) .header-reserve { color: var(--ink); }

.nav-toggle {
    display: none; width: 44px; height: 44px; padding: 0;
    background: none; border: 0; cursor: pointer;
    flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span {
    display: block; height: 1.5px; width: 26px; margin-inline: auto;
    background: #fff; transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.site-header.is-solid .nav-toggle span,
body:not(.page-home) .nav-toggle span { background: var(--ink); }

/* 抽屜 */
.drawer {
    position: fixed; inset: 0; z-index: 99;
    background: var(--ink); color: rgba(255, 255, 255, .85);
    padding: calc(var(--header-h) + 24px) 32px 40px;
    display: flex; flex-direction: column; justify-content: space-between;
    opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.drawer[hidden] { display: none; }
.drawer.is-open { opacity: 1; transform: none; }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a {
    padding: 16px 0; border-bottom: 1px solid var(--line-dark);
    font-family: var(--serif); font-size: 20px; letter-spacing: .08em;
}
.drawer__nav a.is-active { color: var(--gold-2); }
.drawer__meta { font-size: 13px; color: var(--muted-dark); }
.drawer__meta a:not(.btn) { font-size: 20px; color: var(--gold-2); display: block; margin-bottom: 6px; }
.drawer__meta .btn { margin-bottom: 18px; }
body.is-locked { overflow: hidden; }

/* ---------- Hero（首頁） ---------- */
.hero {
    position: relative; min-height: 100svh; display: flex; align-items: center;
    color: #fff; overflow: hidden; padding-top: var(--header-h);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero__veil {
    position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(10, 14, 18, .82) 0%, rgba(10, 14, 18, .55) 45%, rgba(10, 14, 18, .28) 100%);
}
.hero__inner { position: relative; padding: 40px 0 160px; }
.hero__eyebrow {
    font-size: 11px; letter-spacing: .36em; color: var(--gold-2);
    margin: 0 0 26px; text-transform: uppercase;
}
.hero__title {
    font-size: clamp(32px, 5.4vw, 66px); line-height: 1.26; color: #fff;
    letter-spacing: .025em; margin: 0 0 30px; max-width: 15em;
}
.hero__lead {
    max-width: 32em; color: rgba(255, 255, 255, .8);
    font-size: clamp(14px, 1.35vw, 16px); line-height: 1.95;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

.hero__stats {
    position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
    background: rgba(10, 14, 18, .32); backdrop-filter: blur(6px);
}
.hero__stats-inner { display: flex; gap: clamp(24px, 5vw, 80px); padding: 26px 0; }
.hero__stats-inner > div { display: flex; align-items: baseline; gap: 12px; }
.hero__stats dt {
    font-family: var(--serif); font-size: clamp(26px, 3vw, 38px);
    color: var(--gold-2); line-height: 1; font-variant-numeric: tabular-nums;
}
.hero__stats dt sup { font-size: .5em; }
.hero__stats dd { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .72); letter-spacing: .06em; }
.hero__stats dd small { display: block; font-size: 11px; color: rgba(255, 255, 255, .5); }

.hero__scroll {
    position: absolute; right: clamp(20px, 4vw, 56px); bottom: 140px;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    font-size: 10px; letter-spacing: .3em; color: rgba(255, 255, 255, .65);
    writing-mode: vertical-rl;
}
.hero__scroll i {
    display: block; width: 1px; height: 64px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .7), transparent);
    animation: scrollLine 2.4s infinite;
}
@keyframes scrollLine { 0%, 100% { opacity: .2; transform: scaleY(.4); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- 首頁 intro ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.intro-grid__head .section-title { font-size: clamp(24px, 3vw, 38px); }
.intro-grid__body p { color: #4b545c; }
.intro-grid__actions { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- 網格 ---------- */
.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 消息卡片 ---------- */
.news-card {
    display: flex; flex-direction: column; background: #fff;
    border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(20, 24, 28, .28); }
.news-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand-2); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.media-placeholder {
    display: grid; place-items: center; width: 100%; height: 100%;
    font-family: var(--serif); font-size: 13px; letter-spacing: .3em;
    color: rgba(20, 24, 28, .3); background: var(--sand-2);
}
.news-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.news-card__title { font-size: 18px; margin: 0 0 10px; letter-spacing: .015em; }
.news-card__excerpt {
    font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.85;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 建案卡片 ---------- */
.project-card { display: flex; flex-direction: column; position: relative; }
.project-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-2); }
.project-card--wide .project-card__media { aspect-ratio: 16 / 10; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.06); }
.project-card__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10, 14, 18, .55), transparent 55%);
    opacity: 0; transition: opacity .4s var(--ease);
}
.project-card:hover .project-card__media::after { opacity: 1; }
.project-card__status-badge {
    position: absolute; top: 16px; left: 16px; z-index: 2;
    padding: 4px 12px; background: rgba(255, 255, 255, .92);
    font-size: 11px; letter-spacing: .08em; color: var(--ink);
}
.project-card__body { padding: 20px 0 0; }
.project-card__area { font-size: 12px; letter-spacing: .12em; color: var(--gold-text); margin: 0 0 8px; }
.project-card__name { font-size: 21px; margin: 0 0 6px; letter-spacing: .015em; }
.project-card__status { font-size: 12.5px; color: var(--muted); margin: 0; }
.project-card__intro { font-size: 14px; color: var(--muted); margin: 12px 0 18px; line-height: 1.9; }
.project-card--wide .link-arrow { font-size: 13px; }

/* ---------- 支柱 / 服務 ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.pillar { border-top: 1px solid var(--line-dark); padding-top: 26px; }
.pillar__no {
    display: block; font-family: var(--serif); font-size: 13px;
    letter-spacing: .2em; color: var(--gold-2); margin-bottom: 16px;
}
.pillar h3 { font-size: 20px; margin: 0 0 12px; }
.pillar p { font-size: 13.5px; color: rgba(255, 255, 255, .74); margin: 0; line-height: 1.95; }

.service-grid { gap: 0; border-top: 1px solid var(--line); }
.service { padding: 30px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service:first-child { border-left: 1px solid var(--line); }
.service h3 { font-size: 18px; margin: 0 0 10px; }
.service p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- split CTA ---------- */
.split-cta { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--ink); color: rgba(255, 255, 255, .78); }
.split-cta__media { position: relative; min-height: 420px; overflow: hidden; background: var(--ink-2); }
.split-cta__media img { width: 100%; height: 100%; object-fit: cover; }
.split-cta__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(10, 14, 18, .28) 0%, rgba(10, 14, 18, .62) 72%, rgba(18, 22, 26, .92) 100%);
}
.split-cta__body {
    padding: clamp(40px, 6vw, 88px) clamp(28px, 5vw, 72px);
    display: flex; flex-direction: column; justify-content: center;
}
.split-cta__body .section-title { color: #fff; margin-bottom: 20px; }
.split-cta__body p { max-width: 34em; }
.split-cta__body .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- contact strip ---------- */
.contact-strip { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-strip__info dl { display: grid; gap: 18px; margin: 0 0 28px; }
.contact-strip__info dl > div { display: flex; gap: 18px; align-items: baseline; }
.contact-strip__info dt { font-size: 12px; letter-spacing: .14em; color: var(--gold); min-width: 72px; }
.contact-strip__info dd { margin: 0; font-size: 15px; }
.contact-strip__actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

/* ---------- 內頁 hero ---------- */
.page-hero {
    position: relative; min-height: 46vh; display: flex; align-items: flex-end;
    color: #fff; padding: calc(var(--header-h) + 60px) 0 56px; overflow: hidden;
}
.page-hero--short { min-height: 0; background: var(--ink); color: #fff; padding: calc(var(--header-h) + 56px) 0 56px; }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__veil { position: absolute; inset: 0; background: linear-gradient(to right, rgba(10, 14, 18, .8), rgba(10, 14, 18, .42)); }
.page-hero__inner { position: relative; }
.page-hero__title { font-size: clamp(28px, 4.2vw, 50px); color: #fff; margin: 0 0 14px; letter-spacing: .03em; }
.page-hero--short .page-hero__title { font-size: clamp(26px, 3.4vw, 40px); }
.page-hero__lead { max-width: 44em; color: rgba(255, 255, 255, .76); margin: 0; font-size: 15px; line-height: 1.95; }
.page-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.page-hero--short .btn--line { color: #fff; border-color: rgba(255, 255, 255, .4); }
.page-hero--short .btn--line:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- 麵包屑 ---------- */
.crumb {
    background: var(--sand); border-bottom: 1px solid var(--line);
    font-size: 12px; letter-spacing: .08em; color: var(--muted);
}
.crumb .container, .crumb.container { display: flex; gap: 10px; align-items: center; padding: 12px 0; flex-wrap: wrap; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--gold); }
.crumb--inside { background: none; border: 0; margin-bottom: 18px; }
.crumb--inside.container { padding: 0; }

/* ---------- 建案內頁 ---------- */
.project-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; color: #fff; padding: calc(var(--header-h) + 48px) 0 48px; }
.project-hero__media { position: absolute; inset: 0; }
.project-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.project-hero__veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 14, 18, .82), rgba(10, 14, 18, .3)); }
.project-hero__inner { position: relative; }
.project-hero__title { font-size: clamp(30px, 4.6vw, 54px); color: #fff; margin: 0 0 12px; letter-spacing: .025em; }
.project-hero__meta { display: flex; gap: 12px; align-items: center; color: rgba(255, 255, 255, .76); font-size: 14px; letter-spacing: .08em; margin: 0; }
.project-hero__meta .dot { color: var(--gold-2); }

.project-detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.project-detail__main .section-title { margin-bottom: 20px; }
.feature-list { display: grid; gap: 10px; margin: 28px 0 32px; }
.feature-list li { position: relative; padding-left: 22px; font-size: 14.5px; }
.feature-list li::before {
    content: ""; position: absolute; left: 0; top: .78em;
    width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg);
}
.project-detail__aside {
    background: var(--sand); padding: 32px 28px; border: 1px solid var(--line);
    position: sticky; top: calc(var(--header-h) + 24px);
}
.aside-title {
    font-family: var(--sans); font-size: 13px; letter-spacing: .16em;
    color: var(--gold-text); margin: 0 0 20px; font-weight: 500;
}
.spec-list { margin: 0 0 24px; display: grid; gap: 14px; }
.spec-list > div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dotted var(--line); padding-bottom: 12px; }
.spec-list dt { font-size: 13px; color: var(--muted); flex: none; }
.spec-list dd { margin: 0; font-size: 14px; text-align: right; }
.aside-progress {
    display: flex; gap: 14px; align-items: center; margin-top: 20px;
    padding: 16px; background: #fff; border: 1px solid var(--line);
    transition: border-color .3s var(--ease);
}
.aside-progress:hover { border-color: var(--gold); }
.aside-progress__icon svg { width: 22px; height: 22px; fill: var(--gold); }
.aside-progress strong { display: block; font-size: 14px; }
.aside-progress small { font-size: 11.5px; color: var(--muted); }

/* 關於頁 */
.about-story { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.about-story__body p { color: #4b545c; }
.promise-grid { gap: 1px; background: var(--line); border: 1px solid var(--line); }
.promise { background: #fff; padding: 32px 26px; }
.promise__no { display: block; font-family: var(--serif); color: var(--gold-text); letter-spacing: .18em; margin-bottom: 14px; font-size: 13px; }
.promise h3 { font-size: 19px; margin: 0 0 10px; }
.promise p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.95; }

.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 48px); }
.numbers__item { border-top: 1px solid var(--ink); padding-top: 22px; }
.numbers__num { display: block; font-family: var(--serif); font-size: clamp(34px, 4.4vw, 54px); color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.numbers__num sup { font-size: .42em; color: var(--gold); }
.numbers__label { display: block; margin-top: 10px; font-size: 12.5px; color: var(--muted); letter-spacing: .06em; }

.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.partner { border-top: 1px solid var(--line-dark); padding-top: 22px; }
.partner h3 { font-size: 17px; margin: 0 0 10px; }
.partner p { font-size: 13px; color: rgba(255, 255, 255, .7); margin: 0; line-height: 1.95; }

/* 全能建築 */
.pillar-detail {
    display: grid; grid-template-columns: 320px 1fr; gap: clamp(28px, 5vw, 72px);
    padding: clamp(36px, 5vw, 64px) 0; border-bottom: 1px solid var(--line);
}
.pillar-detail:last-child { border-bottom: 0; }
.pillar-detail__no { display: block; font-family: var(--serif); font-size: clamp(40px, 6vw, 76px); color: var(--sand-2); line-height: 1; margin-bottom: 20px; }
.pillar-detail__head h2 { font-size: clamp(21px, 2.4vw, 30px); }
.pillar-detail__body p { color: #4b545c; }
.check-list { display: grid; gap: 10px; margin: 22px 0 0; }
.check-list li { position: relative; padding-left: 26px; font-size: 14px; color: var(--ink-3); }
.check-list li::before {
    content: ""; position: absolute; left: 2px; top: .62em;
    width: 10px; height: 6px; border-left: 1.5px solid var(--gold);
    border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg);
}

/* 都更 */
.renew-intro { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.renew-intro p { color: #4b545c; }
.track-grid { gap: clamp(24px, 4vw, 56px); }
.track { background: #fff; border: 1px solid var(--line); padding: clamp(28px, 3.6vw, 44px); }
.track h3 { font-size: 22px; margin: 0 0 16px; }
.track p { font-size: 14px; color: var(--muted); line-height: 2; }
.track .check-list { margin-top: 20px; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: step; }
.steps li { border-top: 1px solid var(--ink); padding-top: 20px; }
.steps li span { display: block; font-family: var(--serif); font-size: 12px; letter-spacing: .18em; color: var(--gold-text); margin-bottom: 12px; }
.steps li h3 { font-size: 16px; margin: 0 0 8px; }
.steps li p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.9; }

.case-grid { gap: clamp(20px, 3vw, 36px); }
.case { border: 1px solid var(--line); background: #fff; padding: 28px; }
.case h3 { font-size: 19px; margin: 0 0 10px; }
.case p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 2; }
.case .meta { margin-bottom: 14px; }

/* 都更合作頁 Q&A */
.qa-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
    display: flex; align-items: center; gap: 14px; cursor: pointer;
    padding: 22px 4px; font-family: var(--serif); font-size: 17px; letter-spacing: .03em;
    list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before {
    content: "+"; flex: none; width: 22px; height: 22px; display: grid; place-items: center;
    font-family: var(--sans); font-size: 15px; color: var(--gold-text);
    border: 1px solid var(--line); transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.qa[open] summary::before { content: "−"; background: var(--gold); border-color: var(--gold); color: #fff; }
.qa summary:hover::before { border-color: var(--gold); }
.qa__body { padding: 0 4px 26px 40px; }
.qa__body p { font-size: 14px; color: var(--muted); line-height: 2; margin: 0 0 12px; }
.qa__body p:last-child { margin-bottom: 0; }
.qa__body strong { color: var(--ink); font-weight: 500; }

/* 服務頁 */
.service-list { gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-item { background: #fff; display: flex; gap: 22px; padding: 32px 28px; }
.service-item__no { font-family: var(--serif); color: var(--gold-text); font-size: 14px; letter-spacing: .14em; flex: none; padding-top: 4px; }
.service-item h3 { font-size: 18px; margin: 0 0 10px; }
.service-item p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.95; }

.progress-teaser { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.progress-teaser__lead { color: rgba(255, 255, 255, .76); max-width: 34em; }
.progress-teaser__card { background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark); padding: 36px 30px; text-align: center; }
.progress-teaser__card h3 { font-size: 19px; margin: 16px 0 8px; }
.progress-teaser__card p { font-size: 13px; color: rgba(255, 255, 255, .68); margin: 0 0 22px; }
.lock-badge {
    display: inline-grid; place-items: center; width: 46px; height: 46px;
    border: 1px solid var(--gold); border-radius: 50%;
}
.lock-badge svg { width: 20px; height: 20px; fill: var(--gold, #b99a54); }
.progress-teaser__card .lock-badge svg { fill: var(--gold-2); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    cursor: pointer; padding: 22px 40px 22px 0; position: relative;
    font-family: var(--serif); font-size: 16.5px; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 6px; top: 18px;
    font-size: 20px; color: var(--gold); font-family: var(--sans);
    transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 40px 24px 0; margin: 0; font-size: 14px; color: var(--muted); line-height: 1.95; }

/* ---------- 表單 ---------- */
.form-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.form-layout__intro p { color: var(--muted); }
.form { display: grid; gap: 18px; }
.form--boxed { background: var(--sand); border: 1px solid var(--line); padding: clamp(24px, 3.4vw, 40px); }
.field { display: grid; gap: 8px; }
.field-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.field label { font-size: 12.5px; letter-spacing: .1em; color: var(--ink-3); }
.req { color: var(--danger); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="password"],
.field input[type="date"],
.field input[type="datetime-local"],
.field input[type="file"],
.field select,
.field textarea {
    width: 100%; padding: 12px 14px;
    font-family: inherit; font-size: 14.5px; color: var(--text);
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
    -webkit-appearance: none; appearance: none;
}
.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%236d757c' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 10px;
    padding-right: 36px;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.85; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft);
}
.field--check label { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; letter-spacing: 0; line-height: 1.7; }
.field--check input { width: 16px; height: 16px; margin-top: 4px; accent-color: var(--gold); }
.form-note { font-size: 12px; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inline-form { display: inline; margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
.form-grid__side { display: grid; gap: 18px; align-content: start; }
.form-panel { padding: 0 28px 28px; }
.hint { font-size: 11.5px; color: var(--muted); margin: 0; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; letter-spacing: 0; }
.cover-preview { border: 1px solid var(--line); background: var(--sand); }
.cover-preview img { width: 100%; display: block; }

.contact-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-list { display: grid; gap: 16px; margin: 0 0 32px; }
.contact-list > div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; border-bottom: 1px dotted var(--line); padding-bottom: 14px; }
.contact-list dt { font-size: 12px; letter-spacing: .1em; color: var(--gold-text); }
.contact-list dd { margin: 0; font-size: 14.5px; }
.contact-list dd a:hover { color: var(--gold); }
.map { border: 1px solid var(--line); background: var(--sand); }
.map iframe { display: block; width: 100%; height: 300px; border: 0; filter: grayscale(.25); }

/* ---------- 消息內頁 ---------- */
.article__head { padding: clamp(48px, 6vw, 88px) 0 clamp(24px, 3vw, 40px); }
.article__title { font-size: clamp(24px, 3.4vw, 36px); margin: 0 0 18px; line-height: 1.45; letter-spacing: .02em; }
.article__lead { font-size: 16px; color: var(--muted); margin: 0; line-height: 1.9; }
.article__cover { margin-bottom: clamp(28px, 4vw, 48px); }
.article__cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.prose { font-size: 15.5px; line-height: 2.05; color: #333b42; letter-spacing: .012em; }
.prose p { margin: 0 0 1.4em; }
.prose h2 { font-size: 22px; margin: 2em 0 .8em; }
.prose h3 { font-size: 18px; margin: 1.8em 0 .6em; }
.prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1.4em; }
.prose li { margin-bottom: .5em; }
.prose img { margin: 1.6em 0; }
.prose a { color: var(--gold); border-bottom: 1px solid currentColor; }
.article__foot {
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
    padding: 40px 0 56px; margin-top: 40px; border-top: 1px solid var(--line); flex-wrap: wrap;
}
.share { display: flex; align-items: center; gap: 16px; font-size: 12.5px; color: var(--muted); }
.share a { border-bottom: 1px solid var(--line); }
.share a:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- 分類 tabs / 分頁 ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.tabs a {
    padding: 13px 22px; font-size: 13.5px; letter-spacing: .06em; color: var(--muted);
    border-bottom: 2px solid transparent; margin-bottom: -1px;
    transition: color .25s var(--ease), border-color .25s var(--ease);
}
.tabs a:hover { color: var(--ink); }
.tabs a.is-active { color: var(--ink); border-color: var(--gold); }
.tabs--admin { margin: 0 0 24px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 56px; flex-wrap: wrap; }
.pager a, .pager .is-current, .pager .is-disabled, .pager__gap {
    min-width: 40px; height: 40px; display: inline-grid; place-items: center;
    padding: 0 12px; font-size: 13px; border: 1px solid var(--line); color: var(--muted);
    transition: all .25s var(--ease); font-variant-numeric: tabular-nums;
}
.pager a:hover { border-color: var(--ink); color: var(--ink); }
.pager .is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .is-disabled { opacity: .4; }
.pager__gap { border: 0; }
.pager__pages { display: flex; gap: 8px; flex-wrap: wrap; }
.pager__count { font-size: 13px; color: var(--muted); padding: 0 12px; }

/* ---------- 工程進度 ---------- */
.progress-grid { gap: clamp(20px, 3vw, 32px); }
.progress-card { border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.progress-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand-2); }
.progress-card__media img { width: 100%; height: 100%; object-fit: cover; }
.progress-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.progress-card__name { font-size: 19px; margin: 0 0 8px; }
.progress-card__meta { font-size: 12.5px; color: var(--muted); margin: 0 0 20px; }
.progress-card .btn { margin-top: auto; }
.progress-card__soon {
    margin: auto 0 0; padding-top: 12px;
    font-size: 12.5px; letter-spacing: .06em; color: var(--muted);
}
.progress-card.is-unlocked { border-color: var(--gold); }

.notice { margin-top: 48px; padding: 28px 32px; background: var(--sand); border-left: 2px solid var(--gold); }
.notice h3 { font-size: 15px; margin: 0 0 10px; }
.notice p { font-size: 13px; color: var(--muted); margin: 0; line-height: 2; }
.notice a { color: var(--gold); }

/* ---------- 提示訊息 ---------- */
.alert { padding: 14px 18px; font-size: 13px; line-height: 1.8; border-radius: 2px; margin-bottom: 20px; }
.alert--error { background: #fbf1f0; color: #8f2f28; border-left: 3px solid var(--danger); }
.alert--success { background: #f0f7f1; color: #2f6a3c; border-left: 3px solid #4c8a5a; }
.alert--info { background: var(--sand); color: var(--muted); border-left: 3px solid var(--gold); }

/* 通行碼頁：滿版、不顯示頁尾 */
.page-gate .site-footer { display: none; }
.page-gate .gate-wrap { min-height: 100svh; }

/* 通行碼頁 */
.gate-wrap { position: relative; min-height: 100svh; display: grid; place-items: center; padding: calc(var(--header-h) + 40px) 24px 60px; }
.gate-wrap__media { position: absolute; inset: 0; }
.gate-wrap__media img { width: 100%; height: 100%; object-fit: cover; filter: blur(2px) brightness(.5); }
.gate-wrap__veil { position: absolute; inset: 0; background: rgba(10, 14, 18, .55); }
.gate {
    position: relative; width: min(100%, 420px);
    background: #fff; padding: clamp(28px, 4vw, 44px); text-align: center;
}
.gate__head .lock-badge { margin-bottom: 18px; }
.gate__head .lock-badge svg { fill: var(--gold); }
.gate__title { font-size: 24px; margin: 0 0 10px; }
.gate .alert { margin: 0 0 18px; text-align: left; }
.gate__lead { font-size: 13px; color: var(--muted); margin: 0 0 24px; line-height: 1.9; }
.gate__form { display: grid; gap: 16px; text-align: left; }
.gate__help { font-size: 12px; color: var(--muted); margin: 22px 0 12px; }
.gate__help a { color: var(--gold); }
.gate__back { font-size: 12.5px; color: var(--muted); }
.gate__back:hover { color: var(--ink); }

/* 時間軸 */
.timeline { border-top: 1px solid var(--line); }
.timeline__item {
    display: grid; grid-template-columns: 88px 1fr 40px; gap: 24px; align-items: start;
    padding: 28px 0; border-bottom: 1px solid var(--line); position: relative;
}
.timeline__date { font-family: var(--serif); padding-top: 2px; }
.timeline__year { display: block; font-size: 11px; letter-spacing: .16em; color: var(--gold-text); }
.timeline__md { display: block; font-size: 20px; color: var(--ink); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.timeline__title { font-size: 18px; margin: 0 0 8px; }
.timeline__title a:hover { color: var(--gold); }
.timeline__excerpt { font-size: 13.5px; color: var(--muted); margin: 0 0 10px; line-height: 1.85; }
.timeline__meta { display: flex; gap: 14px; align-items: center; font-size: 12px; color: var(--muted); margin: 0; flex-wrap: wrap; }
.timeline__album { display: flex; gap: 6px; margin: 0 0 12px; }
.timeline__album a { display: block; width: 92px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-2); }
.timeline__album img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.timeline__album a:hover img { transform: scale(1.06); }
.timeline__go { color: var(--muted); font-size: 18px; align-self: center; transition: transform .3s var(--ease), color .3s var(--ease); }
.timeline__item:hover .timeline__go { color: var(--gold); transform: translateX(4px); }

/* 相簿 */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 40px 0; }
.gallery__item { display: block; aspect-ratio: 1; overflow: hidden; background: var(--sand-2); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }

/* 建案圖庫（後台維護的相簿） */
.album-list { display: grid; gap: clamp(48px, 6vw, 80px); }
.album__head { margin-bottom: 18px; }
.album__head .eyebrow { margin-bottom: 8px; }
.album__title {
    font-family: var(--serif); font-size: clamp(20px, 2.2vw, 27px);
    font-weight: 500; letter-spacing: .04em; margin: 0;
}
.album__body { max-width: 720px; margin: 0 0 26px; color: var(--muted); line-height: 1.95; font-size: 14.5px; }
.album__body p + p { margin-top: 1em; }
.gallery--album { margin: 0; }
.gallery--album .gallery__item { aspect-ratio: 4 / 3; }
.gallery--album.gallery--single { grid-template-columns: 1fr; }
.gallery--album.gallery--single .gallery__item { aspect-ratio: auto; }
.gallery--album.gallery--single .gallery__item img { height: auto; }
.gallery--album.gallery--duo { grid-template-columns: repeat(2, 1fr); }

/* 消息內建圖庫 */
.article__gallery { margin: 52px 0 0; }
.article__gallery-head { margin-bottom: 20px; }
.article__gallery-head .eyebrow { margin-bottom: 8px; }
.article__gallery-title {
    font-family: var(--serif); font-size: clamp(19px, 2.1vw, 25px);
    font-weight: 500; letter-spacing: .04em; margin: 0;
}
.article__gallery-title span {
    font-family: var(--sans); font-size: 12px; letter-spacing: .14em;
    color: var(--muted); margin-left: 6px; font-weight: 400;
}
.gallery--news { margin: 0; }
.gallery--news .gallery__item { aspect-ratio: 4 / 3; }
.article__gallery + .article__foot { margin-top: 44px; }

/* 都更／危老內頁：頁籤（公告事項／活動花絮／都更資訊） */
.gallery-tabs {
    display: flex; flex-wrap: wrap; gap: 0;
    border-bottom: 1px solid var(--line); margin: 0 0 32px;
}
.gallery-tabs__item {
    position: relative; padding: 12px 20px 14px;
    font-size: 13.5px; letter-spacing: .08em; color: var(--muted);
    transition: color .25s var(--ease);
}
.gallery-tabs__item span {
    font-size: 11px; letter-spacing: .06em; margin-left: 5px;
    font-variant-numeric: tabular-nums; opacity: .75;
}
.gallery-tabs__item:hover { color: var(--ink); }
.gallery-tabs__item.is-active { color: var(--ink); font-weight: 500; }
.gallery-tabs__item.is-active::after {
    content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px;
    height: 2px; background: var(--ink);
}
.gallery-group { margin: 0 0 44px; }
.gallery-group:last-child { margin-bottom: 0; }
.gallery-group__bar {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 16px; margin: 0 0 14px;
    padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.gallery-group__title {
    font-family: var(--serif); font-size: 16px; font-weight: 500;
    letter-spacing: .03em; margin: 0; line-height: 1.5;
}
.gallery-group__meta {
    flex: none; margin: 0; font-size: 11.5px; letter-spacing: .1em;
    color: var(--muted); font-variant-numeric: tabular-nums;
}
.gallery-group__foot { margin: 16px 0 0; text-align: center; }

/* 收合狀態：只顯示第一張作封面（對照舊站每組一張縮圖＋圖說） */
.gallery-group.is-collapsed .gallery {
    grid-template-columns: minmax(0, 360px);
    justify-content: center; gap: 0; margin: 0;
}
.gallery-group.is-collapsed .gallery__item:nth-child(n + 2) { display: none; }
.gallery-group.is-collapsed .gallery__item {
    aspect-ratio: 4 / 3; background: #fff; padding: 8px;
    border: 1px solid var(--line);
    box-shadow: 0 6px 20px rgba(20, 24, 28, .08);
}
.gallery-group.is-collapsed .pager--gallery,
.gallery-group.is-collapsed .pager__note { display: none; }

/* 都更／危老個案時程表（舊站「都更資訊」頁籤裡的 ol.timeline） */
.case-timeline {
    margin: 0 0 36px; padding: 26px clamp(18px, 2.6vw, 32px) 30px;
    background: var(--sand); border: 1px solid var(--line);
}
.case-timeline__head { margin: 0 0 20px; }
.case-timeline__head .eyebrow { margin-bottom: 6px; }
.case-timeline__title {
    font-family: var(--serif); font-size: 20px; font-weight: 500;
    letter-spacing: .06em; margin: 0;
}
.case-timeline__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.case-timeline__item { display: flex; }
.case-timeline__item:nth-child(even) { justify-content: flex-end; }
.case-timeline__bar {
    display: flex; align-items: center; gap: 18px;
    width: min(100%, 600px); margin: 0;
    padding: 13px 16px; background: #fff; border: 1px solid var(--line);
}
.case-timeline__item:nth-child(even) .case-timeline__bar {
    flex-direction: row-reverse; background: var(--sand-2); border-color: transparent;
}
.case-timeline__date {
    flex: none; padding: 7px 12px; border-radius: 2px;
    background: var(--ink); color: #fff;
    font-size: 12.5px; line-height: 1.2; letter-spacing: .06em;
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.case-timeline__event {
    margin: 0; font-size: 15.5px; line-height: 1.6;
    letter-spacing: .03em; color: var(--ink);
}

@media (max-width: 720px) {
    .case-timeline { padding: 22px 18px 24px; }
    .case-timeline__item:nth-child(even) { justify-content: flex-start; }
    .case-timeline__item:nth-child(even) .case-timeline__bar { flex-direction: row; }
    .case-timeline__bar { width: 100%; gap: 12px; padding: 11px 12px; }
    .case-timeline__date { font-size: 11.5px; padding: 6px 9px; }
    .case-timeline__event { font-size: 14.5px; }
}

@media (max-width: 720px) {
    .gallery-group.is-collapsed .gallery { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
    .gallery-tabs { flex-wrap: nowrap; overflow-x: auto; margin-bottom: 24px; }
    .gallery-tabs__item { flex: none; padding: 10px 14px 12px; font-size: 12.5px; }
    .gallery-group__bar { display: block; }
    .gallery-group__meta { display: block; margin-top: 4px; }
}

/* 圖庫分頁（超過 gallery_per_page 張時出現，切頁後以 #gallery 錨點回到圖庫） */
.pager--gallery { margin-top: 36px; }
.pager--gallery .pager__arrow { min-width: 96px; }
.pager__note {
    margin: 14px 0 0; text-align: center;
    font-size: 12.5px; letter-spacing: .04em; color: var(--muted);
    font-variant-numeric: tabular-nums;
}

/* 相簿卡片（相簿總覽／工程進度相簿） */
.album-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2vw, 28px);
}
.album-cards--compact { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.album-card { display: block; background: #fff; border: 1px solid var(--line); }
.album-card__media {
    position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-2);
}
.album-card__media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s var(--ease);
}
.album-card:hover .album-card__media img { transform: scale(1.05); }
.album-card__count {
    position: absolute; right: 10px; bottom: 10px;
    background: rgba(10, 14, 18, .68); color: #fff;
    font-size: 11.5px; letter-spacing: .04em;
    padding: 3px 9px; border-radius: 999px;
    backdrop-filter: blur(2px);
}
.album-card__body { padding: 16px 18px 20px; }
.album-card__sub {
    font-size: 11px; letter-spacing: .16em; color: var(--gold-text);
    text-transform: uppercase; margin: 0 0 6px;
}
.album-card__title {
    font-family: var(--serif); font-size: 16px; font-weight: 500;
    letter-spacing: .03em; margin: 0; line-height: 1.5; color: var(--ink);
}
.album-card:hover .album-card__title { color: var(--gold-text); }
.meta__count { font-size: 12px; color: var(--muted); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.post-nav__item { padding: 20px 24px; border: 1px solid var(--line); display: grid; gap: 6px; }
.post-nav__item span { font-size: 11.5px; letter-spacing: .14em; color: var(--muted); }
.post-nav__item strong { font-family: var(--serif); font-size: 15px; font-weight: 500; }
.post-nav__item--next { text-align: right; }
.post-nav__item:hover { border-color: var(--gold); }
.post-nav__item.is-disabled { opacity: .45; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(8, 11, 14, .94);
    display: grid; place-items: center; padding: 48px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox__close {
    position: absolute; top: 20px; right: 28px; background: none; border: 0;
    color: #fff; font-size: 36px; line-height: 1; cursor: pointer; opacity: .7;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: none; border: 0; color: #fff; font-size: 44px; cursor: pointer;
    opacity: .5; padding: 0 18px;
}
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox__caption {
    position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
    max-width: 80vw; margin: 0; color: rgba(255, 255, 255, .82);
    font-size: 12.5px; letter-spacing: .06em; text-align: center;
}
.lightbox__caption[hidden] { display: none; }

/* ---------- Toast ---------- */
.toasts { position: fixed; top: calc(var(--header-h) + 12px); right: 20px; z-index: 150; display: grid; gap: 10px; max-width: 340px; }
.toast {
    padding: 14px 18px; font-size: 13.5px; background: #fff;
    border-left: 3px solid var(--ink); box-shadow: 0 12px 32px -12px rgba(20, 24, 28, .3);
    animation: toastIn .35s var(--ease);
}
.toast--error { border-color: var(--danger); }
.toast--success { border-color: #4c8a5a; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- 回到頂端 ---------- */
.to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 90;
    width: 46px; height: 46px; display: grid; place-items: center;
    background: var(--ink); color: #fff; border: 0; border-radius: 50%;
    cursor: pointer; opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s var(--ease), transform .3s var(--ease);
}
.to-top svg { width: 18px; height: 18px; fill: currentColor; }
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--gold); transform: translateY(-3px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .68); padding: clamp(56px, 7vw, 88px) 0 0; font-size: 13.5px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 56px; }
.footer-logo { height: 40px; width: auto; margin-bottom: 20px; }
.footer-slogan { font-family: var(--serif); font-size: 15px; color: #fff; letter-spacing: .08em; margin: 0 0 14px; }
.footer-desc { font-size: 12.5px; line-height: 1.95; color: rgba(255, 255, 255, .55); margin: 0; max-width: 30em; }
.footer-col h3 { font-family: var(--sans); font-size: 11.5px; letter-spacing: .22em; color: var(--gold-2); margin: 0 0 20px; font-weight: 500; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: rgba(255, 255, 255, .68); }
.footer-col a:hover { color: #fff; }
.footer-contact li { font-size: 12.5px; line-height: 1.9; }
.footer-tel { font-family: var(--serif); font-size: 20px; color: var(--gold-2) !important; letter-spacing: .06em; }
.footer-col--contact .btn { margin-top: 20px; }
.footer-bottom {
    border-top: 1px solid var(--line-dark); padding: 22px 0 28px;
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    font-size: 11.5px; color: rgba(255, 255, 255, .42); letter-spacing: .04em;
}
.footer-bottom p { margin: 0; }
.footer-bottom__links { display: flex; gap: 10px; align-items: center; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 動畫 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero__media img { animation: none; }
    html { scroll-behavior: auto; }
}

/* ---------- 響應式 ---------- */
@media (max-width: 1080px) {
    .nav { display: none; }
    .nav-toggle { display: flex; }
    .header-reserve { display: none; }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .service-grid.grid--4 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .partners { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .project-detail { grid-template-columns: 1fr; }
    .project-detail__aside { position: static; }
    .pillar-detail { grid-template-columns: 1fr; gap: 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .numbers { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .pillars { grid-template-columns: 1fr; }
    .split-cta { grid-template-columns: 1fr; }
    .split-cta__media { min-height: 280px; }
    .contact-strip, .form-layout, .contact-layout { grid-template-columns: 1fr; }
    .progress-teaser { grid-template-columns: 1fr; }
    .intro-grid, .about-story, .renew-intro { grid-template-columns: 1fr; }
    .service { border-left: 1px solid var(--line); }
    .hero__stats-inner { gap: 20px; flex-wrap: wrap; padding: 18px 0; }
    .hero__stats-inner > div { flex-direction: column; gap: 2px; }
    .hero__scroll { display: none; }
    .timeline__item { grid-template-columns: 68px 1fr; gap: 16px; }
    .timeline__go { display: none; }
    .timeline__album a { width: 76px; }
    .album-cards { grid-template-columns: repeat(2, 1fr); }
    .album-cards--compact { grid-template-columns: repeat(2, 1fr); }
    .pc-only { display: none; }
}

@media (max-width: 640px) {
    :root { --header-h: 64px; }
    body { font-size: 15px; }
    .container, .container--narrow { width: calc(100% - 36px); }
    .site-header__inner { width: calc(100% - 36px); }
    .grid--2, .grid--3 { grid-template-columns: 1fr; }
    .grid--4, .service-grid.grid--4 { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .numbers { grid-template-columns: repeat(2, 1fr); }
    .partners { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .post-nav { grid-template-columns: 1fr; }
    .hero { min-height: 92svh; }
    .hero__inner { padding: 32px 0 200px; }
    .hero__actions .btn { flex: 1 1 auto; }
    .page-hero { min-height: 38vh; }
    .toasts { left: 16px; right: 16px; max-width: none; }
    .project-card__media { aspect-ratio: 4 / 3; }
}

/* ---------- 工地即時影像 ---------- */
.page-live { background: var(--ink); }
.page-hero--live { padding-bottom: 30px; }

.live-state {
    display: inline-flex; align-items: center; gap: 7px;
    margin-left: 10px; padding: 2px 10px;
    border: 1px solid var(--line-dark);
    font-family: var(--sans); font-size: 11px; letter-spacing: .16em;
    color: rgba(255, 255, 255, .62); vertical-align: middle;
}
.live-state::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: #8a9198;
}
.live-state.is-on { color: #cbb27f; border-color: rgba(203, 178, 127, .36); }
.live-state.is-on::before {
    background: #7fbf8b;
    box-shadow: 0 0 0 3px rgba(127, 191, 139, .18);
    animation: livePulse 2.4s ease-in-out infinite;
}
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .32; } }

.section--live {
    background: var(--ink); color: rgba(255, 255, 255, .72);
    padding-bottom: clamp(56px, 7vw, 96px);
}
.live-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    margin-bottom: 22px; padding-bottom: 18px;
    border-bottom: 1px solid var(--line-dark);
}
.live-bar__stamp { margin: 0; font-size: 13px; letter-spacing: .04em; color: rgba(255, 255, 255, .58); }
.live-bar__stamp strong { color: #fff; font-weight: 500; font-variant-numeric: tabular-nums; }
.live-bar__hint { margin-left: 6px; font-size: 12px; color: rgba(255, 255, 255, .36); }

.live-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.live-card {
    margin: 0; background: var(--ink-2);
    border: 1px solid rgba(255, 255, 255, .07); overflow: hidden;
}
.live-card__media {
    position: relative; aspect-ratio: 16 / 9;
    background: #0a0d10; overflow: hidden;
}
.live-card__media img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: opacity .4s var(--ease);
}
.live-card.is-offline .live-card__media img { opacity: 0; }
.live-card__ph {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 12px; letter-spacing: .18em; color: rgba(255, 255, 255, .3);
    opacity: 0; transition: opacity .3s;
    background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .022) 0 10px, transparent 10px 20px);
}
.live-card.is-offline .live-card__ph { opacity: 1; }
.live-card__tag {
    position: absolute; left: 12px; top: 12px;
    padding: 3px 9px; font-size: 10.5px; letter-spacing: .18em;
    background: rgba(10, 13, 16, .62); color: rgba(255, 255, 255, .82);
    backdrop-filter: blur(4px);
}
.live-card__open {
    position: absolute; right: 10px; top: 10px;
    width: 32px; height: 32px; display: grid; place-items: center;
    background: rgba(10, 13, 16, .55); color: #fff;
    opacity: 0; transition: opacity .25s, background .25s;
    backdrop-filter: blur(4px);
}
.live-card__open svg { width: 15px; height: 15px; fill: currentColor; }
.live-card:hover .live-card__open, .live-card__open:focus-visible { opacity: 1; }
.live-card__open:hover { background: var(--gold); }
.live-card__foot {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}
.live-card__name { font-size: 13.5px; color: #fff; letter-spacing: .05em; }
.live-card__time { font-size: 11.5px; color: rgba(255, 255, 255, .42); font-variant-numeric: tabular-nums; }
.live-note {
    margin: 26px 0 0; font-size: 12.5px; line-height: 1.95;
    color: rgba(255, 255, 255, .42);
}
.live-note a { color: var(--gold-2); border-bottom: 1px solid rgba(216, 191, 139, .35); }

@media (max-width: 900px) {
    .live-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .live-card__open { opacity: 1; }
    .live-bar { align-items: flex-start; }
}

/* 工程進度卡片上的即時影像連結 */
.progress-card__live {
    display: inline-flex; align-items: center; gap: 7px;
    margin-top: 14px; padding-top: 12px;
    border-top: 1px dashed var(--line);
    font-size: 12.5px; letter-spacing: .06em; color: var(--gold-text);
}
.progress-card__dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #58a86b; box-shadow: 0 0 0 3px rgba(88, 168, 107, .16);
}
.progress-card__live:hover { color: var(--ink); }
