/* --- 全局重置与变量 --- */
:root {
    --primary-color: #0056b3;
    --accent-color: #ff6600;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 1.8; color: var(--text-dark); background-color: var(--white); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- 通用组件 --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 32px; color: var(--primary-color); margin-bottom: 10px; }
.section-title p { color: var(--text-light); font-size: 16px; }
.btn { display: inline-block; padding: 12px 30px; border-radius: 4px; font-weight: bold; cursor: pointer; border: none; }
.btn-primary { background-color: var(--accent-color); color: var(--white); }
.btn-primary:hover { background-color: #e65c00; }
.btn-outline { border: 2px solid var(--primary-color); color: var(--primary-color); background: transparent; }
.btn-outline:hover { background-color: var(--primary-color); color: var(--white); }

/* --- 顶部栏 (Top Bar) --- */
.top-bar { background-color: #f0f0f0; font-size: 14px; padding: 10px 0; border-bottom: 1px solid #ddd; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.top-info span { margin-right: 15px; color: var(--text-light); }
.top-info i { color: var(--accent-color); margin-right: 5px; }
.top-info a { color: var(--text-light); }
.top-info a:hover { color: var(--primary-color); }

/* --- 导航栏 (Header) --- */
header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-size: 24px; font-weight: bold; color: var(--primary-color); display: flex; align-items: center; }
.logo i { margin-right: 10px; color: var(--accent-color); font-size: 28px; }
.nav-menu { display: flex; gap: 30px; }
.nav-menu a { font-weight: 500; font-size: 16px; }
.nav-menu a:hover { color: var(--accent-color); }
.nav-cta { background: var(--primary-color); color: white; padding: 8px 20px; border-radius: 20px; }
.nav-cta:hover { background: #004494; color: white; }

.mobile-menu-btn { display: none; font-size: 24px; cursor: pointer; color: var(--text-dark); }

/* --- Banner 区域 --- */
.hero { 
    background: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 86, 179, 0.6)), url('../images/banner.png'); 
    background-size: cover; background-position: center; height: 500px; display: flex; align-items: center; text-align: center; color: white; 
}
.hero-content h1 { font-size: 48px; margin-bottom: 20px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.hero-content p { font-size: 20px; margin-bottom: 30px; opacity: 0.9; }
.hero-btns { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* --- 关于我们 (About) --- */
.about { background: var(--white); }
.about-content { display: flex; flex-wrap: wrap; gap: 50px; align-items: center; }
.about-text { flex: 1; min-width: 300px; }
.about-text p { margin-bottom: 20px; text-align: justify; color: var(--text-light); font-size: 16px; }
.about-text .highlight { color: var(--primary-color); font-weight: bold; }
.about-image { flex: 1; min-width: 300px; }
.about-image img { border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }

/* 数据展示卡片 */
.about-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin-top: 40px; }
.stat-card { background: var(--bg-light); padding: 25px; text-align: center; border-radius: 8px; border-left: 4px solid var(--accent-color); }
.stat-card i { font-size: 32px; color: var(--primary-color); margin-bottom: 15px; }
.stat-card .number { font-size: 28px; font-weight: bold; color: var(--text-dark); display: block; margin-bottom: 5px; }
.stat-card .label { font-size: 14px; color: var(--text-light); }

/* --- 核心优势 (Features) --- */
.features { background: var(--bg-light); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature-card { background: white; padding: 30px; text-align: center; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; }
.feature-card:hover { transform: translateY(-5px); }
.feature-icon { font-size: 40px; color: var(--accent-color); margin-bottom: 20px; }
.feature-card h3 { margin-bottom: 15px; color: var(--primary-color); }

/* --- 服务项目 (Services) --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-item { border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.service-img { height: 200px; background-color: #ddd; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.service-item:hover .service-img img { transform: scale(1.1); }
.service-info { padding: 20px; }
.service-info h3 { margin-bottom: 10px; }
.service-info p { color: var(--text-light); font-size: 14px; margin-bottom: 15px; }

/* --- 新增：气站风貌展示 --- */
.gallery { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.gallery-item { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 25px rgba(0,0,0,0.1); transition: all 0.3s ease; }
.gallery-item:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,0.15); }
.gallery-img { height: 220px; overflow: hidden; position: relative; }
.gallery-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover .gallery-img img { transform: scale(1.1); }
.gallery-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(0,86,179,0.8) 0%, transparent 100%); opacity: 0; transition: opacity 0.3s ease; display: flex; align-items: flex-end; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption { color: white; padding: 20px; font-weight: 500; }
.gallery-info { padding: 20px; }
.gallery-info h3 { color: var(--primary-color); margin-bottom: 8px; font-size: 18px; }
.gallery-info p { color: var(--text-light); font-size: 14px; line-height: 1.6; }

/* --- 安全须知 (Safety) --- */
.safety { background-color: #fff8e1; border-top: 4px solid var(--accent-color); }
.safety-content { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.safety-text { flex: 1; min-width: 300px; }
.safety-img { flex: 1; min-width: 300px; }
.safety-list li { margin-bottom: 15px; display: flex; align-items: start; }
.safety-list i { color: #d9534f; margin-right: 10px; margin-top: 5px; }

/* --- 价格公示 (Price) --- */
.price-table { width: 100%; border-collapse: collapse; background: white; box-shadow: 0 0 20px rgba(0,0,0,0.05); }
.price-table th { background: var(--primary-color); color: white; padding: 15px; }
.price-table td { padding: 15px; text-align: center; border-bottom: 1px solid #eee; }
.price-table tr:hover { background-color: #f1f1f1; }
.price-note { text-align: right; font-size: 12px; color: #999; margin-top: 10px; }

/* --- 底部 (Footer) --- */
footer { background: #222; color: #aaa; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: white; margin-bottom: 20px; font-size: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a:hover { color: var(--accent-color); }
.copyright { text-align: center; border-top: 1px solid #444; padding-top: 20px; font-size: 14px; }
.icp { margin-top: 10px; display: block; color: #666; }

/* --- 悬浮电话按钮 (Mobile) --- */
.float-phone { position: fixed; bottom: 20px; right: 20px; background: var(--accent-color); color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 24px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 999; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(255, 102, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0); } }

/* --- 新增：我们的承诺样式 --- */
.commitment-box {
    background: linear-gradient(to right, #e8f5e8, #d4edda);
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 25px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.commitment-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997, #17a2b8);
}

.commitment-box h3 {
    color: #155724;
    font-size: 22px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.commitment-box h3 i {
    margin-right: 10px;
    font-size: 24px;
}

.commitment-box p {
    color: #155724;
    font-size: 16px;
    line-height: 1.8;
}

.commitment-box .safety-text {
    color: #dc3545;
    font-weight: bold;
}

.commitment-box .service-text {
    color: #007bff;
    font-weight: bold;
}

/* --- 响应式适配 --- */
@media (max-width: 768px) {
    .nav-menu { display: none; position: absolute; top: 80px; left: 0; width: 100%; background: white; flex-direction: column; padding: 20px; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
    .nav-menu.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .hero-content h1 { font-size: 32px; }
    .nav-cta { display: none; }
    .top-bar .container { justify-content: center; text-align: center; }
    .top-info span { display: block; margin: 5px 0; }
    .about-content { flex-direction: column; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }

    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-img { height: 200px; }

    .commitment-box {
        padding: 20px;
    }

    .commitment-box h3 {
        font-size: 20px;
    }
}