/* ============================================================
   萬物城 — Home page styles
   ============================================================ */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(680px 460px at 22% 38%, rgba(245,183,32,0.18), transparent 62%),
    radial-gradient(560px 480px at 86% 60%, rgba(76,125,240,0.12), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  align-items: center; gap: var(--s-7);
  position: relative;
}
.hero-copy { position: relative; }
.hero-badge { margin-bottom: var(--s-5); }
.hero-badge { font-family: var(--f-display); letter-spacing: .14em; font-size: 11.5px; text-transform: uppercase; color: var(--gold); }

.hero-title {
  font-family: var(--f-cn); font-weight: 900;
  font-size: clamp(40px, 6.4vw, 78px);
  line-height: 1.05; letter-spacing: -0.01em;
}
.hero-title span { display: block; }
.hero-title .hl { color: var(--gold); text-shadow: 0 0 38px rgba(245,183,32,0.34); }

.hero-en {
  margin-top: var(--s-4);
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(16px, 1.8vw, 21px); color: var(--text-soft);
  letter-spacing: .01em;
}
.hero-features {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: var(--s-5);
  font-family: var(--f-display); font-weight: 600; font-size: 14.5px; color: var(--text-soft);
}
.hfeat { display: inline-flex; align-items: center; gap: 7px; }
.hfeat i { font-style: normal; }
.hero-features .sep { color: var(--text-muted); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: var(--s-7); }

.hero-stats {
  display: flex; gap: var(--s-7); margin-top: var(--s-7);
  padding-top: var(--s-6); border-top: 1px solid var(--line-soft);
}
.hstat b {
  display: block; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(28px, 3.4vw, 38px); color: var(--gold); line-height: 1;
  letter-spacing: -0.01em;
}
.hstat span { font-size: 13px; color: var(--text-dim); margin-top: 6px; display: block; }

/* hero visual */
.hero-visual { position: relative; height: 460px; display: grid; place-items: center; }
.crest-ring {
  position: relative; width: 320px; height: 320px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--line-strong);
  box-shadow: inset 0 0 80px -30px rgba(245,183,32,0.4), 0 30px 80px -30px rgba(0,0,0,0.8);
  background: radial-gradient(circle, rgba(245,183,32,0.08), transparent 70%);
}
.crest-ring::before {
  content: ""; position: absolute; inset: -22px; border-radius: 50%;
  border: 1px dashed rgba(245,183,32,0.22);
  animation: spin 38s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.crest-glow {
  position: absolute; width: 78%; height: 78%; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,183,32,0.30), transparent 65%);
  filter: blur(8px);
}
.crest-ring img {
  position: relative; width: 78%; height: 78%; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 50px -10px rgba(245,183,32,0.5);
}

.float-chip {
  position: absolute; display: flex; align-items: center; gap: 9px;
  background: rgba(17,24,38,0.9); backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: 9px 15px 9px 9px;
  box-shadow: var(--shadow);
  animation: floaty 5s ease-in-out infinite;
}
.float-chip i {
  font-style: normal; font-family: var(--f-display); font-weight: 800; font-size: 13px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-gold); color: #1a1206;
}
.float-chip span { font-family: var(--f-display); font-weight: 700; font-size: 13px; color: var(--text); }
.float-chip.fc1 { top: 6%; left: -6%; animation-delay: 0s; }
.float-chip.fc2 { top: 24%; right: -10%; animation-delay: .8s; }
.float-chip.fc3 { bottom: 20%; left: -10%; animation-delay: 1.6s; }
.float-chip.fc4 { bottom: 2%; right: -2%; animation-delay: 2.4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) {
  .float-chip, .crest-ring::before { animation: none; }
}

.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-soft); display: grid; place-items: center;
  color: var(--text-dim);
  animation: bob 2.2s ease-in-out infinite;
}
.hero-scroll svg { width: 20px; height: 20px; }
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,7px); } }

/* ---------- ABOUT ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s-8); align-items: start; }
.about-lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--text-soft); line-height: 1.7; }
.about-en { margin-top: var(--s-4); color: var(--text-dim); font-size: 15px; line-height: 1.7; }
.about-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-6); }

/* ---------- SERVICES ---------- */
.svc-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: var(--s-7); }
.svc-tab {
  font-family: var(--f-body); font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: var(--r-pill);
  border: 1px solid var(--line-soft); color: var(--text-soft);
  transition: all .2s var(--ease);
}
.svc-tab:hover { border-color: var(--line-strong); color: var(--text); }
.svc-tab.active { background: var(--grad-gold); color: #1a1206; border-color: transparent; font-weight: 700; }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px; border-radius: var(--r-lg);
  text-align: left;
}
.svc-thumb {
  width: 58px; height: 58px; border-radius: var(--r-md); flex: none;
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; font-size: 18px; color: #1a1206;
  background: var(--g, var(--grad-gold));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}
.svc-info { flex: 1; min-width: 0; }
.svc-info .svc-name { font-family: var(--f-cn); font-weight: 700; font-size: 16px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.svc-info .svc-en { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; }
.svc-card .svc-go { color: var(--text-muted); flex: none; transition: color .2s, transform .2s var(--ease); }
.svc-card:hover .svc-go { color: var(--gold); transform: translateX(3px); }
.svc-card .svc-go svg { width: 20px; height: 20px; }

/* ---------- WHY ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-card { padding: 28px; }
.why-ic {
  width: 52px; height: 52px; border-radius: var(--r-md); margin-bottom: 18px;
  display: grid; place-items: center; font-size: 24px;
  background: rgba(245,183,32,0.10); border: 1px solid var(--line);
}
.why-card h3 { font-family: var(--f-cn); font-weight: 700; font-size: 19px; margin-bottom: 8px; }
.why-card p { color: var(--text-dim); font-size: 14.5px; line-height: 1.65; }

/* ---------- STATS BAND ---------- */
.stats-band {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  overflow: hidden;
}
.sband { padding: 38px 28px; text-align: center; border-right: 1px solid var(--line-soft); }
.sband:last-child { border-right: none; }
.sband b {
  display: block; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(34px, 4.4vw, 52px); color: var(--gold); line-height: 1; letter-spacing: -0.02em;
}
.sband b i { font-style: normal; font-size: 0.5em; font-weight: 700; }
.sband span { display: block; margin-top: 12px; font-family: var(--f-cn); font-weight: 700; font-size: 15px; color: var(--text); }
.sband span small { display: block; font-family: var(--f-display); font-weight: 500; font-size: 11.5px; color: var(--text-muted); letter-spacing: .04em; margin-top: 3px; }

/* ---------- REVIEWS ---------- */
.rev-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.rev-card { padding: 28px; }
.rev-stars { color: var(--gold); letter-spacing: 3px; font-size: 15px; margin-bottom: 14px; }
.rev-card blockquote { font-size: 16px; color: var(--text-soft); line-height: 1.7; }
.rev-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.rev-av {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--f-cn); font-weight: 700; font-size: 16px; color: #fff;
  background: var(--c, var(--gold));
}
.rev-id { font-family: var(--f-cn); font-weight: 700; font-size: 14.5px; color: var(--text); line-height: 1.3; }
.rev-id small { display: block; font-family: var(--f-body); font-weight: 500; font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }

.center-cta { text-align: center; margin-top: var(--s-7); }

/* ---------- HOW ---------- */
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.how-step { position: relative; padding: 28px 24px; border-radius: var(--r-lg); border: 1px solid var(--line-soft); background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%); }
.how-num {
  font-family: var(--f-display); font-weight: 800; font-size: 30px;
  -webkit-text-stroke: 1.5px var(--gold); color: transparent;
  display: block; margin-bottom: 16px; line-height: 1;
}
.how-step h3 { font-family: var(--f-cn); font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.how-step p { color: var(--text-dim); font-size: 14px; line-height: 1.6; }
.how-step:not(:last-child)::after {
  content: ""; position: absolute; top: 42px; right: -11px; width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent); z-index: 1;
}

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--s-8); align-items: start; }
.faq-cta { margin-top: var(--s-5); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--surface); overflow: hidden; transition: border-color .25s; }
.faq-item.open { border-color: var(--line-strong); }
.faq-q {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--f-cn); font-weight: 700; font-size: 16px; color: var(--text);
  padding: 20px 22px;
}
.faq-ic { position: relative; width: 16px; height: 16px; flex: none; }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; background: var(--gold); border-radius: 2px; transition: transform .25s var(--ease); }
.faq-ic::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-ic::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-item.open .faq-ic::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a p { padding: 0 22px 20px; color: var(--text-dim); font-size: 15px; line-height: 1.7; }

/* ---------- COMMUNITY ---------- */
.community { text-align: center; padding: clamp(40px, 6vw, 72px) var(--gutter); overflow: hidden; }
.community-bg {
  position: absolute; inset: 0;
  background: radial-gradient(600px 360px at 50% -10%, rgba(245,183,32,0.16), transparent 60%);
  pointer-events: none;
}
.community .sec-title { margin-top: 4px; }
.community-sub { position: relative; max-width: 620px; margin: 18px auto 0; color: var(--text-dim); font-size: 16px; line-height: 1.7; }
.community-btns { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: var(--s-6); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .how-step:nth-child(2)::after { display: none; }
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .hero-visual { order: -1; height: 320px; }
  .crest-ring { width: 240px; height: 240px; }
  .about-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .faq-wrap { grid-template-columns: 1fr; gap: var(--s-6); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .sband:nth-child(2) { border-right: none; }
  .sband:nth-child(1), .sband:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 600px) {
  .rev-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: var(--s-5); }
  .float-chip.fc1, .float-chip.fc3 { left: 0; }
  .float-chip.fc2, .float-chip.fc4 { right: 0; }
}
