/* ============================================================
   小胖收機 — fatphone3c.com
   配色取自品牌 Logo：深藍墨 × 金 × 橘 × 藍
   ============================================================ */

:root {
  --ink: #131a24;          /* 深藍墨（深色區塊底） */
  --ink-2: #1c2532;        /* 深色卡片 */
  --ink-3: #0c1119;        /* 頁尾 */
  --paper: #f8f6f1;        /* 暖白底 */
  --paper-2: #efece4;      /* 次要底色 */
  --card: #ffffff;
  --line: #ddd8cd;
  --line-dark: #333d4d;
  --text: #1f2733;
  --muted: #6b7280;
  --muted-light: #a7b0bf;
  --accent: #e8730c;       /* 品牌橘 */
  --accent-hover: #c95f08;
  --accent-soft: #fdefe2;
  --blue: #1e5fa8;         /* 品牌藍 */
  --blue-soft: #e7f0fa;
  --gold: #c9a227;         /* 品牌金 */
  --gold-soft: #faf3dd;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(19, 26, 36, .09);
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1160px, 92%); margin-inline: auto; }

/* ---------- 通用 ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink); color: #f1f0ec; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .18em;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--accent); }

h1, h2, h3 { line-height: 1.28; letter-spacing: .01em; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; margin-bottom: 52px; flex-wrap: wrap;
}
.section-side { max-width: 340px; color: var(--muted); font-size: 15px; }
.section-dark .section-side { color: var(--muted-light); }
.section-side a { color: var(--accent); font-weight: 700; }

.accent { color: var(--accent); }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 10px;
  font-size: 15px; font-weight: 700; letter-spacing: .03em;
  border: 2px solid transparent; transition: all .2s ease;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(232,115,12,.28); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }

.btn-light { background: #f1f0ec; color: var(--ink); }
.btn-light:hover { background: #fff; }

.btn-ghost-light { border-color: var(--line-dark); color: #f1f0ec; background: transparent; }
.btn-ghost-light:hover { border-color: #f1f0ec; }

/* ---------- 頂部資訊列 ---------- */
.topbar { background: var(--ink-3); color: #cbd2dd; font-size: 13px; padding: 8px 0; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar-brand { font-weight: 500; letter-spacing: .04em; }
.topbar-info a:hover { color: var(--accent); }
.topbar .dot { opacity: .45; }

/* ---------- 導覽列 ---------- */
.site-header {
  background: rgba(248, 246, 241, .94);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { width: 56px; height: 56px; object-fit: contain; }
.logo-text { line-height: 1.25; }
.logo-text strong { font-size: 20px; font-weight: 900; display: block; letter-spacing: .04em; }
.logo-text small { font-size: 11px; letter-spacing: .14em; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.main-nav a { font-weight: 500; color: var(--text); transition: color .2s; }
.main-nav a:hover { color: var(--accent); }
.main-nav .nav-cta {
  background: var(--accent); color: #fff;
  padding: 10px 20px; border-radius: 10px; font-weight: 700;
}
.main-nav .nav-cta:hover { background: var(--accent-hover); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  margin: 5px auto; transition: all .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 88% 18%, rgba(201,162,39,.14), transparent 62%),
    radial-gradient(700px 380px at 10% 78%, rgba(30,95,168,.09), transparent 60%),
    var(--paper);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 56px; align-items: center; padding: 84px 0;
}
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 900; margin-bottom: 24px; }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 520px; margin-bottom: 34px; }
.hero-sub strong { color: var(--text); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-creds {
  display: flex; gap: 32px; list-style: none;
  font-size: 14px; font-weight: 700; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 22px;
}
.cred-num { color: var(--accent); margin-right: 8px; font-weight: 900; }

.hero-visual { display: flex; justify-content: center; }
.hero-logo-wrap { text-align: center; }
.hero-logo {
  width: min(380px, 82vw); height: auto; margin-inline: auto;
  filter: drop-shadow(0 18px 40px rgba(19,26,36,.18));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-tags {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  list-style: none; margin-top: 20px;
}
.hero-tags li {
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 16px;
  font-size: 13.5px; font-weight: 700; color: var(--text);
  box-shadow: 0 3px 10px rgba(19,26,36,.05);
}

/* ---------- 快速估價 ---------- */
.quick-quote { padding: 96px 0; }
.qq-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.qq-intro h2 { margin-bottom: 20px; }
.qq-sub { color: var(--muted-light); margin-bottom: 18px; }
.qq-note {
  font-size: 14px; color: var(--muted-light);
  border-left: 3px solid var(--accent); padding-left: 14px;
}
.qq-note strong { color: #f1f0ec; }

.qq-panel {
  background: var(--paper); color: var(--text);
  border-radius: var(--radius); padding: 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,.36);
}
.qq-steps {
  display: flex; gap: 4px; list-style: none;
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  color: var(--muted); margin-bottom: 28px;
}
.qq-steps li {
  flex: 1; padding-bottom: 10px; border-bottom: 3px solid var(--line);
  transition: all .25s;
}
.qq-steps li.active { color: var(--accent); border-color: var(--accent); }
.qq-steps li.done { color: var(--ink); border-color: var(--ink); }

.qq-step { display: none; }
.qq-step.active { display: block; animation: qqFade .3s ease; }
@keyframes qqFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.qq-step-label {
  font-size: 11px; letter-spacing: .2em; color: var(--muted);
  margin-bottom: 8px; font-weight: 700;
}
.qq-step h3 { font-size: 23px; font-weight: 900; margin-bottom: 20px; }

.qq-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qq-options button {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 15px 18px; font-size: 15px; font-weight: 500;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  transition: all .18s ease; text-align: left;
}
.qq-options button::after { content: "→"; color: var(--muted); transition: all .18s; flex-shrink: 0; }
.qq-options button:hover { border-color: var(--accent); color: var(--accent); }
.qq-options button:hover::after { color: var(--accent); transform: translateX(3px); }
.qq-options[data-key="intent"] { grid-template-columns: 1fr; }
.qq-options[data-key="intent"] button { padding: 20px; font-size: 16px; font-weight: 700; }

.qq-result {
  background: var(--ink); color: #eceae4;
  border-radius: 10px; padding: 20px 22px;
  font-family: inherit; font-size: 14.5px; line-height: 1.9;
  white-space: pre-wrap; margin-bottom: 20px;
}
.qq-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.qq-actions .btn-light { background: var(--paper-2); }
.qq-actions .btn-ghost-light { border-color: var(--line); color: var(--muted); }
.qq-actions .btn-ghost-light:hover { border-color: var(--muted); color: var(--text); }

.qq-nav { margin-top: 22px; }
.qq-back { background: none; border: 0; color: var(--muted); font-size: 14px; font-weight: 700; }
.qq-back:disabled { opacity: .35; cursor: default; }
.qq-back:not(:disabled):hover { color: var(--text); }

/* ---------- 手機收購 ---------- */
.buyback-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-bottom: 64px;
}
.bb-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.bb-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bb-card.is-gold { background: var(--gold-soft); border-color: #e8dcb0; }
.bb-icon { font-size: 30px; display: block; margin-bottom: 14px; }
.bb-card h3 { font-size: 19px; font-weight: 900; margin-bottom: 8px; }
.bb-card p { font-size: 14.5px; color: var(--muted); }

.bb-flow {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 40px;
}
.bb-flow-title { font-size: 22px; font-weight: 900; margin-bottom: 28px; }
.bb-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; list-style: none;
}
.bb-steps li { display: flex; gap: 14px; align-items: flex-start; }
.bb-num {
  display: grid; place-items: center; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--blue-soft); color: var(--blue);
  font-weight: 900; font-size: 14px;
}
.bb-steps h4 { font-size: 16px; font-weight: 900; margin-bottom: 4px; }
.bb-steps p { font-size: 14px; color: var(--muted); }
.bb-note {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--paper-2);
  font-size: 13.5px; color: var(--muted);
}

/* ---------- 維修項目 ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px;
}
.sc-num {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 900; font-size: 15px;
}
.sc-tag { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.service-card h3 { font-size: 21px; font-weight: 900; }
.service-card p { font-size: 14.5px; color: var(--muted); flex: 1; }
.sc-link {
  font-size: 14px; font-weight: 700; color: var(--accent);
  display: inline-flex; gap: 6px; align-items: center;
}
.sc-link span { transition: transform .2s; }
.sc-link:hover span { transform: translateX(4px); }

.service-card.is-dark { background: var(--ink-2); border-color: var(--ink-2); color: #f1f0ec; }
.service-card.is-dark .sc-num { background: rgba(232,115,12,.2); }
.service-card.is-dark .sc-tag { color: var(--muted-light); }
.service-card.is-dark p { color: var(--muted-light); }

/* ---------- 價目表 ---------- */
.pricing-tabs { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.tab-btn {
  padding: 11px 26px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  font-size: 15px; font-weight: 700; color: var(--muted); transition: all .2s;
}
.tab-btn:hover { border-color: var(--ink); color: var(--ink); }
.tab-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: qqFade .3s ease; }

.table-wrap {
  overflow-x: auto; background: var(--card);
  border-radius: var(--radius); border: 1px solid var(--line);
}
.price-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.price-table th, .price-table td { text-align: left; padding: 16px 24px; font-size: 15px; }
.price-table thead th {
  background: var(--ink); color: #f1f0ec;
  font-weight: 700; letter-spacing: .05em; font-size: 14px;
}
.price-table tbody tr + tr { border-top: 1px solid var(--paper-2); }
.price-table td:nth-child(2) { font-weight: 700; color: var(--accent-hover); }
.pricing-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* ---------- Why ---------- */
.why { padding: 96px 0; }
.why-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.why-frame {
  background: linear-gradient(150deg, #242f3f, #131a24);
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 48px 30px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.why-logo { width: min(240px, 60vw); height: auto; }
.why-frame-tag { font-size: 13px; letter-spacing: .24em; color: var(--gold); font-weight: 700; }
.why-text h2 { margin-bottom: 32px; }
.why-list { list-style: none; display: flex; flex-direction: column; }
.why-list li { display: flex; gap: 22px; padding: 20px 0; border-top: 1px solid var(--line-dark); }
.why-num { font-weight: 900; color: var(--accent); font-size: 15px; padding-top: 3px; }
.why-list h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.why-list p { font-size: 14.5px; color: var(--muted-light); }

/* ---------- FAQ ---------- */
.faq-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 24px; }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; font-size: 16px; font-weight: 700;
  cursor: pointer; list-style: none; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { color: var(--accent); font-weight: 400; font-size: 20px; transition: transform .25s; flex-shrink: 0; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p { padding: 0 0 20px; color: var(--muted); font-size: 15px; }

/* ---------- 門市資訊 ---------- */
.contact { padding: 96px 0; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact-text h2 { margin-bottom: 18px; }
.contact-brand {
  font-size: 14px; font-weight: 700; letter-spacing: .06em;
  color: var(--gold); margin-bottom: 32px;
}
.contact-info {
  display: grid; grid-template-columns: repeat(3, auto); gap: 30px;
  border-top: 1px solid var(--line-dark); padding-top: 26px; margin-bottom: 32px;
}
.contact-info dt {
  font-size: 12px; letter-spacing: .14em; color: var(--muted-light);
  margin-bottom: 8px; font-weight: 700;
}
.contact-info dd { font-size: 15px; line-height: 1.8; }
.contact-info a:hover { color: var(--accent); }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.contact-map {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-dark); line-height: 0;
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}
.contact-map iframe { display: block; width: 100%; height: 420px; filter: saturate(.92); }
.contact-info dd small { color: var(--muted-light); font-size: 13px; }

/* ---------- 頁尾 ---------- */
.site-footer { background: var(--ink-3); color: #cbd2dd; padding: 66px 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 36px; padding-bottom: 44px; border-bottom: 1px solid var(--line-dark);
}
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand img { width: 64px; height: 64px; object-fit: contain; }
.footer-brand strong { color: #fff; font-size: 17px; letter-spacing: .04em; }
.footer-brand small { color: var(--gold); }
.footer-col h4 {
  font-size: 13px; letter-spacing: .14em; color: var(--muted-light);
  margin-bottom: 14px; font-weight: 700;
}
.footer-col a { display: block; font-size: 14.5px; padding: 5px 0; color: #cbd2dd; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 22px; font-size: 13px; color: var(--muted-light); flex-wrap: wrap;
}

/* ---------- 手機版固定快捷列 ---------- */
.mobile-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 90; box-shadow: 0 -6px 24px rgba(0,0,0,.18);
}
.mobile-cta-btn { flex: 1; text-align: center; padding: 15px 0; font-size: 15px; font-weight: 900; }
.mobile-cta-btn.call { background: var(--ink); color: #fff; }
.mobile-cta-btn.line { background: var(--accent); color: #fff; }

/* ---------- 進場動畫 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-logo { animation: none; }
}

/* ============================================================
   RWD
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; padding: 60px 0; }
  .hero-visual { order: -1; }
  .hero-logo { width: min(280px, 66vw); }
  .qq-inner, .why-inner, .faq-inner, .contact-inner { grid-template-columns: 1fr; gap: 44px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .buyback-grid { grid-template-columns: 1fr 1fr; }
  .bb-steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { gap: 18px; font-size: 14.5px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); flex-direction: column; align-items: stretch;
    padding: 10px 4% 20px; gap: 2px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 8px; }
  .main-nav .nav-cta { text-align: center; margin-top: 8px; }
}

@media (max-width: 700px) {
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-brand { display: none; }

  .section, .quick-quote, .why, .contact { padding: 60px 0; }

  .logo-img { width: 46px; height: 46px; }
  .logo-text strong { font-size: 17px; }
  .logo-text small { font-size: 10px; }

  .qq-panel { padding: 22px; }
  .qq-options { grid-template-columns: 1fr; }
  .qq-steps { font-size: 10.5px; }

  .services-grid, .buyback-grid, .bb-steps { grid-template-columns: 1fr; }
  .bb-flow { padding: 26px; }
  .contact-info { grid-template-columns: 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; }

  .mobile-cta { display: flex; }
  body { padding-bottom: 52px; }
}
