/* 洛阳POS办理咨询网 — 主样式 */
:root {
  --primary: #1677ff;
  --primary-dark: #0958d9;
  --accent: #fa8c16;
  --text: #1f2329;
  --text-light: #646a73;
  --bg-soft: #f5f8ff;
  --border: #e5e8ef;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0, 40, 120, .07);
  --shadow-lg: 0 8px 28px rgba(0, 40, 120, .12);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }

/* ---- 顶部通栏 ---- */
.topbar {
  background: #1a1a1a;
  color: #ddd;
  font-size: 13px;
  padding: 7px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar a { color: #fff; font-weight: 600; }

/* ---- 头部 ---- */
.header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; color: var(--text); }
.logo .mark {
  width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), #722ed1);
  color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 800;
}
.nav { display: flex; gap: 26px; font-size: 15px; }
.nav a { color: var(--text); font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; transition: .2s; }
.nav a:hover, .nav a.active { color: var(--primary); border-bottom-color: var(--primary); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, #0b2a6b 0%, #1677ff 55%, #4b9bff 100%);
  color: #fff;
  padding: 62px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 380px; height: 380px; border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.hero h1 { font-size: 38px; line-height: 1.3; margin-bottom: 14px; font-weight: 800; }
.hero .sub { font-size: 17px; opacity: .94; margin-bottom: 26px; max-width: 700px; }
.hero .hl { color: #ffd666; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.badge {
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  padding: 6px 14px; border-radius: 20px; font-size: 14px;
  backdrop-filter: blur(4px);
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 8px;
  font-size: 16px; font-weight: 700; cursor: pointer; border: none;
  transition: .22s; text-align: center;
}
.btn-primary { background: #fff; color: var(--primary); box-shadow: 0 4px 16px rgba(0,0,0,.16); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.22); color: var(--primary-dark); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.24); color: #fff; }

/* ---- 通用 section ---- */
.section { padding: 62px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 29px; margin-bottom: 12px; font-weight: 800; }
.section-head p { color: var(--text-light); font-size: 16px; }

/* ---- 优势卡片 ---- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #c5d9ff; }
.card .icon {
  width: 48px; height: 48px; border-radius: 11px;
  background: linear-gradient(135deg, #e8f1ff, #d6e7ff);
  display: grid; place-items: center; font-size: 24px; margin-bottom: 16px;
}
.card h3 { font-size: 18px; margin-bottom: 9px; font-weight: 700; }
.card p { color: var(--text-light); font-size: 14.5px; }

/* ---- 区县网格 ---- */
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.area-item {
  background: #fff; border: 1px solid var(--border); border-radius: 9px;
  padding: 18px 12px; text-align: center; font-weight: 600; font-size: 15.5px;
  transition: .2s; color: var(--text);
}
.area-item:hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
  transform: translateY(-3px); box-shadow: 0 6px 18px rgba(22,119,255,.28);
}
.area-item .tag { display: block; font-size: 12px; font-weight: 400; opacity: .62; margin-top: 4px; }

/* ---- 表单 ---- */
.form-box {
  background: #fff; border-radius: 14px; padding: 34px;
  box-shadow: var(--shadow-lg); max-width: 640px; margin: 0 auto;
  border: 1px solid var(--border);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 7px; }
.form-row label .req { color: #d4380d; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 15px; font-family: inherit;
  transition: .2s; background: #fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,119,255,.11);
}
.form-row textarea { resize: vertical; min-height: 88px; }
.form-submit {
  width: 100%; padding: 15px; background: var(--primary); color: #fff;
  border: none; border-radius: 8px; font-size: 17px; font-weight: 700;
  cursor: pointer; transition: .22s;
}
.form-submit:hover { background: var(--primary-dark); }
.form-submit:disabled { background: #bbb; cursor: not-allowed; }
.form-tip { text-align: center; color: var(--text-light); font-size: 13px; margin-top: 14px; }
.form-msg { padding: 12px; border-radius: 8px; margin-bottom: 16px; font-size: 14.5px; display: none; }
.form-msg.ok { background: #f6ffed; border: 1px solid #b7eb8f; color: #389e0d; display: block; }
.form-msg.err { background: #fff2f0; border: 1px solid #ffccc7; color: #cf1322; display: block; }

/* ---- 资讯 ---- */
.news-list { display: grid; gap: 16px; }
.news-item {
  display: flex; gap: 20px; padding: 20px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); transition: .22s;
}
.news-item:hover { box-shadow: var(--shadow-lg); border-color: #c5d9ff; }
.news-date { color: var(--text-light); font-size: 13.5px; white-space: nowrap; }
.news-item h3 { font-size: 17px; margin-bottom: 6px; font-weight: 600; }
.news-item p { color: var(--text-light); font-size: 14px; }

/* ---- FAQ ---- */
.faq-item {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
}
.faq-q {
  padding: 18px 22px; font-weight: 600; font-size: 16px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-q::after { content: '+'; font-size: 22px; color: var(--primary); font-weight: 400; transition: .22s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: .3s; color: var(--text-light); font-size: 15px; }
.faq-item.open .faq-a { padding: 0 22px 20px; max-height: 400px; }

/* ---- 表格 ---- */
.fee-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.fee-table th, .fee-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 15px; }
.fee-table th { background: var(--bg-soft); font-weight: 700; }
.fee-table tr:last-child td { border-bottom: none; }

/* ---- 浮动客服 ---- */
.float-bar {
  position: fixed; right: 18px; bottom: 26px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px;
}
.float-btn {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,.22); transition: .22s; cursor: pointer;
  text-decoration: none;
}
.float-btn:hover { transform: scale(1.09); }
.float-tel { background: linear-gradient(135deg, #1677ff, #0958d9); }
.float-top { background: #666; font-size: 20px; }

/* ---- 页脚 ---- */
.footer { background: #1a2233; color: #9fb0c7; padding: 44px 0 24px; font-size: 14px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; font-weight: 700; }
.footer a { color: #9fb0c7; display: block; margin-bottom: 8px; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2c3a52; padding-top: 20px; text-align: center; font-size: 13px; color: #6b7d94; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.footer-links a { display: inline; margin-bottom: 0; }

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

/* ---- 响应式 ---- */
@media (max-width: 900px) {
  .grid-4, .area-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero h1 { font-size: 27px; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .section { padding: 42px 0; }
  .grid-4, .area-grid { grid-template-columns: repeat(2, 1fr); }
  .form-box { padding: 22px 18px; }
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: 23px; }
  .btn { padding: 12px 24px; font-size: 15px; }
  .news-item { flex-direction: column; gap: 8px; }
}

/* ==================== 区县左右两栏 ==================== */
.area-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.area-col h3 {
  font-size: 16px;
  color: #0958d9;
  margin-bottom: 12px;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8f1ff;
}
.area-col-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.area-mini {
  display: flex; align-items: center; justify-content: center;
  padding: 11px 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  transition: .2s;
  text-align: center;
  min-height: 44px;
}
.area-mini:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22,119,255,.24);
}
.area-mini-all {
  background: #e8f1ff !important;
  border-color: #c5d9ff !important;
  color: #0958d9 !important;
  font-weight: 600;
}
.area-mini-all:hover {
  background: var(--primary) !important;
  color: #fff !important;
}
