/* ============================================================
   huixiaotuan.com — 荟小团官网样式（一页版）
   修改品牌色：搜索 :root 里的 --brand 变量
   ============================================================ */

:root {
  --brand: #f97316;
  --brand-dark: #ea580c;
  --brand-soft: #fff7ed;
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.45);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-en {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--ink-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a:not(.btn) {
  font-size: 15px;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--brand);
}

.nav-cta {
  padding: 9px 22px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.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 {
  position: relative;
  overflow: hidden;
  padding: 160px 0 120px;
  background: #0b1220;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(249, 115, 22, 0.2), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(236, 72, 153, 0.14), transparent 45%);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}

.hero-orb-1 {
  width: 320px;
  height: 320px;
  top: -100px;
  left: -80px;
  background: var(--brand);
}

.hero-orb-2 {
  width: 280px;
  height: 280px;
  bottom: -120px;
  right: -60px;
  background: #ec4899;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.75);
}

.hero h1 {
  font-size: clamp(44px, 6.5vw, 72px);
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff 30%, #fdba74);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  margin-top: 16px;
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 600;
}

.hero-desc {
  max-width: 520px;
  margin-top: 14px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- 手机样机 ---------- */
.hero-mock {
  display: flex;
  justify-content: center;
}

.phone {
  width: 290px;
  border: 8px solid #1e293b;
  border-radius: 38px;
  background: #fff;
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.phone-bar {
  display: flex;
  justify-content: space-between;
  padding: 10px 18px 6px;
  font-size: 12px;
  font-weight: 600;
}

.phone-bar-icons {
  letter-spacing: 2px;
}

.phone-header {
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.coupon {
  margin: 18px 16px;
  padding: 20px 18px;
  border-radius: 14px;
  background: var(--brand-soft);
  border: 1px solid #fed7aa;
}

.coupon-store {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.coupon-title {
  margin-top: 6px;
  font-size: 21px;
  font-weight: 800;
  color: var(--brand-dark);
}

.coupon-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.coupon-stars {
  margin-top: 14px;
  font-size: 20px;
  letter-spacing: 2px;
  color: #f59e0b;
}

.coupon-stock {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-soft);
}

.coupon-btn {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.phone-nav {
  display: flex;
  justify-content: space-around;
  padding: 10px 0 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
}

/* ---------- 通用区块 ---------- */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-eyebrow {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand);
}

.section-title {
  margin-top: 8px;
  text-align: center;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: 1px;
}

.section-desc {
  max-width: 560px;
  margin: 14px auto 0;
  text-align: center;
  color: var(--ink-soft);
}

/* ---------- 关于我们 ---------- */
.about-inner {
  text-align: center;
}

.about-text {
  max-width: 640px;
  margin: 22px auto 0;
  color: var(--ink-soft);
}

.mini-points {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.mini-point {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 14px;
  font-weight: 600;
}

.mini-point span {
  font-size: 18px;
}

/* ---------- 联系我们 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.contact-card {
  display: block;
  padding: 34px 26px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

a.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.contact-icon {
  font-size: 32px;
}

.contact-card h3 {
  margin-top: 14px;
  font-size: 17px;
}

.contact-card p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-soft);
  word-break: break-all;
}

/* ---------- 页脚 ---------- */
.site-footer {
  padding: 36px 0;
  background: #0b1220;
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fdba74;
}

.footer-copy {
  font-size: 13px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-mock {
    order: -1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 4%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .nav-links.open {
    transform: scaleY(1);
    opacity: 1;
  }

  .nav-links li {
    border-bottom: 1px solid var(--line);
  }

  .nav-links li:last-child {
    border-bottom: 0;
  }

  .nav-links a:not(.btn) {
    display: block;
    padding: 14px 8px;
  }

  .nav-cta {
    margin: 12px 0 6px;
    text-align: center;
  }

  .hero {
    padding: 130px 0 80px;
  }

  .section {
    padding: 64px 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
