/* 中伟辉一站式平台 - 官网样式 */
:root {
  --primary: #5B5FE6;
  --primary-dark: #4A4ED0;
  --dark: #17171F;
  --text: #5B5B66;
  --text-light: #8A8A99;
  --bg: #FFFFFF;
  --bg-soft: #F9F9FB;
  --border: #E4E4EC;
  --green: #10B981;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Inter", -apple-system, sans-serif;
  color: var(--dark); background: var(--bg); line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, #5C5FE8 0%, #29B0ED 100%);
  color: #fff; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.main-nav { display: flex; gap: 28px; font-size: 15px; color: #4A4A55; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); font-weight: 600; }
.header-actions { display: flex; gap: 12px; }
.btn {
  display: inline-block; padding: 9px 18px; border-radius: 8px;
  font-size: 14px; cursor: pointer; border: 1px solid transparent;
  transition: all .2s; text-align: center;
}
.btn-outline { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: #F1F1FF; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-green { border-color: var(--green); color: var(--green); background: #fff; }
.btn-green:hover { background: #F0FDF9; }
.btn-lg { padding: 14px 34px; font-size: 16px; border-radius: 10px; }

/* Hero */
.hero {
  background: linear-gradient(180deg, #F6F6FF 0%, #FFFFFF 100%);
  padding: 88px 0 72px; text-align: center;
}
.hero h1 { font-size: 42px; line-height: 1.3; margin-bottom: 18px; }
.hero h1 .hl { color: var(--primary); }
.hero p.sub { font-size: 17px; color: var(--text); max-width: 640px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 20px; }
.hero-note { font-size: 13px; color: var(--text-light); }

/* Sections */
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--primary);
  background: #F1F1FF; border-radius: 99px; padding: 4px 14px; margin-bottom: 14px;
}
.section-head h2 { font-size: 30px; margin-bottom: 12px; }
.section-head p { color: var(--text); font-size: 15px; }

/* Feature grid */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 28px; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 12px 32px rgba(23,23,31,.08); transform: translateY(-2px); }
.card .icon {
  width: 44px; height: 44px; border-radius: 11px; font-size: 22px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  background: #F1F1FF;
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text); }

/* Stats */
.stats-bar { background: var(--dark); border-radius: 16px; padding: 40px 48px; color: #fff; }
.stats-bar .grid-4 { gap: 0; }
.stat { text-align: center; }
.stat .num { font-size: 34px; font-weight: 700; color: #fff; }
.stat .num span { color: #8B8FF2; }
.stat .label { font-size: 13px; color: #A0A0B0; margin-top: 4px; }

/* Pricing */
.price-card { text-align: left; position: relative; }
.price-card.featured { border-color: var(--primary); box-shadow: 0 12px 32px rgba(91,95,230,.15); }
.price-card .badge {
  position: absolute; top: -12px; left: 28px; background: var(--primary);
  color: #fff; font-size: 12px; padding: 3px 12px; border-radius: 99px;
}
.price { font-size: 34px; font-weight: 700; color: var(--primary); margin: 12px 0 4px; }
.price small { font-size: 14px; color: var(--text-light); font-weight: 400; }
.price-card ul { list-style: none; margin: 18px 0 24px; }
.price-card li { font-size: 14px; color: var(--text); padding: 6px 0; }
.price-card li::before { content: "✓"; color: var(--green); margin-right: 8px; font-weight: 700; }

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; margin-bottom: 14px; background: #fff; }
.faq-item h4 { font-size: 15px; margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: var(--text); }

/* CTA */
.cta {
  background: linear-gradient(135deg, #5C5FE8 0%, #29B0ED 100%);
  border-radius: 18px; padding: 56px; text-align: center; color: #fff;
}
.cta h2 { font-size: 28px; margin-bottom: 12px; }
.cta p { opacity: .9; margin-bottom: 28px; }
.cta .btn { background: #fff; color: var(--primary); font-weight: 600; }

/* Page hero (sub pages) */
.page-hero { background: #F6F6FF; padding: 52px 0; text-align: center; }
.page-hero h1 { font-size: 34px; margin: 6px 0 10px; }
.page-hero .crumb { font-size: 13px; font-weight: 600; color: var(--primary); letter-spacing: 2px; }
.page-hero p { color: var(--text); font-size: 14px; }

/* Legal pages */
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 56px 0 80px; }
.legal-toc {
  background: var(--bg-soft); border-radius: 14px; padding: 24px;
  font-size: 13px; align-self: start; position: sticky; top: 88px;
}
.legal-toc .toc-title { font-weight: 700; margin-bottom: 12px; }
.legal-toc a { display: block; padding: 6px 0; color: var(--text); }
.legal-toc a:hover, .legal-toc a.active { color: var(--primary); }
.legal-body h2 { font-size: 21px; margin: 32px 0 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 14px; color: #5A5A66; margin-bottom: 10px; }
.legal-body ul { padding-left: 20px; }

/* Contact */
.contact-cards .card { text-align: center; }
.contact-cards .icon { margin: 0 auto 16px; }
.map-placeholder {
  height: 260px; border-radius: 14px; background: var(--bg-soft);
  border: 1px dashed #C9C9D6; display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 14px; margin-top: 28px;
}

/* Form */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #4A4A5C; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; outline: none; transition: border .2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }

/* Auth pages */
.auth-wrap { display: flex; min-height: calc(100vh - 64px); }
.auth-left {
  flex: 0 0 460px; color: #fff; padding: 60px 48px;
  background: linear-gradient(160deg, #5C5FE8 0%, #29B0ED 100%);
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-left h2 { font-size: 28px; line-height: 1.4; margin: 26px 0 12px; }
.auth-left .desc { font-size: 14px; opacity: .88; margin-bottom: 28px; }
.auth-left ul { list-style: none; }
.auth-left li { font-size: 14px; padding: 7px 0; opacity: .92; }
.auth-left li::before { content: "✓ "; font-weight: 700; }
.auth-left .icp { font-size: 12px; opacity: .7; }
.auth-right { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-box { width: 400px; max-width: 100%; }
.auth-box h1 { font-size: 25px; margin-bottom: 6px; }
.auth-box .sub { font-size: 13px; color: var(--text-light); margin-bottom: 26px; }
.auth-tabs { display: flex; gap: 26px; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.auth-tabs a { padding-bottom: 12px; font-size: 15px; color: var(--text-light); }
.auth-tabs a.active { color: var(--primary); font-weight: 700; border-bottom: 2px solid var(--primary); }
.captcha-row { display: flex; gap: 12px; }
.captcha-row input { flex: 1; }
.captcha-code {
  width: 110px; height: 44px; border-radius: 8px; background: #F4F4F8;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; letter-spacing: 4px; color: #8A8A99; font-size: 16px;
}
.captcha-btn {
  width: 120px; height: 44px; border-radius: 8px; border: none; cursor: pointer;
  background: #EDEDFF; color: var(--primary); font-size: 13px; font-weight: 500;
}
.form-options { display: flex; justify-content: space-between; font-size: 13px; margin: 4px 0 18px; }
.form-options a { color: var(--primary); }
.btn-block { width: 100%; padding: 13px; font-size: 15px; border-radius: 9px; }
.divider { text-align: center; font-size: 12px; color: #B0B0BC; margin: 22px 0 16px; }
.agree { font-size: 12px; color: var(--text); margin: 4px 0 18px; display: flex; align-items: center; gap: 8px; }
.agree input { width: 14px; height: 14px; accent-color: var(--primary); }
.agree a { color: var(--primary); }
.auth-foot { text-align: center; font-size: 13px; color: var(--text-light); margin-top: 20px; }
.auth-foot a { color: var(--primary); }

/* Footer */
.site-footer { background: #17171F; color: #A0A0B0; padding: 48px 0 24px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-grid a { display: block; padding: 4px 0; color: #A0A0B0; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #2A2A38; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: #A0A0B0; }
.footer-bottom a:hover { color: #fff; }

/* UI 界面示意图 */
.mock-win {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 18px 44px rgba(23,23,31,.10); overflow: hidden; font-size: 12px;
}
.mock-bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: #F4F4F8; border-bottom: 1px solid var(--border);
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; }
.mock-url {
  flex: 1; margin-left: 8px; background: #fff; border-radius: 6px;
  font-size: 11px; color: #8A8A99; padding: 3px 10px;
}
.mock-step-num {
  width: 38px; height: 38px; border-radius: 50%; background: #F1F1FF;
  color: var(--primary); font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 8px;
}
.mock-step-t { font-weight: 600; color: var(--dark); }
.mock-step-d { color: var(--text-light); font-size: 11px; }
.mock-arrow { color: #C9C9D6; font-size: 18px; font-weight: 700; }
.mock-line { height: 10px; border-radius: 5px; background: #EDEDF4; }
.mock-chip {
  display: inline-block; padding: 3px 10px; border-radius: 99px;
  background: #F1F1FF; color: var(--primary); font-size: 11px;
}
.mock-code {
  background: #17171F; color: #D6D6E4; border-radius: 10px;
  padding: 16px 18px; font-family: Consolas, Menlo, monospace;
  font-size: 11.5px; line-height: 1.8; overflow: auto; white-space: pre;
}
.mock-code .c1 { color: #8B8FF2; }
.mock-code .c2 { color: #6BD9A6; }
.mock-code .c3 { color: #F7C873; }
.mock-code .cm { color: #7A7A8C; }
.mock-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 30px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 600;
}

@media (max-width: 900px) {
  .grid-3, .grid-4, .grid-2, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .legal-layout { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .hero h1 { font-size: 30px; }
}
