/* ===== 全局重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; color: #333; line-height: 1.7; background: #f5f6f8; }

/* ===== 配色变量 ===== */
:root {
  --primary: #1a3a5c;
  --primary-light: #234b75;
  --accent: #e8830c;
  --accent-hover: #c9700a;
  --white: #ffffff;
  --light-bg: #f0f2f5;
  --border: #e0e3e8;
  --text: #333333;
  --text-light: #666666;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
}

/* ===== 导航栏 ===== */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 0 1.5rem;
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 700; color: var(--primary);
  text-decoration: none;
}
.logo-icon {
  width: 40px; height: 40px; background: var(--accent);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 900; font-size: 1.1rem;
}
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a {
  text-decoration: none; color: var(--text); font-size: 0.95rem;
  transition: color 0.2s; font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); }

/* ===== Hero 区域 ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white); text-align: center; padding: 5rem 1.5rem 4rem;
}
.hero h1 { font-size: 2.6rem; margin-bottom: 1rem; font-weight: 800; }
.hero p { font-size: 1.15rem; opacity: 0.9; max-width: 700px; margin: 0 auto 2rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 0.75rem 2rem; border-radius: 6px;
  font-size: 1rem; font-weight: 600; text-decoration: none;
  cursor: pointer; border: none; transition: all 0.25s;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(232,131,12,0.4); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

/* ===== 通用区块 ===== */
.section { padding: 4rem 1.5rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 0.5rem; }
.section-title h2 { font-size: 2rem; color: var(--primary); font-weight: 700; }
.section-title p { color: var(--text-light); font-size: 1.05rem; margin-top: 0.5rem; }

/* ===== 城市表格 ===== */
.city-table {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.city-col {
  flex: 1;
  min-width: 0;
}
.city-group {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.city-province {
  background: var(--primary);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  letter-spacing: 0.5px;
}
.city-row {
  display: flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  transition: background 0.15s;
}
.city-row:last-child { border-bottom: none; }
.city-row:hover { background: #f8f9fb; }
.city-row .city-name {
  font-weight: 600; color: var(--primary); min-width: 4.5rem;
}
.city-row .city-tel {
  color: var(--accent); font-weight: 600; font-size: 0.82rem;
  margin-left: auto; margin-right: 0.6rem;
  white-space: nowrap;
}
.btn-call {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  background: var(--accent);
  color: var(--white);
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-call:hover { background: var(--accent-hover); }

/* ===== 产品卡片 ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.product-card {
  background: var(--white); border-radius: 12px; padding: 2rem 1.5rem;
  box-shadow: var(--shadow); transition: all 0.3s;
  border-top: 4px solid var(--accent);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.product-card h3 { font-size: 1.2rem; color: var(--primary); margin-bottom: 0.8rem; }
.product-card p { font-size: 0.93rem; color: var(--text-light); line-height: 1.8; }

/* ===== FAQ 手风琴 ===== */
.faq-list { margin-top: 2.5rem; max-width: 850px; margin-left: auto; margin-right: auto; }
.faq-item {
  background: var(--white); border-radius: 8px; margin-bottom: 0.7rem;
  box-shadow: var(--shadow); overflow: hidden;
}
.faq-q {
  padding: 1rem 1.3rem; font-size: 1.02rem; font-weight: 600;
  color: var(--primary); cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  transition: background 0.2s; user-select: none;
}
.faq-q:hover { background: #f8f9fb; }
.faq-q .arrow { font-size: 0.8rem; transition: transform 0.3s; color: var(--accent); }
.faq-item.active .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  background: #fafbfc; border-top: 1px solid var(--border);
}
.faq-a-inner { padding: 1rem 1.3rem; font-size: 0.93rem; color: var(--text-light); line-height: 1.9; }
.faq-item.active .faq-a { max-height: 400px; }

/* ===== 联系我们 ===== */
.contact-card {
  background: var(--white); border-radius: 12px; padding: 2.5rem 2rem;
  box-shadow: var(--shadow); max-width: 700px; margin: 2.5rem auto 0;
  text-align: center;
}
.contact-card .tel-big {
  font-size: 2rem; font-weight: 800; color: var(--accent);
  margin: 0.8rem 0;
}
.contact-card .info-line { color: var(--text-light); font-size: 0.95rem; margin: 0.3rem 0; }

/* ===== 页脚 ===== */
.footer {
  background: var(--primary); color: rgba(255,255,255,0.7);
  text-align: center; padding: 2rem 1.5rem; font-size: 0.9rem;
}
.footer a { color: var(--accent); text-decoration: none; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .city-table { flex-wrap: wrap; }
  .city-col { flex: 0 0 calc(50% - 0.75rem); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0; background: var(--white);
    box-shadow: var(--shadow); padding: 1rem 1.5rem; gap: 0.8rem;
  }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .city-table { flex-wrap: wrap; }
  .city-col { flex: 0 0 100%; }
  .product-grid { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 1rem; }
  .city-row .city-tel { font-size: 0.78rem; margin-right: 0.3rem; }
}
@media (max-width: 480px) {
  .hero { padding: 3rem 1rem 2.5rem; }
  .hero h1 { font-size: 1.5rem; }
  .btn { padding: 0.6rem 1.5rem; font-size: 0.9rem; }
  .city-row { font-size: 0.82rem; padding: 0.4rem 0.6rem; }
  .city-row .city-name { min-width: 3.5rem; }
  .city-row .city-tel { font-size: 0.72rem; }
}
