/* ===== 诚合水泥制品官网 全局样式 ===== */
:root {
  --primary: #16467e;
  --primary-dark: #0e3058;
  --accent: #e8810c;
  --text: #333;
  --muted: #777;
  --bg-gray: #f5f6f8;
  --border: #e3e6ea;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: #fff;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ===== 顶部条 ===== */
.topbar { background: var(--primary-dark); color: #cfe0f2; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }
.topbar a:hover { color: #fff; }

/* ===== 头部 ===== */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo .logo-icon { width: 42px; height: 42px; }
.logo .logo-text { font-size: 1.35rem; font-weight: 700; color: var(--primary); line-height: 1.2; }
.logo .logo-sub { font-size: .72rem; color: var(--muted); letter-spacing: 1px; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 24px 16px; font-size: 1rem; color: var(--text); border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); border-bottom-color: var(--accent); font-weight: 600; }
.header-tel { text-align: right; }
.header-tel .tel-label { font-size: .75rem; color: var(--muted); }
.header-tel .tel-num { font-size: 1.25rem; font-weight: 700; color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--primary); cursor: pointer; }

/* ===== 轮播/横幅 ===== */
.hero { background: linear-gradient(120deg, var(--primary-dark), var(--primary) 60%, #2f6bb0); color: #fff; padding: 90px 0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(232,129,12,.35), transparent 70%); }
.hero h1 { font-size: 2.4rem; font-weight: 700; margin-bottom: 16px; }
.hero p { font-size: 1.1rem; color: #d7e5f5; max-width: 640px; margin-bottom: 28px; }
.btn { display: inline-block; padding: 12px 32px; border-radius: 4px; font-weight: 600; transition: .2s; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #d1740a; }
.btn-outline { border: 1px solid #fff; color: #fff; margin-left: 12px; }
.btn-outline:hover { background: rgba(255,255,255,.12); }

/* ===== 数据条 ===== */
.stats { background: var(--primary-dark); color: #fff; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { text-align: center; padding: 26px 10px; border-left: 1px solid rgba(255,255,255,.12); }
.stat-item:first-child { border-left: none; }
.stat-num { font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-num small { font-size: 1rem; }
.stat-label { font-size: .9rem; color: #c6d6ea; }

/* ===== 区块标题 ===== */
.section { padding: 64px 0; }
.section.bg-gray { background: var(--bg-gray); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 1.9rem; color: var(--primary); }
.section-head h2 span { color: var(--accent); }
.section-head .en { color: var(--muted); letter-spacing: 3px; text-transform: uppercase; font-size: .85rem; margin-top: 4px; }
.section-head p.sub { color: var(--muted); margin-top: 8px; font-size: .95rem; }

/* ===== 产品卡片 ===== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; transition: .25s; }
.product-card:hover { box-shadow: 0 8px 24px rgba(22,70,126,.14); transform: translateY(-4px); }
.product-card figure { background: linear-gradient(135deg, #eef3f9, #dde7f2); padding: 30px; display: flex; justify-content: center; }
.product-card figure svg { width: 110px; height: 110px; }
.product-card .p-body { padding: 18px 20px 22px; }
.product-card h3 { font-size: 1.15rem; color: var(--primary); margin-bottom: 8px; }
.product-card h3 a:hover { color: var(--accent); }
.product-card .p-desc { font-size: .88rem; color: var(--muted); height: 3em; overflow: hidden; }
.product-card .p-more { display: inline-block; margin-top: 12px; font-size: .88rem; color: var(--accent); font-weight: 600; }
.product-card .p-more::after { content: " →"; }

/* ===== 关于我们 ===== */
.about-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.about-pic { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 8px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 30px; text-align: center; }
.about-pic svg { width: 120px; height: 120px; margin-bottom: 18px; }
.about-pic strong { font-size: 1.4rem; }
.about-text h2 { font-size: 1.8rem; color: var(--primary); margin-bottom: 16px; }
.about-text h2 span { color: var(--accent); }
.about-text p { margin-bottom: 14px; color: #555; text-indent: 2em; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 26px; }
.about-points li { background: var(--bg-gray); border-left: 3px solid var(--accent); padding: 10px 14px; font-size: .92rem; }

/* ===== 案例 ===== */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { border-radius: 6px; overflow: hidden; position: relative; background: linear-gradient(150deg, #2c5f9e, var(--primary-dark)); color: #fff; min-height: 190px; padding: 26px 22px; display: flex; flex-direction: column; justify-content: flex-end; }
.case-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 10%, rgba(232,129,12,.3), transparent 55%); }
.case-card h3 { font-size: 1.1rem; position: relative; }
.case-card p { font-size: .85rem; color: #cbd9ec; position: relative; margin-top: 6px; }
.case-tag { position: absolute; top: 16px; left: 16px; background: var(--accent); font-size: .75rem; padding: 2px 10px; border-radius: 3px; }

/* ===== 新闻 ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 22px; transition: .2s; }
.news-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.news-card time { font-size: .8rem; color: var(--accent); font-weight: 600; }
.news-card h3 { font-size: 1.05rem; margin: 8px 0; line-height: 1.5; }
.news-card h3 a:hover { color: var(--accent); }
.news-card p { font-size: .87rem; color: var(--muted); height: 3.6em; overflow: hidden; }

/* ===== 内页横幅与面包屑 ===== */
.page-banner { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; padding: 46px 0; }
.page-banner h1, .page-banner .banner-title { font-size: 1.8rem; font-weight: 700; }
.page-banner .en { color: #9db9d8; font-size: .85rem; letter-spacing: 2px; text-transform: uppercase; }
.breadcrumb { background: var(--bg-gray); font-size: .85rem; color: var(--muted); padding: 10px 0; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; color: #bbb; }

/* ===== 内页布局 ===== */
.page-wrap { display: grid; grid-template-columns: 250px 1fr; gap: 36px; padding: 48px 0; align-items: start; }
.sidebar { background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.sidebar .side-title { background: var(--primary); color: #fff; padding: 12px 18px; font-weight: 600; }
.sidebar ul li a { display: block; padding: 11px 18px; border-bottom: 1px solid var(--border); font-size: .95rem; }
.sidebar ul li a:hover, .sidebar ul li a.active { color: var(--accent); background: #fdf6ec; padding-left: 24px; transition: .15s; }
.side-contact { background: var(--primary-dark); color: #fff; padding: 20px 18px; }
.side-contact strong { display: block; font-size: 1.3rem; color: var(--accent); margin: 6px 0; }
.side-contact p { font-size: .85rem; color: #bccfe6; }

.content h1.article-title { font-size: 1.7rem; color: var(--primary); margin-bottom: 10px; }
.content .article-meta { color: var(--muted); font-size: .85rem; border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 22px; }
.content h2 { font-size: 1.3rem; color: var(--primary); margin: 30px 0 12px; padding-left: 12px; border-left: 4px solid var(--accent); }
.content h3 { font-size: 1.1rem; margin: 20px 0 8px; color: var(--primary-dark); }
.content p { margin-bottom: 14px; color: #444; }
.content ul.dots li { padding-left: 18px; position: relative; margin-bottom: 8px; }
.content ul.dots li::before { content: "▪"; position: absolute; left: 0; color: var(--accent); }

/* ===== 规格表 ===== */
.spec-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: .92rem; }
.spec-table th, .spec-table td { border: 1px solid var(--border); padding: 9px 12px; text-align: center; }
.spec-table th { background: var(--primary); color: #fff; font-weight: 600; }
.spec-table tr:nth-child(even) td { background: var(--bg-gray); }

/* ===== 产品详情头 ===== */
.product-intro { display: grid; grid-template-columns: 320px 1fr; gap: 32px; margin-bottom: 12px; }
.product-intro .p-figure { background: linear-gradient(135deg, #eef3f9, #dde7f2); border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 40px; }
.product-intro .p-figure svg { width: 200px; height: 200px; }
.product-intro h1 { font-size: 1.7rem; color: var(--primary); margin-bottom: 12px; }
.product-intro .p-lead { color: #555; margin-bottom: 16px; }
.p-tags { margin-bottom: 18px; }
.p-tags span { display: inline-block; background: var(--bg-gray); border: 1px solid var(--border); color: var(--primary); font-size: .82rem; padding: 3px 12px; border-radius: 20px; margin: 0 6px 6px 0; }

/* ===== 联系我们 ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.contact-info li { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info .ci-icon { width: 44px; height: 44px; flex: none; background: var(--primary); color: #fff; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.contact-info strong { display: block; color: var(--primary); }
.contact-info p { color: #555; font-size: .95rem; }
.map-box { background: var(--bg-gray); border: 1px dashed #b9c6d6; border-radius: 6px; min-height: 320px; display: flex; align-items: center; justify-content: center; color: var(--muted); flex-direction: column; gap: 8px; }
.inquiry-form { background: var(--bg-gray); border-radius: 8px; padding: 28px; margin-top: 40px; }
.inquiry-form h2 { font-size: 1.3rem; color: var(--primary); margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.inquiry-form input, .inquiry-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 4px; padding: 10px 14px; font-size: .95rem; font-family: inherit; background: #fff; }
.inquiry-form textarea { height: 110px; resize: vertical; }
.inquiry-form button { background: var(--accent); color: #fff; border: none; padding: 12px 42px; border-radius: 4px; font-size: 1rem; font-weight: 600; cursor: pointer; }
.inquiry-form button:hover { background: #d1740a; }

/* ===== 页脚 ===== */
.site-footer { background: #12233a; color: #9fb2c8; margin-top: 20px; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 52px 0 36px; }
.footer-main h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer-main ul li { margin-bottom: 8px; font-size: .9rem; }
.footer-main a:hover { color: var(--accent); }
.footer-about p { font-size: .88rem; margin-bottom: 10px; }
.footer-contact li { font-size: .9rem; }
.footer-contact strong { color: #fff; }
.footer-links { border-top: 1px solid #243b58; padding: 16px 0; font-size: .82rem; }
.footer-links span { color: #56708f; margin-right: 8px; }
.footer-links a { margin-right: 12px; }
.copyright { border-top: 1px solid #243b58; padding: 16px 0; text-align: center; font-size: .82rem; color: #6c839f; }
.copyright a { color: #6c839f; }

/* ===== 浮动电话 ===== */
.float-tel { position: fixed; right: 18px; bottom: 24px; z-index: 200; background: var(--accent); color: #fff; border-radius: 50px; padding: 12px 22px; font-weight: 700; box-shadow: 0 6px 18px rgba(232,129,12,.45); }
.float-tel:hover { background: #d1740a; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .product-grid, .case-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .about-wrap, .contact-grid, .product-intro { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .page-wrap { grid-template-columns: 1fr; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-left: none; }
}
@media (max-width: 768px) {
  .header-tel { display: none; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; border-bottom: 1px solid var(--border); box-shadow: 0 8px 16px rgba(0,0,0,.08); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 20px; border-bottom: 1px solid var(--bg-gray); }
  .hero { padding: 56px 0; }
  .hero h1 { font-size: 1.7rem; }
  .product-grid, .case-grid, .news-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .btn-outline { margin-left: 0; margin-top: 10px; }
}

.map-box {
  width: 100%;
  height: 400px;
  min-height: 400px;
}