/* ============================================================
   Yuanpai AI — Corporate site stylesheet
   Light theme, responsive, no external dependencies.
   ============================================================ */

:root {
  --ink:        #0f1b2d;
  --ink-soft:   #40506a;
  --muted:      #6b7a92;
  --line:       #e4e9f0;
  --bg:         #ffffff;
  --bg-soft:    #f6f8fb;
  --brand:      #2563eb;
  --brand-deep: #1e4fd7;
  --brand-soft: #eaf1ff;
  --accent:     #0ea5a4;
  --white:      #ffffff;
  --shadow:     0 12px 34px rgba(18, 38, 63, .08);
  --radius:     14px;
  --maxw:       1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(37, 99, 235, .24);
}
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light {
  background: var(--white);
  color: var(--brand-deep);
}
.btn-light:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, .12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.4px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: -2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 72px;
  background:
    radial-gradient(900px 460px at 88% -10%, var(--brand-soft), transparent 62%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 7px 13px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(38px, 5.2vw, 60px);
  line-height: 1.08;
  letter-spacing: -1.8px;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 38px;
}
.hero-trust div { font-size: 13px; color: var(--muted); }
.hero-trust strong {
  display: block;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -.5px;
}

.hero-visual { position: relative; }
.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.hero-card .win-bar { display: flex; gap: 6px; margin-bottom: 18px; }
.hero-card .win-bar i {
  width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0;
}
.hero-card .win-bar i:first-child { background: #f87171; }
.hero-card .win-bar i:nth-child(2) { background: #fbbf24; }
.hero-card .win-bar i:nth-child(3) { background: #34d399; }
.mini-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 10px; background: var(--bg-soft);
  margin-bottom: 10px;
}
.mini-ico {
  width: 34px; height: 34px; border-radius: 8px; flex: 0 0 auto;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.mini-row b { font-size: 13.5px; display: block; }
.mini-row span { font-size: 11.5px; color: var(--muted); }
.mini-row .pill {
  margin-left: auto; font-size: 11px; font-weight: 700; color: var(--accent);
  background: #e6f7f6; padding: 4px 9px; border-radius: 100px;
}
.float-badge {
  position: absolute; right: -14px; bottom: -22px;
  background: var(--ink); color: #fff; padding: 14px 18px;
  border-radius: 12px; box-shadow: var(--shadow); font-size: 13px;
}
.float-badge b { font-size: 18px; display: block; }

/* ---------- Section base ---------- */
.section { padding: 80px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 660px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-head p { color: var(--ink-soft); font-size: 16.5px; }
.tag {
  font-size: 12.5px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--brand); margin-bottom: 12px;
}

/* ---------- Grid cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #cdd9ee;
}
.card .icon {
  width: 46px; height: 46px; border-radius: 11px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: 21px; margin-bottom: 18px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -.3px; }
.card p { color: var(--ink-soft); font-size: 14.5px; }
.card ul { margin-top: 14px; }
.card ul li {
  font-size: 13.5px; color: var(--ink-soft); padding-left: 20px;
  position: relative; margin-bottom: 6px;
}
.card ul li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800;
}

/* ---------- Process / steps ---------- */
.steps { counter-reset: step; }
.step {
  position: relative;
  padding-left: 62px;
  margin-bottom: 30px;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.step h3 { font-size: 17px; margin-bottom: 5px; }
.step p { color: var(--ink-soft); font-size: 14.5px; }

/* ---------- Feature split ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.split .visual {
  border: 1px solid var(--line); border-radius: 18px; padding: 30px;
  background: #fff; box-shadow: var(--shadow);
}
.check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 14px; color: var(--ink-soft); font-size: 15px;
}
.check-list li .tick {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto;
  background: #e6f7f6; color: var(--accent);
  display: grid; place-items: center; font-size: 13px; font-weight: 800; margin-top: 2px;
}

/* ---------- Stats band ---------- */
.band {
  background: linear-gradient(135deg, #12233f, #1c3d7a);
  color: #fff; border-radius: 20px; padding: 46px 40px;
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; align-items: center;
}
.band h2 { font-size: 30px; letter-spacing: -.8px; margin-bottom: 10px; }
.band p { color: #c7d5ee; font-size: 15px; }
.band-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.band-stats div strong { font-size: 34px; display: block; letter-spacing: -1px; }
.band-stats div span { font-size: 13px; color: #c7d5ee; }

/* ---------- Testimonial ---------- */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 34px 36px; box-shadow: var(--shadow); max-width: 780px; margin-inline: auto;
  text-align: center;
}
.quote .stars { color: #f59e0b; letter-spacing: 3px; margin-bottom: 14px; }
.quote p { font-size: 19px; font-style: italic; color: var(--ink); margin-bottom: 18px; }
.quote .who { font-size: 13.5px; color: var(--muted); }
.quote .who b { color: var(--ink); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 62px 0 54px;
  background: linear-gradient(180deg, var(--brand-soft), var(--bg));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -1.2px; margin-bottom: 12px;
}
.page-hero p { font-size: 17px; color: var(--ink-soft); max-width: 620px; }

/* ---------- Pricing ---------- */
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 30px; position: relative;
}
.price-card.featured { border-color: var(--brand); box-shadow: var(--shadow); }
.price-card .flag {
  position: absolute; top: -12px; right: 20px; background: var(--brand);
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .6px;
  padding: 5px 12px; border-radius: 100px; text-transform: uppercase;
}
.price-card h3 { font-size: 18px; margin-bottom: 4px; }
.price-card .price { font-size: 38px; font-weight: 800; letter-spacing: -1px; margin: 12px 0 2px; }
.price-card .price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.price-card .desc { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.price-card ul li {
  font-size: 13.5px; color: var(--ink-soft); padding-left: 22px;
  position: relative; margin-bottom: 9px;
}
.price-card ul li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800;
}
.price-card .btn { width: 100%; margin-top: 20px; }

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px;
  background: #fff; overflow: hidden;
}
.faq-q {
  padding: 18px 22px; font-weight: 600; font-size: 15.5px;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.faq-q::after { content: "+"; color: var(--brand); font-size: 20px; font-weight: 400; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { padding: 0 22px 18px; color: var(--ink-soft); font-size: 14.5px; display: none; }
.faq-item.open .faq-a { display: block; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; }
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 32px; box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 9px; font-size: 14.5px; font-family: inherit; color: var(--ink);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 12px; }
.info-list li {
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px;
}
.info-list .ico {
  width: 42px; height: 42px; border-radius: 10px; flex: 0 0 auto;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: 18px;
}
.info-list b { display: block; font-size: 14px; margin-bottom: 3px; }
.info-list span { font-size: 14px; color: var(--ink-soft); word-break: break-all; }

/* ---------- CTA strip ---------- */
.cta-strip {
  padding: 60px 0; text-align: center;
  background: radial-gradient(700px 300px at 50% 0, var(--brand-soft), var(--bg));
}
.cta-strip h2 { font-size: clamp(28px, 3.6vw, 38px); letter-spacing: -.8px; margin-bottom: 12px; }
.cta-strip p { color: var(--ink-soft); font-size: 16px; margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: #0f1b2d; color: #c7d3e6; padding: 54px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid .brand { color: #fff; margin-bottom: 14px; }
.footer-grid p { font-size: 13.5px; color: #93a4bf; max-width: 260px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13.5px; color: #93a4bf; margin-bottom: 9px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #24324a; margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12.5px; color: #7f90ab;
}

/* ---------- Utility ---------- */
.placeholder {
  background: #fff7e6;
  border: 1px dashed #f0b429;
  color: #935b00;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 22px;
}
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 20px; display: none;
  }
  .nav-links.show { display: flex; }
  .nav-links a { padding: 12px 4px; }
  .menu-toggle { display: block; }
  .nav-cta .btn { display: none; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .band-stats { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 60px 0 50px; }
  .footer-grid { grid-template-columns: 1fr; }
}
