/* ============================================================
   冠峰环保官网 - 全站样式（含交互动画）
   ============================================================ */
:root {
    --primary: #0d3b3e;
    --primary-light: #0f766e;
    --accent: #ff6b35;
    --accent-soft: #fff1ea;
    --text: #22303a;
    --text-light: #5b6b76;
    --bg: #ffffff;
    --bg-alt: #f3f7f6;
    --border: #e3ecea;
    --radius: 14px;
    --shadow: 0 8px 30px rgba(13, 59, 62, .08);
    --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); line-height: 1.7; background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: color .25s; }
a:hover { color: var(--accent); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff; padding: 8px 16px; z-index: 2000; }
.skip-link:focus { left: 0; }

/* ---------- 顶部导航 ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(13, 59, 62, .96); color: #fff;
    transition: background .35s, box-shadow .35s;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #ff8a5c);
    display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; letter-spacing: 1px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 17px; letter-spacing: .5px; }
.brand-text small { font-size: 11px; opacity: .8; }
.main-nav { display: flex; gap: 4px; }
.main-nav a {
    color: rgba(255,255,255,.88); padding: 8px 12px; border-radius: 8px; font-size: 14.5px;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.12); }
.main-nav a.active { color: #fff; background: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.header-phone:hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 36px; height: 36px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; width: 22px; background: #fff; border-radius: 2px; transition: .3s; }

/* ---------- 首屏 Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1s ease; display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(6,28,30,.82), rgba(13,59,62,.55) 60%, rgba(15,118,110,.35)); }
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 820px; padding-top: 60px; }
.hero-content h1 { font-size: 44px; line-height: 1.25; margin-bottom: 18px; animation: heroIn 1s ease both; }
.hero-content p { font-size: 18px; opacity: .92; max-width: 640px; animation: heroIn 1s .15s ease both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero-quickbar {
    position: absolute; bottom: 0; left: 50%; transform: translate(-50%, 0); z-index: 3;
    width: 100%; max-width: 1200px; display: flex; align-items: center; gap: 26px;
    background: rgba(255,255,255,.96); border-radius: 16px 16px 0 0; padding: 18px 26px;
    box-shadow: 0 -8px 30px rgba(0,0,0,.10); flex-wrap: wrap;
    animation: qbIn .8s .35s ease both;
}
@keyframes qbIn { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }
.quick-item { display: flex; flex-direction: column; }
.quick-label { font-size: 12px; color: var(--text-light); }
.quick-value { font-size: 15px; font-weight: 700; color: var(--primary); }
.btn {
    display: inline-block; padding: 12px 26px; border-radius: 10px; font-weight: 600; font-size: 15px;
    border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #ff5a1f; color: #fff; box-shadow: 0 10px 24px rgba(255,107,53,.35); }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--primary-light); }
.btn-ghost:hover { background: var(--bg-alt); }

/* ---------- 通用区块 ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 30px; color: var(--primary); margin-bottom: 10px; text-align: center; }
.section-title.left { text-align: left; }
.section-sub { text-align: center; color: var(--text-light); margin-bottom: 38px; }
.block-title { font-size: 20px; color: var(--primary); margin: 34px 0 18px; }

/* ---------- 卡片 ---------- */
.card-grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card-link { display: block; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--primary-light); }
.card-icon {
    width: 52px; height: 52px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
    display: grid; place-items: center; font-size: 20px; font-weight: 800; margin-bottom: 14px;
}
.card h3 { font-size: 18px; color: var(--primary); margin-bottom: 8px; }
.card p { color: var(--text-light); font-size: 14.5px; }
.card-more { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 600; font-size: 14px; }
.card-img { height: 170px; border-radius: 10px; overflow: hidden; margin: -24px -24px 14px; background: var(--bg-alt); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .card-img img { transform: scale(1.06); }
.card-tag { display: inline-block; background: var(--accent-soft); color: var(--accent); font-size: 12px; padding: 2px 10px; border-radius: 20px; margin-bottom: 8px; }
.img-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--text-light); background: var(--bg-alt); font-size: 15px; }
.img-placeholder.big { min-height: 220px; font-size: 18px; border-radius: 10px; }

/* ---------- 行业 chips ---------- */
.industry-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
    padding: 10px 22px; border-radius: 30px; border: 1.5px solid var(--primary-light);
    color: var(--primary-light); font-weight: 600; background: #fff; transition: .25s;
}
.chip:hover, .chip.active { background: var(--primary-light); color: #fff; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }

/* ---------- 数字统计 ---------- */
.stats { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-num { font-size: 44px; font-weight: 800; color: #fff; display: block; }
.stat-label { opacity: .85; }

/* ---------- 新闻 ---------- */
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px;
    transition: box-shadow .3s, transform .3s;
}
.news-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-item time { color: var(--text-light); font-size: 13px; }
.news-item h3 { font-size: 17px; margin: 6px 0; }
.news-item h3 a { color: var(--primary); }
.news-item h3 a:hover { color: var(--accent); }
.news-item p { color: var(--text-light); font-size: 14.5px; }
.news-meta { display: flex; gap: 14px; align-items: center; }
.news-cat { background: var(--accent-soft); color: var(--accent); font-size: 12px; padding: 2px 10px; border-radius: 20px; }
.more-link { text-align: center; margin-top: 26px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.faq-q {
    width: 100%; text-align: left; padding: 16px 22px; font-size: 15.5px; font-weight: 600; color: var(--primary);
    background: none; border: 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q::after { content: "+"; font-size: 20px; color: var(--accent); transition: transform .3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a p { padding: 0 22px 18px; color: var(--text-light); font-size: 14.5px; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-cat { color: var(--primary); margin: 30px 0 14px; font-size: 22px; }
.faq-container { max-width: 900px; }

/* ---------- 资质 ---------- */
.cert-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cert-badge {
    padding: 14px 26px; border: 1px solid var(--border); border-radius: 12px; background: #fff;
    font-weight: 600; color: var(--primary); transition: .25s;
}
.cert-badge:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-align: center; }
.cert-card img { width: 100%; height: 220px; object-fit: cover; }
.cert-ph { height: 220px; display: grid; place-items: center; background: var(--bg-alt); color: var(--text-light); font-size: 16px; }
.cert-card figcaption { padding: 12px; font-size: 14px; color: var(--primary); font-weight: 600; }

/* ---------- 解决方案 ---------- */
.sol-list { display: flex; flex-direction: column; gap: 26px; }
.sol-block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 30px; }
.sol-head { display: flex; align-items: baseline; gap: 16px; }
.sol-index { color: var(--accent); font-size: 30px; font-weight: 800; }
.sol-head h2 { color: var(--primary); font-size: 22px; }
.sol-summary { color: var(--text-light); margin: 12px 0; }
.sol-content { color: var(--text); font-size: 15px; }
.cta-block { text-align: center; background: var(--accent-soft); border-radius: var(--radius); padding: 40px 24px; margin-top: 34px; }
.cta-block h3 { color: var(--primary); margin-bottom: 8px; }
.cta-block p { color: var(--text-light); margin-bottom: 18px; }

/* ---------- 关于 ---------- */
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; }
.bullet-list { list-style: none; }
.bullet-list li { padding-left: 22px; position: relative; margin-bottom: 8px; }
.bullet-list li::before { content: "✓"; color: var(--accent); position: absolute; left: 0; }
.timeline { border-left: 3px solid var(--primary-light); margin-left: 8px; padding-left: 30px; display: flex; flex-direction: column; gap: 26px; }
.timeline-item { position: relative; }
.timeline-item::before {
    content: ""; position: absolute; left: -37px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
    background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent);
}
.timeline-year { color: var(--accent); font-weight: 800; font-size: 20px; }
.timeline-body h3 { color: var(--primary); font-size: 17px; }
.timeline-body p { color: var(--text-light); font-size: 14.5px; }
.value-card { text-align: center; }
.value-card h3 { font-size: 18px; }
.note { color: var(--text-light); font-size: 13px; margin-top: 18px; }
.page-hero { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; padding: 130px 0 56px; text-align: center; }
.page-hero h1 { font-size: 34px; }
.page-hero p { opacity: .88; margin-top: 8px; }
.breadcrumb { background: var(--bg-alt); padding: 12px 0; font-size: 13.5px; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; opacity: .5; }

/* ---------- 详情页 ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.detail-img { border-radius: var(--radius); width: 100%; }
.detail-main h2 { color: var(--primary); font-size: 26px; }
.detail-summary { color: var(--text-light); margin: 14px 0; }
.detail-main h3 { color: var(--primary); font-size: 18px; margin: 18px 0 10px; }
.detail-cta { display: flex; gap: 12px; margin-top: 22px; }
.detail-body { margin-top: 44px; }
.detail-body h3 { color: var(--primary); font-size: 20px; margin: 26px 0 12px; }
.detail-body p { margin-bottom: 12px; }
.data-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14.5px; }
.data-table th, .data-table td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.data-table th { background: #f0f5f4; color: var(--primary); }
.prev-next { display: flex; justify-content: space-between; gap: 16px; margin: 36px 0 8px; flex-wrap: wrap; }
.pn { color: var(--primary); font-weight: 600; font-size: 14.5px; }
.pn:hover { color: var(--accent); }
.article-inner { max-width: 860px; margin: 0 auto; }
.article-head h1 { color: var(--primary); font-size: 28px; }
.article-meta { color: var(--text-light); font-size: 13.5px; margin: 10px 0 20px; display: flex; gap: 16px; }
.article-cover { border-radius: var(--radius); margin-bottom: 24px; }
.article-content { font-size: 15.5px; }
.article-content p { margin-bottom: 14px; }
.article h2 { color: var(--primary); font-size: 20px; margin: 24px 0 10px; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; }
.contact-list { list-style: none; margin-top: 12px; }
.contact-list li { padding: 12px 0; border-bottom: 1px dashed var(--border); display: flex; gap: 12px; }
.contact-list strong { width: 90px; color: var(--primary); }
.contact-list a { color: var(--primary-light); }
.contact-note { background: var(--bg-alt); border-radius: 12px; padding: 16px 20px; margin-top: 18px; font-size: 14px; color: var(--text-light); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; color: var(--primary); margin-bottom: 6px; font-size: 14.5px; }
.form-row input, .form-row select, .form-row textarea {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 10px;
    font-size: 15px; font-family: inherit; background: #fff; transition: border-color .25s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--primary-light); }
.form-success { background: #e6f7f0; color: #0f766e; padding: 12px 18px; border-radius: 10px; margin-bottom: 18px; }
.form-errors { background: #fdecec; color: #c0392b; padding: 12px 18px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; }
.map-placeholder {
    height: 320px; border-radius: var(--radius); background: var(--bg-alt);
    display: grid; place-items: center; text-align: center; color: var(--text-light);
    border: 1.5px dashed var(--border);
}
.empty { color: var(--text-light); padding: 40px 0; text-align: center; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 34px; }
.page { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; color: var(--primary); }
.page.active, .page:hover { background: var(--primary-light); color: #fff; border-color: var(--primary-light); }

/* ---------- 页脚 ---------- */
.site-footer { background: #0a2b2e; color: #cfe3e2; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 20px 36px; }
.footer-col h3 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-about p { font-size: 14px; opacity: .85; }
.footer-contact { margin-top: 14px; font-size: 14px; }
.footer-contact a { color: #cfe3e2; }
.footer-contact a:hover { color: var(--accent); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #cfe3e2; font-size: 14px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13.5px; }
.footer-legal a { color: #cfe3e2; margin-right: 12px; }
.footer-legal a:hover { color: var(--accent); }
.footer-support a { color: #ffd3c0; }
.footer-support a:hover { color: var(--accent); }

/* ---------- 悬浮按钮 ---------- */
.float-buttons {
    position: fixed; right: 20px; bottom: 24px; z-index: 900; display: flex; flex-direction: column; gap: 12px;
    opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s;
}
.float-buttons.show { opacity: 1; transform: none; }
.float-btn {
    width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--primary-light); color: #fff; display: grid; place-items: center;
    box-shadow: 0 6px 18px rgba(13,59,62,.3); transition: transform .25s, background .25s;
}
.float-btn:hover { background: var(--accent); transform: translateY(-3px) scale(1.05); }
#backTop { background: rgba(13,59,62,.75); }

/* ---------- 滚动渐显动画 ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 140px 0; }
.notfound h1 { font-size: 80px; color: var(--primary-light); }
.notfound p { color: var(--text-light); margin-bottom: 18px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .cert-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--primary);
        padding: 12px 20px 18px; display: none;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 14px; }
    .header-phone { display: none; }
    .hero-content h1 { font-size: 30px; }
    .hero-content p { font-size: 16px; }
    .hero-quickbar { gap: 14px; padding: 14px 18px; }
    .grid-3, .grid-2, .two-col, .contact-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .detail-grid { grid-template-columns: 1fr; }
    .section { padding: 54px 0; }
    .page-hero { padding: 110px 0 44px; }
}
@media (max-width: 480px) {
    .cert-grid { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
}
