/* ==========================================
   泓源水务 · 公众门户网站样式 v2
   H5优先，兼容PC
   ========================================== */

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

:root {
    --primary: #0d6ebd;
    --primary-dark: #095394;
    --primary-light: #e8f4fd;
    --accent: #00a8e8;
    --bg: #f5f7fa;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
    --radius: 14px;
    --radius-sm: 10px;
    --transition: 0.25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea { font: inherit; outline: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}
.header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}
.logo-icon svg { display: block; width: 36px; height: 36px; }
.logo-name {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: block;
    line-height: 1.2;
}
.logo-sub {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: block;
    line-height: 1.2;
}

.nav {
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    display: flex;
    gap: 2px;
}
.nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-link {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: 8px;
}
.menu-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(160deg, #0d6ebd 0%, #095394 45%, #0a1628 100%);
    color: #fff;
    padding-top: 60px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.hero-wave {
    position: absolute;
    bottom: 0; left: -5%;
    width: 120%;
    height: 60%;
    opacity: 0.08;
}
.hero-wave-1 {
    background: radial-gradient(ellipse at 30% 100%, #fff 0%, transparent 60%);
    animation: waveMove 12s ease-in-out infinite;
}
.hero-wave-2 {
    background: radial-gradient(ellipse at 70% 100%, #fff 0%, transparent 50%);
    animation: waveMove 16s ease-in-out infinite reverse;
    opacity: 0.05;
}
.hero-wave-3 {
    background: radial-gradient(circle at 50% 80%, rgba(0,168,232,0.35) 0%, transparent 50%);
    animation: pulse 6s ease-in-out infinite;
    opacity: 0.7;
}
@keyframes waveMove {
    0%,100% { transform: translateX(0) scaleY(1); }
    50% { transform: translateX(3%) scaleY(1.08); }
}
@keyframes pulse {
    0%,100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 16px 60px;
}
.hero-title {
    font-size: clamp(1.6rem, 6vw, 2.8rem);
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 14px;
    animation: fadeInUp 0.8s ease;
}
.hero-slogan {
    font-size: clamp(1rem, 3vw, 1.35rem);
    font-weight: 300;
    letter-spacing: 3px;
    opacity: 0.9;
    margin-bottom: 12px;
    animation: fadeInUp 0.8s ease 0.1s both;
}
.hero-desc {
    font-size: 0.95rem;
    opacity: 0.75;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease 0.25s both;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}
.btn-primary {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(255,255,255,0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.3);
}
.btn-outline-light {
    border: 1px solid rgba(255,255,255,0.5);
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
}
.btn-outline {
    border: 1px solid var(--border);
    color: var(--text-secondary);
    background: var(--card-bg);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}
.stat-item {
    text-align: center;
    min-width: 72px;
}
.stat-number {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.2;
}
.stat-label {
    font-size: 0.75rem;
    opacity: 0.75;
    margin-top: 4px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Section 通用 --- */
.section {
    padding: 56px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 36px;
}
.section-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary);
    margin-bottom: 10px;
}
.section-title {
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}
.section-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- 轮播 --- */
.banner-section {
    padding-top: 24px;
    padding-bottom: 0;
    background: var(--bg);
}
.banner-slider {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.banner-track {
    display: flex;
    transition: transform 0.5s ease;
}
.banner-slide {
    min-width: 100%;
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
}
.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner-title {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 40px 16px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}
.banner-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.banner-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}
.banner-dot.active {
    background: #fff;
    width: 20px;
    border-radius: 4px;
}

/* --- 快捷入口 --- */
.quick-section {
    padding-top: 24px;
    padding-bottom: 40px;
    background: var(--bg);
}
.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}
.quick-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.quick-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quick-item span {
    font-size: 0.8rem;
    color: var(--text);
    font-weight: 500;
}

/* --- Tabs --- */
.news-tabs, .outage-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 28px;
}
.tab-btn {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--card-bg);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.tab-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}
.tab-btn.active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

/* --- 停水通知 --- */
.outage-section { background: #fff; }
.outage-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.outage-card {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    padding: 18px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    cursor: pointer;
    transition: all var(--transition);
}
.outage-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(4px);
}
.outage-card.emergency {
    border-left-color: #ef4444;
}
.outage-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.outage-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    flex: 1;
}
.outage-badge {
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
}
.outage-badge.emergency { background: #ef4444; }
.outage-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.outage-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.outage-area {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.outage-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    background: #f8fafc;
    border-radius: var(--radius-sm);
}

/* --- 新闻网格 --- */
.news-section { background: var(--bg); }
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.news-card {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.news-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--primary-light);
}
.news-card-img-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-light), #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-card-img-placeholder svg {
    opacity: 0.3;
    color: var(--primary);
}
.news-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-card-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary);
    margin-bottom: 10px;
    width: fit-content;
}
.news-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-summary {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}
.news-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.news-card-meta .icon-text {
    display: flex;
    align-items: center;
    gap: 4px;
}
.news-top-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 1;
}

/* --- 通知公告 --- */
.notice-section { background: #fff; }
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.notice-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all var(--transition);
}
.notice-item:hover {
    box-shadow: var(--shadow-lg);
}
.notice-date {
    flex-shrink: 0;
    width: 56px;
    text-align: center;
    padding: 8px;
    background: var(--primary-light);
    border-radius: 10px;
}
.notice-date .day {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.notice-date .month {
    display: block;
    font-size: 0.65rem;
    color: var(--primary);
    margin-top: 2px;
}
.notice-content {
    flex: 1;
    min-width: 0;
}
.notice-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notice-summary {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.notice-arrow {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* --- 水质检测 --- */
.water-section { background: var(--bg); }
.water-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.water-card {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    cursor: pointer;
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.water-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.water-card-header {
    padding: 16px 16px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.water-card-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.water-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.water-card-body {
    padding: 10px 16px 16px;
    flex: 1;
}
.water-card-summary {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.water-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.water-card-attach {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-weight: 500;
}

/* --- 联系我们 --- */
.contact-section { background: #fff; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.contact-card {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.contact-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.contact-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.qrcode-wrap {
    width: 160px;
    height: 160px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.qrcode-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.qrcode-placeholder {
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.message-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.message-form .form-group {
    margin-bottom: 12px;
}
.message-form input,
.message-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    background: #f8fafc;
    transition: all 0.2s;
}
.message-form input:focus,
.message-form textarea:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13,110,189,0.08);
}
.message-form textarea {
    resize: vertical;
}
.service-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    padding: 16px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 1rem;
}
.service-phone strong {
    font-size: 1.2rem;
}

/* --- Footer --- */
.footer {
    background: #0a1628;
    color: rgba(255,255,255,0.7);
    padding: 40px 0 20px;
}
.footer-inner { text-align: center; }
.footer-brand h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.footer-brand p {
    font-size: 0.8rem;
    opacity: 0.7;
}
.footer-slogan {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 8px 0 20px;
    color: #fff;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: 0.85rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-copy {
    font-size: 0.75rem;
    opacity: 0.4;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-filing {
    font-size: 0.7rem;
    opacity: 0.35;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-filing a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-filing a:hover { color: #fff; }
.filing-divider { opacity: 0.5; }

/* --- IPv6 支持标志 --- */
.ipv6-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 26px auto 18px;
    padding: 8px 22px 8px 10px;
    background: rgba(30, 111, 217, 0.14);
    border: 1px solid rgba(30, 111, 217, 0.5);
    border-radius: 999px;
}
.ipv6-icon { display: block; flex: none; }
.ipv6-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
}
.ipv6-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #4d9bff;
    letter-spacing: 1px;
}
.ipv6-desc {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.5px;
}

/* --- 加载更多 --- */
.load-more-wrap {
    text-align: center;
    margin-top: 32px;
}

/* --- 加载动画 --- */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.spinner {
    width: 32px; height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- 空状态 --- */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-secondary);
}
.empty-state svg {
    width: 64px; height: 64px;
    opacity: 0.2;
    margin-bottom: 12px;
}

/* --- 详情弹窗 --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-container {
    background: #fff;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 720px;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-container {
    transform: translateY(0);
}
.modal-close {
    position: sticky;
    top: 12px;
    float: right;
    z-index: 10;
    width: 36px;
    height: 36px;
    margin: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}
.modal-body {
    padding: 24px;
}
.modal-header-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary);
    margin-bottom: 12px;
}
.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 14px;
}
.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.modal-content {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text);
}
.modal-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 12px 0;
}
.modal-attachments {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.modal-attachments h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.attach-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.85rem;
    margin: 4px 6px 4px 0;
}
.modal-nav {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.85rem;
}
.modal-nav a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- 智能客服 --- */
.ai-float-btn {
    position: fixed;
    bottom: 86px;
    right: 16px;
    z-index: 950;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0d6ebd, #0891b2);
    color: #fff;
    box-shadow: 0 6px 20px rgba(13,110,189,0.35);
    font-size: 0.65rem;
    font-weight: 500;
    transition: all 0.3s;
}
.ai-float-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(13,110,189,0.45);
}
.ai-chat-window {
    position: fixed;
    bottom: 86px;
    right: 16px;
    z-index: 960;
    width: calc(100vw - 32px);
    max-width: 400px;
    height: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.96);
    transition: all 0.3s ease;
}
.ai-chat-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, #0d6ebd, #0891b2);
    color: #fff;
    border-radius: 16px 16px 0 0;
}
.ai-chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.ai-chat-close {
    width: 28px; height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.4rem;
}
.ai-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f8fafc;
}
.ai-message {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.ai-message.user {
    flex-direction: row-reverse;
}
.ai-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}
.ai-message.user .ai-avatar {
    background: #94a3b8;
}
.ai-bubble {
    max-width: 78%;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.7;
    background: #fff;
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    word-break: break-word;
}
.ai-message.user .ai-bubble {
    background: var(--primary);
    color: #fff;
}
.ai-bubble.loading {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 14px;
}
.ai-bubble.loading span {
    width: 6px; height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: dotBlink 1.4s infinite both;
}
.ai-bubble.loading span:nth-child(2) { animation-delay: 0.2s; }
.ai-bubble.loading span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBlink {
    0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1); }
}
.ai-chat-footer {
    padding: 12px;
    background: #fff;
    border-top: 1px solid var(--border);
    border-radius: 0 0 16px 16px;
}
.ai-input-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}
.ai-input-wrap input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.9rem;
    background: #f8fafc;
}
.ai-input-wrap input:focus {
    border-color: var(--primary);
    background: #fff;
}
.ai-send-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ai-hint {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* --- 回到顶部 --- */
.back-top {
    position: fixed;
    bottom: 24px;
    right: 16px;
    z-index: 900;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--primary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ============ PC 响应式 ============ */
@media (min-width: 769px) {
    .header-inner { height: 70px; }
    .logo-icon svg { width: 42px; height: 42px; }
    .logo-name { font-size: 1.25rem; }
    .logo-sub { font-size: 0.75rem; }

    .nav {
        position: static;
        flex-direction: row;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    .menu-toggle { display: none; }

    .hero { min-height: 88vh; padding-top: 70px; }
    .hero-content { padding: 100px 20px 80px; }
    .hero-actions { gap: 16px; }
    .hero-stats { gap: 60px; }
    .stat-number { font-size: 2.4rem; }

    .section { padding: 72px 0; }
    .section-header { margin-bottom: 44px; }

    .quick-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
    }
    .quick-item { padding: 24px 12px; }
    .quick-icon { width: 60px; height: 60px; }
    .quick-item span { font-size: 0.9rem; }

    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .water-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .message-card { grid-column: span 1; }

    .modal-overlay {
        align-items: center;
        padding: 20px;
    }
    .modal-container {
        border-radius: var(--radius);
        transform: translateY(20px);
    }

    .ai-float-btn {
        bottom: 100px;
        right: 30px;
        padding: 12px 10px;
    }
    .ai-chat-window {
        bottom: 100px;
        right: 30px;
    }
    .back-top {
        bottom: 30px;
        right: 30px;
    }
}

@media (min-width: 1200px) {
    .container { padding: 0 24px; }
}
