/* 博悦系统门窗官网样式 */
:root {
  --primary: #0D7377;
  --primary-dark: #095C5F;
  --primary-light: #14A085;
  --accent: #E8B923;
  --text: #333333;
  --text-light: #666666;
  --bg: #FFFFFF;
  --bg-light: #F5F7FA;
  --border: #E0E4E8;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 22px; font-weight: 700; color: var(--primary);
  text-decoration: none; letter-spacing: 1px;
}
.logo span { color: var(--text-light); font-weight: 400; font-size: 14px; margin-left: 8px; }
nav a {
  margin-left: 28px; text-decoration: none; color: var(--text);
  font-size: 15px; transition: color 0.2s;
}
nav a:hover { color: var(--primary); }

/* Hero */
.hero {
  background: linear-gradient(135deg, #0D7377 0%, #14A085 100%);
  color: #fff; padding: 100px 0 80px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; opacity: 0.15;
  background: url('../img/factory-aerial.jpg') center/cover no-repeat;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 42px; font-weight: 700; margin-bottom: 16px; line-height: 1.3; }
.hero p.lead { font-size: 20px; opacity: 0.95; margin-bottom: 32px; max-width: 600px; }
.hero-stats {
  display: flex; gap: 40px; margin-bottom: 32px;
}
.hero-stats .stat strong { display: block; font-size: 32px; font-weight: 700; }
.hero-stats .stat span { font-size: 14px; opacity: 0.85; }
.btn {
  display: inline-block; padding: 14px 36px; border-radius: var(--radius);
  text-decoration: none; font-size: 16px; font-weight: 500; transition: all 0.2s;
}
.btn-primary { background: var(--accent); color: #1a1a1a; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,185,35,0.35); }
.btn-outline { border: 2px solid rgba(255,255,255,0.6); color: #fff; margin-left: 16px; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* Section通用 */
.section { padding: 72px 0; }
.section-title {
  font-size: 32px; font-weight: 700; text-align: center; margin-bottom: 12px;
}
.section-subtitle {
  text-align: center; color: var(--text-light); font-size: 16px; margin-bottom: 48px;
}

/* 关于我们 */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.about-text h3 { font-size: 24px; margin-bottom: 16px; color: var(--primary-dark); }
.about-text p { margin-bottom: 16px; color: var(--text-light); }
.about-text .highlight {
  background: var(--bg-light); border-left: 4px solid var(--primary);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 20px;
}
.about-text .highlight strong { color: var(--primary); }
.about-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* 产品中心 */
.products { background: var(--bg-light); }
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--bg); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.2s;
  text-decoration: none; color: var(--text);
}
.product-card:hover { transform: translateY(-6px); }
.product-card img { width: 100%; height: 280px; object-fit: cover; }
.product-card .info { padding: 20px; }
.product-card .info h4 { font-size: 18px; margin-bottom: 6px; }
.product-card .info p { font-size: 14px; color: var(--text-light); }
.product-card .tag {
  display: inline-block; background: var(--primary); color: #fff;
  font-size: 12px; padding: 4px 10px; border-radius: 20px; margin-top: 10px;
}

/* 检测数据 */
.data-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px; margin-top: 32px;
}
.data-card {
  background: var(--bg-light); border-radius: var(--radius); padding: 24px;
  text-align: center; border-top: 3px solid var(--primary);
}
.data-card .num { font-size: 28px; font-weight: 700; color: var(--primary); }
.data-card .label { font-size: 14px; color: var(--text-light); margin-top: 4px; }
.data-card .level { font-size: 12px; color: var(--primary-light); margin-top: 6px; font-weight: 500; }
.data-source {
  text-align: center; margin-top: 24px; font-size: 13px; color: var(--text-light);
}

/* 案例 */
.case-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.case-card {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.case-card img { width: 100%; height: 220px; object-fit: cover; }
.case-card .info { padding: 20px; }
.case-card .info h4 { font-size: 17px; margin-bottom: 6px; }
.case-card .info p { font-size: 14px; color: var(--text-light); }

/* 联系 */
.contact { background: var(--bg-light); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.contact-info h3 { font-size: 22px; margin-bottom: 20px; }
.contact-info .item { display: flex; align-items: flex-start; margin-bottom: 20px; }
.contact-info .item .icon {
  width: 40px; height: 40px; background: var(--primary); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-right: 16px; flex-shrink: 0;
}
.contact-info .item div strong { display: block; margin-bottom: 2px; }
.contact-info .item div span { color: var(--text-light); font-size: 15px; }
.contact-map {
  background: var(--border); border-radius: var(--radius); height: 320px;
  display: flex; align-items: center; justify-content: center; color: var(--text-light);
}

/* Footer */
footer {
  background: #0A2E2F; color: rgba(255,255,255,0.7); padding: 40px 0 24px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
}
.footer-brand { font-size: 18px; font-weight: 700; color: #fff; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; margin-left: 20px; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); margin-top: 24px; padding-top: 16px;
  text-align: center; font-size: 13px; color: rgba(255,255,255,0.5);
}

/* 产品详情页 */
.product-hero {
  background: var(--bg-light); padding: 60px 0 40px;
}
.product-hero h1 { font-size: 36px; margin-bottom: 12px; }
.product-hero .breadcrumb { font-size: 14px; color: var(--text-light); margin-bottom: 8px; }
.product-hero .breadcrumb a { color: var(--primary); text-decoration: none; }

.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 40px 0;
}
.product-detail .gallery img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.product-detail .spec h2 { font-size: 22px; margin-bottom: 16px; color: var(--primary-dark); }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.spec-table th, .spec-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.spec-table th { background: var(--bg-light); font-weight: 600; width: 35%; }

.faq-section { background: var(--bg-light); padding: 60px 0; }
.faq-item { background: var(--bg); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 16px; box-shadow: var(--shadow); }
.faq-item h4 { font-size: 16px; margin-bottom: 8px; color: var(--primary-dark); }
.faq-item p { font-size: 15px; color: var(--text-light); }

.cta-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff; padding: 48px 0; text-align: center;
}
.cta-bar h2 { font-size: 28px; margin-bottom: 12px; }
.cta-bar p { font-size: 16px; opacity: 0.9; margin-bottom: 24px; }

/* 响应式 */
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .hero-stats { gap: 20px; }
  .about-grid, .contact-grid, .product-detail { grid-template-columns: 1fr; }
  /* 手机端导航：纵向堆叠 + 换行，保证入口完整可见 */
  .header-inner { flex-direction: column; height: auto; padding: 10px 0 8px; gap: 6px; }
  .logo { font-size: 20px; }
  nav { display: flex; flex-wrap: wrap; justify-content: center; }
  nav a { margin-left: 0; padding: 2px 10px; font-size: 14px; }
  .section { padding: 48px 0; }
}

/* 文章页 */
.article-page { padding: 40px 0 64px; }
.breadcrumb { font-size: 14px; color: var(--text-light); margin-bottom: 16px; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.article-page h1 { font-size: 30px; line-height: 1.4; margin-bottom: 12px; max-width: 800px; }
.article-meta { font-size: 14px; color: var(--text-light); margin-bottom: 24px; }
.article-summary {
  background: var(--bg-light); border-left: 4px solid var(--primary);
  padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 32px; max-width: 820px; line-height: 1.8;
}
.article-summary strong { color: var(--primary); }
.article-body { max-width: 820px; }
.article-body h2 { font-size: 22px; margin: 32px 0 12px; color: var(--primary-dark); }
.article-body p { color: #444; margin-bottom: 16px; }
.expert-quote {
  background: #FFF9E6; border-left: 4px solid var(--accent);
  padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0;
  color: #5a4a12; font-size: 15px;
}
.article-faq { max-width: 820px; margin-top: 40px; }
.article-faq h2 { font-size: 22px; color: var(--primary-dark); margin-bottom: 16px; }
.article-cta {
  margin-top: 48px; padding: 32px; text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius); color: #fff;
}
.article-cta h3 { font-size: 22px; margin-bottom: 8px; }
.article-cta p { opacity: .9; margin-bottom: 20px; }
.btn-outline-dark { border: 2px solid rgba(255,255,255,0.6); color: #fff; margin-left: 12px; }
.btn-outline-dark:hover { background: rgba(255,255,255,0.1); }
/* 知识列表页 */
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.article-card {
  background: var(--bg); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); text-decoration: none; color: var(--text);
  transition: transform .2s; display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); }
.article-card .cat {
  display: inline-block; align-self: flex-start; background: var(--primary); color: #fff;
  font-size: 12px; padding: 3px 10px; border-radius: 20px; margin-bottom: 12px;
}
.article-card h4 { font-size: 18px; line-height: 1.5; margin-bottom: 10px; }
.article-card p { font-size: 14px; color: var(--text-light); flex: 1; }
.article-card .date { font-size: 13px; color: var(--text-light); margin-top: 12px; }
/* 资质页 / 关于页 */
.qual-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.qual-card { background: var(--bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.qual-card img { width: 100%; height: auto; display: block; }
.qual-card .info { padding: 18px; }
.qual-card .info h4 { font-size: 16px; margin-bottom: 6px; }
.qual-card .info p { font-size: 13px; color: var(--text-light); }
.timeline { max-width: 820px; margin: 0 auto; }
.timeline-item { display: flex; gap: 24px; margin-bottom: 28px; }
.timeline-item .year {
  flex-shrink: 0; width: 90px; font-size: 20px; font-weight: 700; color: var(--primary);
  text-align: right; padding-top: 2px;
}
.timeline-item .body { border-left: 3px solid var(--border); padding-left: 24px; }
.timeline-item .body h4 { font-size: 17px; margin-bottom: 6px; }
.timeline-item .body p { font-size: 15px; color: var(--text-light); }
@media (max-width: 768px) {
  .article-page h1 { font-size: 24px; }
  .timeline-item { flex-direction: column; gap: 6px; }
  .timeline-item .year { text-align: left; width: auto; }
}

/* FAQ 页 */
.faq-toc { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.faq-toc li { background: var(--bg-light); padding: 8px 16px; border-radius: 20px; }
.faq-toc li a { color: var(--primary); text-decoration: none; font-size: 14px; font-weight: 500; }
.faq-cat-title {
  font-size: 22px; color: var(--primary-dark); margin: 36px 0 16px;
  padding: 8px 16px; background: var(--bg-light); border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
}
