/* 附近面交 FaceTrade 形象官網
   色彩沿用 App 的 DESIGN_SYSTEM.md：深藍 --c-600 為主色、淡藍 --c-400 為品牌亮階，
   橘色取自 logo 的定位圖釘（只當底色或大面積裝飾，白底上不當小字用，對比不夠）。 */
:root {
  --c-400: #d3e9ef;
  --c-600: #0d607c;
  --c-700: #0a4d63;
  --orange: #ef8a34;
  --orange-soft: #fdeede;
  --t-100: #dbf2ef;
  --t-800: #236259;
  --o-600: #db3c10;
  --n-900: #202527;
  --n-800: #414a4e;
  --n-600: #6a7980;
  --n-300: #d3d9dc;
  --n-200: #eceeef;
  --n-100: #f5f6f7;
  --n-000: #ffffff;
  --shadow-sm: 0 1px 2px rgba(32, 37, 39, .06), 0 2px 8px rgba(32, 37, 39, .06);
  --shadow-lg: 0 12px 40px rgba(32, 37, 39, .14), 0 2px 6px rgba(32, 37, 39, .06);
  --r: 16px;
  --font: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--n-000); color: var(--n-800);
  font-family: var(--font); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-600); }
h1, h2, h3 { color: var(--n-900); margin: 0; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
.br-sm { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: background-color .15s, box-shadow .15s, transform .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(13, 96, 124, .45); outline-offset: 3px; }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn-primary { background: var(--c-600); color: #fff; box-shadow: 0 4px 14px rgba(32, 37, 39, .16); }
.btn-primary:hover { background: var(--c-700); }
.btn-ghost { background: var(--n-000); color: var(--c-600); border-color: var(--n-300); }
.btn-ghost:hover { background: var(--n-100); }
.btn-accent { background: var(--orange); color: var(--n-900); }
.btn-accent:hover { background-image: linear-gradient(rgba(32, 37, 39, .1), rgba(32, 37, 39, .1)); }
.btn-light { background: #fff; color: var(--c-600); }
.btn-light:hover { background: var(--c-400); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--n-200);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 155px; height: auto; }
.brand-zh { font-weight: 700; color: var(--n-600); font-size: 14px; padding-left: 10px; border-left: 1px solid var(--n-300); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--n-800); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--c-600); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% 10%, var(--c-400), transparent 70%),
    radial-gradient(500px 360px at 70% 95%, var(--orange-soft), transparent 70%),
    var(--n-000);
  padding: 72px 0 96px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--n-300); border-radius: 999px;
  padding: 6px 14px; font-size: 14px; font-weight: 700; color: var(--c-600);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(239, 138, 52, .2); }
.hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 900; letter-spacing: .01em; margin: 20px 0 20px; }
.hero h1 .hl {
  color: var(--c-600);
  background: linear-gradient(transparent 68%, rgba(239, 138, 52, .35) 68%);
  padding: 0 .06em;
}
.lead { font-size: 18px; color: var(--n-800); max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-cta.center { justify-content: center; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; }
.hero-points li { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--n-600); }
.hero-points svg { width: 18px; height: 18px; color: var(--t-800); }

/* 示意手機 */
.hero-art { position: relative; min-height: 540px; display: flex; justify-content: center; align-items: center; }
.phone {
  width: 300px; border-radius: 40px; background: #fff; overflow: hidden;
  border: 10px solid var(--n-900); box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}
.phone-map { position: relative; height: 230px; background: var(--c-400); overflow: hidden; }
.streets { position: absolute; inset: 0; width: 100%; height: 100%; }
.streets path { stroke: #fff; stroke-width: 10; fill: none; }
.streets path.minor { stroke-width: 4; opacity: .7; }
.radius {
  position: absolute; left: 50%; top: 50%; width: 170px; height: 170px; margin: -85px 0 0 -85px;
  border-radius: 50%; border: 2px dashed rgba(13, 96, 124, .45); background: rgba(13, 96, 124, .06);
}
.here {
  position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; background: var(--c-600); border: 3px solid #fff;
  box-shadow: 0 0 0 8px rgba(13, 96, 124, .18);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(13, 96, 124, .35); }
  100% { box-shadow: 0 0 0 22px rgba(13, 96, 124, 0); }
}
.pin {
  position: absolute; width: 26px; height: 26px; border-radius: 50% 50% 50% 0;
  background: var(--orange); transform: rotate(-45deg); border: 3px solid #fff;
  box-shadow: 0 3px 8px rgba(32, 37, 39, .2);
}
.pin::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.p1 { left: 58%; top: 26%; }
.p2 { left: 24%; top: 58%; }
.p3 { left: 74%; top: 64%; }

.phone-list { padding: 10px 12px 16px; display: grid; gap: 8px; background: var(--n-100); }
.item {
  display: flex; gap: 10px; align-items: center;
  background: #fff; border-radius: 14px; padding: 8px; box-shadow: var(--shadow-sm);
}
.thumb {
  flex: none; width: 52px; height: 52px; border-radius: 10px;
  display: grid; place-items: center; font-size: 26px;
}
.t1 { background: #e3eef2; }
.t2 { background: var(--orange-soft); }
.t3 { background: var(--t-100); }
.info { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.info b { font-size: 13px; color: var(--n-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info .meta { font-size: 11px; color: var(--n-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info .price { font-size: 14px; font-weight: 900; color: var(--c-600); }
.info .price.gift { color: var(--o-600); }
.dist {
  flex: none; align-self: flex-start; font-size: 11px; font-weight: 700;
  color: var(--c-600); background: var(--c-400); border-radius: 999px; padding: 2px 8px;
}

.float { position: absolute; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); }
.chat { left: -40px; bottom: 40px; padding: 12px; display: grid; gap: 6px; width: 230px; animation: bob 6s ease-in-out infinite; }
.bubble { font-size: 13px; line-height: 1.45; padding: 8px 12px; border-radius: 14px; max-width: 90%; }
.bubble.them { background: var(--n-100); color: var(--n-900); border-bottom-left-radius: 4px; }
.bubble.me { background: var(--c-600); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.seller { right: -4px; top: 70px; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; animation: bob 6s ease-in-out -3s infinite; }
.avatar {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-600); color: #fff; font-size: 12px; font-weight: 900;
}
.seller b { display: block; font-size: 13px; color: var(--n-900); line-height: 1.3; }
.seller span { font-size: 12px; color: var(--t-800); font-weight: 700; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Why ---------- */
.why { padding: 0 0 24px; margin-top: -40px; position: relative; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-card {
  background: #fff; border: 1px solid var(--n-200); border-radius: var(--r);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--c-400); color: var(--c-600); margin-bottom: 16px;
}
.ico svg { width: 26px; height: 26px; }
.why-card h3 { font-size: 18px; margin-bottom: 8px; }
.why-card p { font-size: 15px; color: var(--n-600); }

/* ---------- Section heads ---------- */
section.how, section.safe, section.cats, section.faq { padding: 96px 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.kicker { font-size: 14px; font-weight: 700; color: var(--c-600); letter-spacing: .12em; margin-bottom: 10px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; }
.sec-head h2, .sec-head .sub, .lead, .cta h2 { text-wrap: balance; }
.sec-head .sub { margin-top: 16px; color: var(--n-600); font-size: 17px; }

/* ---------- How ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding: 32px 28px; border-radius: var(--r); background: var(--n-100); }
.num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-600); color: #fff; font-weight: 900; font-size: 20px; margin-bottom: 18px;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 54px; right: -20px; width: 16px; height: 16px;
  border-top: 3px solid var(--n-300); border-right: 3px solid var(--n-300); transform: rotate(45deg);
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--n-600); font-size: 15px; }
.seller-note {
  margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--orange-soft); border-radius: var(--r); padding: 28px 32px;
}
.seller-note h3 { font-size: 20px; margin-bottom: 6px; }
.seller-note p { color: var(--n-800); font-size: 15px; max-width: 40em; }

/* ---------- Safe ---------- */
.safe { background: var(--c-600); color: #fff; }
.safe .kicker { color: var(--c-400); }
.safe .sec-head h2 { color: #fff; }
.safe .sec-head .sub { color: rgba(255, 255, 255, .82); }
.safe-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.safe-item {
  display: flex; gap: 18px; align-items: flex-start;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r); padding: 24px;
}
.safe-item > svg {
  flex: none; width: 48px; height: 48px; padding: 11px; border-radius: 14px;
  background: var(--orange); color: var(--n-900);
}
.safe-item h3 { color: #fff; font-size: 18px; margin-bottom: 6px; }
.safe-item p { color: rgba(255, 255, 255, .82); font-size: 15px; }
.places {
  margin-top: 24px; background: #fff; color: var(--n-800); border-radius: var(--r); padding: 28px 32px;
}
.places h3 { font-size: 18px; margin-bottom: 14px; }
.places ul { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.places li {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--n-300); border-radius: 999px; padding: 6px 14px; font-weight: 500; font-size: 15px;
}
.places p { color: var(--n-600); font-size: 15px; }

/* ---------- Categories ---------- */
.cats { background: var(--n-100); }
.cat-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 820px; margin: 0 auto; }
.cat-list li {
  background: #fff; border: 1px solid var(--n-300); border-radius: 999px;
  padding: 12px 22px; font-weight: 700; color: var(--n-900); font-size: 16px;
}
.cat-note { text-align: center; color: var(--n-600); margin-top: 28px; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--n-200); }
.faq details:first-of-type { border-top: 1px solid var(--n-200); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 700; font-size: 18px; color: var(--n-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--c-600); border-bottom: 2px solid var(--c-600);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 22px; color: var(--n-800); }

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(211, 233, 239, .18), transparent 70%),
    radial-gradient(500px 300px at 90% 100%, rgba(239, 138, 52, .25), transparent 70%),
    var(--c-700);
  padding: 88px 0; text-align: center;
}
.cta-inner img { width: 88px; height: 88px; margin: 0 auto 24px; border-radius: 22px; box-shadow: var(--shadow-lg); }
.cta h2 { color: #fff; font-size: clamp(28px, 4.2vw, 42px); font-weight: 900; }
.cta .hero-cta { margin-top: 32px; }

/* ---------- Footer ---------- */
.foot { background: var(--n-900); color: rgba(255, 255, 255, .72); padding: 48px 0 40px; font-size: 14px; }
.foot-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.foot-brand img { width: 140px; background: #fff; border-radius: 10px; padding: 6px 10px; box-sizing: content-box; margin-bottom: 14px; }
.foot-brand p { max-width: 30em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.foot-links a { color: #fff; text-decoration: none; font-weight: 500; }
.foot-links a:hover { text-decoration: underline; }
.foot-legal { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { text-align: center; }
  .lead { margin: 0 auto; }
  .hero-cta, .hero-points { justify-content: center; }
  .why { margin-top: 0; padding-top: 8px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-inner > .btn { margin-left: auto; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .br-sm { display: inline; }
  .hero { padding: 40px 0 56px; }
  .lead { font-size: 16px; }
  .hero-art { min-height: 500px; transform: scale(.92); }
  .chat { left: 0; bottom: 30px; width: 210px; }
  .seller { right: 0; top: 40px; }
  .why-grid, .steps, .safe-grid { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  section.how, section.safe, section.cats, section.faq { padding: 64px 0; }
  .sec-head { margin-bottom: 32px; }
  .seller-note { flex-direction: column; align-items: flex-start; padding: 24px; }
  .places { padding: 24px; }
  .foot-inner { grid-template-columns: 1fr; }
  .brand-zh { display: none; }
  .brand img { width: 130px; }
  .faq summary { font-size: 17px; }
}
@media (max-width: 380px) {
  .hero-art { transform: scale(.82); margin: -40px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
