/* ============================================================
   紅杏 VPN — 路由器方案
   視覺沿用廣告圖卡／價目表：純黑底、紅光、極粗黑體標題
   ============================================================ */

:root {
  --bg:            #070405;
  --bg-2:          #0b0709;
  --panel:         #131013;
  --panel-2:       #161214;
  --line:          #2a2125;
  --line-soft:     #1d1719;

  --red:           #ff2020;
  --red-hot:       #ff3b30;
  --red-deep:      #c20000;
  --red-wash:      rgba(255, 32, 32, .10);

  --ink:           #ffffff;
  --ink-2:         #cfc6c9;
  --ink-3:         #928589;

  --cjk:  "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --num:  "Archivo", "Noto Sans TC", sans-serif;

  --wrap: 1180px;
  --pad:  16px;
  --r:    14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
:target, [id] { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--cjk);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.dot { color: var(--ink-3); margin-inline: .35em; }
.red { color: var(--red); }

/* 句號：圖卡裡標題結尾的紅色圓圈 */
.period {
  display: inline-block;
  width: .32em; height: .32em;
  margin-left: .22em;
  border: .09em solid var(--red);
  border-radius: 50%;
  vertical-align: .16em;
}

/* ---------- 共用元件 ---------- */

.ico {
  width: 1.45em; height: 1.45em;
  flex: none;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  --btn-bg: linear-gradient(160deg, var(--red-hot), var(--red-deep));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .72em 1.7em;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: #fff;
  font-family: var(--cjk);
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.4;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 8px 26px -12px rgba(255, 40, 40, .9);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(255, 40, 40, 1); }
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.btn .ico { stroke: none; fill: #fff; width: 1.15em; height: 1.15em; }

.btn-ghost {
  background: transparent;
  border-color: #3a2c30;
  color: var(--ink);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--red); background: var(--red-wash); box-shadow: none; }
.btn-ghost .ico { fill: var(--red); }

.btn-sm  { padding: .5em 1.25em; font-size: .88rem; }
.btn-lg  { padding: .85em 1.9em; font-size: 1.02rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- 導覽列 ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(7, 4, 5, .88);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.logo { display: inline-flex; align-items: baseline; gap: .3em; }
.logo-cn {
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--red);
  letter-spacing: .02em;
}
.logo-en {
  font-family: var(--num);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .34em;
  color: #fff;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: .92rem;
  color: var(--ink-2);
}
.nav-links a { position: relative; padding-block: 4px; transition: color .15s ease; }
.nav-links a:hover { color: #fff; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1.5px;
  background: var(--red);
  transition: right .22s ease;
}
.nav-links a:hover::after { right: 0; }

/* ---------- 主標題字級 ---------- */

.h-display {
  margin: 0 0 22px;
  font-weight: 900;
  font-size: clamp(2.5rem, 7.4vw, 4.6rem);
  line-height: 1.14;
  letter-spacing: -.01em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .8);
}
.h-display em {
  font-style: normal;
  color: var(--red);
  text-shadow: 0 0 34px rgba(255, 32, 32, .55);
}
.h-display-sm { font-size: clamp(2rem, 5.2vw, 3.2rem); }

.h2 {
  margin: 0 0 18px;
  font-weight: 900;
  font-size: clamp(1.55rem, 3.4vw, 2.3rem);
  line-height: 1.32;
  letter-spacing: -.005em;
}
.h2 em { font-style: normal; color: var(--red); }
.h2-inline { margin-bottom: 26px; }

/* ---------- 版面骨架 ---------- */

.section { padding: clamp(56px, 8vw, 92px) 0; }
.section-rule { border-top: 1px solid var(--line-soft); }

.sec-head { max-width: 760px; margin-bottom: 44px; }
.sec-sub {
  margin: 0;
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.9;
}
.sec-sub strong { color: #fff; font-weight: 700; }

/* ---------- HERO ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(48px, 8vw, 104px) 0 clamp(52px, 8vw, 96px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -30%;
  height: 120%;
  background:
    radial-gradient(60% 55% at 22% 34%, rgba(150, 0, 0, .30), transparent 68%),
    radial-gradient(45% 40% at 70% 12%, rgba(255, 40, 40, .16), transparent 70%);
  z-index: -2;
  pointer-events: none;
}
.hero-art {
  position: absolute;
  z-index: -1;
  top: -4%;
  right: 0;
  width: min(58%, 820px);
  aspect-ratio: 639 / 405;
  background: url("hero-art.png") right top / contain no-repeat;
  background-image: image-set(url("hero-art.webp") type("image/webp"),
                              url("hero-art.png")  type("image/png"));
  background-image: -webkit-image-set(url("hero-art.webp") type("image/webp"),
                                      url("hero-art.png")  type("image/png"));
  opacity: .92;
  pointer-events: none;
}
.hero-inner { position: relative; }

.eyebrow {
  margin: 0 0 20px;
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--ink-2);
}
.hero-sub {
  max-width: 33em;
  margin: 0 0 32px;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.95;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 速度帶 ---------- */

.band {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #0a0607, #070405);
  padding: clamp(36px, 5vw, 56px) 0;
}
.speed {
  display: grid;
  grid-template-columns: minmax(190px, 260px) 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}
.speed-label {
  margin: 0 0 2px;
  font-size: .86rem;
  letter-spacing: .1em;
  color: var(--ink-2);
}
.speed-value {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: .12em;
  font-family: var(--num);
  font-weight: 900;
  color: var(--red);
  line-height: .95;
  font-size: clamp(4rem, 9vw, 6.2rem);
  letter-spacing: -.03em;
  text-shadow: 0 0 44px rgba(255, 32, 32, .4);
}
.speed-value .unit {
  font-size: .3em;
  font-weight: 800;
  letter-spacing: .02em;
}
.speed-copy { max-width: 34em; color: var(--ink-2); }
.speed-copy p:last-child { margin-bottom: 0; }
.speed-copy strong { color: #fff; font-weight: 700; }
.speed-copy strong.red { color: var(--red); }

/* ---------- 對照卡 ---------- */

.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.card {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(170deg, var(--panel), #0d0a0c);
}
.card-dim { color: var(--ink-2); }
.card-hot {
  border-color: rgba(255, 32, 32, .42);
  background: linear-gradient(170deg, #1a0b0d, #0d0708);
  box-shadow: 0 0 0 1px rgba(255, 32, 32, .06), 0 24px 60px -34px rgba(255, 32, 32, .7);
}
.card-title {
  margin: 0 0 22px;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: .06em;
  color: #fff;
}
.card-title-sub {
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink-3);
}

.list li {
  position: relative;
  padding-left: 2.1em;
  margin-bottom: 1.05em;
  font-size: 1rem;
  line-height: 1.6;
}
.list li:last-child { margin-bottom: 0; }
.list li::before {
  position: absolute;
  left: 0; top: 0;
  font-weight: 900;
  font-size: 1.05em;
  color: var(--red);
}
.list-x li::before { content: "\00d7"; left: .12em; }
.list-x li { color: var(--ink-2); }
.list-check li::before { content: "\2713"; }
.list-check li { color: #fff; }

/* ---------- 斷線保護 ---------- */

.failsafe {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.failsafe-copy p {
  margin: 0;
  max-width: 27em;
  color: var(--ink-2);
  line-height: 1.95;
}
.failsafe-fig { margin: 0; }
.failsafe-fig img {
  width: 100%;
  border-radius: var(--r);
}

/* ---------- 價目 ---------- */

.pricing-sec {
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(140, 0, 0, .22), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line-soft);
}

.plans {
  display: grid;
  grid-template-columns: 1.08fr 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(170deg, var(--panel-2), #0c090b);
}
.plan-feature {
  border-color: rgba(255, 32, 32, .5);
  background: linear-gradient(165deg, #2a0a0d 0%, #170608 45%, #0e0506 100%);
  box-shadow: 0 30px 70px -40px rgba(255, 32, 32, .9);
}
.plan-title {
  display: flex;
  align-items: center;
  gap: .6em;
  margin: 0 0 14px;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: .04em;
}
.plan-note {
  margin: 0 0 24px;
  color: var(--ink-2);
  font-size: .94rem;
  line-height: 1.75;
}
.plan-note strong { color: #fff; font-weight: 700; }

.tiers { margin-bottom: 26px; }
.tier {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 14px;
  padding-block: 16px;
}
.tier + .tier { border-top: 1px solid rgba(255, 255, 255, .10); }
.tier-term {
  font-size: .94rem;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--ink-2);
  white-space: nowrap;
}
.tier-price {
  display: flex;
  align-items: baseline;
  gap: .22em;
  justify-self: end;
  color: var(--red);
}
.tier-price i {
  font-family: var(--num);
  font-style: normal;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .01em;
}
.tier-price b {
  font-family: var(--num);
  font-weight: 900;
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  line-height: 1;
  letter-spacing: -.025em;
  text-shadow: 0 0 34px rgba(255, 32, 32, .35);
}
.tier-avg {
  grid-column: 1 / -1;
  justify-self: end;
  margin-top: 4px;
  font-size: .86rem;
  color: var(--ink-3);
}
.plan .btn { margin-top: auto; }

/* 特色列 */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 46px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.strip li {
  display: flex;
  align-items: center;
  gap: .75em;
  padding: 22px 20px;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.strip li + li { border-left: 1px solid var(--line-soft); }
.strip strong { color: #fff; font-weight: 700; }

/* ---------- 三年帳 ---------- */

.ledger {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(170deg, var(--panel), #0b0809);
}
.ledger-item {
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ledger-item + .ledger-item { border-left: 1px solid var(--line); }
.ledger-term {
  font-size: .9rem;
  letter-spacing: .12em;
  color: var(--ink-2);
}
.ledger-num {
  font-family: var(--num);
  font-weight: 900;
  font-size: clamp(2.2rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -.03em;
  color: #fff;
}
.ledger-note { font-size: .88rem; color: var(--ink-3); }
.ledger-total { background: linear-gradient(165deg, #260a0c, #130607); }
.ledger-total .ledger-num {
  color: var(--red);
  text-shadow: 0 0 36px rgba(255, 32, 32, .45);
}
.ledger-total .ledger-note strong { color: #fff; font-weight: 700; }

/* ---------- 三步驟 ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
.step { position: relative; padding-top: 6px; }
.step + .step::before {
  content: "";
  position: absolute;
  left: clamp(-24px, -2vw, -12px);
  top: 14px;
  width: 8px; height: 8px;
  border-top: 2px solid var(--red);
  border-right: 2px solid var(--red);
  transform: rotate(45deg);
  opacity: .8;
}
.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  font-family: var(--num);
  font-weight: 800;
  font-size: .92rem;
  color: var(--red);
  letter-spacing: .02em;
}
.step-ico {
  display: block;
  width: 40px; height: 40px;
  margin: 20px 0 14px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: .03em;
}
.step p {
  margin: 0;
  color: var(--ink-2);
  font-size: .95rem;
  line-height: 1.85;
}

/* ---------- 聯絡 ---------- */

.contact {
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(60% 60% at 80% 40%, rgba(150, 0, 0, .26), transparent 70%),
    var(--bg-2);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.contact-copy .sec-sub { margin-bottom: 30px; max-width: none; }
.contact-links { display: flex; flex-wrap: wrap; gap: 14px; }
.contact-fig { margin: 0; }

/* ---------- 頁尾 ---------- */

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 30px 0 38px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.logo-sm .logo-cn { font-size: 1.05rem; }
.logo-sm .logo-en { font-size: .8rem; }
.footer-meta { margin: 0; font-size: .86rem; color: var(--ink-3); }

/* ---------- 進場動畫 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.22, .61, .36, 1), transform .6s cubic-bezier(.22, .61, .36, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .btn { transition: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1040px) {
  .nav-links { display: none; }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan-feature { grid-column: 1 / -1; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip li:nth-child(odd) { border-left: 0; }
  .strip li:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
}

@media (max-width: 860px) {
  .hero { padding-top: 24px; }
  .hero-art {
    position: relative;
    top: auto; right: auto;
    width: calc(100% + 2 * var(--pad));
    margin: 0 calc(var(--pad) * -1) 8px;
    opacity: .85;
  }
  .hero-inner { margin-top: -6px; }
  .br-md { display: none; }

  .speed { grid-template-columns: 1fr; gap: 18px; }
  .cols-2 { grid-template-columns: 1fr; }
  .failsafe { grid-template-columns: 1fr; }
  .failsafe-fig { order: -1; }
  .ledger { grid-template-columns: 1fr 1fr; }
  .ledger-item:nth-child(odd) { border-left: 0; }
  .ledger-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .step + .step::before { display: none; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-fig { order: -1; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .plans { grid-template-columns: 1fr; }
  .plan-feature { grid-column: auto; }
  .strip { grid-template-columns: 1fr; }
  .strip li { border-left: 0 !important; }
  .strip li + li { border-top: 1px solid var(--line-soft); }
  .ledger { grid-template-columns: 1fr; }
  .ledger-item + .ledger-item { border-left: 0; border-top: 1px solid var(--line); }
  .hero-cta .btn, .contact-links .btn { flex: 1 1 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .contact-copy .sec-sub br { display: none; }
}

/* LINE 圖示：實心對話泡泡 */
.ico-line { width: 1.25em; height: 1.25em; }

/* ============================================================
   SEO / A11Y 補充元件
   ============================================================ */

/* 只給螢幕閱讀器與搜尋引擎的標題 */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 跳過導覽列 */
.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: .6em 1.2em;
  border-radius: 0 0 10px 10px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; }

/* ---------- 常見問題 ---------- */

.faq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
  border-top: 1px solid var(--line-soft);
}
.qa {
  border-bottom: 1px solid var(--line-soft);
}
.qa summary {
  display: flex;
  align-items: flex-start;
  gap: .8em;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.6;
  color: #fff;
  transition: color .15s ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  margin: .55em 0 0 auto;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(45deg);
  transition: transform .22s ease;
}
.qa[open] summary::after { transform: rotate(-135deg); }
.qa summary:hover { color: var(--red); }
.qa summary:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.qa > p {
  margin: -4px 0 22px;
  padding-right: 2em;
  color: var(--ink-2);
  font-size: .96rem;
  line-height: 1.9;
}

@media (prefers-reduced-motion: reduce) {
  .qa summary::after, .skip-link { transition: none; }
}

@media (max-width: 860px) {
  .faq { grid-template-columns: 1fr; }
}
