/* 洪微會計事務所 Hwang CPA — 深海軍藍 + 香檳金 高端版 */
:root {
    --navy-950: #071426;
    --navy-900: #0b1d36;
    --navy-800: #102a4c;
    --navy-700: #1a3c66;
    --gold: #c6a15b;
    --gold-light: #e4cc94;
    --gold-dark: #9c7a3c;
    --ivory: #f8f5ef;
    --paper: #fffdf9;
    --ink: #1b2533;
    --muted: #5f6b7b;
    --line: #e7e0d2;
    --white: #ffffff;
    --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
    --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    --radius: 14px;
    --shadow-sm: 0 4px 14px rgba(11, 29, 54, .06);
    --shadow: 0 18px 50px rgba(11, 29, 54, .12);
    --shadow-lg: 0 30px 80px rgba(7, 20, 38, .28);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --transition: all .35s var(--ease);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.35; color: var(--navy-900); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; }
.section-ivory { background: var(--ivory); }

/* ---------- 標題 ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--sans); font-size: .78rem; font-weight: 700;
    letter-spacing: .28em; text-transform: uppercase; color: var(--gold-dark);
    margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-header .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.section-header h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 18px; }
.section-header p { color: var(--muted); font-size: 1.05rem; }
.on-dark .section-header h2, .on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark .section-header p { color: rgba(255, 255, 255, .72); }
.on-dark .eyebrow { color: var(--gold-light); }

/* ---------- 按鈕 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 34px; border-radius: 999px; border: 1px solid transparent;
    font-family: var(--sans); font-weight: 700; font-size: .98rem; letter-spacing: .06em;
    cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dark)); color: var(--navy-950); box-shadow: 0 10px 28px rgba(198, 161, 91, .35); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(198, 161, 91, .45); }
.btn-outline-light { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--navy-900); }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gold-dark); letter-spacing: .04em; }
.link-arrow i { transition: transform .3s var(--ease); }
.link-arrow:hover i { transform: translateX(5px); }

/* ---------- 頁首 ---------- */
.topbar { background: var(--navy-950); color: rgba(255, 255, 255, .72); font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 9px; padding-bottom: 9px; }
.topbar-group { display: flex; gap: 26px; flex-wrap: wrap; }
.topbar a:hover { color: var(--gold-light); }
.topbar i { color: var(--gold); margin-right: 7px; }

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 253, 249, .94); backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(231, 224, 210, .7);
    transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(11, 29, 54, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }

.logo a { display: flex; align-items: center; gap: 14px; color: var(--navy-900); text-decoration: none; transition: opacity .3s; }
.logo a:hover { opacity: .85; }
.logo-mark {
    width: 50px; height: 50px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center;
    background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
    color: var(--gold-light); font-family: var(--serif); font-weight: 700; font-size: 1.15rem; letter-spacing: .04em;
    box-shadow: inset 0 0 0 1px rgba(228, 204, 148, .45);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-name { font-family: var(--serif); font-size: 1.32rem; font-weight: 700; letter-spacing: .08em; }
.logo-sub { font-size: .68rem; font-weight: 700; letter-spacing: .32em; color: var(--gold-dark); }

.main-nav ul { display: flex; align-items: center; gap: 6px; }
.main-nav a { position: relative; display: block; padding: 10px 16px; font-weight: 500; color: var(--ink); letter-spacing: .06em; }
.main-nav a::after {
    content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
    background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--navy-900); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.header-cta { padding: 12px 24px; font-size: .9rem; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--navy-900); cursor: pointer; padding: 8px; }

/* ---------- 首頁 Hero ---------- */
.hero { position: relative; min-height: clamp(640px, 88vh, 900px); display: flex; align-items: center; color: var(--white); overflow: hidden; background: var(--navy-950); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(100deg, rgba(7, 20, 38, .94) 0%, rgba(7, 20, 38, .82) 38%, rgba(7, 20, 38, .35) 72%, rgba(7, 20, 38, .15) 100%);
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: center; padding-top: 90px; padding-bottom: 150px; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 5.2vw, 4.2rem); letter-spacing: .06em; margin-bottom: 8px; }
.hero-tagline { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: var(--gold-light); letter-spacing: .12em; margin-bottom: 26px; }
.hero-lead { max-width: 600px; color: rgba(255, 255, 255, .82); font-size: 1.06rem; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-trust { display: flex; gap: 30px; flex-wrap: wrap; font-size: .92rem; color: rgba(255, 255, 255, .8); }
.hero-trust span { display: inline-flex; align-items: center; gap: 9px; }
.hero-trust i { color: var(--gold); }

.hero-card {
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(228, 204, 148, .3);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-radius: 20px; padding: 36px 34px; box-shadow: var(--shadow-lg);
}
.hero-card h2 { color: var(--white); font-size: 1.3rem; margin-bottom: 6px; }
.hero-card > p { color: rgba(255, 255, 255, .7); font-size: .92rem; margin-bottom: 22px; }
.hero-card-phone { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero-card-phone i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(198, 161, 91, .18); color: var(--gold-light); }
.hero-card-phone a { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--white); letter-spacing: .04em; }
.hero-card-phone a:hover { color: var(--gold-light); }
.hero-card-phone small { display: block; font-size: .78rem; color: rgba(255, 255, 255, .6); letter-spacing: .1em; }
.hero-card .btn { width: 100%; margin-top: 10px; }

/* ---------- 數據條 ---------- */
.stats { position: relative; z-index: 5; margin-top: -78px; }
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--white); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
    border-top: 3px solid var(--gold);
}
.stat { padding: 34px 26px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--navy-900); line-height: 1.1; }
.stat-num sup { font-size: 1.2rem; color: var(--gold); margin-left: 2px; }
.stat-label { color: var(--muted); font-size: .92rem; margin-top: 8px; letter-spacing: .06em; }

/* ---------- 服務大卡 ---------- */
.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card { position: relative; border-radius: 18px; overflow: hidden; min-height: 480px; display: flex; align-items: flex-end; box-shadow: var(--shadow); isolation: isolate; }
.feature-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease); }
.feature-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 20, 38, .05) 20%, rgba(7, 20, 38, .92) 82%); }
.feature-card:hover img { transform: scale(1.07); }
.feature-card-body { padding: 36px 32px; color: var(--white); }
.feature-card-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--gold); color: var(--navy-950); font-size: 1.3rem; margin-bottom: 20px; }
.feature-card h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 12px; }
.feature-card p { color: rgba(255, 255, 255, .8); font-size: .96rem; margin-bottom: 20px; }
.feature-card .link-arrow { color: var(--gold-light); }

/* ---------- 圖文分欄 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: 18px; box-shadow: var(--shadow); width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; position: relative; z-index: 1; }
.split-media::before { content: ""; position: absolute; inset: 26px -26px -26px 26px; border: 1px solid var(--gold); border-radius: 18px; z-index: 0; }
.split.reverse .split-media::before { inset: 26px 26px -26px -26px; }
.media-badge {
    position: absolute; z-index: 2; left: -30px; bottom: 40px;
    background: var(--navy-900); color: var(--white); border-radius: 16px; padding: 22px 28px;
    box-shadow: var(--shadow-lg); text-align: center; border: 1px solid rgba(228, 204, 148, .35);
}
.split.reverse .media-badge { left: auto; right: -30px; }
.media-badge strong { display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--gold-light); line-height: 1.1; }
.media-badge span { font-size: .85rem; letter-spacing: .12em; color: rgba(255, 255, 255, .8); }
.split-text h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 22px; }
.split-text h3 { font-size: 1.25rem; margin: 26px 0 10px; }
.split-text p { color: var(--muted); margin-bottom: 16px; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; margin: 28px 0 34px; }
.check-grid li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink); }
.check-grid i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: rgba(198, 161, 91, .15); color: var(--gold-dark); font-size: .72rem; }

/* ---------- 服務流程 ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.process-step { position: relative; padding: 38px 30px 34px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: var(--transition); }
.process-step:hover { border-color: var(--gold); transform: translateY(-6px); box-shadow: var(--shadow); }
.process-step::before { counter-increment: step; content: "0" counter(step); font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1px var(--gold); line-height: 1; display: block; margin-bottom: 18px; }
.process-step h3 { font-size: 1.18rem; margin-bottom: 10px; }
.process-step p { color: var(--muted); font-size: .94rem; }

/* ---------- 團隊 ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; }
.team-card { display: grid; grid-template-columns: 160px 1fr; gap: 32px; padding: 42px; background: var(--white); border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: var(--transition); }
.team-card:hover { box-shadow: var(--shadow); border-color: rgba(198, 161, 91, .6); }
.team-monogram {
    width: 160px; height: 190px; border-radius: 14px; display: grid; place-items: center; position: relative;
    background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
    font-family: var(--serif); font-size: 3rem; font-weight: 700; color: var(--gold-light); letter-spacing: .05em;
}
.team-monogram::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(228, 204, 148, .4); border-radius: 8px; }
.team-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.team-role { display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .14em; color: var(--gold-dark); margin-bottom: 14px; }
.team-card p { color: var(--muted); font-size: .96rem; }

/* ---------- 深色優勢區 ---------- */
.dark-band { position: relative; color: var(--white); background: var(--navy-950); overflow: hidden; isolation: isolate; }
.dark-band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .5; }
.dark-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 20, 38, .9), rgba(7, 20, 38, .78) 50%, rgba(7, 20, 38, .94)); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(228, 204, 148, .18); border: 1px solid rgba(228, 204, 148, .18); border-radius: 18px; overflow: hidden; }
.why-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.why-item { padding: 42px 34px; background: rgba(7, 20, 38, .72); transition: background .35s; }
.why-item:hover { background: rgba(26, 60, 102, .78); }
.why-item i { font-size: 1.7rem; color: var(--gold); margin-bottom: 20px; display: block; }
.why-item h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 8px; }
.why-item p { color: rgba(255, 255, 255, .7); font-size: .94rem; }

/* 淺色版本（內頁） */
.why-light .why-grid { background: var(--line); border-color: var(--line); }
.why-light .why-item { background: var(--white); }
.why-light .why-item:hover { background: var(--ivory); }
.why-light .why-item h3 { color: var(--navy-900); }
.why-light .why-item p { color: var(--muted); }

/* ---------- 影片 ---------- */
.video-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 56px) / 3); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 24px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.video-rail::-webkit-scrollbar { height: 6px; }
.video-rail::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
.video-item { scroll-snap-align: start; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.video-wrapper { position: relative; aspect-ratio: 16 / 9; background: var(--navy-900); }
.video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-title { padding: 18px 20px; font-weight: 500; font-size: .95rem; color: var(--ink); line-height: 1.6; }
.rail-controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 18px; flex-wrap: wrap; }
.rail-buttons { display: flex; gap: 10px; }
.rail-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--navy-900); cursor: pointer; transition: var(--transition); }
.rail-btn:hover { background: var(--navy-900); color: var(--gold-light); border-color: var(--navy-900); }

/* ---------- CTA ---------- */
.cta { position: relative; padding: 110px 0; text-align: center; color: var(--white); overflow: hidden; isolation: isolate; background: var(--navy-950); }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(7, 20, 38, .93), rgba(16, 42, 76, .82)); }
.cta h2 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: 16px; }
.cta p { color: rgba(255, 255, 255, .8); font-size: 1.08rem; max-width: 640px; margin: 0 auto 36px; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- 內頁頁首 ---------- */
.page-hero { position: relative; padding: 130px 0 110px; color: var(--white); overflow: hidden; isolation: isolate; background: var(--navy-950); }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(7, 20, 38, .95) 0%, rgba(7, 20, 38, .8) 50%, rgba(7, 20, 38, .45) 100%); }
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 4.6vw, 3.4rem); letter-spacing: .08em; margin-bottom: 14px; }
.page-hero p { color: rgba(255, 255, 255, .8); font-size: 1.08rem; max-width: 620px; }
.breadcrumb { display: flex; gap: 10px; margin-top: 30px; font-size: .88rem; color: rgba(255, 255, 255, .6); }
.breadcrumb a { color: var(--gold-light); }
.breadcrumb a:hover { color: var(--white); }

/* ---------- 服務明細卡 ---------- */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; }
.detail-card { display: grid; grid-template-columns: 42% 1fr; background: var(--white); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: var(--transition); }
.detail-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); border-color: rgba(198, 161, 91, .6); }
.detail-media { position: relative; overflow: hidden; min-height: 100%; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.detail-card:hover .detail-media img { transform: scale(1.06); }
.detail-media .detail-icon { position: absolute; left: 18px; top: 18px; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-900); color: var(--gold-light); font-size: 1.1rem; box-shadow: var(--shadow-sm); }
.detail-body { padding: 32px 30px; }
.detail-body h3 { font-size: 1.28rem; margin-bottom: 10px; }
.detail-body > p { color: var(--muted); font-size: .94rem; margin-bottom: 16px; }
.detail-body li { display: flex; align-items: baseline; gap: 10px; font-size: .93rem; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.detail-body li:last-child { border-bottom: 0; }
.detail-body li i { color: var(--gold); font-size: .75rem; }

/* ---------- 價值卡 ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.value-card { padding: 40px 30px; text-align: center; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); transition: var(--transition); }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.value-card i { width: 70px; height: 70px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; color: var(--gold-light); background: linear-gradient(145deg, var(--navy-800), var(--navy-950)); }
.value-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: .94rem; }

/* ---------- 聯繫頁 ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: start; }
.contact-panel { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: var(--white); border-radius: 20px; padding: 48px 42px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.contact-panel::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -90px; border-radius: 50%; border: 1px solid rgba(228, 204, 148, .25); }
.contact-panel h2 { color: var(--white); font-size: 1.7rem; margin-bottom: 10px; }
.contact-panel > p { color: rgba(255, 255, 255, .7); margin-bottom: 30px; }
.contact-item { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.contact-item > i { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: rgba(198, 161, 91, .16); color: var(--gold-light); }
.contact-item h3 { color: var(--gold-light); font-family: var(--sans); font-size: .82rem; letter-spacing: .2em; margin-bottom: 4px; }
.contact-item p { color: rgba(255, 255, 255, .88); line-height: 1.75; }
.contact-item a:hover { color: var(--gold-light); }

.form-card { background: var(--white); border-radius: 20px; padding: 48px 44px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.7rem; margin-bottom: 8px; }
.form-card > p { color: var(--muted); margin-bottom: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; font-size: .9rem; color: var(--navy-900); margin-bottom: 8px; letter-spacing: .04em; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--ivory);
    font-family: var(--sans); font-size: 1rem; color: var(--ink); transition: border-color .3s, box-shadow .3s, background .3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 4px rgba(198, 161, 91, .15); }
.form-group textarea { min-height: 150px; resize: vertical; }
.contact-form .btn { width: 100%; border: 0; }
.form-note { margin-top: 14px; font-size: .84rem; color: var(--muted); text-align: center; }

.map-wrap { margin-top: 90px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-wrap iframe { display: block; width: 100%; height: 440px; border: 0; filter: grayscale(.25) contrast(1.05); }

/* ---------- 頁尾 ---------- */
footer { background: var(--navy-950); color: rgba(255, 255, 255, .72); padding: 90px 0 30px; position: relative; }
footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 50px; margin-bottom: 60px; }
.footer-brand .logo a { color: var(--white); margin-bottom: 22px; }
.footer-brand p { font-size: .94rem; line-height: 1.9; }
footer h3 { color: var(--white); font-size: 1.08rem; margin-bottom: 22px; letter-spacing: .1em; }
footer ul li { margin-bottom: 11px; }
footer a:hover { color: var(--gold-light); }
.footer-contact p { display: flex; gap: 12px; margin-bottom: 12px; font-size: .94rem; }
.footer-contact i { color: var(--gold); margin-top: 6px; width: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 28px; text-align: center; font-size: .86rem; color: rgba(255, 255, 255, .55); }
.footer-bottom p { margin-bottom: .5rem; }
.footer-partner { margin-top: 1rem; font-size: .88rem; color: rgba(255, 255, 255, .7); }
.footer-partner a { color: var(--gold-light); }
.footer-partner a:hover { color: var(--white); }

/* ---------- 浮動撥號（手機） ---------- */
.float-call { display: none; position: fixed; right: 18px; bottom: 18px; z-index: 200; width: 58px; height: 58px; border-radius: 50%; place-items: center; background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: var(--navy-950); font-size: 1.3rem; box-shadow: 0 12px 30px rgba(7, 20, 38, .35); }

/* ---------- 進場動畫（需 JS 才隱藏，無 JS 時內容照常顯示） ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .hero-bg { animation: none; transform: none; }
}

/* ---------- 響應式 ---------- */
@media (max-width: 1100px) {
    .main-nav a { padding: 10px 11px; }
    .header-cta { display: none; }
    .feature-cards { gap: 22px; }
    .split { gap: 60px; }
    .detail-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
    .section { padding: 80px 0; }
    .topbar .topbar-addr { display: none; }
    .menu-toggle { display: block; }
    .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
    .main-nav.open { max-height: 420px; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 20px; }
    .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
    .main-nav a::after { display: none; }
    .main-nav a.active { color: var(--gold-dark); }
    .hero { min-height: auto; }
    .hero .container { grid-template-columns: 1fr; padding-top: 70px; padding-bottom: 130px; gap: 40px; }
    .hero-card { max-width: 480px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .feature-cards { grid-template-columns: 1fr; }
    .feature-card { min-height: 380px; }
    .split, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
    .split.reverse .split-media { order: 0; }
    .process-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: 1fr; }
    .why-grid, .why-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .video-rail { grid-auto-columns: calc((100% - 28px) / 2); }
    .float-call { display: grid; }
}
@media (max-width: 640px) {
    body { font-size: 15px; }
    .container { padding: 0 16px; }
    .section { padding: 64px 0; }
    .topbar .topbar-mail { display: none; }
    .topbar .container { justify-content: center; }
    .header-inner { height: 72px; }
    .logo-mark { width: 44px; height: 44px; font-size: 1rem; }
    .logo-name { font-size: 1.12rem; }
    .logo-sub { font-size: .6rem; letter-spacing: .24em; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-card { padding: 28px 24px; }
    .stats { margin-top: -60px; }
    .stat { padding: 24px 12px; }
    .stat-num { font-size: 2rem; }
    .section-header { margin-bottom: 44px; }
    .split-media::before { display: none; }
    .media-badge, .split.reverse .media-badge { left: 14px; right: auto; bottom: -24px; padding: 14px 20px; }
    .media-badge strong { font-size: 1.8rem; }
    .check-grid { grid-template-columns: 1fr; }
    .process-grid, .values-grid, .why-grid, .why-grid.cols-4 { grid-template-columns: 1fr; }
    .team-card { grid-template-columns: 1fr; padding: 30px 24px; gap: 22px; }
    .team-monogram { width: 100%; height: 140px; }
    .detail-card { grid-template-columns: 1fr; }
    .detail-media { aspect-ratio: 16 / 9; }
    .detail-body { padding: 26px 22px; }
    .video-rail { grid-auto-columns: 86%; }
    .page-hero { padding: 90px 0 76px; }
    .contact-panel, .form-card { padding: 34px 22px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .map-wrap { margin-top: 60px; }
    .map-wrap iframe { height: 320px; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .cta { padding: 80px 0; }
}
