/* 企衡 ERP site. No external fonts or CDNs: the site must load fast inside mainland China. */
:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --indigo: #4338ca;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --radius: 12px;
  --shadow: 0 18px 50px -20px rgba(15, 23, 42, 0.35);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC',
    'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.3; margin: 0; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }

/* ---- header ---- */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--text); font-size: 15px; }
.nav a:hover { color: var(--blue); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 26px; border-radius: 10px; font-size: 16px; font-weight: 600; transition: background 0.15s, box-shadow 0.15s; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.7); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { color: var(--blue); border: 1px solid #bfd0f8; background: #fff; }
.btn-ghost:hover { background: #eff4ff; }
.btn-light { background: #fff; color: var(--blue-dark); }

/* ---- hero ---- */
.hero { background: radial-gradient(1200px 500px at 50% -10%, #e5edff 0%, rgba(229, 237, 255, 0) 70%); padding: 64px 0 0; text-align: center; overflow: hidden; }
.badge { display: inline-block; margin: 0 0 20px; padding: 4px 14px; border-radius: 999px; background: #e8efff; color: var(--blue-dark); font-size: 14px; font-weight: 600; }
.hero h1 { font-size: clamp(32px, 5.2vw, 54px); letter-spacing: 0.02em; }
.lead { max-width: 720px; margin: 20px auto 0; font-size: 18px; color: var(--muted); }
.lead strong { color: var(--blue-dark); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hint { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.hint-light { color: #dbe6ff; }
.frame { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.hero-shot { margin: 48px auto 0; max-width: 1040px; border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }

/* ---- sections ---- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(26px, 3.4vw, 36px); text-align: center; }
.section-lead { max-width: 760px; margin: 14px auto 0; text-align: center; color: var(--muted); }

.values { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 44px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.values h3, .assurances h3 { font-size: 20px; margin-bottom: 8px; }
.values h3::before, .assurances h3::before { content: ''; display: block; width: 28px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--indigo)); margin-bottom: 14px; }
.values p, .assurances p, .card p { margin: 0; color: var(--muted); }

.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.modules article, .card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.modules h3, .card h3 { font-size: 19px; margin-bottom: 10px; }
.modules ul, .feature ul, .price-card ul { margin: 0; padding: 0; list-style: none; }
.modules li, .feature li, .price-card li { position: relative; padding-left: 20px; margin: 6px 0; }
.modules li::before, .feature li::before, .price-card li::before { content: ''; position: absolute; left: 2px; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

.feature { display: grid; grid-template-columns: 4fr 8fr; gap: 40px; align-items: center; margin-top: 64px; }
.feature.reverse { grid-template-columns: 8fr 4fr; }
.feature.reverse .feature-text { order: 2; }
.feature h3 { font-size: 24px; margin-bottom: 14px; }

/* ---- pricing ---- */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.price-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; background: #fff; }
.price-card.featured { border: 2px solid var(--blue); background: linear-gradient(180deg, #f2f6ff 0%, #fff 60%); box-shadow: 0 16px 40px -24px rgba(37, 99, 235, 0.8); }
.price-tag { margin: 0 0 6px; font-size: 28px; font-weight: 800; color: var(--ink); }
.featured .price-tag { color: var(--blue); }
.price-card h3 { font-size: 17px; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.footnote { text-align: center; color: var(--muted); font-size: 14px; margin: 28px 0 0; }

/* ---- faq ---- */
.faq { max-width: 820px; }
.faq h2 { margin-bottom: 36px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--ink); list-style: none; position: relative; padding-right: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* ---- closing call to action ---- */
.cta { background: linear-gradient(120deg, var(--blue) 0%, var(--indigo) 100%); color: #fff; padding: 80px 0; text-align: center; }
.cta h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); }
.cta p { color: #dbe6ff; margin: 12px 0 0; }
.contact { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.contact span { color: #c7d6ff; margin-right: 8px; }
.contact a { color: #fff; }

.footer { border-top: 1px solid var(--line); padding: 24px 0; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-inner > span:first-child { display: flex; align-items: center; gap: 8px; }

/* Filing numbers (ICP + 公安): legally required at the bottom of the home page. */
.beian { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; }
.beian a { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.beian a:hover { color: var(--text); }
/* The police emblem keeps its proportions: national emblems must not be stretched. */
.beian img { width: 15px; height: auto; }

/* ---- smaller screens ---- */
@media (max-width: 960px) {
  .modules, .pricing, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 24px; }
  .feature.reverse .feature-text { order: 0; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .topbar-inner .btn { margin-left: auto; }
  .hero { padding-top: 40px; }
  .lead { font-size: 16px; }
  .section { padding: 60px 0; }
  .grid-3, .modules, .pricing, .grid-4 { grid-template-columns: 1fr; gap: 16px; }
  .values .grid-3 { gap: 28px; }
  .feature { margin-top: 44px; }
  .footer-inner { flex-direction: column; }
}
