/* ============================================
   外送新手村 - 主樣式表
   Primary: foodpanda pink #FF2B85
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;600;700;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --pink:        #FF2B85;
  --pink-light:  #FF6BAE;
  --pink-lighter:#FFF0F6;
  --pink-dark:   #CC2068;
  --ue-green:    #06C167;
  --ue-dark:     #1C1C1C;
  --white:       #FFFFFF;
  --bg:          #FAFAFA;
  --bg-card:     #FFFFFF;
  --text:        #1A1A1A;
  --text-sub:    #555555;
  --text-muted:  #999999;
  --border:      #EBEBEB;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.06);
  --shadow-md:   0 4px 20px rgba(0,0,0,.10);
  --shadow-pink: 0 4px 20px rgba(255,43,133,.20);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --transition:  .25s ease;
  --container:   1140px;
  --nav-height:  64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--pink); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--pink-dark); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Utilities ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.text-center { text-align: center; }
.text-pink { color: var(--pink); }
.text-green { color: var(--ue-green); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.fw-bold { font-weight: 700; }
.hidden { display: none !important; }

/* ---------- Section Titles ---------- */
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pink);
  background: var(--pink-lighter);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.section-label.green {
  color: var(--ue-green);
  background: #E8FBF3;
}
.section-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-sub);
  max-width: 560px;
}
.section-title-block { margin-bottom: 48px; }
.section-title-block.center { text-align: center; }
.section-title-block.center .section-subtitle { margin: 0 auto; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--pink);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.nav-logo .logo-icon { font-size: 1.4rem; }
.logo-icon-img { height: 1.3em; width: auto; vertical-align: middle; display: inline-block; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-menu li a {
  display: block;
  padding: 6px 12px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav-menu li a:hover,
.nav-menu li a.active {
  background: var(--pink-lighter);
  color: var(--pink);
}
.nav-menu li.nav-cta a {
  background: var(--pink);
  color: #fff;
  padding: 6px 16px;
}
.nav-menu li.nav-cta a:hover { background: var(--pink-dark); color: #fff; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: linear-gradient(135deg, #fff5f9 0%, #fff 50%, #f0fff8 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,43,133,.08) 0%, transparent 70%);
  top: -100px; right: -100px;
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(6,193,103,.06) 0%, transparent 70%);
  bottom: -80px; left: -80px;
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pink-lighter);
  color: var(--pink);
  font-size: .85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 .highlight {
  color: var(--pink);
  position: relative;
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-sub);
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stat { }
.hero-stat .num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--pink);
  line-height: 1;
}
.hero-stat .label {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual-inner {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-lighter), #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  box-shadow: var(--shadow-pink);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,43,133,.35);
}
.btn-primary:hover {
  background: var(--pink-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,43,133,.45);
}
.btn-outline {
  border: 2px solid var(--pink);
  color: var(--pink);
}
.btn-outline:hover {
  background: var(--pink-lighter);
  color: var(--pink);
}
.btn-green {
  background: var(--ue-green);
  color: #fff;
  box-shadow: 0 4px 16px rgba(6,193,103,.35);
}
.btn-green:hover {
  background: #05a857;
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline-green {
  border: 2px solid var(--ue-green);
  color: var(--ue-green);
}
.btn-outline-green:hover { background: #e8fbf3; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--radius-md); }
.btn-sm { padding: 8px 18px; font-size: .85rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--pink-lighter);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.card-icon.green { background: #E8FBF3; }
.card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.card-text { font-size: .9rem; color: var(--text-sub); }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

/* ---------- Platform Compare ---------- */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.compare-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 600px; }
.compare-table th {
  padding: 18px 20px;
  font-size: .85rem;
  font-weight: 700;
  text-align: left;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}
.compare-table th.col-fp { background: #fff5f9; color: var(--pink); }
.compare-table th.col-ue { background: #f0fff8; color: var(--ue-green); }
.compare-table td {
  padding: 16px 20px;
  font-size: .9rem;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--bg); }
.compare-table td:first-child { font-weight: 600; color: var(--text-sub); }
.compare-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
}
.badge-pink { background: var(--pink-lighter); color: var(--pink); }
.badge-green { background: #E8FBF3; color: var(--ue-green); }
.badge-grey { background: #f5f5f5; color: #666; }

/* ---------- Platform Cards (index) ---------- */
.platform-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 48px; }
.platform-card {
  border-radius: var(--radius-lg);
  padding: 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.platform-card.fp { background: linear-gradient(135deg, var(--pink) 0%, #ff7bb5 100%); }
.platform-card.ue { background: linear-gradient(135deg, #1c1c1c 0%, #333 100%); }
.platform-card .pc-logo {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 12px;
}
.platform-card h3 { font-size: 1.5rem; font-weight: 900; margin-bottom: 8px; }
.platform-card p { font-size: .9rem; opacity: .85; margin-bottom: 24px; }
.platform-card .pc-bg-text {
  position: absolute;
  right: -20px; bottom: -20px;
  font-size: 8rem;
  opacity: .1;
  line-height: 1;
}
.platform-card .btn {
  align-self: flex-start;
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(4px);
}
.platform-card .btn:hover {
  background: rgba(255,255,255,.35);
  transform: translateY(-2px);
}
.platform-card.ue .btn { background: rgba(6,193,103,.25); border-color: rgba(6,193,103,.4); }

/* ---------- Steps / Flow ---------- */
.steps-flow { position: relative; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px; left: calc(16.67% - 2px);
  width: calc(100% - 33.33%);
  height: 3px;
  background: linear-gradient(90deg, var(--pink) 0%, var(--pink-light) 100%);
  z-index: 0;
}
.steps-grid.green-line::before {
  background: linear-gradient(90deg, var(--ue-green) 0%, #5de3a6 100%);
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px 24px;
  position: relative;
  z-index: 1;
}
.step-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(255,43,133,.3);
  flex-shrink: 0;
  border: 4px solid #fff;
  transition: transform var(--transition);
}
.step-circle:hover { transform: scale(1.1); }
.step-circle.green {
  background: var(--ue-green);
  box-shadow: 0 4px 16px rgba(6,193,103,.3);
}
.step-num-label {
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.step-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.step-desc { font-size: .85rem; color: var(--text-sub); line-height: 1.6; }
.step-doc-list { margin-top: 8px; text-align: left; display: inline-block; }
.step-doc-list li { font-size: .8rem; color: var(--text-sub); padding: 2px 0; }
.step-doc-list li::before { content: '✓ '; color: var(--pink); font-weight: 700; }
.step-doc-list.green li::before { color: var(--ue-green); }

/* Steps - second row (4th, 5th, 6th) */
.steps-row-2 { margin-top: 24px; }
.steps-row-2 .steps-grid::before {
  left: calc(50% - 33.33%/2);
  width: calc(33.33%);
}

/* ---------- Income Calculator ---------- */
.calculator-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.calc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.calc-group { display: flex; flex-direction: column; gap: 8px; }
.calc-group.full { grid-column: 1 / -1; }
.calc-label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 6px;
}
.calc-label .tip {
  font-size: .75rem;
  font-weight: 400;
  color: var(--text-muted);
}
.calc-input-wrap { position: relative; }
.calc-input-wrap .unit {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: .85rem;
  color: var(--text-muted);
  pointer-events: none;
}
.calc-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.calc-input:focus { border-color: var(--pink); }
.calc-input.green:focus { border-color: var(--ue-green); }
.calc-input[type=range] {
  padding: 0;
  height: 6px;
  border: none;
  accent-color: var(--pink);
  background: transparent;
}
.calc-input[type=range].green { accent-color: var(--ue-green); }
.range-labels { display: flex; justify-content: space-between; font-size: .75rem; color: var(--text-muted); }
.range-val {
  display: inline-block;
  background: var(--pink-lighter);
  color: var(--pink);
  font-size: .85rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 100px;
  margin-left: 8px;
}
.range-val.green { background: #e8fbf3; color: var(--ue-green); }

.calc-result {
  background: linear-gradient(135deg, var(--pink-lighter), #fff);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  margin-top: 28px;
  border: 2px solid var(--pink-light);
}
.calc-result.green-result {
  background: linear-gradient(135deg, #e8fbf3, #fff);
  border-color: #5de3a6;
}
.calc-result .result-label { font-size: .85rem; color: var(--text-sub); font-weight: 500; }
.calc-result .result-amount {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--pink);
  line-height: 1.2;
  margin: 8px 0;
}
.calc-result .result-amount.green { color: var(--ue-green); }
.calc-result .result-note { font-size: .8rem; color: var(--text-muted); }
.calc-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.calc-breakdown-item { text-align: center; }
.calc-breakdown-item .bd-num { font-size: 1.2rem; font-weight: 700; color: var(--pink); }
.calc-breakdown-item .bd-num.green { color: var(--ue-green); }
.calc-breakdown-item .bd-label { font-size: .75rem; color: var(--text-muted); }
.btn-calc {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

/* ---------- FAQ Accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg); }
.faq-question.active { color: var(--pink); background: var(--pink-lighter); }
.faq-question.active.green { color: var(--ue-green); background: #e8fbf3; }
.faq-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
}
.faq-question.active .faq-icon {
  transform: rotate(180deg);
  background: var(--pink);
  color: #fff;
}
.faq-question.active.green .faq-icon { background: var(--ue-green); }
.faq-answer {
  display: none;
  padding: 0 20px 18px;
  font-size: .9rem;
  color: var(--text-sub);
  line-height: 1.8;
}
.faq-answer.open { display: block; }
.faq-answer ul { margin-top: 8px; padding-left: 0; }
.faq-answer ul li { padding: 3px 0 3px 20px; position: relative; }
.faq-answer ul li::before { content: '•'; position: absolute; left: 6px; color: var(--pink); }
.faq-answer ul.green li::before { color: var(--ue-green); }

/* ---------- Exam Questions ---------- */
.exam-section {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 48px;
}
.exam-grid { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.exam-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.exam-q-num {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.exam-q-num.green { background: var(--ue-green); }
.exam-q { font-size: .95rem; font-weight: 600; margin-bottom: 14px; }
.exam-options { display: flex; flex-direction: column; gap: 8px; }
.exam-option {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: default;
}
.exam-option.correct {
  background: #e8fbf3;
  border-color: #5de3a6;
  color: #05a857;
  font-weight: 600;
}
.exam-option.correct::before { content: '✓'; font-weight: 900; color: var(--ue-green); }
.exam-option:not(.correct)::before { content: '○'; color: var(--text-muted); }
.exam-explain {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fff8e1;
  border-radius: var(--radius-sm);
  font-size: .83rem;
  color: #7a5c00;
  border-left: 3px solid #ffc107;
}
.exam-explain::before { content: '💡 說明：'; font-weight: 700; }

/* ---------- 良民證 ---------- */
.goodbehavior-steps { margin-top: 40px; }
.gb-step {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  position: relative;
}
.gb-step::after {
  content: '';
  position: absolute;
  left: 20px; top: 48px;
  width: 2px;
  bottom: -16px;
  background: var(--border);
}
.gb-step:last-child::after { display: none; }
.gb-step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ue-green);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  font-size: .9rem;
}
.gb-step-content { padding-top: 8px; }
.gb-step-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.gb-step-desc { font-size: .88rem; color: var(--text-sub); line-height: 1.7; }
.gb-step-desc a { color: var(--ue-green); }

/* ---------- Equipment ---------- */
.equip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.equip-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.equip-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.equip-video-wrap {
  position: relative;
  padding-top: 56.25%;
  background: #f0f0f0;
  overflow: hidden;
}
.equip-video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.equip-img-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pink-lighter), #f5f5f5);
  font-size: 4rem;
}
.equip-body { padding: 24px; }
.equip-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
  background: var(--pink-lighter);
  color: var(--pink);
}
.equip-tag.must { background: #fff3e0; color: #e65100; }
.equip-tag.opt { background: #e8f5e9; color: #2e7d32; }
.equip-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.equip-desc { font-size: .88rem; color: var(--text-sub); line-height: 1.7; }
.equip-price-note {
  margin-top: 12px;
  font-size: .8rem;
  color: var(--text-muted);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

/* ---------- Referral Banner ---------- */
.referral-banner {
  background: linear-gradient(135deg, var(--pink) 0%, #ff7bb5 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  color: #fff;
  margin: 48px 0;
}
.referral-banner.green {
  background: linear-gradient(135deg, var(--ue-green) 0%, #5de3a6 100%);
}
.referral-banner h3 { font-size: 1.5rem; font-weight: 900; margin-bottom: 8px; }
.referral-banner p { opacity: .85; font-size: .95rem; margin-bottom: 24px; }
.referral-banner .btn {
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
  font-size: 1rem;
  padding: 14px 32px;
}
.referral-banner .btn:hover {
  background: rgba(255,255,255,.35);
  transform: translateY(-2px);
}
.referral-code {
  margin-top: 16px;
  font-size: .82rem;
  opacity: .75;
}

/* ---------- Page Hero (sub-pages) ---------- */
.page-hero {
  padding: calc(var(--nav-height) + 48px) 0 56px;
  background: linear-gradient(135deg, #fff5f9 0%, #fff 100%);
  position: relative;
  overflow: hidden;
}
.page-hero.ue-hero {
  background: linear-gradient(135deg, #f0fff8 0%, #fff 100%);
}
.page-hero.dark-hero {
  background: linear-gradient(135deg, #1c1c1c 0%, #2d2d2d 100%);
  color: #fff;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,43,133,.08), transparent 70%);
}
.page-hero.ue-hero::before {
  background: radial-gradient(circle, rgba(6,193,103,.08), transparent 70%);
}
.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pink-lighter);
  color: var(--pink);
  font-size: .82rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.page-hero-badge.green { background: #e8fbf3; color: var(--ue-green); }
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 12px;
}
.page-hero p { font-size: 1rem; color: var(--text-sub); max-width: 560px; }
.page-hero.dark-hero p { color: rgba(255,255,255,.7); }

/* Sub-page anchor nav */
.anchor-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--nav-height);
  z-index: 100;
}
.anchor-nav .container { display: flex; gap: 0; overflow-x: auto; }
.anchor-nav a {
  display: block;
  padding: 14px 20px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-sub);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.anchor-nav a:hover { color: var(--pink); border-color: var(--pink); }
.anchor-nav a.ue:hover { color: var(--ue-green); border-color: var(--ue-green); }
.anchor-nav a.active-anchor { color: var(--pink); border-color: var(--pink); }

/* ---------- Info Boxes ---------- */
.info-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
}
.info-box.warning { background: #fff3e0; border-left: 4px solid #ff9800; }
.info-box.tip { background: #e8f5e9; border-left: 4px solid #4caf50; }
.info-box.info { background: #e3f2fd; border-left: 4px solid #2196f3; }
.info-box.pink { background: var(--pink-lighter); border-left: 4px solid var(--pink); }
.info-box-icon { font-size: 1.3rem; flex-shrink: 0; align-self: center; }
.info-box-text { font-size: .88rem; color: var(--text-sub); line-height: 1.7; }
.info-box-text strong { color: var(--text); }

/* ---------- Stats Row ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}
.stat-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}
.stat-box .stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--pink);
  line-height: 1;
}
.stat-box .stat-num.green { color: var(--ue-green); }
.stat-box .stat-label { font-size: .82rem; color: var(--text-muted); margin-top: 6px; }

/* ---------- YouTube Video Embed ---------- */
.video-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  padding-top: 56.25%;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ---------- YouTube Thumbnail Link (replaces iframe when embedding disabled) ---------- */
.yt-thumb-link {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: block;
  text-decoration: none;
  background: #000;
  overflow: hidden;
}
.yt-thumb-link img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .25s, transform .3s;
  opacity: .92;
}
.yt-thumb-link:hover img {
  opacity: .75;
  transform: scale(1.03);
}
.yt-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
  transition: transform .2s;
}
.yt-thumb-link:hover .yt-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
}
.yt-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: #fff;
  font-size: .78rem;
  padding: 18px 12px 8px;
  text-align: center;
  letter-spacing: .02em;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.7);
  padding: 48px 0 28px;
  margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo-text {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand p { font-size: .85rem; line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-size: .85rem; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: .05em; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: .83rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--pink); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom .disclaimer { font-size: .75rem; opacity: .5; max-width: 600px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--pink); }
.breadcrumb span { color: var(--text-sub); }

/* ---------- Highlight Box ---------- */
.highlight-box {
  background: var(--pink-lighter);
  border: 1px solid rgba(255,43,133,.2);
  border-radius: var(--radius-md);
  padding: 28px;
}
.highlight-box.green-box {
  background: #e8fbf3;
  border-color: rgba(6,193,103,.2);
}
.highlight-box h4 { font-size: 1rem; font-weight: 700; color: var(--pink); margin-bottom: 10px; }
.highlight-box.green-box h4 { color: var(--ue-green); }

/* ---------- Doc Checklist ---------- */
.doc-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.doc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: .88rem;
  font-weight: 500;
}
.doc-item .doc-icon { font-size: 1.2rem; }
.doc-item.required::after {
  content: '必要';
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: .72rem;
  font-weight: 700;
  background: #ffebee;
  color: #c62828;
  padding: 2px 8px;
  border-radius: 100px;
}
.doc-item.optional::after {
  content: '選填';
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: .72rem;
  font-weight: 700;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 2px 8px;
  border-radius: 100px;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #bbb; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --container: 100%; }
  .section { padding: 52px 0; }
  .section-title { font-size: 1.6rem; }

  /* Nav */
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open { display: flex; }
  .nav-menu li a { padding: 12px 16px; }

  /* Hero */
  .hero { min-height: auto; padding: calc(var(--nav-height) + 40px) 0 48px; }
  .hero-layout { flex-direction: column; gap: 40px; }
  .hero-visual-inner { width: 200px; height: 200px; font-size: 5rem; }
  .hero h1 { font-size: 1.9rem; }
  .hero-stats { gap: 20px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Grids */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .platform-cards { grid-template-columns: 1fr; }

  /* Steps */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .steps-grid::before { display: none; }

  /* Calculator */
  .calc-form { grid-template-columns: 1fr; }
  .calc-breakdown { grid-template-columns: 1fr; gap: 8px; }
  .calculator-box { padding: 24px; }

  /* Exam */
  .exam-section { padding: 24px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Stats */
  .stats-row { grid-template-columns: repeat(2, 1fr); }

  /* Referral banner */
  .referral-banner { padding: 28px 20px; }
  .referral-banner h3 { font-size: 1.2rem; }

  /* GB steps */
  .gb-step { flex-direction: column; gap: 12px; }
  .gb-step::after { display: none; }

  /* Equip */
  .equip-grid { grid-template-columns: 1fr; }

  /* Doc checklist */
  .doc-checklist { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section-title { font-size: 1.4rem; }
  .btn-lg { padding: 13px 24px; font-size: .95rem; }
  .calc-result .result-amount { font-size: 2.2rem; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .hero-stats .hero-stat .num { font-size: 1.4rem; }
}
