﻿/* ============================================================
   九洲空调 - 城市分站系统
   蓝色科技风 - 响应式样式表
   ============================================================ */

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #0066cc;
    --primary-dark: #004c99;
    --primary-light: #e6f0ff;
    --accent: #00a0ff;
    --text-main: #1a1a2e;
    --text-body: #444;
    --text-light: #777;
    --bg-white: #ffffff;
    --bg-gray: #f5f7fa;
    --border: #e4e8ed;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,.08);
    --shadow-hover: 0 8px 24px rgba(0,102,204,.15);
    --container: 1200px;
}
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-body);
    background: var(--bg-white);
    line-height: 1.7;
    font-size: 15px;
}
a { color: var(--primary); text-decoration: none; transition: all .25s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* ---------- 顶部信息栏 ---------- */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,.9);
    font-size: 13px;
    padding: 6px 0;
}
.top-bar-inner {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 8px;
}
.top-bar-item { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 头部导航 ---------- */
.header {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    position: sticky; top: 0; z-index: 1000;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 44px; width: auto; }
.nav { display: flex; gap: 8px; }
.nav a {
    padding: 8px 18px;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
}
.nav a:hover { color: var(--primary); background: var(--primary-light); }
.nav a.active { color: var(--primary); background: var(--primary-light); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span {
    display: block; width: 24px; height: 2px; background: var(--text-main);
    margin: 5px 0; transition: all .3s;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, #004c99 0%, #0066cc 50%, #00a0ff 100%);
    color: #fff;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 20px;
}
.hero h1 { font-size: 42px; line-height: 1.3; margin-bottom: 16px; font-weight: 700; }
.hero-subtitle { font-size: 17px; opacity: .9; margin-bottom: 32px; max-width: 600px; }
.hero-stats {
    display: flex; gap: 40px; margin-bottom: 32px;
}
.hero-stat .num {
    font-size: 36px; font-weight: 700; color: #7fd4ff; line-height: 1.2;
}
.hero-stat .label {
    font-size: 13px; opacity: .8; margin-top: 2px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all .25s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-outline-dark { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: #fff; }

/* ---------- 通用区块 ---------- */
.section { padding: 80px 0; }
.section-gray { background: var(--bg-gray); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title .label {
    color: var(--primary); font-size: 13px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px;
}
.section-title h2 { font-size: 32px; color: var(--text-main); margin-bottom: 12px; }
.section-title p { color: var(--text-light); font-size: 15px; }
.section-title.text-left { text-align: left; }

/* ---------- 产品分类大卡片 ---------- */
.cat-grid-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.cat-card-large {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .3s;
    display: block;
}
.cat-card-large:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
    transform: translateY(-4px);
}
.cat-card-img {
    position: relative;
    height: 260px;
    background: var(--bg-gray);
    overflow: hidden;
}
.cat-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s;
}
.cat-card-large:hover .cat-card-img img { transform: scale(1.05); }
.cat-card-badge {
    position: absolute; top: 16px; right: 16px;
    background: rgba(0,102,204,.9); color: #fff;
    padding: 4px 14px; border-radius: 20px;
    font-size: 13px; font-weight: 500;
}
.cat-card-body { padding: 28px; }
.cat-card-num {
    font-size: 32px; font-weight: 700;
    color: var(--primary); opacity: .15;
    line-height: 1; margin-bottom: 8px;
}
.cat-card-body h3 {
    font-size: 22px; color: var(--text-main); margin-bottom: 10px;
}
.cat-card-body > p {
    color: var(--text-light); font-size: 14px; margin-bottom: 18px;
    line-height: 1.7;
}
.cat-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 20px;
}
.cat-tag {
    background: var(--bg-gray);
    color: var(--text-body);
    padding: 5px 14px; border-radius: 16px;
    font-size: 13px;
}
.cat-card-more {
    color: var(--primary); font-weight: 500; font-size: 15px;
}

/* ---------- 产品卡片 ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .3s;
    display: block;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.product-img {
    position: relative;
    height: 200px;
    background: var(--bg-gray);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-img-placeholder {
    width: 80px; height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
}
.product-cat-tag {
    position: absolute; top: 12px; right: 12px;
    background: var(--primary); color: #fff;
    padding: 3px 10px; border-radius: 4px;
    font-size: 12px;
}
.product-body { padding: 20px; }
.product-body h3 {
    font-size: 16px; color: var(--text-main); margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-body p {
    font-size: 13px; color: var(--text-light); margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-more { font-size: 13px; color: var(--primary); font-weight: 500; }

/* ---------- 产品详情 ---------- */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.product-main-img {
    background: var(--bg-gray);
    border-radius: var(--radius);
    padding: 20px;
    display: flex; align-items: center; justify-content: center;
}
.product-main-img img { max-height: 400px; object-fit: contain; }
.product-detail-title { font-size: 28px; color: var(--text-main); margin-bottom: 12px; }
.product-detail-summary { font-size: 16px; color: var(--text-light); margin-bottom: 24px; }
.product-detail-meta { margin-bottom: 24px; }
.meta-item {
    display: flex; padding: 8px 0; border-bottom: 1px dashed var(--border);
}
.meta-label { width: 100px; color: var(--text-light); }
.meta-value { color: var(--text-main); font-weight: 500; }
.product-detail-actions { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.product-detail-service {
    display: grid; grid-template-columns: repeat(2,1fr); gap: 12px;
}
.service-item {
    background: var(--primary-light);
    color: var(--primary);
    padding: 10px 16px; border-radius: 6px;
    font-size: 14px; text-align: center;
}
.product-detail-content { margin-top: 40px; }
.rich-content { font-size: 15px; color: var(--text-body); line-height: 1.9; }
.rich-content p { margin-bottom: 12px; }
.rich-content ul { margin: 12px 0 12px 20px; list-style: disc; }
.rich-content li { margin-bottom: 6px; }

/* ---------- 新闻卡片 ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}
.news-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .3s;
    display: block;
}
.news-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.news-date {
    padding: 20px;
    background: var(--primary-light);
    text-align: center;
    color: var(--primary);
}
.news-date .day { font-size: 28px; font-weight: 700; display: block; }
.news-date .month { font-size: 13px; }
.news-body { padding: 20px; }
.news-cat {
    display: inline-block;
    background: var(--primary-light); color: var(--primary);
    padding: 2px 10px; border-radius: 4px;
    font-size: 12px; margin-bottom: 8px;
}
.news-body h3 {
    font-size: 16px; color: var(--text-main); margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-body p {
    font-size: 13px; color: var(--text-light); margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-more { font-size: 13px; color: var(--primary); }

/* ---------- 新闻列表 ---------- */
.news-list { display: grid; gap: 16px; }
.news-list-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex; gap: 20px;
    transition: all .3s;
}
.news-list-item:hover { box-shadow: var(--shadow-hover); border-color: var(--primary); }
.news-list-img { width: 200px; flex-shrink: 0; }
.news-list-img img { width: 100%; height: 140px; object-fit: cover; border-radius: 6px; }
.news-list-content { flex: 1; }
.news-list-content h3 { font-size: 17px; color: var(--text-main); margin: 6px 0; }
.news-list-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-light); margin-top: 8px; }

/* ---------- 分类筛选 ---------- */
.cat-filter {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-bottom: 30px;
}
.cat-filter a {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-body);
    font-size: 14px;
}
.cat-filter a:hover { border-color: var(--primary); color: var(--primary); }
.cat-filter a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- 分页 ---------- */
.pagination { margin-top: 40px; text-align: center; }
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-body);
}
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- 关于/优势 ---------- */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-img-box {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.adv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}
.adv-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    transition: all .3s;
}
.adv-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.adv-num {
    display: inline-block;
    width: 48px; height: 48px; line-height: 48px;
    background: var(--primary-light); color: var(--primary);
    border-radius: 50%;
    font-weight: 700; font-size: 18px;
    margin-bottom: 16px;
}
.adv-card h3 { font-size: 17px; color: var(--text-main); margin-bottom: 10px; }
.adv-card p { font-size: 14px; color: var(--text-light); }

/* ---------- 生产环境 ---------- */
.factory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.factory-item {
    border-radius: var(--radius);
    overflow: hidden;
    height: 200px;
}
.factory-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.factory-item:hover img { transform: scale(1.05); }

/* 关于页生产环境 */
.about-factory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.about-factory-item {
    border-radius: var(--radius);
    overflow: hidden;
    height: 280px;
}
.about-factory-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s;
}
.about-factory-item:hover img { transform: scale(1.05); }

/* ---------- 联系我们 ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}
.contact-info-item {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.contact-icon {
    width: 48px; height: 48px;
    background: var(--primary-light); color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.contact-info-item h4 { font-size: 15px; color: var(--text-main); margin-bottom: 4px; }
.contact-form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; color: var(--text-main); margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .25s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--primary);
}

/* ---------- 城市分站 ---------- */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}
.cities-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: all .3s;
    display: block;
}
.cities-item:hover { box-shadow: var(--shadow-hover); border-color: var(--primary); }
.cities-name { display: block; font-size: 15px; color: var(--text-main); font-weight: 500; }

/* ---------- 页脚 ---------- */
.footer {
    background: #1a2332;
    color: rgba(255,255,255,.7);
    padding: 60px 0 0;
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-brand h3 { color: #fff; font-size: 18px; margin-bottom: 12px; }
.footer-brand p { line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.7); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

/* ---------- 面包屑 ---------- */
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.85); margin-bottom: 12px; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,.6); }

/* ---------- 空状态 ---------- */
.empty-tip {
    text-align: center;
    padding: 60px 0;
    color: var(--text-light);
}

/* ---------- 页面 banner ---------- */
.page-banner {
    background: linear-gradient(135deg, #004c99 0%, #0066cc 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.page-banner h1 { font-size: 32px; margin-bottom: 8px; }
.page-banner p { opacity: .85; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .hero h1 { font-size: 32px; }
    .product-detail-layout, .about-layout, .contact-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .news-list-item { flex-direction: column; }
    .news-list-img { width: 100%; }
}
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute; top: 72px; left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px;
        box-shadow: 0 8px 16px rgba(0,0,0,.1);
    }
    .nav.open { display: flex; }
    .menu-toggle { display: block; }
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 26px; }
    .hero-stats { gap: 24px; }
    .hero-stat .num { font-size: 28px; }
    .section { padding: 50px 0; }
    .section-title h2 { font-size: 24px; }
    .cat-grid-large, .product-grid, .news-grid, .factory-grid, .about-factory-grid { grid-template-columns: 1fr; }
    .cat-card-img { height: 200px; }
    .about-factory-item { height: 220px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .top-bar-inner { justify-content: center; }
}
