/* ============================================
   HerShield 赫盾 官網共用樣式 v2「專業信賴系」
   配色沿用品牌:淡紫底 / 白卡金框 / 深紫標題 / 金色點綴 / 綠色勾選
   ============================================ */
:root {
  --bg: #f6eef9;            /* 淡紫背景 */
  --bg-soft: #fbf7fd;       /* 更淺的紫 */
  --card: #ffffff;
  --gold: #c9a24b;
  --gold-deep: #a88332;
  --purple: #6d3391;        /* 主紫 */
  --purple-dark: #4a2364;   /* 深紫(標題/深色區) */
  --purple-deeper: #37184b; /* 頁尾/理念帶 */
  --ink: #232a38;
  --muted: #646b7a;
  --green: #2f9e5f;
  --red: #c0392b;
  --yellow: #d4a017;
  --gray: #8a8f98;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(74, 35, 100, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.85;
  font-size: 16.5px;
}

img { max-width: 100%; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

.serif { font-family: "Noto Serif TC", Georgia, "Times New Roman", serif; }

/* ---------- 導覽列 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #ecdff3;
}
.nav-wrap {
  max-width: 1180px; margin: 0 auto; padding: 10px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand .en { font-weight: 800; font-size: 1.22rem; color: var(--purple-dark); letter-spacing: .5px; }
.brand .zh { font-weight: 700; color: var(--gold-deep); font-size: 1.02rem; }
.main-nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.main-nav a {
  padding: 8px 13px; border-radius: 9px;
  color: var(--ink); font-size: .95rem; font-weight: 500;
}
.main-nav a:hover { background: var(--bg); text-decoration: none; }
.main-nav a.active { background: var(--purple); color: #fff; }
.main-nav a.cta {
  background: var(--green); color: #fff; font-weight: 700; margin-left: 6px;
  box-shadow: 0 4px 12px rgba(47,158,95,.25);
}
.main-nav a.cta:hover { background: #27874f; }

/* ---------- 版面 ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 880px; }
section { padding: 72px 0; }
section.alt { background: var(--bg-soft); }
section.tight { padding: 48px 0; }

.eyebrow {
  display: inline-block; color: var(--gold-deep); font-weight: 800;
  font-size: .88rem; letter-spacing: 3px; margin-bottom: 12px;
}
.section-title {
  color: var(--purple-dark); font-size: 2rem; font-weight: 800;
  line-height: 1.4; margin-bottom: 14px;
  font-family: "Noto Serif TC", Georgia, serif;
}
.section-sub { color: var(--muted); margin-bottom: 40px; max-width: 760px; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Hero(左右雙欄) ---------- */
.hero {
  padding: 76px 0 68px;
  background:
    radial-gradient(ellipse 720px 420px at 88% 8%, rgba(201,162,75,.12), transparent 60%),
    radial-gradient(ellipse 820px 520px at 8% 92%, rgba(109,51,145,.10), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center;
}
.hero h1 {
  font-size: 2.75rem; color: var(--purple-dark); font-weight: 900;
  line-height: 1.35; margin-bottom: 18px;
  font-family: "Noto Serif TC", Georgia, serif;
}
.hero h1 .hl { color: var(--purple); }
.hero p.slogan { font-size: 1.12rem; color: var(--ink); margin-bottom: 14px; }
.hero p.support { color: var(--muted); margin-bottom: 28px; }
.hero-logo { text-align: center; }
.hero-logo img {
  width: min(340px, 80%);
  filter: drop-shadow(0 24px 48px rgba(74,35,100,.28));
}
.trust-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.trust-chips span {
  background: #fff; border: 1.5px solid var(--gold); color: var(--purple-dark);
  padding: 7px 16px; border-radius: 999px; font-size: .88rem; font-weight: 700;
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.14); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(47,158,95,.3); }
.btn-secondary { background: var(--purple); color: #fff; box-shadow: 0 6px 16px rgba(109,51,145,.28); }
.btn-outline { background: #fff; color: var(--purple); border: 2px solid var(--purple); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 6px 16px rgba(201,162,75,.35); }
.btn-ghost-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }

/* ---------- 金句帶(深紫) ---------- */
.quoteband {
  background: linear-gradient(135deg, var(--purple-deeper), var(--purple-dark));
  color: #f3e9fa; padding: 64px 0; text-align: center;
}
.quoteband .q {
  font-family: "Noto Serif TC", Georgia, serif;
  font-size: 1.7rem; font-weight: 700; line-height: 1.7; max-width: 860px;
  margin: 0 auto 14px;
}
.quoteband .q::before { content: "「"; color: var(--gold); }
.quoteband .q::after { content: "」"; color: var(--gold); }
.quoteband .sub { color: #cdb3e0; max-width: 640px; margin: 0 auto; }

/* ---------- 左右交錯區塊 ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.split.rev > .split-media { order: 2; }
.split h3 {
  color: var(--purple-dark); font-size: 1.5rem; margin-bottom: 14px; line-height: 1.5;
  font-family: "Noto Serif TC", Georgia, serif;
}
.split p { color: var(--ink); margin-bottom: 12px; }
.split p.dim { color: var(--muted); }
.split-media .panel {
  background: #fff; border: 2px solid var(--gold); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow);
}
.panel h4 { color: var(--purple); margin-bottom: 12px; font-size: 1.08rem; }
.panel ul { list-style: none; }
.panel ul li { padding: 8px 0 8px 32px; position: relative; border-bottom: 1px dashed #f0e6f5; }
.panel ul li:last-child { border-bottom: none; }
.panel ul li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 900; }
.panel ul.qmark li::before { content: "・"; color: var(--gold-deep); }

/* ---------- 卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.card {
  background: var(--card); border: 1.5px solid #eadcf2; border-top: 4px solid var(--gold);
  border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow);
}
.card h3 { color: var(--purple-dark); font-size: 1.22rem; margin-bottom: 10px; }
.card .icon { font-size: 2.1rem; margin-bottom: 12px; }
.card .num {
  font-family: Georgia, serif; font-size: .95rem; font-weight: 800;
  color: var(--gold-deep); letter-spacing: 2px; margin-bottom: 8px;
}
.card p { color: var(--muted); font-size: .97rem; }
.card p strong { color: var(--ink); }

/* ---------- 價格卡 ---------- */
.price-card { display: flex; flex-direction: column; border: 2px solid var(--gold); border-top-width: 2px; }
.price-card.featured { border-width: 3px; position: relative; transform: translateY(-6px); }
.price-card.featured .flag {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--purple); color: #fff; padding: 4px 18px; border-radius: 999px;
  font-size: .84rem; font-weight: 800; letter-spacing: 1px;
}
.price-card h3 { color: var(--purple); }
.price-card .plan-scope { color: var(--muted); font-size: .95rem; }
.price-card .plan-note { color: var(--muted); font-size: .84rem; margin-top: 10px; }
.price-card .price {
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 2.6rem; font-weight: 800; color: var(--ink); margin: 6px 0 2px;
}
.price-card .duration { color: var(--muted); font-size: .95rem; padding-bottom: 16px; border-bottom: 1px solid #eee; margin-bottom: 16px; }
.feature-list { list-style: none; }
.feature-list li { padding: 7px 0 7px 30px; position: relative; color: var(--ink); }
.feature-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 900; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.nice {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 2px solid var(--gold); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
table.nice th { background: var(--purple-dark); color: #fff; padding: 13px 16px; text-align: left; font-size: .95rem; }
table.nice td { padding: 12px 16px; border-top: 1px solid #f0e6f5; font-size: .95rem; }
table.nice tr:nth-child(even) td { background: var(--bg-soft); }

/* ---------- 流程 ---------- */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; counter-reset: step; margin-top: 10px; }
.flow .step {
  background: #fff; border: 1.5px solid #eadcf2; border-radius: var(--radius);
  padding: 26px 16px 18px; text-align: center; position: relative; box-shadow: var(--shadow);
}
.flow .step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: var(--purple); color: #fff; font-weight: 800; font-size: .82rem;
  padding: 4px 12px; border-radius: 999px; letter-spacing: 1px;
  font-family: Georgia, serif;
}
.flow .step .icon { font-size: 1.7rem; margin-bottom: 8px; }
.flow .step h4 { color: var(--purple-dark); font-size: 1rem; margin-bottom: 4px; }
.flow .step p { font-size: .85rem; color: var(--muted); line-height: 1.6; }

/* ---------- 敘事排版(關於我們) ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose p { margin-bottom: 22px; font-size: 1.05rem; }
.prose p.lead {
  font-size: 1.22rem; color: var(--purple-dark); line-height: 2;
  font-family: "Noto Serif TC", Georgia, serif;
}
.prose .drop {
  border-left: 4px solid var(--gold); padding: 6px 0 6px 22px;
  color: var(--purple-dark); font-size: 1.1rem;
  font-family: "Noto Serif TC", Georgia, serif; margin: 30px 0;
}

/* ---------- 標章狀態 ---------- */
.badge-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot-green { background: var(--green); }
.dot-yellow { background: var(--yellow); }
.dot-gray { background: var(--gray); }
.dot-red { background: var(--red); }

/* ---------- 地圖頁 ---------- */
.map-toolbar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  background: #fff; border: 1.5px solid #eadcf2; border-top: 4px solid var(--gold);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.map-toolbar input[type="text"] {
  flex: 1 1 260px; padding: 11px 15px; border: 1.5px solid #d8c9e2; border-radius: 10px;
  font-size: 1rem; font-family: inherit;
}
.map-toolbar input[type="text"]:focus { outline: 2px solid var(--purple); border-color: var(--purple); }
.map-toolbar button {
  padding: 11px 22px; border: none; border-radius: 10px; background: var(--purple);
  color: #fff; font-weight: 700; font-size: .95rem; cursor: pointer; font-family: inherit;
}
.map-toolbar button:hover { background: var(--purple-dark); }
.filter-chip {
  padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--purple);
  background: #fff; color: var(--purple); cursor: pointer; font-size: .88rem; font-family: inherit;
}
.filter-chip.on { background: var(--purple); color: #fff; }
#map { height: 580px; border: 2px solid var(--gold); border-radius: var(--radius); z-index: 1; box-shadow: var(--shadow); }
.map-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; color: var(--muted); font-size: .9rem; }
.map-stats { display: flex; gap: 40px; flex-wrap: wrap; margin: 6px 0 26px; }
.stat .num { font-family: Georgia, serif; font-size: 2.3rem; font-weight: 800; color: var(--purple); line-height: 1.2; }
.stat .label { color: var(--muted); font-size: .9rem; }
.data-source-note { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.disclaimer {
  background: #fdf6e5; border: 1.5px solid var(--gold); border-radius: var(--radius);
  padding: 18px 22px; font-size: .9rem; color: #6d5a1e; margin-top: 20px; line-height: 1.8;
}
.leaflet-popup-content { font-family: inherit; line-height: 1.65; }
.leaflet-popup-content h4 { color: var(--purple); margin-bottom: 4px; }
.leaflet-popup-content .meta { color: var(--muted); font-size: .85rem; }
.leaflet-popup-content img.popup-photo { max-width: 230px; border-radius: 10px; margin-top: 8px; display: block; }

/* ---------- 回報帶 ---------- */
.reportband {
  background: linear-gradient(135deg, var(--purple-deeper), var(--purple-dark));
  border-radius: var(--radius); color: #f3e9fa; padding: 44px 40px; margin-top: 40px;
  display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center;
}
.reportband h3 { font-family: "Noto Serif TC", Georgia, serif; font-size: 1.45rem; margin-bottom: 8px; color: #fff; }
.reportband p { color: #cdb3e0; font-size: .97rem; }

/* ---------- CTA 帶 ---------- */
.ctaband {
  background: linear-gradient(135deg, var(--purple-deeper), var(--purple-dark));
  color: #fff; padding: 68px 0; text-align: center;
}
.ctaband h2 {
  font-family: "Noto Serif TC", Georgia, serif; font-size: 1.9rem; margin-bottom: 12px;
}
.ctaband p { color: #cdb3e0; margin-bottom: 30px; max-width: 620px; margin-left: auto; margin-right: auto; }
.ctaband .btn-row { justify-content: center; }

/* ---------- 頁尾 ---------- */
.site-footer { background: var(--purple-deeper); color: #d9c5e8; padding: 52px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.site-footer a { color: #ecdcf7; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 52px; height: 52px; }
.footer-brand .t1 { font-weight: 800; color: #fff; font-size: 1.1rem; }
.footer-brand .t2 { font-size: .85rem; color: #b79bcd; }
.site-footer .fine {
  margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16);
  font-size: .82rem; color: #a98cc2; text-align: center;
}

/* ============================================
   v6 新增：捲動進場動畫／捲動敘事／互動清單／細看展開／分頁
   ============================================ */

/* ---------- 捲動進場 ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- 捲動敘事（畫面一步一步進場） ---------- */
.story-step { min-height: 66vh; display: flex; align-items: center; justify-content: center; }
.story-inner { max-width: 700px; margin: 0 auto; text-align: center; padding: 48px 0; }
.story-inner .step-no {
  font-family: Georgia, serif; font-weight: 800; font-size: .95rem; letter-spacing: 5px;
  color: var(--gold-deep); margin-bottom: 12px;
}
.story-inner h3 {
  font-family: "Noto Serif TC", Georgia, serif; color: var(--purple-dark);
  font-size: 1.7rem; line-height: 1.4; margin-bottom: 14px;
}
.story-inner .punch {
  font-family: "Noto Serif TC", Georgia, serif; font-size: 1.45rem; color: var(--purple);
  line-height: 1.8; margin-bottom: 16px;
}
.story-cta { text-align: center; padding: 10px 0 30px; }

/* ---------- 細看展開 ---------- */
details.more { margin-top: 4px; }
details.more summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold-deep); font-weight: 700; font-size: .92rem; user-select: none;
}
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "▸"; transition: transform .2s ease; }
details.more[open] summary::before { transform: rotate(90deg); }
details.more .more-body {
  margin-top: 10px; color: var(--muted); font-size: .95rem; line-height: 1.9;
  background: var(--bg-soft); border: 1px solid #eadcf2; border-radius: 12px;
  padding: 14px 18px; text-align: left;
}
.story-inner details.more { display: inline-block; }

/* ---------- 互動清單 ---------- */
.ilist { list-style: none; }
.ilist li { border-bottom: 1px dashed #f0e6f5; padding: 0; }
.ilist li:last-child { border-bottom: none; }
.panel ul.ilist li { padding: 0; }
.panel ul.ilist li::before { content: none; }
.ilist .ilist-item {
  display: block; width: 100%; text-align: left; background: none; border: none; font: inherit;
  padding: 11px 8px 11px 34px; cursor: pointer; color: var(--ink); border-radius: 10px;
  position: relative; text-decoration: none; transition: background .2s ease;
}
.ilist .ilist-item::before {
  content: "・"; position: absolute; left: 8px; color: var(--gold-deep); font-weight: 900;
}
.ilist li.on .ilist-item { background: #f6effb; color: var(--purple-dark); font-weight: 700; }
.ilist li.on .ilist-item::before { content: "✓"; color: var(--green); }
.ilist .reply {
  max-height: 0; overflow: hidden; opacity: 0; margin: 0 8px 0 34px;
  transition: max-height .35s ease, opacity .35s ease, padding .35s ease;
  color: var(--purple); font-weight: 700; font-size: .95rem;
}
.ilist li.on .reply { max-height: 80px; opacity: 1; padding-bottom: 10px; }

/* ---------- Hero 資訊連結（取代膠囊） ---------- */
.trust-links { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 26px; font-size: .9rem; }
.trust-links a {
  color: var(--muted); text-decoration: none;
  border-bottom: 1px dashed var(--gold); padding-bottom: 2px;
}
.trust-links a:hover { color: var(--purple); border-bottom-style: solid; text-decoration: none; }

/* ---------- 地圖分頁 ---------- */
.tab-row { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.tab-btn {
  padding: 12px 30px; border-radius: 999px; border: 2px solid var(--purple); background: #fff;
  color: var(--purple); font-weight: 800; font-size: 1.02rem; cursor: pointer; font-family: inherit;
}
.tab-btn.on { background: var(--purple); color: #fff; }
.tab-panel { display: none; }
.tab-panel.on { display: block; }

/* ---------- 免責摘要 ---------- */
.principles-brief {
  background: #fdf6e5; border: 1.5px solid var(--gold); border-radius: var(--radius);
  padding: 18px 22px; margin-top: 22px; color: #6d5a1e; font-size: .92rem; line-height: 1.9;
}
.principles-brief details.more summary { color: var(--gold-deep); }

/* ---------- B2B 詰問段 ---------- */
.weigh {
  max-width: 620px; margin: 0 auto 44px; text-align: center;
  font-family: "Noto Serif TC", Georgia, serif; color: var(--purple-dark);
  font-size: 1.16rem; line-height: 2.15;
}
.weigh strong { color: var(--purple); }

/* ---------- 響應式 ---------- */
@media (max-width: 860px) {
  .hero-grid, .split, .split.rev { grid-template-columns: 1fr; gap: 32px; }
  .split.rev > .split-media { order: 0; }
  .hero h1 { font-size: 2rem; }
  .quoteband .q { font-size: 1.3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .reportband { grid-template-columns: 1fr; text-align: center; }
  #map, .map-canvas { height: 440px !important; }
  section { padding: 52px 0; }
  .story-step { min-height: 54vh; }
  .story-inner h3 { font-size: 1.4rem; }
  .story-inner .punch { font-size: 1.18rem; }
}
@media (max-width: 560px) {
  .main-nav a { padding: 6px 9px; font-size: .84rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
}
