/* ============================================
   好站 hao.ningkailiang.com - 全站样式
   网站建设哪家好 | 响应式 · 高端大气
   ============================================ */

:root {
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --primary-light: #3b82f6;
  --accent: #f59e0b;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --border: #e5e7eb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 40, 100, .10);
  --shadow-hover: 0 16px 40px rgba(15, 40, 100, .18);
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration: none; transition: color .25s; }
a:hover { color: var(--primary-dark); }

.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, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand .en { font-size: 12px; font-weight: 500; color: var(--text-light); display: block; line-height: 1.1; }

.main-nav ul { display: flex; list-style: none; gap: 8px; }
.main-nav a {
  display: block;
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--primary); }
.main-nav a.active { background: var(--primary); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--primary-dark);
}

/* ---------- Hero / Banner ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1f4b 0%, #1e3a8a 55%, #1d4ed8 100%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.35), transparent 70%);
}
.hero-banner { width: 100%; height: 100%; object-fit: cover; }
.hero-banner-wrap {
  max-height: 400px;
  overflow: hidden;
  position: relative;
}
.hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero h1 { font-size: 42px; font-weight: 800; line-height: 1.3; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero p.sub { margin: 14px 0 26px; font-size: 18px; opacity: .92; max-width: 640px; }
.hero .kw { color: #fde68a; }

/* ---------- 按钮 / CTA ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s, background .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.55); }
.btn-lg { padding: 16px 40px; font-size: 18px; }

/* ---------- 区块通用 ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 32px; font-weight: 800; color: var(--primary-dark); }
.section-head h2 span { color: var(--primary); }
.section-head p { margin-top: 10px; color: var(--text-light); font-size: 16px; }
.section-head .line {
  width: 64px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 16px auto 0;
}

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

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card img.cover { border-radius: 10px; margin-bottom: 18px; width: 100%; height: auto; object-fit: cover; }
.card h3 { font-size: 20px; margin-bottom: 10px; color: var(--primary-dark); }
.card .price { font-size: 26px; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.card .price small { font-size: 14px; color: var(--text-light); font-weight: 500; }
.card p, .card li { color: var(--text-light); font-size: 15px; }
.card ul { list-style: none; margin-top: 12px; }
.card ul li::before { content: "✓ "; color: #16a34a; font-weight: 700; }

.icon-badge {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  background: linear-gradient(135deg, #e0eaff, #c7dbff);
  margin-bottom: 16px;
}

/* ---------- 对比表 ---------- */
.compare-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare-table th, .compare-table td { padding: 15px 18px; text-align: center; border-bottom: 1px solid var(--border); font-size: 15px; }
.compare-table thead th { background: var(--primary-dark); color: #fff; font-size: 16px; }
.compare-table tbody tr:hover { background: var(--bg-soft); }
.compare-table td:first-child { font-weight: 700; color: var(--primary-dark); }
.compare-table .good { color: #16a34a; font-weight: 700; }
.compare-table .bad { color: #dc2626; }

/* ---------- 流程步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 18px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(29,78,216,.35);
}
.step h3 { font-size: 16px; margin: 10px 0 6px; color: var(--primary-dark); }
.step p { font-size: 13px; color: var(--text-light); }

/* ---------- 图文混排 ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}
.feature-row.reverse .feature-img { order: 2; }
.feature-row img { border-radius: var(--radius); box-shadow: var(--shadow-hover); width: 100%; height: auto; }
.feature-row h3 { font-size: 24px; color: var(--primary-dark); margin-bottom: 14px; }
.feature-row p { color: var(--text-light); margin-bottom: 12px; }

/* ---------- CTA 横幅 ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: var(--radius);
  padding: 46px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-hover);
}
.cta-band h2 { font-size: 26px; }
.cta-band p { opacity: .9; margin-top: 6px; }

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

/* ---------- 联系表单 ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: start; }
.contact-info h3 { font-size: 22px; color: var(--primary-dark); margin-bottom: 12px; }
.contact-info p { color: var(--text-light); margin-bottom: 10px; }
.contact-info ul { list-style: none; }
.contact-info ul li { padding: 8px 0; color: var(--text-light); }
.contact-info ul li strong { color: var(--text); }

.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 36px 32px;
  border: 1px solid var(--border);
}
.form-card h3 { font-size: 22px; color: var(--primary-dark); margin-bottom: 20px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 7px; font-size: 14px; }
.form-group label .req { color: #dc2626; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 9px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  background: #fafbfc;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,78,216,.12);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--text-light); margin-top: 12px; }

/* 蜜罐字段：对真实用户隐藏 */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
}

.form-status {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 10px;
  font-weight: 600;
}
.form-status.success {
  display: block;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #047857;
}
.form-status.error {
  display: block;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #0b1f3a;
  color: #cbd5e1;
  padding: 54px 0 24px;
  margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 30px; }
.site-footer h4 { color: #fff; font-size: 17px; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding: 18px 0 0;
  font-size: 14px;
  color: var(--text-light);
}
.breadcrumb a { color: var(--text-light); }

/* ---------- 页内小标题 ---------- */
.page-head {
  background: linear-gradient(120deg, #0b1f4b, #1d4ed8);
  color: #fff;
  padding: 58px 0;
}
.page-head h1 { font-size: 34px; font-weight: 800; }
.page-head p { margin-top: 10px; opacity: .9; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 32px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 12px 20px; gap: 4px; }
  .main-nav a { padding: 12px 14px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 20px; }
  .feature-row.reverse .feature-img { order: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .hero p.sub { font-size: 15px; }
  .hero-inner { position: relative; padding: 40px 0; }
  .hero-banner-wrap { max-height: none; }
  .section { padding: 48px 0; }
  .section-head h2 { font-size: 25px; }
  .cta-band { padding: 30px 22px; flex-direction: column; text-align: center; }
  .compare-table th, .compare-table td { padding: 10px 8px; font-size: 13px; }
  .form-card { padding: 26px 18px; }
}
