/* ============================================================
   莱福燃气阀 LAIFU Gas Valve - 全站样式
   佛山莱福燃气阀有限公司 | www.laifugas.com
   ============================================================ */

:root {
  --primary: #1a4d8f;
  --primary-light: #2b6cb0;
  --primary-dark: #123a6b;
  --accent: #e67e22;
  --accent-light: #f39c12;
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #1f2937;
  --text-mid: #4b5563;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(17, 24, 39, 0.06);
  --shadow-lg: 0 8px 24px rgba(17, 24, 39, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

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

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: var(--primary-dark);
  color: #cbd5e1;
  font-size: 13px;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 36px; flex-wrap: wrap; gap: 4px;
}
.topbar a { color: #cbd5e1; }
.topbar a:hover { color: #fff; }
.topbar .phone { font-weight: 600; color: #fff; }

/* ---------- 页头 ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 16px; flex-wrap: wrap; padding: 10px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; letter-spacing: 0.5px;
  flex-shrink: 0;
}
.brand-name { font-size: 22px; font-weight: 800; color: var(--primary-dark); line-height: 1.2; }
.brand-sub { font-size: 12px; color: var(--text-mid); letter-spacing: 1px; }

.main-nav ul { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  display: block; padding: 8px 14px; border-radius: 8px;
  font-size: 15px; color: var(--text); font-weight: 500;
}
.main-nav a:hover, .main-nav a.active { background: #eef3fa; color: var(--primary); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: block; background: none; border: 1px solid var(--border);
    border-radius: 8px; padding: 8px 12px; font-size: 18px; cursor: pointer; color: var(--text);
  }
  .main-nav {
    width: 100%; display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 11px 26px; border-radius: 8px;
  font-size: 15px; font-weight: 600; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.75); }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-blue { background: var(--primary); color: #fff; }
.btn-blue:hover { background: var(--primary-light); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, #123a6b 0%, #1a4d8f 55%, #2b6cb0 100%);
  color: #fff;
  padding: 72px 0 76px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 340px; height: 340px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.hero::before {
  content: ""; position: absolute; right: 80px; bottom: -120px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.hero h1 { font-size: 40px; line-height: 1.25; font-weight: 800; margin-bottom: 16px; }
.hero p { font-size: 17px; color: #dbe6f5; max-width: 640px; margin-bottom: 28px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .stat-row {
  display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap;
}
.hero .stat { border-left: 3px solid var(--accent); padding-left: 14px; }
.hero .stat b { display: block; font-size: 26px; font-weight: 800; }
.hero .stat span { font-size: 13px; color: #bcd0ea; }

@media (max-width: 720px) {
  .hero { padding: 48px 0 52px; }
  .hero h1 { font-size: 28px; }
}

/* ---------- 区块 ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--card); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-head h2 { font-size: 30px; font-weight: 800; color: var(--primary-dark); margin-bottom: 10px; }
.section-head .en { font-size: 13px; letter-spacing: 3px; color: var(--text-light); text-transform: uppercase; margin-bottom: 6px; }
.section-head p { color: var(--text-mid); }

/* ---------- 产品分类卡片 ---------- */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px;
}
.cat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; transition: box-shadow 0.2s, transform 0.2s;
  position: relative; overflow: hidden;
}
.cat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.cat-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--primary); border-radius: 0 4px 4px 0;
}
.cat-card .icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: #eef3fa; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; margin-bottom: 14px;
}
.cat-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--primary-dark); }
.cat-card p { font-size: 14px; color: var(--text-mid); margin-bottom: 12px; }
.cat-card .more { font-size: 14px; font-weight: 600; }

/* ---------- 产品展示 ---------- */
.prod-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px;
}
.prod-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow 0.2s, transform 0.2s;
}
.prod-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.prod-img {
  aspect-ratio: 4/3; background: #e8eef6;
  display: flex; align-items: center; justify-content: center;
  color: #8ba3c7; font-size: 14px; text-align: center; padding: 12px;
}
.prod-body { padding: 14px 16px 16px; }
.prod-body h3 { font-size: 16px; margin-bottom: 4px; }
.prod-body .model { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.prod-body p { font-size: 13px; color: var(--text-mid); }

/* ---------- 企业概况 ---------- */
.about-row {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start;
}
.about-row .text h3 { font-size: 22px; color: var(--primary-dark); margin-bottom: 14px; }
.about-row .text p { color: var(--text-mid); margin-bottom: 12px; font-size: 15px; }
.fact-list { margin-top: 20px; display: grid; gap: 10px; }
.fact-list li {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 14px; color: var(--text-mid);
}
.fact-list li::before { content: "▸"; color: var(--accent); font-weight: 800; }

.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-cards .card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; text-align: center;
}
.about-cards .card b { display: block; font-size: 26px; color: var(--primary); font-weight: 800; }
.about-cards .card span { font-size: 13px; color: var(--text-mid); }

@media (max-width: 860px) {
  .about-row { grid-template-columns: 1fr; }
}

/* ---------- 认证徽章 ---------- */
.cert-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px;
}
.cert-item {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 16px; text-align: center;
}
.cert-item .badge {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--primary); letter-spacing: 0.5px;
}
.cert-item b { display: block; font-size: 15px; margin-bottom: 4px; }
.cert-item span { font-size: 12px; color: var(--text-mid); }

/* ---------- 优势 ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px;
}
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px;
}
.feature .num {
  font-size: 13px; font-weight: 800; color: var(--accent);
  letter-spacing: 1px; margin-bottom: 8px;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; color: var(--primary-dark); }
.feature p { font-size: 14px; color: var(--text-mid); }

/* ---------- 新闻 ---------- */
.news-list { display: grid; gap: 14px; }
.news-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; transition: box-shadow 0.2s;
}
.news-item:hover { box-shadow: var(--shadow); }
.news-item .date { font-size: 13px; color: var(--text-light); margin-bottom: 6px; }
.news-item h3 { font-size: 17px; margin-bottom: 8px; }
.news-item h3 a { color: var(--text); }
.news-item h3 a:hover { color: var(--primary); }
.news-item p { font-size: 14px; color: var(--text-mid); }

/* ---------- CTA 条 ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff; padding: 40px 0; text-align: center;
}
.cta-band h2 { font-size: 26px; margin-bottom: 8px; }
.cta-band p { color: #dbe6f5; margin-bottom: 20px; }
.cta-band .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0f2c50; color: #b8c8dd; font-size: 14px; }
.footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px;
  padding: 48px 0 36px;
}
.footer-main h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-main a { color: #b8c8dd; }
.footer-main a:hover { color: #fff; }
.footer-main ul { display: grid; gap: 8px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 12px; color: #9db1cd; font-size: 13px; }
.footer-contact li { display: flex; gap: 8px; margin-bottom: 10px; }
.footer-contact .k { color: #7f95b5; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0; text-align: center; font-size: 12px; color: #7f95b5;
}
@media (max-width: 860px) {
  .footer-main { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- 页面标题条 ---------- */
.page-hero {
  background: linear-gradient(120deg, #123a6b, #1a4d8f);
  color: #fff; padding: 44px 0;
}
.page-hero h1 { font-size: 30px; margin-bottom: 6px; }
.page-hero .crumb { font-size: 13px; color: #bcd0ea; }
.page-hero .crumb a { color: #bcd0ea; }
.page-hero .crumb a:hover { color: #fff; }

/* ---------- 面包屑 ---------- */
.breadcrumb { font-size: 13px; color: var(--text-light); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- 产品页 ---------- */
.prod-section { margin-bottom: 48px; }
.prod-section > h2 {
  font-size: 24px; color: var(--primary-dark);
  padding-bottom: 12px; border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}
.prod-section > h2 .en { font-size: 13px; color: var(--text-light); letter-spacing: 2px; font-weight: 500; margin-left: 10px; }
.prod-intro {
  display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start;
  margin-bottom: 20px;
}
.prod-intro .ph {
  aspect-ratio: 1/1; background: #e8eef6; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #8ba3c7; font-size: 13px; text-align: center; padding: 16px;
}
.prod-intro .desc h3 { font-size: 18px; margin-bottom: 10px; }
.prod-intro .desc p { color: var(--text-mid); font-size: 14px; margin-bottom: 12px; }
.prod-intro .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.prod-intro .tags span {
  background: #eef3fa; color: var(--primary); border-radius: 20px;
  font-size: 12px; padding: 4px 12px; font-weight: 600;
}
@media (max-width: 760px) {
  .prod-intro { grid-template-columns: 1fr; }
}

/* ---------- 表格 ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.tbl th, .tbl td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.tbl th { background: #eef3fa; color: var(--primary-dark); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 12px; }
.faq-item h4 { font-size: 15px; color: var(--primary-dark); margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: var(--text-mid); }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.contact-info .item {
  display: flex; gap: 14px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 14px;
}
.contact-info .item .ic {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px;
  background: #eef3fa; color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.contact-info .item b { display: block; font-size: 15px; margin-bottom: 2px; }
.contact-info .item span { font-size: 14px; color: var(--text-mid); }
.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.contact-form h3 { font-size: 19px; margin-bottom: 16px; color: var(--primary-dark); }
.contact-form label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; font-size: 14px; font-family: inherit; background: var(--bg);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--primary-light); border-color: transparent; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- 通用 ---------- */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-2 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-mid { color: var(--text-mid); }
.small { font-size: 13px; }

/* 文章正文 */
.article { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; }
.article h1 { font-size: 26px; color: var(--primary-dark); margin-bottom: 10px; }
.article .meta { font-size: 13px; color: var(--text-light); margin-bottom: 22px; }
.article h2 { font-size: 20px; color: var(--primary-dark); margin: 26px 0 12px; }
.article h3 { font-size: 17px; color: var(--primary-dark); margin: 20px 0 10px; }
.article p { margin-bottom: 14px; color: var(--text-mid); }
.article ul, .article ol { margin: 0 0 14px 22px; color: var(--text-mid); }
.article li { margin-bottom: 6px; }
.article table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0; }
.article th, .article td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.article th { background: #eef3fa; }

/* 占位提示（产品图待替换时显示） */
.placeholder-note {
  font-size: 12px; color: #b45309; background: #fffbeb;
  border: 1px dashed #f59e0b; border-radius: 6px; padding: 4px 10px;
  display: inline-block; margin-top: 8px;
}
