/* ==========================================================================
   AIForyor Official Site — Global Styles
   ========================================================================== */

:root {
  --blue: #2b56c6;
  --blue-dark: #1e3f9e;
  --blue-deep: #162c6b;
  --blue-soft: #eaf0ff;
  --green: #1fa84b;
  --green-dark: #168a3d;
  --green-soft: #e7f7ec;
  --ink: #16203a;
  --ink-2: #3b4a6b;
  --muted: #6b7896;
  --line: #e3e9f5;
  --bg: #ffffff;
  --bg-soft: #f6f8fd;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(22, 44, 107, 0.08);
  --shadow-hover: 0 22px 60px rgba(22, 44, 107, 0.16);
  --container: 1200px;
  --header-h: 72px;
  --font: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; color: var(--ink); }
p { margin: 0; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: transform .2s, box-shadow .2s, background .2s;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(43, 86, 198, .28); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 14px 34px rgba(43, 86, 198, .38); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 8px 24px rgba(31, 168, 75, .26); }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue-soft); }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.06); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-arrow::after { content: "→"; font-size: 18px; transition: transform .2s; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(22,44,107,.08); }
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.brand-mark { height: 38px; width: 38px; object-fit: contain; }
.brand-text { display: flex; align-items: center; line-height: 1; }
.brand-text strong { font-size: 19px; letter-spacing: .3px; color: var(--blue-deep); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block;
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--blue); background: var(--bg-soft); }
.main-nav a.active { color: var(--blue); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); transition: .25s;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle.open span { background: transparent; }
.menu-toggle.open span::before { top: 0; transform: rotate(45deg); }
.menu-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f4f7ff 0%, #ffffff 55%, #f0f8f3 100%);
  padding: 88px 0 92px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(43,86,198,.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 80%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  letter-spacing: -1px;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--blue); }
.hero h1 .accent-green { color: var(--green); }
.hero-lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-2);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-visual .logo-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  background: linear-gradient(145deg, #ffffff, #eef3ff);
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  transform: rotate(-2deg);
}
.hero-visual .logo-card img { width: 100%; max-width: 320px; }
.hero-visual .float-badge {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  gap: 8px;
}
.float-badge .b-num { font-size: 22px; color: var(--green); }
.float-badge.b1 { top: 6%; left: -2%; transform: rotate(3deg); }
.float-badge.b2 { bottom: 8%; right: -3%; transform: rotate(-3deg); }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.stat { text-align: center; }
.stat-num { font-size: 32px; font-weight: 800; color: var(--blue); line-height: 1.1; }
.stat-num .suffix { color: var(--green); font-size: 20px; }
.stat-label { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- Section ---------- */
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-title { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.6px; margin-bottom: 16px; }
.section-title .accent { color: var(--blue); }
.section-sub { font-size: 17px; color: var(--muted); }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 22px;
  background: var(--blue-soft);
}
.card-icon.green { background: var(--green-soft); }
.card-icon svg { width: 30px; height: 30px; color: var(--blue); }
.card-icon.green svg { color: var(--green); }
.card h3 { font-size: 21px; margin-bottom: 12px; }
.card p { color: var(--ink-2); font-size: 15px; }
.card .card-tag {
  display: inline-block; margin-top: 18px;
  color: var(--blue); font-weight: 700; font-size: 14px;
}
.card-link { display: block; margin-top: 18px; color: var(--blue); font-weight: 700; font-size: 15px; }
.card-link::after { content: " →"; transition: margin .2s; }
.card:hover .card-link::after { margin-left: 4px; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse .split-visual { order: -1; }
.split-visual {
  background: linear-gradient(145deg, #eef3ff, #ffffff);
  border-radius: 28px;
  padding: 44px;
  border: 1px solid var(--line);
  min-height: 340px;
  display: flex; align-items: center; justify-content: center;
}
.split-visual.feature-illustration {
  flex-direction: column;
  gap: 20px;
  text-align: center;
  background: radial-gradient(circle at 50% 30%, #ffffff, #eaf0ff);
}
.split-visual.feature-illustration .feature-icon { width: 96px; height: 96px; color: var(--blue); }
.split-visual.feature-illustration .feature-quote {
  font-family: "LXGW WenKai", "STKaiti", "KaiTi", "Kaiti SC", "STXingkai", "Xingkai SC", serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1px;
  color: var(--blue-deep);
  margin: 0;
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-deep) 60%, var(--green) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.split-content h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 20px; letter-spacing: -.6px; }
.split-content p { color: var(--ink-2); margin-bottom: 16px; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--ink-2); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 26px 20px;
  text-align: center;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin: 0 auto 14px;
  border-radius: 50%; background: var(--blue); color: #fff;
  font-weight: 800; font-size: 15px;
}
.step h4 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  background: #fff;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-q::after { content: "+"; font-size: 24px; color: var(--blue); transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 24px 20px; color: var(--ink-2); }
.faq-item.open .faq-a { display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--blue-deep), var(--blue) 60%, #3a6fe0);
  border-radius: 28px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: #fff;
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.82); }
.cta-band .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f4f7ff, #ffffff 60%, #f0f8f3);
  padding: 70px 0 60px;
  border-bottom: 1px solid var(--line);
}
.page-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.page-hero h1 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -1px; margin-bottom: 18px; }
.page-hero h1 .accent { color: var(--blue); }
.page-hero .lead { font-size: 18px; color: var(--ink-2); max-width: 620px; }
.page-hero-art {
  display: flex; justify-content: center; align-items: center;
  min-height: 220px; font-size: 100px;
}
.page-hero-art .hero-art-icon { width: 108px; height: 108px; color: var(--blue); }
.page-hero-art .hero-art-quote {
  margin: 0 0 0 22px;
  font-family: "LXGW WenKai", "STKaiti", "KaiTi", "Kaiti SC", "STXingkai", "Xingkai SC", serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1px;
  color: var(--ink);
  text-align: left;
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-deep) 55%, var(--green) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { margin: 0 8px; }

/* ---------- Timeline ---------- */
.timeline { max-width: 760px; margin-inline: auto; position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-item::before {
  content: ""; position: absolute; left: -27px; top: 7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--blue);
}
.timeline-item h4 { font-size: 18px; margin-bottom: 4px; }
.timeline-item p { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--ink-2); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.contact-info h3 { font-size: 22px; margin-bottom: 20px; }
.info-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.info-item:last-child { border-bottom: 0; }
.info-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 12px; background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.info-icon-logo { background: #fff; border: 1px solid var(--line); overflow: hidden; }
.info-icon-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.info-item .info-label { font-size: 13px; color: var(--muted); }
.info-item .info-value { font-size: 16px; font-weight: 600; color: var(--ink); word-break: break-all; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,.72);
  padding: 64px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { height: 42px; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 14px; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0;
  font-size: 13px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-beian { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-beian a { color: rgba(255,255,255,.72); transition: color .2s; }
.footer-beian a:hover { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .main-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; }
  .main-nav a { padding: 12px 14px; }
  .menu-toggle { display: flex; }
  .hero-grid, .page-hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-visual { order: 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .section { padding: 60px 0; }
  .hero { padding: 60px 0 64px; }
  .grid-3, .grid-2, .stats, .steps, .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { gap: 24px 12px; }
  .stat-num { font-size: 26px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero-visual .logo-card { transform: none; }
  .float-badge.b1 { left: 0; }
  .float-badge.b2 { right: 0; }
  .header-actions .btn { display: none; }
  .cta-band { padding: 40px 24px; }
  .page-hero-art { min-height: 0; justify-content: flex-start; gap: 18px; }
  .page-hero-art .hero-art-icon { width: 72px; height: 72px; }
  .page-hero-art .hero-art-quote { font-size: 26px; }
  .split-visual.feature-illustration .feature-icon { width: 72px; height: 72px; }
  .split-visual.feature-illustration .feature-quote { font-size: 26px; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 32px, var(--container)); }
  .grid-3, .grid-2, .stats, .steps, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .section-title { font-size: 28px; }
  .page-hero-art { display: none; }
}
