/* ============================================================
   静态建站 - www.ningkailiang.com
   全站样式表 | 响应式 · 高端大气 · SEO 友好
   ============================================================ */

:root {
  --primary: #1a56db;
  --primary-dark: #123a99;
  --accent: #f59e0b;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --text: #334155;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-gray: #f4f7fb;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .15);
  --max-width: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .25s; }
a:hover { color: var(--primary-dark); }
ul, ol { margin-left: 1.4em; }

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

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand-name { font-size: 20px; font-weight: 700; color: var(--dark); letter-spacing: 1px; }
.brand-name span { color: var(--primary); }

.nav-menu { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; }
.nav-menu a {
  display: block; padding: 8px 16px; font-size: 15px;
  color: var(--dark-2); border-radius: 8px; font-weight: 500;
}
.nav-menu a:hover { background: var(--bg-gray); color: var(--primary); }
.nav-menu a.active { color: var(--primary); background: rgba(26, 86, 219, .08); font-weight: 600; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--dark); }

/* ---------------- 按钮 / CTA ---------------- */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px;
  font-size: 16px; font-weight: 600; cursor: pointer; border: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; box-shadow: 0 8px 20px rgba(26, 86, 219, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(26, 86, 219, .45); color: #fff; }
.btn-outline {
  background: transparent; color: #fff;
  border: 2px solid rgba(255, 255, 255, .7);
}
.btn-outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-accent {
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 20px rgba(245, 158, 11, .35);
}
.btn-accent:hover { transform: translateY(-2px); color: #fff; }
.btn-sm { padding: 9px 22px; font-size: 14px; }

.cta-band {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius); color: #fff;
  padding: 44px 40px; text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: 26px; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .85); margin-bottom: 22px; }

/* ---------------- 首屏 Hero ---------------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #0b1f4b 0%, #123a99 55%, #1a56db 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("img/banner.jpg") center/cover no-repeat;
  opacity: .22;
}
.hero-inner { position: relative; padding: 96px 0 110px; max-width: 820px; }
.hero h1 { font-size: 44px; line-height: 1.3; margin-bottom: 18px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 19px; color: rgba(255, 255, 255, .85); margin-bottom: 32px; max-width: 640px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-tags { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags span {
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
  padding: 6px 16px; border-radius: 999px; font-size: 13.5px;
}

/* ---------------- 页头（内页通用） ---------------- */
.page-hero {
  background: linear-gradient(135deg, #0b1f4b, #123a99);
  color: #fff; text-align: center; padding: 72px 0;
}
.page-hero h1 { font-size: 36px; margin-bottom: 10px; }
.page-hero p { color: rgba(255, 255, 255, .8); font-size: 17px; }

/* ---------------- 区块通用 ---------------- */
section.section { padding: 84px 0; }
section.section.alt { background: var(--bg-gray); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .kicker {
  display: inline-block; color: var(--primary); font-weight: 700;
  letter-spacing: 3px; font-size: 13px; text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-size: 34px; color: var(--dark); margin-bottom: 14px; line-height: 1.35; }
.section-head p { color: var(--text-light); font-size: 16.5px; }

/* ---------------- 卡片 ---------------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 19px; color: var(--dark); margin: 14px 0 10px; }
.card p { font-size: 15px; color: var(--text-light); }
.card .icon { font-size: 34px; line-height: 1; }

.price-card { position: relative; text-align: center; overflow: hidden; }
.price-card .price { font-size: 40px; font-weight: 800; color: var(--primary); margin: 8px 0 2px; }
.price-card .price small { font-size: 15px; font-weight: 500; color: var(--text-light); }
.price-card .price-note { font-size: 13px; color: var(--text-light); margin-bottom: 18px; }
.price-card ul { list-style: none; margin: 0 0 22px; text-align: left; }
.price-card ul li { padding: 7px 0 7px 28px; position: relative; font-size: 14.5px; border-bottom: 1px dashed var(--border); }
.price-card ul li::before { content: "✓"; position: absolute; left: 4px; color: #16a34a; font-weight: 700; }
.price-card.featured { border: 2px solid var(--primary); }
.price-card .badge {
  position: absolute; top: 0; right: 0; background: var(--accent); color: #fff;
  font-size: 12px; padding: 5px 14px; border-radius: 0 0 0 12px; font-weight: 600;
}

.img-card { padding: 0; overflow: hidden; }
.img-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.img-card .img-body { padding: 24px 26px 28px; }

/* ---------------- 流程步骤 ---------------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; position: relative; box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 14px;
}
.step h3 { font-size: 16px; color: var(--dark); margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--text-light); }

/* ---------------- 对比表 ---------------- */
.compare-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--border); }
.compare-table thead th { background: var(--dark); color: #fff; font-size: 15.5px; }
.compare-table tbody tr:hover { background: var(--bg-gray); }
.compare-table td.yes { color: #16a34a; font-weight: 700; }
.compare-table td.no { color: #dc2626; }

/* ---------------- FAQ ---------------- */
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 16px; overflow: hidden; box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer; padding: 20px 24px; font-size: 16.5px; font-weight: 600;
  color: var(--dark); list-style: none; position: relative; padding-right: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--primary); font-weight: 700; transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--text-light); font-size: 15px; }

/* ---------------- 联系表单 ---------------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.contact-info h3 { font-size: 20px; color: var(--dark); margin-bottom: 12px; }
.contact-info ul { list-style: none; margin: 20px 0; }
.contact-info ul li { padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 15px; }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 22px; color: var(--dark); margin-bottom: 6px; }
.form-card .form-tip { font-size: 13.5px; color: var(--text-light); margin-bottom: 24px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14.5px; font-weight: 600; color: var(--dark-2); margin-bottom: 8px; }
.form-group label .req { color: #dc2626; margin-left: 3px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; font-size: 15px; color: var(--text);
  border: 1.5px solid var(--border); border-radius: 10px; background: var(--bg-gray);
  transition: border-color .2s, box-shadow .2s; font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 86, 219, .12);
}
.form-group textarea { min-height: 130px; resize: vertical; }

/* 蜜罐字段：对正常用户隐藏，对机器人可见 */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

.form-success {
  display: none; text-align: center; padding: 30px 20px;
  background: #f0fdf4; border: 1.5px solid #bbf7d0; border-radius: 12px;
}
.form-success .icon { font-size: 46px; }
.form-success h3 { color: #15803d; font-size: 20px; margin: 12px 0 8px; }
.form-success p { color: #166534; font-size: 15px; }
.form-error-msg {
  display: none; margin-top: 14px; padding: 12px 16px;
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px;
  color: #b91c1c; font-size: 14px;
}

/* ---------------- 页脚 ---------------- */
.site-footer { background: var(--dark); color: #94a3b8; margin-top: 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px; padding: 60px 0 40px;
}
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; }
.site-footer ul li { margin-bottom: 10px; font-size: 14px; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #fff; }
.footer-about p { font-size: 14px; line-height: 1.8; margin-top: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0; text-align: center; font-size: 13.5px;
}
.footer-bottom a { color: #cbd5e1; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg); padding: 10px 20px 16px;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 13px 10px; border-radius: 8px; }
  .hero h1 { font-size: 32px; }
  .hero-inner { padding: 64px 0 80px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 27px; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero h1 { font-size: 27px; }
  .hero p.lead { font-size: 16px; }
  section.section { padding: 60px 0; }
  .cta-band { padding: 32px 22px; }
  .cta-band h2 { font-size: 21px; }
  .compare-table th, .compare-table td { padding: 12px 12px; font-size: 13.5px; }
  .btn { width: 100%; text-align: center; }
  .hero-actions .btn, .cta-band .btn { width: 100%; }
}
