/* ============================================
   汉国智慧水务 - 全站统一样式
   ============================================ */

/* CSS 变量 */
:root {
    --primary: #1677FF;
    --primary-deep: #0E5FD9;
    --primary-light: #E8F3FF;
    --text-h: #111827;
    --text-p: #374151;
    --text-aux: #6B7280;
    --bg-page: #FFFFFF;
    --bg-block: #F5F9FF;
    --bg-dark: #0F284F;
    --footer-black: #121212;
    --border-line: #E2E8F0;
    --shadow-soft: 0 1px 6px rgba(22, 119, 255, 0.04);
    --shadow-hover: 0 6px 16px rgba(22, 119, 255, 0.12);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --space-xs: 10px;
    --space-sm: 20px;
    --space-md: 32px;
    --space-lg: 48px;
    --space-xl: 72px;
    --space-xxl: 96px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "PingFang SC", "Microsoft Yahei", sans-serif;
    background: var(--bg-page);
    color: var(--text-p);
    line-height: 1.75;
}
a {
    text-decoration: none;
    color: inherit;
}
ul, ol {
    list-style: none;
}

/* 通用容器 */
.container {
    width: 1260px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
    max-width: 100%;
}

/* ========== 顶部导航（全局统一） ========== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--border-line);
    z-index: 999;
}
.header-inner {
    width: 1260px;
    margin: 0 auto;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-sm);
    max-width: 100%;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}
.logo img {
    height: 42px;
    width: auto;
}
.nav-list {
    display: flex;
    gap: 30px;
}
.nav-list a {
    text-decoration: none;
    color: var(--text-p);
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: 0.24s;
}
.nav-list a.active,
.nav-list a:hover {
    color: var(--primary);
}
.nav-list a.active {
    border-bottom: 2px solid var(--primary);
    font-weight: 600;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-phone {
    font-size: 15px;
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}
.top-btn {
    padding: 10px 22px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    transition: 0.24s;
}
.top-btn:hover {
    background: var(--primary-deep);
}
.main {
    margin-top: 72px;
}

/* ========== Banner 通用 ========== */
.banner-solid {
    width: 100%;
    min-height: 480px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1677FF, #0F52C2);
    overflow: hidden;
}
.banner-image {
    width: 100%;
    min-height: 480px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.banner-image .banner-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(4px);
    transform: scale(1.05);
    z-index: 1;
}
.banner-image .banner-mask {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(22, 119, 255, 0.78);
    z-index: 2;
}
.banner-content {
    width: 1260px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
    color: #fff;
    position: relative;
    z-index: 3;
}
.banner-content h1 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: var(--space-md);
    line-height: 1.25;
    color: #fff;
}
.banner-content p {
    max-width: 760px;
    font-size: 17px;
    opacity: 0.92;
    line-height: 1.85;
    margin-bottom: var(--space-xl);
}
.banner-buttons {
    display: flex;
    gap: var(--space-md);
}
.btn-white {
    padding: 13px 30px;
    background: #fff;
    color: var(--primary);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    transition: 0.24s;
    border: 1px solid #fff;
}
.btn-white:hover {
    background: var(--primary-light);
}
.btn-trans {
    padding: 13px 30px;
    border: 1px solid #fff;
    color: #fff;
    background: transparent;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: 0.24s;
}
.btn-trans:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ========== 通用板块 ========== */
.section {
    padding: var(--space-xxl) 0;
}
.section-gray {
    background: var(--bg-block);
}
.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--text-h);
    margin-bottom: var(--space-sm);
    position: relative;
}
.section-title::after {
    content: "";
    width: 64px;
    height: 3px;
    background: var(--primary);
    position: absolute;
    left: 50%;
    bottom: -14px;
    transform: translateX(-50%);
}
.section-desc {
    text-align: center;
    color: var(--text-aux);
    max-width: 960px;
    margin: 0 auto var(--space-xl);
    font-size: 16px;
}

/* ========== 栅格布局 ========== */
.grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: stretch;
}
.grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}
.grid-four {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}
.grid-five {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-lg);
}
.grid-six {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

/* ========== 通用卡片 ========== */
.card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: var(--space-lg);
    transition: 0.24s;
    height: 100%;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.card h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-line);
    text-align: center;
}
.card h4 {
    font-size: 18px;
    color: var(--text-h);
    margin-bottom: var(--space-xs);
    text-align: center;
}
.card p {
    font-size: 15px;
    color: var(--text-aux);
    line-height: 1.75;
    text-align: center;
}
.card ul {
    list-style: none;
    margin-top: var(--space-sm);
}
.card li {
    font-size: 15px;
    color: var(--text-p);
    margin-bottom: var(--space-sm);
    padding-left: 14px;
    position: relative;
    text-align: left;
}
.card li::before {
    content: "·";
    color: var(--primary);
    position: absolute;
    left: 0;
}

/* 功能卡片（带顶部色块） */
.card-func {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    height: 100%;
    transition: 0.24s;
}
.card-func:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.func-top {
    width: 100%;
    height: 80px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    font-weight: 500;
}
.func-body {
    padding: var(--space-md);
}
.func-body h3 {
    font-size: 18px;
    margin-bottom: var(--space-sm);
    color: var(--text-h);
}
.func-body li {
    font-size: 13px;
    color: var(--text-p);
    margin-bottom: var(--space-xs);
    padding-left: var(--space-sm);
    position: relative;
    line-height: 1.7;
    text-align: left;
}
.func-body li::before {
    content: "·";
    color: var(--primary);
    position: absolute;
    left: 0;
}

/* 数据卡片 */
.data-card {
    text-align: center;
    padding: 30px 16px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}
.data-num {
    font-size: 40px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}
.data-desc {
    font-size: 15px;
    color: var(--text-p);
}

/* 文本卡片 */
.text-card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: var(--space-xl);
    max-width: 1100px;
    margin: 0 auto;
}
.text-card p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-p);
    margin-bottom: var(--space-md);
    text-indent: 2em;
}

/* 架构说明框 */
.arch-box {
    background: var(--primary-light);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    line-height: 2.2;
    font-size: 16px;
    color: var(--text-p);
}
.arch-box strong {
    color: var(--primary-deep);
}

/* 对比表格 */
.table-box {
    overflow-x: auto;
    margin-top: var(--space-lg);
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.compare-table th {
    background: var(--primary);
    color: #fff;
    padding: var(--space-md);
    font-weight: 500;
    font-size: 15px;
    text-align: center;
}
.compare-table td {
    padding: var(--space-md);
    border: 1px solid var(--border-line);
    font-size: 15px;
    color: var(--text-p);
    text-align: center;
    line-height: 1.7;
}
.compare-table tr:nth-child(even) {
    background: var(--bg-block);
}

/* ========== 咨询表单（全局统一） ========== */
.footer-contact {
    background: var(--bg-dark);
    color: #fff;
    padding: var(--space-xxl) 0;
}
.contact-wrap {
    width: 1260px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
    max-width: 100%;
}
.contact-left h3 {
    font-size: 28px;
    margin-bottom: var(--space-lg);
    color: #fff;
}
.contact-left p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: var(--space-md);
    line-height: 2;
    color: #E5E8F0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-left p span {
    display: inline-block;
    width: 130px;
    color: #fff;
    font-weight: 500;
}
.form-item {
    margin-bottom: var(--space-md);
}
.form-item label {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    font-size: 15px;
}
.form-item input,
.form-item textarea {
    width: 100%;
    height: 56px;
    padding: 0 14px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: #000;
    background: #fff;
    outline: none;
    transition: 0.2s;
    resize: none;
    line-height: 56px;
}
.form-item input::placeholder,
.form-item textarea::placeholder {
    color: #666;
}
.form-item textarea {
    height: 56px;
}
.form-item input:focus,
.form-item textarea:focus {
    box-shadow: 0 0 0 2px var(--primary);
}
.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    cursor: pointer;
    transition: 0.24s;
    font-weight: 500;
    letter-spacing: 1px;
}
.submit-btn:hover {
    background: var(--primary-deep);
}

/* ========== 底部导航（全局统一） ========== */
.footer {
    background: var(--footer-black);
    color: #ccc;
    padding: 50px 0 30px;
}
.footer-container {
    width: 1260px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
    max-width: 100%;
}
.footer-row {
    display: grid;
    grid-template-columns: repeat(2, 380px);
    justify-content: center;
    gap: 100px;
    margin-bottom: 30px;
}
.footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}
.footer-col h4 a {
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}
.footer-col h4 a:hover {
    color: var(--primary);
}
.footer-col p {
    font-size: 13px;
    line-height: 1.8;
    color: #bbbbbb;
}
.footer-col p a {
    color: #bbbbbb;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}
.footer-col p a:hover {
    color: var(--primary);
}
.footer-divider {
    width: 100%;
    height: 1px;
    background: #333333;
    margin: 0 0 24px;
}
.footer-copyright {
    text-align: center;
    font-size: 13px;
    color: #999999;
}

/* ========== AI 特性卡片 ========== */
.card-ai {
    background: #fff;
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: 0.25s;
    height: 100%;
}
.card-ai:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.card-ai h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-line);
}
.card-ai p {
    font-size: 14px;
    color: var(--text-aux);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}
.card-ai .benefit {
    display: inline-block;
    margin-top: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background: var(--primary-light);
    color: var(--primary-deep);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

/* 案例卡片 */
.card-case {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: 0.24s;
    height: 100%;
}
.card-case:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.case-img {
    height: 170px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 26px;
}
.case-body {
    padding: var(--space-lg);
}
.case-body h4 {
    font-size: 19px;
    margin-bottom: var(--space-sm);
    color: var(--text-h);
}
.case-body p {
    font-size: 14px;
    color: var(--text-aux);
    line-height: 1.7;
}

/* 产品展示区 */
.product-block {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}
.product-img-box {
    width: 50%;
    background: var(--primary-light);
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    border-radius: var(--radius-md);
}
.product-text {
    width: 50%;
}

/* 服务卡片 */
.service-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 40px 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: 0.24s;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.service-card h3 {
    font-size: 26px;
    color: var(--text-h);
    margin-bottom: 12px;
}
.service-card p {
    color: var(--text-aux);
    font-size: 15px;
}

/* 空白分割 */
.section-spacer {
    padding: 0 var(--space-sm);
    background: var(--bg-block);
}

/* ========== 关于我们页特有样式 ========== */
.grid-quad {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

/* ========== 智慧供水特有样式 ========== */
.hardware-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.hard-card {
    border: 1px solid var(--border-line);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
    transition: 0.24s;
}
.hard-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.hard-img {
    height: 180px;
    background: var(--bg-block);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.hard-card h4 {
    padding: 16px 20px 8px;
    font-size: 17px;
    color: var(--text-h);
}
.hard-card p {
    padding: 0 20px 20px;
    font-size: 14px;
    color: var(--text-aux);
}

.func-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.func-block {
    background: var(--bg-block);
    padding: 28px;
    border-radius: var(--radius-md);
}
.func-block h3 {
    font-size: 19px;
    margin-bottom: 15px;
    color: var(--primary);
}
.func-block li {
    line-height: 1.8;
    color: var(--text-p);
    margin-bottom: 6px;
    padding-left: 18px;
    position: relative;
}
.func-block li::before {
    content: "·";
    color: var(--primary);
    position: absolute;
    left: 0;
}

.adv-service-wrap {
    display: flex;
    gap: 60px;
}
.adv-left,
.service-right {
    flex: 1;
}
.adv-left h3,
.service-right h3 {
    font-size: 22px;
    margin-bottom: 22px;
    padding-left: 10px;
    border-left: 4px solid var(--primary);
}
.adv-left li,
.service-right li {
    line-height: 2;
    margin-bottom: 8px;
    color: var(--text-p);
}

/* 优势卡片 */
.card-adv {
    background: #fff;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-soft);
    height: 100%;
    transition: 0.24s;
}
.card-adv:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.card-adv h4 {
    font-size: 18px;
    margin: var(--space-sm) 0 var(--space-xs);
    color: var(--text-h);
}
.card-adv p {
    font-size: 14px;
    color: var(--text-aux);
    line-height: 1.7;
}

/* ========== 响应式 ========== */
@media (max-width: 1260px) {
    .container,
    .header-inner,
    .banner-content,
    .contact-wrap,
    .footer-container {
        width: 100%;
    }
}
@media (max-width: 992px) {
    .nav-list {
        display: none;
    }
    .grid-two,
    .grid-three,
    .grid-four,
    .grid-five,
    .grid-six,
    .grid-quad,
    .contact-wrap,
    .func-grid,
    .hardware-grid,
    .adv-service-wrap {
        grid-template-columns: 1fr;
    }
    .product-block {
        flex-direction: column;
    }
    .product-img-box,
    .product-text {
        width: 100%;
    }
    .banner-solid,
    .banner-image {
        min-height: auto;
        padding: 140px 0 100px;
    }
    .banner-content h1 {
        font-size: 30px;
    }
    .section-title {
        font-size: 26px;
    }
    .footer-row {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 30px;
    }
    .footer-col h4 {
        font-size: 14px;
    }
    .footer-col p {
        font-size: 12px;
    }
    .footer-copyright {
        font-size: 12px;
    }
}
