/* 通利水暖国际站高级样式 */
:root {
    --primary: #16162A;
    --accent: #E05A20;
    --accent-hover: #C74E1A;
    --bg-light: #F7F8FA;
    --bg-white: #FFFFFF;
    --border: #E5E7EB;
    --text-main: #1A202C;
    --text-secondary: #64748B;
    --success: #2E7D32;
    --whatsapp: #25D366;
}

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

body {
    font-family: 'Inter', 'Noto Sans SC', system-ui, sans-serif;
    background: var(--bg-light);
    color: var(--text-main);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 顶部细联系条 */
.topbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 36px;
    background: var(--primary);
    z-index: 1001;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    line-height: 36px;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
}

/* 白色主导航 */
.navbar {
    position: fixed;
    top: 36px;
    width: 100%;
    height: 80px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    color: var(--primary);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    padding: 30px 0;
    display: inline-block;
    transition: color 0.2s;
}

.nav-menu > li:hover > a,
.nav-menu > li.active > a {
    color: var(--accent);
}

.nav-menu > li.active > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

/* 超级菜单 */
.megamenu {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 1180px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    padding: 36px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s;
    z-index: 999;
    border-radius: 0;
}

.nav-menu > li:hover .megamenu {
    opacity: 1;
    visibility: visible;
}

.megamenu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.megamenu-col h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 600;
}

.megamenu-col ul {
    list-style: none;
}

.megamenu-col ul li {
    margin-bottom: 10px;
}

.megamenu-col ul li a {
    color: var(--text-main);
    font-size: 14px;
    transition: color 0.2s;
}

.megamenu-col ul li a:hover {
    color: var(--accent);
}

.megamenu-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.megamenu-footer .mono {
    color: var(--primary);
    font-weight: 500;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch {
    color: var(--text-main);
    font-size: 13px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.2s;
}

.lang-switch:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-quote {
    background: var(--accent);
    color: #fff;
    padding: 10px 22px;
    border-radius: 0;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-quote:hover {
    background: var(--accent-hover);
}

/* Hero区 */
.hero {
    margin-top: 116px;
    height: 640px;
    background: linear-gradient(rgba(22,22,42,0.6), rgba(22,22,42,0.7)), url('/static/upload/product/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 56px;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 24px;
    max-width: 800px;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero .subtitle {
    font-size: 19px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 40px;
    max-width: 680px;
    font-weight: 400;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 14px 32px;
    border-radius: 0;
    font-weight: 500;
    display: inline-block;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 13px 32px;
    border-radius: 0;
    font-weight: 500;
    display: inline-block;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* 核心数据带 */
.stats-bar {
    background: var(--bg-white);
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stats-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 40px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    letter-spacing: -1px;
}

.stats-label {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 通用区块 */
.section {
    padding: 96px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 64px;
}

.section-title h2 {
    font-size: 38px;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-title p {
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto;
    font-size: 16px;
}

/* 产品卡片 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    border-color: transparent;
}

.product-card-img {
    height: 220px;
    background: #FAFAFA;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.product-card-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover .product-card-img img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 24px;
}

.product-card-body h3 {
    font-size: 17px;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-card-body .size-range {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 16px;
}

.product-card-body .more-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
}

.product-card-body .more-link:hover {
    color: var(--accent);
}

/* 优势模块 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}

.feature-item {
    text-align: left;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--accent);
}

.feature-item h3 {
    font-size: 17px;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* WhatsApp悬浮 */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
    z-index: 999;
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

/* 页脚 */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.65);
    padding: 72px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    transition: color 0.2s;
}

.footer ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* 内页Banner */
.page-banner {
    margin-top: 116px;
    padding: 80px 0;
    background: var(--primary);
    color: #fff;
}

.page-banner h1 {
    color: #fff;
    font-size: 40px;
    margin-bottom: 12px;
}

.page-banner p {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    max-width: 700px;
}

/* 响应式 */
@media (max-width: 1200px) {
    .megamenu {
        width: 90%;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        gap: 20px;
    }
    .hero h1 {
        font-size: 36px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .hero {
        height: 480px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
