/*
Theme Name: Hantang Huanbao
Theme URI: https://www.cqhbgc.com
Author: Hantang
Description: 重庆汉唐环保设备有限公司定制主题。品牌色：蓝#003078 黄#D8A818。含产品/案例自定义文章类型。
Version: 1.0.0
Text Domain: hantang
*/

/* =========================================================
   重庆汉唐环保设备有限公司 - 官网样式
   品牌标准色：蓝 #003078 · 黄 #D8A818（源自公司VIS手册）
   ========================================================= */

:root {
  --primary: #003078;
  --primary-dark: #00224f;
  --primary-light: #0f4a9e;
  --accent: #D8A818;
  --accent-dark: #b58c10;
  --bg-light: #f4f6fa;
  --bg-white: #ffffff;
  --text: #2d3436;
  --text-light: #6b7a78;
  --border: #e3eae8;
  --shadow: 0 4px 20px rgba(0, 48, 120, 0.08);
  --radius: 10px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color .25s; }
ul { list-style: none; }

.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- 顶部栏 ---------- */
.topbar {
  background: var(--primary-dark);
  color: #cfe8e1;
  font-size: 13.5px;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px; }
.topbar a { color: #cfe8e1; }
.topbar a:hover { color: #fff; }
.topbar .topbar-right span { margin-left: 18px; }

/* ---------- 头部导航 ---------- */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 46px; width: auto; }
.footer-logo { height: 44px; width: auto; margin-bottom: 14px; }
.logo-icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; font-weight: 700; flex-shrink: 0;
}
.logo-text { line-height: 1.3; }
.logo-text .cn { font-size: 18px; font-weight: 700; color: var(--primary-dark); }
.logo-text .en { font-size: 11px; color: var(--text-light); letter-spacing: .5px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 8px 16px; font-size: 15.5px; color: var(--text);
  border-radius: 6px; font-weight: 500;
}
.nav a:hover, .nav a.active { color: var(--primary); background: rgba(10, 93, 79, 0.07); }
.nav .nav-cta {
  background: var(--accent); color: #fff; padding: 10px 20px;
  border-radius: 6px; font-weight: 600; margin-left: 8px;
}
.nav .nav-cta:hover { background: var(--accent-dark); color: #fff; }

/* 汉堡菜单 */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--primary-dark); margin: 5px 0; border-radius: 2px; }

/* ---------- 页脚 ---------- */
.footer { background: #00224f; color: #a9c8c0; font-size: 14px; }
.footer-main { padding: 56px 0 40px; display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer .f-about p { margin-bottom: 14px; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a:hover { color: #fff; }
.footer .f-contact li { display: flex; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding: 16px 0;
  font-size: 13px; text-align: center;
}
.footer-bottom a { color: #a9c8c0; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-light); }
.section-head { text-align: center; margin-bottom: 46px; }
.section-head .sub { color: var(--accent); font-size: 14px; letter-spacing: 3px; font-weight: 600; margin-bottom: 8px; }
.section-head h2 { font-size: 30px; color: var(--primary-dark); }
.section-head p { color: var(--text-light); margin-top: 10px; max-width: 640px; margin-inline: auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 12px 30px; border-radius: 6px;
  font-size: 15px; font-weight: 600; cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border: 1.5px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary-dark); }
.btn-white:hover { background: var(--bg-light); }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, #00224f 0%, #003078 55%, #0f4a9e 100%);
  padding: 92px 0 100px;
}
.hero-bg { position: absolute; inset: 0; opacity: .12; pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 40px; line-height: 1.35; margin-bottom: 20px; font-weight: 700; }
.hero-badge {
  display: inline-block; background: rgba(216, 168, 24, 0.9); color: #fff;
  padding: 6px 18px; border-radius: 30px; font-size: 13.5px; letter-spacing: 2px;
  font-weight: 600; margin-bottom: 16px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 16.5px; color: #d6ebe6; margin-bottom: 34px; max-width: 560px; }
.hero .btn-group { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 46px; }
.hero-stats .num { font-size: 30px; font-weight: 700; color: #fff; }
.hero-stats .label { font-size: 13px; color: #b5d6ce; }

.hero-card {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(4px); border-radius: 16px; padding: 28px;
}
.hero-card h3 { font-size: 17px; margin-bottom: 16px; }
.hero-card ul li { padding: 9px 0 9px 26px; position: relative; font-size: 14.5px; border-bottom: 1px dashed rgba(255,255,255,0.15); }
.hero-card ul li:last-child { border-bottom: none; }
.hero-card ul li::before {
  content: ""; position: absolute; left: 2px; top: 16px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

/* ---------- 产品卡片 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card {
  background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-thumb {
  height: 210px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.product-thumb svg { width: 88px; height: 88px; }
.product-body { padding: 22px 24px 26px; }
.product-body h3 { font-size: 18px; color: var(--primary-dark); margin-bottom: 10px; }
.product-body p { font-size: 14px; color: var(--text-light); margin-bottom: 16px; }
.product-body .more { color: var(--primary); font-size: 14px; font-weight: 600; }
.product-body .more:hover { color: var(--accent); }

/* 产品缩略图配色（6大产品） */
.thumb-1 { background: linear-gradient(135deg, #003078, #0f4a9e); color: #fff; }
.thumb-2 { background: linear-gradient(135deg, #1d6fa5, #4aa3d8); color: #fff; }
.thumb-3 { background: linear-gradient(135deg, #6d4a9e, #9b7fd4); color: #fff; }
.thumb-4 { background: linear-gradient(135deg, #b06a1f, #e89b2d); color: #fff; }
.thumb-5 { background: linear-gradient(135deg, #3d6e8f, #6fa3c4); color: #fff; }
.thumb-6 { background: linear-gradient(135deg, #7a4a2b, #b0703f); color: #fff; }

/* ---------- 优势/特点 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-item {
  background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 24px; text-align: center; transition: transform .3s, box-shadow .3s;
}
.feature-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-item .icon { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%; background: rgba(10,93,79,.08); display: flex; align-items: center; justify-content: center; }
.feature-item .icon svg { width: 32px; height: 32px; }
.feature-item h3 { font-size: 16.5px; color: var(--primary-dark); margin-bottom: 8px; }
.feature-item p { font-size: 13.5px; color: var(--text-light); }

/* ---------- 关于首页摘要 ---------- */
.about-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-visual {
  border-radius: 14px; min-height: 360px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.about-visual svg { width: 160px; height: 160px; }
.about-text h2 { font-size: 28px; color: var(--primary-dark); margin-bottom: 18px; }
.about-text p { color: var(--text-light); margin-bottom: 16px; }
.about-points { margin: 20px 0 28px; }
.about-points li { padding-left: 26px; position: relative; margin-bottom: 12px; color: var(--text); font-size: 15px; }
.about-points li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 10px; height: 10px; border-radius: 3px; background: var(--accent);
}

/* ---------- 案例卡片 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.case-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case-thumb { height: 190px; background: linear-gradient(135deg, #dfeae7, #f4f7f6); display: flex; align-items: center; justify-content: center; }
.case-thumb svg { width: 64px; height: 64px; opacity: .8; }
.case-body { padding: 20px 24px 24px; }
.case-body .tag { display: inline-block; background: rgba(10,93,79,.08); color: var(--primary); font-size: 12.5px; padding: 3px 12px; border-radius: 20px; margin-bottom: 10px; }
.case-body h3 { font-size: 17px; color: var(--primary-dark); margin-bottom: 8px; }
.case-body p { font-size: 13.5px; color: var(--text-light); }

/* ---------- 新闻卡片 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: transform .3s, box-shadow .3s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card .date { color: var(--accent); font-size: 13px; margin-bottom: 10px; }
.news-card h3 { font-size: 16.5px; color: var(--primary-dark); margin-bottom: 8px; line-height: 1.5; }
.news-card p { font-size: 13.5px; color: var(--text-light); }

/* ---------- 联系 CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--primary-dark), var(--primary-light)); color: #fff; padding: 60px 0; text-align: center; }
.cta-band h2 { font-size: 28px; margin-bottom: 12px; }
.cta-band p { color: #d6ebe6; margin-bottom: 28px; }

/* ---------- 页面横幅（内页） ---------- */
.page-banner {
  background: linear-gradient(120deg, #00224f, #003078 60%, #0f4a9e);
  color: #fff; padding: 58px 0 62px; text-align: center;
}
.page-banner h1 { font-size: 32px; margin-bottom: 8px; }
.page-banner p { color: #c8e3dc; font-size: 15px; }
.breadcrumb { font-size: 13px; color: #a9c8c0; margin-top: 14px; }
.breadcrumb a:hover { color: #fff; }

/* ---------- 产品详情页 ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.pd-visual { border-radius: 14px; min-height: 380px; display: flex; align-items: center; justify-content: center; color: #fff; }
.pd-visual svg { width: 170px; height: 170px; }
.pd-info h2 { font-size: 26px; color: var(--primary-dark); margin-bottom: 14px; }
.pd-info .desc { color: var(--text-light); margin-bottom: 22px; }
.pd-info h3 { font-size: 17px; color: var(--primary-dark); margin: 24px 0 12px; }
.pd-info ul li { padding-left: 22px; position: relative; margin-bottom: 10px; font-size: 14.5px; }
.pd-info ul li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.pd-spec { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.pd-spec th, .pd-spec td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.pd-spec th { background: var(--bg-light); color: var(--primary-dark); width: 30%; font-weight: 600; }

/* ---------- 通用文本页 ---------- */
.prose h2 { font-size: 24px; color: var(--primary-dark); margin: 34px 0 14px; }
.prose h3 { font-size: 18px; color: var(--primary-dark); margin: 24px 0 10px; }
.prose p { margin-bottom: 14px; color: var(--text-light); }
.prose ul { margin: 0 0 16px; }
.prose ul li { padding-left: 22px; position: relative; margin-bottom: 8px; color: var(--text-light); }
.prose ul li::before { content: "▸"; position: absolute; left: 0; color: var(--primary); }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 { font-size: 18px; color: var(--primary-dark); margin-bottom: 20px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-item .icon { width: 46px; height: 46px; border-radius: 10px; background: rgba(10,93,79,.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item .icon svg { width: 22px; height: 22px; }
.contact-item .label { font-size: 13px; color: var(--text-light); }
.contact-item .value { font-size: 15.5px; font-weight: 600; color: var(--text); }

.contact-form { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.contact-form h3 { font-size: 18px; color: var(--primary-dark); margin-bottom: 22px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--text); font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 14.5px; font-family: var(--font); background: var(--bg-light); color: var(--text);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary); background: #fff;
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ---------- 分页/占位 ---------- */
.note-placeholder {
  background: #fff8ec; border: 1px dashed var(--accent); color: #8a6d3b;
  border-radius: 8px; padding: 12px 18px; font-size: 13.5px; margin: 20px 0;
}
.page-actions { margin-top: 40px; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .product-grid, .case-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .about-preview, .product-detail, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}

@media (max-width: 768px) {
  .topbar .container { justify-content: center; text-align: center; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: 74px; left: 0; right: 0; background: var(--bg-white);
    flex-direction: column; align-items: stretch; padding: 10px 0 20px;
    border-bottom: 1px solid var(--border); box-shadow: 0 8px 20px rgba(0,0,0,.06);
    transform: translateY(-130%); transition: transform .3s; z-index: 99;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 13px 24px; border-radius: 0; }
  .nav .nav-cta { margin: 10px 24px 0; text-align: center; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 24px; }
  .product-grid, .case-grid, .news-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 64px 0 72px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-stats .num { font-size: 24px; }
  .page-banner { padding: 44px 0; }
  .page-banner h1 { font-size: 26px; }
}
