/* ========== 变量与基础 ========== */
:root {
  --primary: #2f5cf6;
  --primary-dark: #1f43c8;
  --cyan: #06b6d4;
  --success: #16a34a;
  --danger: #dc2626;
  --ink: #0b1020;
  --ink-2: #3a4258;
  --muted: #6b7388;
  --line: #e7e9f0;
  --bg: #ffffff;
  --bg-soft: #f6f7fa;
  --dark: #0a1130;
  --dark-2: #111a45;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 12px rgba(16, 24, 48, 0.06);
  --shadow: 0 16px 40px rgba(16, 24, 48, 0.1);
  --shadow-primary: 0 14px 30px rgba(47, 92, 246, 0.28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* ========== 通用 ========== */
.section { padding: 110px 0; }
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-label.light { color: #7fa0ff; }
.section-title {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.section-title.light { color: #fff; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}
.section-head.center { justify-content: center; text-align: center; }
.section-head-desc { max-width: 460px; color: var(--muted); font-size: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 10px; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4a74ff);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(47, 92, 246, 0.36); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }

/* ========== 导航 ========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all 0.3s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  width: min(1200px, 92%);
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: flex; align-items: center; filter: drop-shadow(0 4px 10px rgba(47,92,246,.3)); }
.brand-logo-img { height: 36px; width: auto; display: block; }
.footer .brand-mark { filter: none; }
.footer .brand-logo-img { height: 30px; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.25s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s; }

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: linear-gradient(180deg, #f4f7ff 0%, #ffffff 70%);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(47,92,246,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,92,246,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.glow-1 { width: 480px; height: 480px; background: #9db4ff; top: -120px; right: -80px; animation: float1 13s ease-in-out infinite; }
.glow-2 { width: 380px; height: 380px; background: #9be9f5; bottom: -100px; left: -80px; animation: float2 15s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-40px,36px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(36px,-28px); } }
.hero-inner { position: relative; text-align: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(6,182,212,.18); }
.hero-title {
  font-size: clamp(38px, 6.4vw, 72px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -1.5px;
  background: linear-gradient(120deg, #0a1130 30%, #2f5cf6 70%, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 26px;
}
.hero-desc {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}
.scroll-line { width: 1px; height: 40px; background: linear-gradient(var(--primary), transparent); animation: scrollPulse 2s infinite; }
@keyframes scrollPulse { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ========== 关于 ========== */
.about { background: var(--bg-soft); }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-media { position: relative; }
.media-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.media-card img { transition: transform .7s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.media-card:hover img { transform: scale(1.07); }
.media-main img { width: 100%; height: 420px; object-fit: cover; }
.media-sub {
  position: absolute;
  right: -28px;
  bottom: -40px;
  width: 220px;
  border: 6px solid var(--bg-soft);
}
.media-sub img { width: 100%; height: 150px; object-fit: cover; }
.media-tag {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px;
  background: rgba(10,17,48,.72);
  color: #fff;
  font-size: 12px;
  text-align: center;
}
.about-p { color: var(--ink-2); margin: 18px 0; font-size: 16px; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 12px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); border-color: rgba(47,92,246,.4); }
.stat-num { font-size: 28px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ========== 能力 ========== */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cap-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: all 0.3s ease;
  overflow: hidden;
}
.cap-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}
.cap-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.cap-card:hover::before { transform: scaleX(1); }
.cap-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(47,92,246,.12), rgba(6,182,212,.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 22px;
  transition: transform .35s ease, background .35s ease, color .35s ease;
}
.cap-card:hover .cap-icon {
  transform: scale(1.12) rotate(-6deg);
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #fff;
}
.cap-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.cap-card p { font-size: 14.5px; color: var(--muted); }

/* ========== 时间轴（深色） ========== */
.timeline-section {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
  position: relative;
  overflow: hidden;
}
.timeline-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(47,92,246,.18), transparent 40%), radial-gradient(circle at 80% 80%, rgba(6,182,212,.15), transparent 40%);
  pointer-events: none;
}
.timeline { position: relative; }
.timeline-years {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}
.year-btn {
  padding: 10px 22px;
  border-radius: 100px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #aab4d6;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.year-btn:hover { color: #fff; border-color: rgba(127,160,255,.6); }
.year-btn.active {
  background: linear-gradient(135deg, var(--primary), #4a74ff);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(47,92,246,.4);
}
.timeline-body {
  max-width: 820px;
  margin: 0 auto;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.tl-image { height: 280px; overflow: hidden; }
.tl-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.tl-image:hover img { transform: scale(1.06); }
.tl-content { padding: 36px 40px; display: flex; gap: 28px; align-items: flex-start; }
.tl-year {
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #7fa0ff, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.tl-text h3 { color: #fff; font-size: 24px; margin-bottom: 10px; }
.tl-text p { color: #b6c0e0; font-size: 15.5px; }
.tl-fade { animation: tlFade 0.4s ease; }
@keyframes tlFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ========== 联系 ========== */
.contact { background: var(--bg-soft); }
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contact-info {
  padding: 56px 48px;
  background: linear-gradient(150deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact-info::before {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,92,246,.35), transparent 70%);
  top: -100px; right: -100px;
}
.contact-title { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; font-weight: 800; margin-bottom: 16px; position: relative; }
.contact-desc { color: #b6c0e0; font-size: 15px; margin-bottom: 36px; position: relative; }
.contact-list { display: flex; flex-direction: column; gap: 18px; position: relative; }
.contact-item { display: flex; align-items: center; gap: 14px; font-size: 15px; color: #e2e8ff; }
.ci-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(127,160,255,.16);
  display: flex; align-items: center; justify-content: center;
  color: #7fa0ff;
}
.contact-form { padding: 56px 48px; }
.contact-form h3 { font-size: 22px; margin-bottom: 24px; }

/* 蜜罐字段：隐藏，正常用户看不到 */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }

/* 表单提交反馈 */
.form-feedback { margin-top: 14px; font-size: 13.5px; line-height: 1.5; min-height: 1px; }
.form-feedback.success { color: var(--success); font-weight: 600; }
.form-feedback.error { color: var(--danger); font-weight: 600; }
button:disabled { opacity: .65; cursor: not-allowed; }
.field { margin-bottom: 16px; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 14.5px;
  font-family: inherit;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s;
  background: #fbfcfe;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47,92,246,.1);
}

/* ========== 页脚 ========== */
.footer { background: #070c22; color: #aab4d6; padding-top: 72px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer .brand-name { color: #fff; }
.footer-brand p { margin-top: 18px; font-size: 14px; color: #8892b8; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-col a, .footer-col span { display: block; font-size: 14px; color: #8892b8; margin-bottom: 12px; transition: color .2s; }
.footer-col a:hover { color: #7fa0ff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  color: #6b7598;
}

/* ========== 滚动渐入 ========== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Toast */
.toast {
  position: fixed;
  top: 90px; left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--ink);
  color: #fff;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 14.5px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: all .3s;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 70px; }
  .about-media { max-width: 480px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
    transform: translateY(-150%);
    transition: transform .3s;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 6%; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-primary { display: none; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-info, .contact-form { padding: 40px 28px; }
  .tl-content { flex-direction: column; gap: 14px; padding: 28px 26px; }
  .media-sub { right: 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .cap-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-cta .btn { width: 100%; }
}

/* ============================================================
   招商加盟页（join.php）
   ============================================================ */
.nav-links a.active-nav { color: var(--primary); font-weight: 700; }

/* 招商 Hero */
.join-hero {
  position: relative;
  padding: 190px 0 120px;
  background: linear-gradient(180deg, #f4f7ff 0%, #eef2ff 100%);
  overflow: hidden;
}
.join-hero-inner { position: relative; text-align: center; max-width: 920px; margin: 0 auto; }
.join-hero-inner .hero-title { font-size: 52px; }
.join-hero-inner .hero-desc { margin: 22px auto 0; max-width: 720px; }
.join-hero-inner .hero-cta { justify-content: center; margin-top: 36px; }

/* 加盟优势卡片 */
.join-adv-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.join-adv-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-sm); }
.join-adv-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.join-adv-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* 灰色区块 */
.section-gray { background: #f6f8fc; }

/* 加盟政策 */
.join-policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.join-policy-item {
  display: flex; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 22px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.join-policy-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.jp-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 11px;
  background: linear-gradient(135deg, rgba(47,92,246,.12), rgba(6,182,212,.12));
  color: var(--primary); display: flex; align-items: center; justify-content: center;
}
.join-policy-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.join-policy-item p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* 加盟流程 */
.join-steps { display: flex; align-items: flex-start; justify-content: center; }
.join-step { flex: 1; text-align: center; padding: 0 16px; max-width: 230px; }
.step-num {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #fff; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.step-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  transition: transform .3s ease;
}
.join-step:hover .step-icon { transform: scale(1.1) rotate(-4deg); }
.join-step h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.join-step p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.step-line {
  width: 56px; height: 2px; margin-top: 22px; flex-shrink: 0;
  background: repeating-linear-gradient(90deg, var(--primary) 0 6px, transparent 6px 12px);
}

/* 加盟条件 */
.join-condition-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 920px; margin: 0 auto; }
.join-condition-item {
  display: flex; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 22px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.join-condition-item:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.cond-check {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(6,182,212,.12); color: #0891b2;
  display: flex; align-items: center; justify-content: center;
}
.join-condition-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.join-condition-item p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* 申请 CTA */
.join-cta {
  position: relative;
  background: linear-gradient(135deg, #0a1130 0%, #10204f 60%, #0a1130 100%);
  padding: 95px 0; overflow: hidden;
}
.join-cta-inner { position: relative; text-align: center; }
.join-cta-inner h2 { font-size: 38px; font-weight: 800; color: #fff; margin-bottom: 16px; }
.join-cta-inner p { color: rgba(255,255,255,.72); font-size: 16px; max-width: 640px; margin: 0 auto; }

/* 加盟页响应式 */
@media (max-width: 1024px) {
  .join-policy-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .join-hero-inner .hero-title { font-size: 36px; }
  .join-policy-grid { grid-template-columns: 1fr; }
  .join-condition-grid { grid-template-columns: 1fr; }
  .join-steps { flex-direction: column; align-items: center; }
  .join-step { max-width: 320px; padding: 0 0 26px; }
  .step-line { width: 2px; height: 30px; margin: 0; background: repeating-linear-gradient(180deg, var(--primary) 0 6px, transparent 6px 12px); }
  .join-cta-inner h2 { font-size: 27px; }
}
