/* ===== 乐邦ERP — 跨境电商官网 ===== */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-deep: #1e3a8a;
  --accent: #3b82f6;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-alt: #eff6ff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 2px 8px rgba(15,23,42,.06);
  --shadow: 0 10px 40px -12px rgba(37,99,235,.25);
  --shadow-lg: 0 24px 60px -18px rgba(37,99,235,.35);
  --grad: linear-gradient(120deg, #2563eb 0%, #3b82f6 45%, #60a5fa 100%);
  --grad-deep: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  --maxw: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 22px -6px rgba(37,99,235,.5);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -6px rgba(37,99,235,.55); }
.btn--ghost {
  background: transparent; color: var(--primary); border-color: rgba(37,99,235,.25);
}
.btn--ghost:hover { background: var(--bg-alt); border-color: var(--primary); }
.btn--outline {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn--outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn--lg { padding: 15px 34px; font-size: 16px; }
.btn--block { width: 100%; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo { width: 34px; height: 34px; color: var(--primary); }
.brand__logo svg { width: 100%; height: 100%; }
.brand__name { font-size: 20px; font-weight: 800; letter-spacing: .5px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav__link {
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 6px 0; transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--grad); transition: width .25s ease;
}
.nav__link:hover { color: var(--primary); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.nav__link.active { color: var(--primary); }

.header__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-hidden { display: none; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 80px 0 0; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(59,130,246,.18), transparent 60%),
    radial-gradient(700px 500px at 0% 10%, rgba(37,99,235,.12), transparent 55%),
    linear-gradient(180deg, #f0f6ff 0%, #ffffff 60%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px;
  align-items: center; padding: 40px 0 64px;
}
.hero__tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-alt); color: var(--primary);
  border: 1px solid rgba(37,99,235,.2);
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.hero__title {
  font-size: clamp(34px, 5vw, 54px); line-height: 1.12; font-weight: 800;
  margin: 22px 0 18px; letter-spacing: -.5px;
}
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__desc { font-size: 17px; color: var(--ink-soft); max-width: 34ch; }
.hero__actions { display: flex; gap: 16px; margin: 32px 0 40px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 24px; flex-wrap: wrap; }
.hero__stat { font-size: 15px; color: var(--ink-soft); line-height: 1.7; flex: 1 1 220px; }
.hero__stat-num { font-size: 30px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.hero__stat small { display: block; font-size: 13px; color: var(--muted); }

/* dashboard mockup */
.hero__visual { position: relative; }
.dashboard {
  background: #fff; border-radius: 20px; padding: 0;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden;
}
.dashboard__bar {
  display: flex; align-items: center; gap: 8px; padding: 14px 18px;
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot--red { background: #ff5f57; } .dot--yellow { background: #febc2e; } .dot--green { background: #28c840; }
.dashboard__url { margin-left: 10px; font-size: 12px; color: var(--muted); font-family: monospace; }
.dashboard__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  padding: 18px;
}
.dcard {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px;
}
.dcard__label { display: block; font-size: 12px; color: var(--muted); }
.dcard__value { font-size: 13px; font-weight: 700; color: var(--ink); }
.dcard__value small { font-size: 13px; font-weight: 600; }
.dcard__up { display: block; font-size: 12px; color: #16a34a; margin-top: 3px; font-weight: 600; }
.dashboard__chart { padding: 0 18px 20px; }
.bars { display: flex; align-items: flex-end; gap: 12px; height: 120px; padding-top: 14px; }
.bars span {
  flex: 1; height: var(--h); border-radius: 6px 6px 0 0;
  background: var(--grad); opacity: .85; transition: height .6s ease;
}
.chart__title { font-size: 12px; color: var(--muted); margin-top: 12px; }

.hero__clients {
  margin-top: 40px; background: var(--bg-soft);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.hero__clients p { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 16px; letter-spacing: 1px; }
.clients { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; }
.clients span { font-size: 15px; font-weight: 600; color: var(--ink-soft); opacity: .72; }

/* ===== Section heads ===== */
.section__head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section__head--light { color: #fff; }
.section__tag {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--primary);
  background: var(--bg-alt); border: 1px solid rgba(37,99,235,.18);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 16px; letter-spacing: .5px;
}
.section__tag--light { background: rgba(255,255,255,.14); color: #dbeafe; border-color: rgba(255,255,255,.22); }
.section__title { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; line-height: 1.25; letter-spacing: -.5px; }
.section__desc { font-size: 16px; color: var(--muted); margin-top: 14px; }

/* ===== Features ===== */
.features { padding: 88px 0; }
.features__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(37,99,235,.25); }
.feature-card__icon {
  width: 54px; height: 54px; display: grid; place-items: center;
  font-size: 26px; border-radius: 14px; background: var(--bg-alt);
  border: 1px solid rgba(37,99,235,.12); margin-bottom: 18px;
}
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 9px; }
.feature-card p { font-size: 14.5px; color: var(--muted); }

/* ===== Products (tabs) ===== */
.products { padding: 88px 0; background: var(--grad-deep); }
.products__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.tab {
  padding: 10px 22px; border-radius: 999px; font-size: 15px; font-weight: 600;
  background: rgba(255,255,255,.08); color: #bfdbfe; border: 1px solid rgba(255,255,255,.14);
  cursor: pointer; transition: .25s;
}
.tab:hover { background: rgba(255,255,255,.16); color: #fff; }
.tab.active { background: #fff; color: var(--primary); border-color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.products__panels { max-width: 900px; margin: 0 auto; }
.panel { display: none; background: #fff; border-radius: 20px; padding: 40px; box-shadow: var(--shadow-lg); }
.panel.active { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; animation: fade .4s ease; }
.panel__text h3 { font-size: 25px; font-weight: 800; margin-bottom: 14px; }
.panel__text p { color: var(--ink-soft); margin-bottom: 20px; }
.panel__list li { font-size: 15px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.panel__list li:last-child { border-bottom: 0; }
.panel__visual { font-size: 120px; text-align: center; filter: drop-shadow(0 10px 20px rgba(37,99,235,.15)); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===== Stats banner ===== */
.stats { padding: 56px 0; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item { font-size: 15px; color: var(--ink-soft); line-height: 1.7; }
.stat-num { font-size: 42px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; display: inline; }
.stat-item small { display: block; margin-top: 4px; color: var(--muted); }

/* ===== Cases ===== */
.cases { padding: 88px 0; }
.cases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform .3s ease, box-shadow .3s ease;
}
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.case-card blockquote { font-size: 16px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 20px; }
.case-card figcaption { font-size: 14px; font-weight: 600; color: var(--primary); }
.case-card__role::before { content: "—"; margin-right: 4px; }

/* ===== Pricing ===== */
.pricing { padding: 88px 0; background: var(--bg-soft); }
.pricing .section__head--light { color: var(--ink); }
.pricing .section__tag--light { background: var(--bg-alt); color: var(--primary); border-color: rgba(37,99,235,.2); }
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: 20px;
  padding: 34px; display: flex; flex-direction: column; position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.price-card--featured {
  border-color: var(--primary); box-shadow: var(--shadow);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}
.price-card__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 16px; border-radius: 999px; box-shadow: 0 6px 14px -4px rgba(37,99,235,.5);
}
.price-card h3 { font-size: 22px; font-weight: 800; }
.price-card__desc { font-size: 14px; color: var(--muted); margin: 6px 0 18px; }
.price-card__price { font-size: 38px; font-weight: 800; color: var(--primary); margin-bottom: 22px; }
.price-card__price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.price-card__list li { font-size: 14.5px; color: var(--ink-soft); padding: 9px 0; border-bottom: 1px solid var(--line); }
.price-card__list li:last-child { border-bottom: 0; }
.price-card__list li::before { content: "✓"; color: #16a34a; font-weight: 700; margin-right: 8px; }
.price-card--featured .price-card__list li::before { content: "✓"; }

/* ===== Contact ===== */
.contact { padding: 88px 0; }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact__info h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; line-height: 1.25; margin: 14px 0 16px; }
.contact__info > p { color: var(--ink-soft); font-size: 16px; margin-bottom: 28px; }
.contact__info .section__tag { margin-bottom: 10px; }
.contact__items { display: flex; flex-direction: column; gap: 16px; }
.contact__items li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-soft); }
.contact__items li span { font-size: 18px; }
.contact__items li .emoji { color: var(--primary); display: inline-flex; }
.contact__form {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 34px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.contact__form label { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; color: var(--ink-soft); gap: 7px; }
.req { color: #ef4444; }
.contact__form input, .contact__form select {
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; font-family: var(--font); color: var(--ink); background: var(--bg-soft);
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.contact__form input:focus, .contact__form select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12); background: #fff;
}
.contact__form .btn { margin-top: 8px; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 14px; text-align: center; }
.form-ok { text-align: center; padding: 20px; color: #16a34a; font-weight: 600; }
.form-ok::before { content: "✅ "; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: #cbd5e1; padding-top: 64px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__brand .brand__name { color: #fff; margin-top: 4px; }
.footer__brand p { font-size: 14px; color: #94a3b8; margin-top: 14px; line-height: 1.7; }
.footer__col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer__col a { display: block; font-size: 14px; color: #94a3b8; padding: 6px 0; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 22px 0; }
.footer__bottom p { text-align: center; font-size: 13px; color: #64748b; }

/* ===== Floating CTA ===== */
.floating-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  background: var(--grad); color: #fff; font-size: 15px; font-weight: 700;
  padding: 13px 24px; border-radius: 999px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.floating-cta.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.floating-cta:hover { transform: translateY(-3px); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .features__grid, .cases__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .panel.active { grid-template-columns: 1fr; text-align: center; }
  .panel__visual { font-size: 80px; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column;
    background: #fff; padding: 24px; gap: 8px; box-shadow: var(--shadow-lg);
    border-bottom-left-radius: 20px; border-bottom-right-radius: 20px;
    transform: translateY(-140%); transition: transform .35s ease; z-index: 99;
  }
  .nav.open { transform: translateY(0); }
  .nav__link { display: block; padding: 12px 8px; font-size: 16px; }
  .nav__toggle { display: flex; }
  .nav-hidden { display: none; }
  .nav.open .nav-hidden { display: inline-flex; margin-top: 8px; width: 100%; }
  .hero { padding-top: 52px; }
  .hero__stats { gap: 26px; }
  .features__grid, .cases__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .section__head { margin-bottom: 40px; }
  .floating-cta { right: 16px; bottom: 16px; padding: 11px 20px; font-size: 14px; }
  .price-card__price { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
