/* ============================================================
   表面处理ERP 主站样式 - www.unmh.cn
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --primary: #0a66c2;
  --primary-dark: #084c94;
  --primary-light: #e7f0fb;
  --accent: #ff6b35;
  --accent-dark: #e5511a;
  --ink: #1a2332;
  --ink-2: #475569;
  --muted: #8b97a8;
  --line: #e6ebf2;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --bg-dark: #0f1b2d;
  --ok: #16a34a;
  --shadow-sm: 0 1px 3px rgba(16, 42, 80, 0.06);
  --shadow: 0 8px 24px rgba(16, 42, 80, 0.08);
  --shadow-lg: 0 20px 50px rgba(16, 42, 80, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1200px;
}

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, 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 { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); }
.brand .logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; display: grid; place-items: center; font-size: 20px;
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.35);
}
.brand .logo-img {
  width: 32px; height: 32px; border-radius: 8px; object-fit: contain;
  background: #fff; box-shadow: 0 2px 8px rgba(10, 102, 194, 0.12);
  flex-shrink: 0;
}
.footer .brand .logo-img {
  width: 36px; height: 36px;
}
.qr-img {
  max-width: 160px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; margin: 12px auto; display: block;
}
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; color: var(--ink-2);
  font-weight: 500; transition: all .18s;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-links a.active { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--ink); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 22px; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: none; cursor: pointer; transition: all .2s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(10, 102, 194, 0.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(10, 102, 194, 0.4); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: var(--bg-soft); color: var(--ink); }
.btn-ghost:hover { background: var(--line); }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---- 微信登录 ---- */
.btn-wechat {
  background: #07C160; color: #fff;
  box-shadow: 0 4px 14px rgba(7, 193, 96, 0.3);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none;
}
.btn-wechat:hover { background: #06AD56; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(7, 193, 96, 0.4); color: #fff; }
.btn-wechat svg { width: 20px; height: 20px; flex-shrink: 0; }
.wechat-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0; color: var(--muted); font-size: 13px;
}
.wechat-divider::before,
.wechat-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 80% -10%, #dbeafe 0%, transparent 55%),
              radial-gradient(900px 400px at 0% 30%, #fef3ec 0%, transparent 50%),
              linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  padding: 80px 0 70px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: #fff; border: 1px solid var(--line); color: var(--primary);
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.hero h1 {
  font-size: 46px; line-height: 1.18; font-weight: 800; letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead { font-size: 18px; color: var(--ink-2); margin-bottom: 30px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; }
.hero-stats .num { font-size: 30px; font-weight: 800; color: var(--ink); }
.hero-stats .num span { color: var(--primary); }
.hero-stats .lbl { font-size: 13px; color: var(--muted); }

/* Hero 右侧视觉卡片 */
.hero-visual { position: relative; }
.mock-card {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); padding: 22px; transform: rotate(-1.2deg);
}
.mock-card .mc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.mock-card .mc-ava { width: 36px; height: 36px; border-radius: 9px; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; font-weight: 700; }
.mock-card .mc-title { font-weight: 700; font-size: 15px; }
.mock-card .mc-sub { font-size: 12px; color: var(--muted); }
.mock-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.mock-kpi .k { background: var(--bg-soft); border-radius: 10px; padding: 12px; }
.mock-kpi .k .v { font-size: 20px; font-weight: 800; color: var(--ink); }
.mock-kpi .k .l { font-size: 11px; color: var(--muted); }
.mock-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 6px 0; }
.mock-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), #4d9bf5); }
.float-tag {
  position: absolute; background: #fff; border-radius: 12px; padding: 10px 14px;
  box-shadow: var(--shadow); border: 1px solid var(--line); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.float-tag.t1 { top: -18px; right: 10px; color: var(--ok); }
.float-tag.t2 { bottom: -16px; left: -14px; color: var(--accent); }

/* ---------- 通用区块 ---------- */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head .eyebrow { color: var(--primary); font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.section-head h2 { font-size: 34px; font-weight: 800; margin: 10px 0 14px; letter-spacing: -0.3px; }
.section-head p { color: var(--ink-2); font-size: 16px; }

/* ---------- 三版本卡片 ---------- */
.editions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.edition-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; transition: all .25s; position: relative; overflow: hidden;
}
.edition-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.edition-card .ec-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; margin-bottom: 18px;
}
.ec-saas .ec-icon { background: #e7f0fb; }
.ec-source .ec-icon { background: #fef3ec; }
.ec-factory .ec-icon { background: #e9faf3; }
.edition-card .ec-tag { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.ec-saas .ec-tag { background: var(--primary-light); color: var(--primary); }
.ec-source .ec-tag { background: #fef3ec; color: var(--accent); }
.ec-factory .ec-tag { background: #e9faf3; color: var(--ok); }
.edition-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.edition-card .ec-desc { color: var(--ink-2); font-size: 14.5px; margin-bottom: 18px; }
.edition-card .ec-features li { display: flex; gap: 9px; padding: 6px 0; font-size: 14.5px; color: var(--ink-2); }
.edition-card .ec-features li .ck { color: var(--ok); font-weight: 700; flex-shrink: 0; }
.edition-card .ec-price { margin: 20px 0 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.edition-card .ec-price .from { font-size: 13px; color: var(--muted); }
.edition-card .ec-price .amt { font-size: 28px; font-weight: 800; color: var(--ink); }
.edition-card .ec-price .amt span { font-size: 14px; font-weight: 500; color: var(--muted); }
.edition-card .ec-foot { display: flex; gap: 10px; }

/* ---------- 功能网格 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: all .2s;
}
.feature-item:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-3px); }
.feature-item .fi-icon { width: 46px; height: 46px; border-radius: 11px; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.feature-item h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.feature-item p { font-size: 13.5px; color: var(--ink-2); }

/* ---------- 适用行业 ---------- */
.industries { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.industry-chip {
  padding: 12px 22px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px;
  transition: all .2s;
}
.industry-chip:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---------- CTA 横幅 ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #1e6fc7 100%);
  border-radius: 22px; padding: 52px 48px; color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 200px at 80% 20%, rgba(255, 107, 53, 0.35), transparent 60%);
}
.cta-banner h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; position: relative; }
.cta-banner p { font-size: 16px; opacity: 0.92; margin-bottom: 26px; position: relative; }
.cta-banner .hero-actions { justify-content: center; position: relative; }

/* ---------- 详情页通用 ---------- */
.page-hero {
  background: linear-gradient(135deg, #0f1b2d 0%, #143a63 100%);
  color: #fff; padding: 70px 0 64px; position: relative; overflow: hidden;
}
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 300px at 85% 0%, rgba(255, 107, 53, 0.25), transparent 60%); }
.page-hero .container { position: relative; }
.page-hero .crumb { font-size: 13px; opacity: 0.7; margin-bottom: 14px; }
.page-hero .crumb a:hover { text-decoration: underline; }
.page-hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 14px; }
.page-hero p { font-size: 17px; opacity: 0.9; max-width: 620px; }

/* 详情页亮点 */
.highlight-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.highlight-item { display: flex; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.highlight-item .hi-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.highlight-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.highlight-item p { font-size: 13.5px; color: var(--ink-2); }

/* 对比表 */
.compare-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare-table th, .compare-table td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.compare-table thead th { background: var(--bg-dark); color: #fff; font-weight: 700; }
.compare-table thead th:first-child { text-align: left; }
.compare-table tbody td:first-child { text-align: left; font-weight: 600; color: var(--ink); background: var(--bg-soft); }
.compare-table .yes { color: var(--ok); font-weight: 700; }
.compare-table .no { color: var(--muted); }
.compare-table .col-rec { background: #fffbeb; }

/* ---------- 价格 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; display: flex; flex-direction: column; transition: all .25s; position: relative;
}
.price-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.price-card.featured { border-color: var(--primary); border-width: 2px; box-shadow: var(--shadow); }
.price-card.featured::before { content: "最受欢迎"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 16px; border-radius: 999px; }
.price-card .pc-name { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.price-card .pc-for { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.price-card .pc-amount { font-size: 38px; font-weight: 800; color: var(--ink); }
.price-card .pc-amount span { font-size: 15px; font-weight: 500; color: var(--muted); }
.price-card .pc-desc { font-size: 13px; color: var(--muted); margin-top: 4px; margin-bottom: 22px; }
.price-card .pc-features { flex: 1; margin-bottom: 24px; }
.price-card .pc-features li { display: flex; gap: 9px; padding: 7px 0; font-size: 14px; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.price-card .pc-features li .ck { color: var(--ok); flex-shrink: 0; }

/* ---------- 表单 ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.form-group label .req { color: var(--accent); }
.form-control {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; color: var(--ink); background: #fff; transition: all .18s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.12); }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* 版本选择卡 */
.edition-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.edition-pick label { cursor: pointer; }
.edition-pick input { position: absolute; opacity: 0; }
.edition-pick .ep-box {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; transition: all .18s;
}
.edition-pick input:checked + .ep-box { border-color: var(--primary); background: var(--primary-light); }
.edition-pick .ep-box .ep-t { font-weight: 700; font-size: 15px; }
.edition-pick .ep-box .ep-p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.edition-pick input:checked + .ep-box .ep-p { color: var(--primary); }

/* 提交成功提示 */
.alert { padding: 14px 18px; border-radius: 10px; font-size: 14.5px; margin-bottom: 20px; display: none; }
.alert.show { display: block; }
.alert-success { background: #e9faf3; color: var(--ok); border: 1px solid #b6ebcb; }
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step-item { text-align: center; position: relative; }
.step-item .si-num {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff;
  display: grid; place-items: center; font-size: 22px; font-weight: 800; box-shadow: 0 6px 16px rgba(10,102,194,.3);
}
.step-item h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.step-item p { font-size: 13.5px; color: var(--ink-2); padding: 0 8px; }

/* ---------- FAQ ---------- */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.faq-q { padding: 18px 22px; font-weight: 700; font-size: 16px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q .arrow { transition: transform .2s; color: var(--primary); font-size: 18px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 22px; color: var(--ink-2); font-size: 14.5px; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 22px 18px; }
.faq-item.open .faq-q .arrow { transform: rotate(45deg); }

/* ---------- 联系卡片 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; text-align: center; transition: all .2s; }
.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.contact-card .cc-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; font-size: 24px; margin: 0 auto 16px; }
.contact-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--ink-2); }
.contact-card .cc-big { font-size: 22px; font-weight: 800; color: var(--primary); margin: 6px 0; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-dark); color: #aebdd0; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer .brand small { color: #6b7a90; }
.footer-about p { font-size: 14px; line-height: 1.7; color: #8a99b0; }
.footer h5 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: 14px; color: #8a99b0; transition: color .15s; }
.footer ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #6b7a90; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 36px; }
  .editions, .feature-grid, .price-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .highlight-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 14px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
  .nav-toggle { display: block; }
  .nav-cta .btn-outline { display: none; }
  .hero { padding: 50px 0; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 16px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 26px; }
  .editions, .feature-grid, .price-grid, .contact-grid, .edition-pick, .form-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .cta-banner { padding: 36px 22px; }
  .cta-banner h2 { font-size: 24px; }
  .page-hero h1 { font-size: 28px; }
  .form-card { padding: 24px; }
  .container { padding: 0 18px; }
}
