/* =====================================================
   灿烂电子商务 · 企业门户 样式
   ===================================================== */

:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --panel: #f8fafc;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: rgba(37, 99, 235, 0.08);
  --accent: #06b6d4;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --container: 1180px;
  --font-display: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  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; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0; }

.container {
  width: min(var(--container), calc(100vw - 48px));
  margin: 0 auto;
}

.accent { color: var(--brand); }
.plus { color: var(--accent); }

/* =====================================================
   顶部工具条
   ===================================================== */
.topbar {
  background: var(--ink);
  color: #cbd5e1;
  font-size: 13px;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 16px;
}
.topbar-left { display: flex; align-items: center; gap: 10px; }
.topbar-left .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.22);
}
.topbar-left .sep { opacity: 0.4; }
.topbar-links { display: flex; gap: 18px; }
.topbar-links a { color: #cbd5e1; transition: color 180ms ease; }
.topbar-links a:hover { color: #fff; }

/* =====================================================
   主导航
   ===================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
}
.brand-mark { color: var(--brand); font-size: 20px; transform: translateY(1px); }
.brand-text { font-size: 20px; font-weight: 700; }
.brand small {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
  font-family: var(--font-body);
}
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  transition: color 180ms ease, background 180ms ease;
}
.nav-links a:hover { color: var(--ink); background: var(--panel); }
.nav-links a.active { color: var(--brand); font-weight: 600; }
.nav-cta {
  border: 0;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}
.nav-cta:hover { background: var(--brand-dark); transform: translateY(-1px); }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px; height: 2px; margin: 0 auto;
  background: var(--ink); border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms 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
   ===================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 108px 0 96px;
  background: var(--ink);
  color: #f8fafc;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.blob-a { width: 460px; height: 460px; top: -140px; left: -120px; background: #2563eb; }
.blob-b { width: 400px; height: 400px; bottom: -160px; right: -100px; background: var(--accent); opacity: 0.4; }
.blob-c { width: 260px; height: 260px; top: 40px; right: 24%; background: #7c3aed; opacity: 0.35; }
.hero-inner { position: relative; max-width: 720px; }
.hero-eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 14px;
  letter-spacing: 1px;
}
.hero-title {
  font-size: clamp(38px, 6.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.5px;
}
.hero-sub {
  margin: 22px 0 32px;
  max-width: 560px;
  font-size: 18px;
  color: #cbd5e1;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-metrics {
  display: flex;
  gap: 44px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}
.hero-metrics li { display: flex; flex-direction: column; }
.hero-metrics strong { font-family: var(--font-display); font-size: 34px; }
.hero-metrics span { color: #94a3b8; font-size: 14px; }

/* =====================================================
   按钮
   ===================================================== */
.btn {
  display: inline-block;
  border: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px rgba(37,99,235,0.32); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost {
  background: transparent; color: #e2e8f0;
  border: 1px solid rgba(255,255,255,0.28);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); }
.btn-block { width: 100%; }

/* =====================================================
   合作客户
   ===================================================== */
.clients {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.clients-title {
  margin: 0 0 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 2px;
}
.clients-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 48px;
  font-family: var(--font-display);
  font-size: 20px;
  color: #94a3b8;
  font-weight: 600;
}

/* =====================================================
   通用 section
   ===================================================== */
.section { padding: 96px 0; }
.section-alt { background: var(--panel); }
.section-dark { background: var(--ink); color: #e2e8f0; }
.section-head { text-align: center; margin-bottom: 56px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 600;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-desc { margin: 14px auto 0; max-width: 620px; color: var(--muted); font-size: 16px; }
.section-dark .eyebrow { color: var(--accent); }
.section-dark .section-desc { color: #94a3b8; }

/* =====================================================
   关于我们
   ===================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.about-text h3 { font-size: 24px; margin-bottom: 16px; }
.about-text p { color: var(--muted); margin: 0 0 16px; }
.about-list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 12px; }
.about-list li {
  padding-left: 28px;
  position: relative;
  color: var(--ink);
  font-weight: 500;
}
.about-list li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--brand);
  font-weight: 700;
}
.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-card {
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-num { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--brand); }
.stat-label { color: var(--muted); font-size: 14px; }

/* =====================================================
   核心服务
   ===================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(37,99,235,0.3);
}
.service-card .icon {
  display: inline-grid;
  place-items: center;
  width: 54px; height: 54px;
  font-size: 26px;
  border-radius: 14px;
  background: var(--brand-soft);
  margin-bottom: 18px;
}
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 15px; margin: 0; }

/* =====================================================
   优势特色
   ===================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature {
  padding: 30px 22px;
  border-left: 3px solid var(--brand);
  background: var(--panel);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.feature-num { display: block; font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--brand); opacity: 0.5; margin-bottom: 12px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }

/* =====================================================
   服务流程
   ===================================================== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 22px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

/* =====================================================
   新闻动态
   ===================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-date { margin: 0 0 12px; color: var(--accent); font-size: 13px; letter-spacing: 1px; }
.news-card h3 { font-size: 18px; margin-bottom: 10px; }
.news-card p { color: var(--muted); font-size: 15px; margin: 0; }

/* =====================================================
   客户评价
   ===================================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quote {
  margin: 0;
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
}
.quote p { margin: 0 0 20px; font-size: 16px; color: #e2e8f0; }
.quote footer { display: flex; align-items: center; gap: 8px; color: #94a3b8; font-size: 14px; }
.quote strong { color: #fff; }

/* =====================================================
   联系我们
   ===================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.c-icon {
  flex: none;
  display: grid; place-items: center;
  width: 46px; height: 46px; font-size: 20px;
  border-radius: 12px;
  background: var(--brand-soft);
}
.contact-item strong { display: block; margin-bottom: 4px; font-size: 15px; }
.contact-item p { margin: 0; color: var(--muted); font-size: 14px; }

.contact-form {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form label { display: flex; flex-direction: column; gap: 8px; }
.contact-form label span { font-size: 14px; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input,
.contact-form textarea {
  font: inherit;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--panel);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.form-status { margin: 0; text-align: center; font-size: 14px; color: var(--muted); min-height: 20px; }
.form-status.ok { color: #16a34a; }
.form-status.err { color: #dc2626; }

/* =====================================================
   页脚
   ===================================================== */
.footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.brand-footer { color: #fff; margin-bottom: 14px; }
.brand-footer .brand-text { font-size: 20px; }
.footer-col p { margin: 6px 0; font-size: 14px; color: #94a3b8; }
.footer-col h4 { margin: 0 0 14px; color: #fff; font-size: 15px; }
.footer-col a { display: block; margin: 8px 0; font-size: 14px; color: #94a3b8; transition: color 180ms ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: #64748b;
}
.footer-terms {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.icp-label { color: #64748b; }
.icp {
  color: #94a3b8;
  transition: color 180ms ease;
}
.icp:hover { color: #fff; }

/* =====================================================
   通用进入动画
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.in { opacity: 1; transform: none; }

/* =====================================================
   响应式
   ===================================================== */
@media (max-width: 992px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid, .process-steps { grid-template-columns: repeat(2, 1fr); }
  .news-grid, .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .topbar-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    gap: 4px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .hero { padding: 72px 0 64px; }
  .hero-metrics { gap: 28px; }
}

@media (max-width: 640px) {
  .container { width: calc(100vw - 32px); }
  .services-grid, .features-grid, .process-steps,
  .news-grid, .testimonial-grid, .about-cards, .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero-title { font-size: 34px; }
  .hero-metrics strong { font-size: 28px; }
  .hero-cta .btn { width: 100%; text-align: center; }
  .clients-row { gap: 16px 24px; font-size: 17px; }
}
