/* ============================================
   小何开锁官网 - 全站样式
   主色：#D97706 锁匠金 | 辅色：#1E40AF 信任蓝
   移动优先 | 纯 CSS | 无外部依赖
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --primary: #D97706;
  --primary-dark: #B45309;
  --primary-light: #FCD34D;
  --secondary: #1E40AF;
  --secondary-dark: #1E3A8A;
  --text: #1F2937;
  --text-light: #6B7280;
  --bg: #FFFFFF;
  --bg-alt: #F9FAFB;
  --border: #E5E7EB;
  --success: #059669;
  --danger: #DC2626;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --tap: 44px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px;
}

/* ============== 顶部导航 ============== */
.top-bar {
  background: var(--primary);
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 6px 12px;
  font-weight: 500;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}

.nav-menu {
  display: none;
  gap: 4px;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 8px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  transition: all 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(217, 119, 6, 0.1);
  color: var(--primary);
}

.nav-phone {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s;
}

.nav-phone:hover {
  background: var(--primary-dark);
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  width: var(--tap);
  height: var(--tap);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.mobile-menu {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid var(--bg-alt);
  min-height: var(--tap);
}

.mobile-menu a.active {
  color: var(--primary);
  font-weight: 600;
  background: rgba(217, 119, 6, 0.05);
}

@media (max-width: 767px) {
  .nav-phone { display: none; }
}

@media (min-width: 768px) {
  .nav-menu { display: flex; }
  .menu-toggle { display: none; }
}

/* ============== 通用容器 ============== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

section {
  padding: 40px 0;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text);
}

.section-sub {
  text-align: center;
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  section { padding: 60px 0; }
  .section-title { font-size: 32px; }
}

/* ============== Hero 首屏 ============== */
.hero {
  background: linear-gradient(135deg, #FEF3C7 0%, #FFF7ED 50%, #FFFBEB 100%);
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '🔑';
  position: absolute;
  font-size: 200px;
  opacity: 0.06;
  right: -40px;
  top: 0;
  transform: rotate(15deg);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(217, 119, 6, 0.15);
  color: var(--primary-dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}

.hero h1 .hl {
  color: var(--primary);
}

.hero p.lead {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #fff;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.btn-secondary:hover {
  background: var(--secondary);
  color: #fff;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
  color: var(--text-light);
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (min-width: 768px) {
  .hero { padding: 80px 0 96px; }
  .hero h1 { font-size: 44px; }
  .hero p.lead { font-size: 18px; }
  .hero-cta { flex-direction: row; }
  .btn { padding: 14px 28px; }
}

/* ============== 业务卡片 ============== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: opacity 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--primary-light);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--text);
}

.service-card .desc {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.5;
}

.service-card .price {
  display: inline-block;
  background: rgba(5, 150, 105, 0.1);
  color: var(--success);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-card .more {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============== 价格表 ============== */
.price-table {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.price-row:last-child {
  border-bottom: none;
}

.price-row .name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
}

.price-row .name .emoji {
  font-size: 24px;
}

.price-row .range {
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .price-row { padding: 18px 24px; }
  .price-row .name { font-size: 16px; }
}

/* ============== 案例 ============== */
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.case-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  position: relative;
}

.case-card::before {
  content: '"';
  position: absolute;
  top: 8px;
  right: 16px;
  font-size: 60px;
  color: var(--primary-light);
  font-family: Georgia, serif;
  line-height: 1;
}

.case-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.case-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
}

.case-meta .info .name {
  font-weight: 600;
  font-size: 15px;
}

.case-meta .info .tag {
  font-size: 12px;
  color: var(--text-light);
}

.case-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

.case-stars {
  color: #FBBF24;
  margin-top: 8px;
  font-size: 14px;
}

@media (min-width: 768px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (min-width: 1024px) {
  .case-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============== FAQ 折叠 ============== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item.open {
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.faq-q {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
  min-height: var(--tap);
}

.faq-q::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--primary);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item.open .faq-q::after {
  content: '−';
}

.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
}

.faq-item.open .faq-a {
  padding: 0 20px 16px;
  max-height: 600px;
}

/* ============== 信任背书 ============== */
.trust-banner {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: #fff;
  padding: 32px 0;
  text-align: center;
}

.trust-banner h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.trust-banner p {
  font-size: 15px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 20px;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.trust-item {
  text-align: center;
}

.trust-item .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-light);
  margin-bottom: 4px;
}

.trust-item .label {
  font-size: 13px;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .trust-items { grid-template-columns: repeat(4, 1fr); }
  .trust-item .num { font-size: 36px; }
}

/* ============== NAP 卡片 ============== */
.nap-card {
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px 0;
}

.nap-card h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nap-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
}

.nap-item .icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1.4;
}

.nap-item a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 18px;
}

.nap-item strong {
  color: var(--text);
}

/* ============== 底部固定拨号条（手机端） ============== */
.bottom-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  z-index: 99;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
}

.bottom-cta .btn {
  flex: 1;
  margin: 0;
  font-size: 15px;
  padding: 10px;
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .bottom-cta { display: none; }
}

/* ============== 页脚 ============== */
.footer {
  background: #1F2937;
  color: #D1D5DB;
  padding: 40px 0 16px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.footer h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 12px;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 6px;
}

.footer a {
  color: #D1D5DB;
  text-decoration: none;
}

.footer a:hover { color: var(--primary-light); }

.footer .copy {
  text-align: center;
  border-top: 1px solid #374151;
  padding-top: 16px;
  font-size: 12px;
  color: #9CA3AF;
}

.footer .nap-mini {
  font-size: 13px;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ============== 区域地图 ============== */
.area-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.area-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.area-stat .num {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.area-stat .label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

@media (min-width: 768px) {
  .area-stats { grid-template-columns: repeat(4, 1fr); }
  .area-stat .num { font-size: 32px; }
}

/* ============== 通用工具类 ============== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
