/**
 * 安吉龙山源公墓 - 主样式表
 * 响应式设计 + 幻灯片 + 切换式产品菜单 + AI客服组件
 */

/* ==================== 变量定义 ==================== */
:root {
    --primary-color: #2d5a4a;
    --primary-light: #4a8b75;
    --primary-dark: #1a3d30;
    --primary-gradient: linear-gradient(135deg, #2d5a4a 0%, #4a8b75 50%, #3d7a65 100%);
    --secondary-color: #d4af37;
    --secondary-light: #e8c84a;
    --accent-color: #8b7355;
    --accent-warm: #c49a6c;
    --text-color: #2c3e50;
    --text-light: #5a6c7d;
    --text-muted: #95a5b6;
    --white: #fff;
    --bg-light: #f7f9fc;
    --bg-cream: #faf8f4;
    --bg-section-alt: #f0f5f3;
    --border-color: #e8ecf1;
    --border-light: #f0f2f5;
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.04);
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 25px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-gold: 0 4px 20px rgba(212,175,55,0.25);
    --shadow-primary: 0 4px 20px rgba(45,90,74,0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

/* ==================== 基础样式 ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 55px; }
.section-header h2 {
    font-size: 2.4rem;
    color: var(--primary-color);
    margin-bottom: 18px;
    position: relative;
    display: inline-block;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}
.section-header h2::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%) translateX(-35px);
    width: 8px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}
.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 34px;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn:hover::before { left: 100%; }
.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    box-shadow: var(--shadow-lg);
}
.btn-gold {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: var(--primary-dark);
    border-color: var(--secondary-color);
    font-weight: 700;
}
.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}
.btn-sm { padding: 10px 22px; font-size: 0.9rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-slow);
    padding: 5px 0;
}
.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 20px rgba(0,0,0,0.06);
    padding: 0;
}
.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.3px;
}
.navbar.scrolled .logo { color: var(--primary-color); }
.logo i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    filter: drop-shadow(0 2px 4px rgba(212,175,55,0.3));
}
.nav-menu { display: flex; gap: 32px; align-items: center; }
.nav-menu a {
    color: rgba(255,255,255,0.92);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 2px;
    position: relative;
    letter-spacing: 0.2px;
    transition: var(--transition);
}
.navbar.scrolled .nav-menu a { color: var(--text-color); }
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
    transition: var(--transition);
    border-radius: 1px;
}
.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }
.nav-menu a:hover { color: var(--secondary-color); }
.navbar.scrolled .nav-menu a:hover { color: var(--primary-color); }
.nav-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: var(--radius-xl);
    border: 1.5px solid rgba(255,255,255,0.3);
    transition: var(--transition);
}
.nav-phone:hover {
    border-color: var(--secondary-color);
    background: rgba(255,255,255,0.1);
}
.navbar.scrolled .nav-phone {
    color: var(--primary-color);
    border-color: var(--primary-light);
    background: var(--bg-light);
}
.nav-phone i { color: var(--secondary-color); }
.nav-phone a { color: inherit; text-decoration: none; }
.nav-phone a:hover { color: var(--secondary-color); }
.info-item a { color: var(--primary-color); text-decoration: none; font-weight: 600; }
.info-item a:hover { text-decoration: underline; }
.nav-toggle { display: none; }

/* ==================== 幻灯片横幅 ==================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
}
.heroSwiper {
    width: 100%;
    height: 100%;
}
.hero-slide {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(26,77,46,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(212,175,55,0.08) 0%, transparent 60%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>');
    background-size: 100% 100%, 100% 100%, 50px 50px;
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 0 24px;
}
.hero-content h1 {
    font-size: 3.8rem;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.35);
    animation: fadeInUp 0.8s var(--ease-out);
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.2;
}
.hero-content .slogan {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    letter-spacing: 3px;
    animation: fadeInUp 0.8s var(--ease-out) 0.15s both;
}
.hero-content .description {
    font-size: 1.15rem;
    max-width: 620px;
    margin: 0 auto 35px;
    opacity: 0.92;
    line-height: 1.8;
    animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease-out) 0.45s both;
}
/* Swiper 自定义样式 */
.heroSwiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.4);
    opacity: 1;
    transition: var(--transition);
}
.heroSwiper .swiper-pagination-bullet-active {
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
    width: 32px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(212,175,55,0.4);
}
.heroSwiper .swiper-button-next,
.heroSwiper .swiper-button-prev {
    color: var(--white);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    transition: var(--transition);
    display: none;
}
.swiper-initialized .swiper-button-next,
.swiper-initialized .swiper-button-prev {
    display: flex;
}
.heroSwiper .swiper-button-next:hover,
.heroSwiper .swiper-button-prev:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    transform: scale(1.08);
}
.heroSwiper .swiper-button-next::after,
.heroSwiper .swiper-button-prev::after {
    font-size: 1.1rem;
    font-weight: 600;
}
/* 统计条 */
.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 60px;
    background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.45));
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    padding: 28px 50px;
    z-index: 10;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.stat-item {
    text-align: center;
    position: relative;
}
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.2), transparent);
}
.stat-number {
    display: block;
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-shadow: 0 2px 8px rgba(212,175,55,0.3);
    letter-spacing: -0.5px;
}
.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    letter-spacing: 1px;
    margin-top: 4px;
}

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

/* ==================== 公司简介 ==================== */
.about {
    background: var(--bg-cream);
    position: relative;
    overflow: hidden;
}
.about::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(26,77,46,0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.about::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212,175,55,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.about-text h3 {
    font-size: 1.9rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-left: 18px;
}
.about-text h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
    border-radius: 2px;
}
.about-text > p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.9;
    font-size: 1.02rem;
}
.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
    border: 1px solid transparent;
}
.highlight-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(26,77,46,0.08);
}
.highlight-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(26,77,46,0.2);
}
.highlight-icon i { color: var(--white); font-size: 1.15rem; }
.highlight-text h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 600;
}
.highlight-text p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}
.about-image { position: relative; }
.image-placeholder {
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    min-height: 280px;
    max-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(212,175,55,0.15) 0%, transparent 50%);
    pointer-events: none;
}
.image-placeholder i { font-size: 4rem; margin-bottom: 15px; opacity: 0.85; position: relative; z-index: 1; }
.image-placeholder span { font-size: 1.2rem; opacity: 0.9; position: relative; z-index: 1; }

/* ==================== 响应式切换式产品菜单 ==================== */
.products {
    background: var(--bg-section-alt);
    position: relative;
}
.product-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}
.tab-btn {
    padding: 11px 26px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    background: var(--white);
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-xs);
}
.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.tab-btn.active {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}
.tab-price {
    font-size: 0.8rem;
    opacity: 0.8;
}
.tab-btn.active .tab-price { color: var(--secondary-color); }
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 28px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
}
.product-card:hover::before { opacity: 1; }
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(26,77,46,0.08);
}
.product-card .card-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: var(--primary-dark);
    padding: 4px 14px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-gold);
    font-weight: 600;
}
.product-card .card-zone {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 12px;
    font-weight: 500;
}
.product-card h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}
.product-card .card-type {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}
.product-card .card-price {
    background: linear-gradient(135deg, var(--bg-light), var(--bg-cream));
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 5px;
}
.card-price .price-symbol { color: var(--accent-color); font-size: 0.9rem; }
.card-price .price-value {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
}
.card-price .price-unit { color: var(--text-muted); font-size: 0.8rem; }
.card-price .price-original {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: line-through;
    margin-left: 8px;
}
.product-card .card-action {
    display: block;
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.product-card .card-action:hover { background: var(--primary-dark); }
.products-more {
    text-align: center;
    margin-top: 40px;
}
/* 产品卡片淡入动画 */
.product-card.fade-in {
    animation: cardFadeIn 0.4s ease forwards;
}
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== 服务项目 ==================== */
.services {
    background: var(--bg-cream);
    position: relative;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 24px;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px 22px 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    transition: var(--transition);
    border-radius: 3px 3px 0 0;
}
.service-card:hover::after { width: 60%; }
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(26,77,46,0.06);
}
.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--bg-light), rgba(26,77,46,0.08));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 18px;
    transition: var(--transition);
}
.service-card:hover .service-icon {
    background: var(--primary-gradient);
    box-shadow: 0 6px 16px rgba(26,77,46,0.25);
    transform: scale(1.08);
}
.service-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}
.service-card:hover .service-icon i { color: var(--white); }
.service-card h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}
.service-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }

/* ==================== 墓园环境 ==================== */
.environment {
    background: var(--white);
    position: relative;
}
.env-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}
.env-tab-btn {
    padding: 9px 22px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    background: var(--white);
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.env-tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}
.env-tab-btn.active {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}
.env-showcase {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 45px;
    align-items: start;
}
.env-gallery { position: relative; }
.env-main-image {
    margin-bottom: 15px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.env-main-image .env-placeholder {
    min-height: 280px;
    max-height: 380px;
    border-radius: var(--radius-lg);
    background: var(--primary-gradient);
    position: relative;
}
.env-main-image .env-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(212,175,55,0.1) 0%, transparent 50%);
    pointer-events: none;
}
.env-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.env-thumb {
    cursor: pointer;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}
.env-thumb.active {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-gold);
}
.env-thumb:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}
.thumb-placeholder {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
}
.env-info h3 {
    font-size: 1.7rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}
.env-info > p {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 25px;
}
.env-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 25px;
}
.env-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-color);
    padding: 6px 0;
}
.env-feature i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* ==================== 新闻资讯 ==================== */
.news {
    background: var(--bg-section-alt);
    position: relative;
}
.news-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}
.news-tab-btn {
    padding: 9px 24px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    background: var(--white);
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.news-tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}
.news-tab-btn.active {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 28px;
}
.news-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(26,77,46,0.06);
}
.news-thumb {
    position: relative;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.news-thumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.05));
    pointer-events: none;
}
.news-thumb-icon {
    font-size: 3.5rem;
    filter: grayscale(0.1);
    transition: var(--transition);
}
.news-card:hover .news-thumb-icon {
    transform: scale(1.15) rotate(3deg);
}
.news-thumb-date {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary-gradient);
    color: var(--white);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    box-shadow: var(--shadow-md);
    z-index: 1;
}
.news-thumb-date .day { font-size: 1.5rem; font-weight: 800; }
.news-thumb-date .month { font-size: 0.75rem; opacity: 0.9; letter-spacing: 0.5px; }
.news-body { padding: 22px; flex: 1; }
.news-body .news-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--bg-light), rgba(26,77,46,0.06));
    color: var(--primary-color);
    padding: 3px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 10px;
}
.news-body h3 {
    font-size: 1.08rem;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.5;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
}
.news-card:hover .news-body h3 { color: var(--primary-color); }
.news-body p {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-bottom: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}
.news-meta i { margin-right: 4px; }
.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}
.read-more:hover {
    color: var(--primary-dark);
    gap: 8px;
}

/* ==================== 联系我们 ==================== */
.contact {
    background: var(--white);
    position: relative;
    overflow: hidden;
}
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-light));
}
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 18px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: var(--bg-light);
}
.info-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}
.info-item > i {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(26,77,46,0.2);
}
.info-item h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 600;
}
.info-item p { color: var(--text-light); line-height: 1.6; }
.contact-form {
    background: var(--bg-light);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.04);
}
.contact-form h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
}
.form-group { margin-bottom: 20px; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background: var(--white);
    color: var(--text-color);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 77, 46, 0.08);
    background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group select { appearance: auto; cursor: pointer; }

/* ==================== 页脚 ==================== */
.footer {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #0a1f14 100%);
    color: var(--white);
    padding: 70px 0 20px;
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color), var(--secondary-color));
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 45px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 18px;
}
.footer-logo i {
    color: var(--secondary-color);
    filter: drop-shadow(0 2px 4px rgba(212,175,55,0.3));
}
.footer-info p { opacity: 0.8; }
.footer-desc { font-size: 0.9rem; margin-top: 12px; line-height: 1.7; opacity: 0.75; }
.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 22px;
    color: var(--secondary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}
.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 1px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
    opacity: 0.75;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer-links a::before {
    content: '›';
    opacity: 0;
    transition: var(--transition);
    color: var(--secondary-color);
}
.footer-links a:hover {
    opacity: 1;
    padding-left: 4px;
    color: var(--secondary-color);
}
.footer-links a:hover::before { opacity: 1; }
.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    opacity: 0.8;
    font-size: 0.95rem;
    transition: var(--transition);
}
.footer-contact p:hover { opacity: 1; }
.footer-contact i { color: var(--secondary-color); width: 18px; text-align: center; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 22px;
    text-align: center;
    opacity: 0.6;
    font-size: 0.88rem;
}
.footer-bottom a {
    color: var(--secondary-color);
    transition: var(--transition);
}
.footer-bottom a:hover { opacity: 0.8; }

/* ==================== AI客服悬浮窗 - PC端右侧 ==================== */
.chat-widget { position: fixed; bottom: 30px; right: 30px; z-index: 9999; }
.chat-toggle {
    display: flex; align-items: center; gap: 10px;
    background: var(--primary-gradient);
    padding: 14px 22px 14px 18px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(26,77,46,0.35);
    transition: var(--transition);
    position: relative;
    color: var(--white);
}
.chat-toggle::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}
.chat-toggle:hover::before { opacity: 0.4; }
.chat-toggle:hover { transform: translateY(-2px); box-shadow: 0 10px 35px rgba(26,77,46,0.45); }
.chat-toggle i { font-size: 1.4rem; }
.chat-toggle-label { font-size: 0.95rem; font-weight: 500; white-space: nowrap; }
.chat-badge {
    position: absolute; top: -5px; right: -5px;
    background: #e74c3c; color: var(--white);
    font-size: 0.75rem; padding: 2px 6px;
    border-radius: 10px; min-width: 18px; text-align: center;
}
/* 聊天窗口 - PC端 */
.chat-window {
    position: absolute; bottom: 70px; right: 0;
    width: 400px; height: 520px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 50px rgba(0,0,0,0.18);
    display: none; flex-direction: column;
    overflow: hidden;
    animation: chatSlideUp 0.35s var(--ease-out, cubic-bezier(0.16,1,0.3,1));
}
.chat-window.active { display: flex; }
@keyframes chatSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color), var(--primary-light));
    color: var(--white); padding: 16px 18px;
    display: flex; justify-content: space-between; align-items: center;
}
.chat-title { display: flex; align-items: center; gap: 12px; }
.chat-avatar-header {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
}
.chat-avatar-header i { font-size: 1.1rem; }
.chat-title-text { display: flex; flex-direction: column; }
.chat-title-text span { font-weight: 600; font-size: 0.95rem; }
.chat-title-text small { font-size: 0.75rem; opacity: 0.8; }
.chat-header-actions { display: flex; gap: 6px; }
.chat-minimize, .chat-close {
    background: rgba(255,255,255,0.15); border: none; color: var(--white);
    cursor: pointer; padding: 6px 8px; border-radius: 6px;
    opacity: 0.85; transition: var(--transition);
    font-size: 0.85rem;
}
.chat-minimize:hover, .chat-close:hover { opacity: 1; background: rgba(255,255,255,0.25); }
.chat-messages { flex: 1; padding: 16px; overflow-y: auto; background: var(--bg-light); }
.message { margin-bottom: 15px; display: flex; gap: 10px; }
.message-avatar {
    width: 35px; height: 35px;
    background: var(--primary-color); border-radius: 50%;
    display: flex; justify-content: center; align-items: center; flex-shrink: 0;
}
.message-avatar i { color: var(--white); font-size: 0.9rem; }
.message-content {
    background: var(--white); padding: 12px 15px;
    border-radius: 15px; max-width: 85%;
    font-size: 0.95rem; line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.user-message { flex-direction: row-reverse; }
.user-message .message-content { background: var(--primary-color); color: var(--white); }
.bot-message .message-content .phone { color: var(--secondary-color); font-weight: 600; }
.typing-indicator .message-content { display: flex; gap: 5px; padding: 15px 20px; }
.typing-indicator .dot {
    width: 8px; height: 8px;
    background: var(--text-muted); border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}
.typing-indicator .dot:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator .dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}
.chat-input {
    padding: 14px; border-top: 1px solid var(--border-color);
    display: flex; gap: 10px; background: var(--white);
}
.chat-input input {
    flex: 1; padding: 12px 16px;
    border: 1.5px solid var(--border-color); border-radius: 25px;
    font-size: 0.95rem; outline: none; transition: var(--transition);
}
.chat-input input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(45,90,74,0.1); }
.chat-input button {
    width: 45px; height: 45px;
    background: var(--primary-gradient); border: none; border-radius: 50%;
    color: var(--white); cursor: pointer; transition: var(--transition);
}
.chat-input button:hover { transform: scale(1.05); box-shadow: var(--shadow-primary); }
/* 建议按钮 */
.chat-suggestions {
    display: flex; flex-wrap: wrap; gap: 8px;
    padding: 8px 0; margin-top: 5px;
}
.suggestion-btn {
    padding: 6px 14px;
    background: var(--bg-light); border: 1px solid var(--border-color);
    border-radius: 15px; font-size: 0.82rem;
    color: var(--primary-color); cursor: pointer;
    transition: var(--transition);
}
.suggestion-btn:hover {
    background: var(--primary-color); color: var(--white);
    border-color: var(--primary-color);
}

/* ==================== 手机端底部浮动栏 ==================== */
.mobile-bottom-bar {
    display: none; /* PC端隐藏 */
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 9998;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: 0;
    height: 56px;
}
.mobile-bar-phone, .mobile-bar-chat {
    flex: 1; display: flex; align-items: center; justify-content: center;
    gap: 8px; border: none; cursor: pointer;
    font-size: 0.9rem; font-weight: 600;
    height: 100%; transition: var(--transition);
    text-decoration: none;
}
.mobile-bar-phone {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: var(--white);
}
.mobile-bar-phone i { font-size: 1.1rem; }
.mobile-bar-chat {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    position: relative;
    font-family: inherit;
}
.mobile-bar-chat i { font-size: 1.1rem; }
.mobile-chat-dot {
    width: 8px; height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* 页脚SEO标签 */
.footer-tags {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px;
}
.footer-tags span {
    padding: 4px 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
}
.footer-seo {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    margin-top: 8px;
}

/* ==================== 回到顶部 ==================== */
.back-to-top {
    position: fixed; bottom: 100px; right: 30px;
    width: 46px; height: 46px;
    background: var(--primary-gradient); color: var(--white);
    border: none; border-radius: 50%;
    font-size: 1.2rem; cursor: pointer;
    opacity: 0; visibility: hidden;
    transition: var(--transition); z-index: 998;
    box-shadow: 0 4px 16px rgba(26,77,46,0.25);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(26,77,46,0.35);
}

/* ==================== 加载/提示/动画 ==================== */
.loading {
    display: inline-block; width: 20px; height: 20px;
    border: 2px solid #f3f3f3; border-top: 2px solid var(--primary-color);
    border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.toast {
    position: fixed; top: 100px; left: 50%;
    transform: translateX(-50%);
    padding: 16px 32px;
    background: var(--primary-gradient); color: var(--white);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
    z-index: 10000; animation: slideDown 0.3s var(--ease-out);
    font-weight: 500;
    backdrop-filter: blur(8px);
}
@keyframes slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-aos].animated { opacity: 1; transform: translateY(0); }
/* 滚动条美化 */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-light), var(--primary-color));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }
/* 全局选中文字颜色 */
::selection {
    background: rgba(26,77,46,0.15);
    color: var(--primary-dark);
}

/* ==================== 响应式设计 ==================== */

/* ---------- 大平板/小桌面 (≤1200px) ---------- */
@media (max-width: 1200px) {
    .container { max-width: 960px; }
    .hero-content h1 { font-size: 3rem; }
    .hero-stats { gap: 40px; padding: 22px 40px; }
    .footer-content { grid-template-columns: 1.5fr 1fr 1fr; gap: 35px; }
    .news-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

/* ---------- 平板横屏 (≤992px) ---------- */
@media (max-width: 992px) {
    .container { max-width: 720px; }
    /* 导航栏 - 汉堡菜单 */
    .nav-menu {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(255,255,255,0.96);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        z-index: 999;
        gap: 0;
    }
    .nav-menu.active { display: flex; }
    .nav-menu li { width: 100%; text-align: center; }
    .nav-menu li a {
        display: block;
        padding: 16px 20px;
        font-size: 1.15rem;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-color);
    }
    .nav-menu li a:hover,
    .nav-menu li a.active { color: var(--primary-color); background: var(--bg-light); }
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--white);
        cursor: pointer;
        padding: 8px 12px;
        z-index: 1001;
        transition: var(--transition);
    }
    .navbar.scrolled .nav-toggle { color: var(--primary-color); }
    .nav-phone { display: none; }
    .about-content { grid-template-columns: 1fr; gap: 35px; }
    .about-image { order: -1; }
    .image-placeholder { min-height: 220px; max-height: 300px; }
    .contact-content { grid-template-columns: 1fr; gap: 35px; }
    .env-showcase { grid-template-columns: 1fr; gap: 30px; }
    .env-main-image .env-placeholder { min-height: 240px; max-height: 340px; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-links h4::after,
    .footer-contact h4::after { left: 50%; transform: translateX(-50%); }
    .footer-links ul { align-items: center; }
    .footer-contact p { justify-content: center; }
    .hero-stats { gap: 30px; padding: 20px 30px; }
    .hero-content h1 { font-size: 2.6rem; }
    .hero-content .slogan { font-size: 1.5rem; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
    .services-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
    .section { padding: 65px 0; }
    .section-header { margin-bottom: 40px; }
}

/* ---------- 平板竖屏 / 大手机横屏 (≤768px) ---------- */
@media (max-width: 768px) {
    /* 幻灯片 */
    .hero-slider { min-height: 500px; height: 80vh; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content .slogan { font-size: 1.3rem; }
    .hero-content .description { font-size: 1rem; }
    .heroSwiper .swiper-button-next,
    .heroSwiper .swiper-button-prev { display: none !important; }
    .hero-stats {
        flex-wrap: wrap;
        gap: 15px;
        padding: 18px 20px;
    }
    .stat-item { flex: 1 1 40%; min-width: 120px; }
    .stat-number { font-size: 1.8rem; }
    .stat-label { font-size: 0.85rem; }

    /* 通用 */
    .section { padding: 50px 0; }
    .section-header { margin-bottom: 35px; }
    .section-header h2 { font-size: 1.8rem; }
    .section-header p { font-size: 1rem; }

    /* 公司简介 */
    .about-text h3 { font-size: 1.5rem; }
    .about-highlights { grid-template-columns: 1fr; gap: 15px; }
    .highlight-item { padding: 12px; }

    /* 产品菜单 */
    .product-tabs, .env-tabs, .news-tabs {
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        padding-bottom: 5px;
        flex-wrap: nowrap;
    }
    .product-tabs::-webkit-scrollbar,
    .env-tabs::-webkit-scrollbar,
    .news-tabs::-webkit-scrollbar { display: none; }
    .tab-btn { padding: 8px 16px; font-size: 0.85rem; white-space: nowrap; flex-shrink: 0; }
    .env-tab-btn { white-space: nowrap; flex-shrink: 0; }
    .news-tab-btn { white-space: nowrap; flex-shrink: 0; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .product-card { padding: 18px; }
    .product-card h3 { font-size: 1.05rem; }
    .card-price .price-value { font-size: 1.2rem; }

    /* 服务 */
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .service-card { padding: 22px 15px; }

    /* 墓园环境 */
    .env-info h3 { font-size: 1.3rem; }
    .env-features { grid-template-columns: 1fr; gap: 10px; }
    .env-thumbnails { grid-template-columns: repeat(4, 1fr); gap: 8px; }

    /* 新闻 */
    .news-grid { grid-template-columns: 1fr; gap: 18px; }
    .news-card { flex-direction: row; }
    .news-thumb { height: 120px; min-width: 160px; max-width: 160px; }
    .news-thumb-icon { font-size: 2.5rem; }
    .news-thumb-date { top: 8px; left: 8px; padding: 6px 10px; }
    .news-thumb-date .day { font-size: 1.2rem; }
    .news-thumb-date .month { font-size: 0.7rem; }
    .news-body { padding: 15px; }
    .news-body h3 { font-size: 0.95rem; }

    /* 联系 */
    .contact-form { padding: 25px 20px; }
    .contact-form h3 { font-size: 1.15rem; }

    /* 页脚 */
    .footer { padding: 45px 0 15px; }
    .footer-logo { justify-content: center; font-size: 1.3rem; }

    /* AI客服 - 平板端 */
    .chat-toggle-label { display: none; }
    .chat-toggle { padding: 16px; border-radius: 50%; }
    .chat-widget { bottom: 20px; right: 20px; }
    .chat-window {
        width: calc(100vw - 30px);
        right: -10px;
        bottom: 70px;
        height: 450px;
    }
    .back-to-top { bottom: 85px; right: 20px; width: 40px; height: 40px; font-size: 1rem; }
}

/* ---------- 手机竖屏 (≤480px) ---------- */
@media (max-width: 480px) {
    .container { padding: 0 15px; }

    /* 导航 */
    .logo { font-size: 1.2rem; gap: 8px; }
    .logo i { font-size: 1.4rem; }
    .nav-container { padding: 12px 15px; }

    /* 幻灯片 */
    .hero-slider { min-height: 420px; height: 70vh; }
    .hero-content { padding: 0 15px; }
    .hero-content h1 { font-size: 1.8rem; line-height: 1.3; }
    .hero-content .slogan { font-size: 1.1rem; }
    .hero-content .description { font-size: 0.9rem; margin-bottom: 20px; }
    .hero-buttons { flex-direction: column; gap: 10px; align-items: center; }
    .hero-buttons .btn { width: 80%; max-width: 260px; text-align: center; }
    .hero-stats { gap: 10px; padding: 15px; }
    .stat-item { flex: 1 1 45%; }
    .stat-number { font-size: 1.5rem; }
    .stat-label { font-size: 0.78rem; }

    /* 通用 */
    .section { padding: 40px 0; }
    .section-header { margin-bottom: 28px; }
    .section-header h2 { font-size: 1.5rem; }
    .section-header p { font-size: 0.9rem; }

    /* 公司简介 */
    .about-text h3 { font-size: 1.3rem; }
    .about-text > p { font-size: 0.92rem; line-height: 1.7; }
    .image-placeholder { min-height: 180px; max-height: 250px; }
    .image-placeholder i { font-size: 3rem; }

    /* 产品 */
    .product-tabs { gap: 5px; }
    .tab-btn { padding: 6px 12px; font-size: 0.8rem; }
    .tab-price { display: none; }
    .products-grid { grid-template-columns: 1fr; gap: 15px; }
    .product-card { padding: 18px; }
    .product-card .card-badge { top: 10px; right: 10px; font-size: 0.7rem; }
    .card-price .price-value { font-size: 1.3rem; }
    .products-more { margin-top: 25px; }

    /* 服务 */
    .services-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .service-card { padding: 18px 12px; }
    .service-card h3 { font-size: 0.95rem; }
    .service-card p { font-size: 0.82rem; }
    .service-icon { width: 50px; height: 50px; }

    /* 墓园环境 */
    .env-main-image .env-placeholder { min-height: 200px; max-height: 280px; }
    .env-thumbnails { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .env-info h3 { font-size: 1.15rem; }
    .env-info > p { font-size: 0.9rem; }

    /* 新闻 */
    .news-card { flex-direction: column; }
    .news-thumb { height: 120px; min-width: unset; max-width: unset; }
    .news-thumb-icon { font-size: 2.2rem; }
    .news-thumb-date .day { font-size: 1.1rem; }
    .news-body h3 { font-size: 0.9rem; -webkit-line-clamp: 2; }
    .news-body p { font-size: 0.82rem; -webkit-line-clamp: 2; }
    .news-meta { font-size: 0.75rem; }

    /* 联系 */
    .contact-form { padding: 20px 15px; }
    .form-group input,
    .form-group textarea,
    .form-group select { padding: 12px 14px; font-size: 0.95rem; }
    .info-item > i { width: 42px; height: 42px; font-size: 1rem; }
    .info-item h4 { font-size: 0.95rem; }
    .info-item p { font-size: 0.88rem; }

    /* 页脚 */
    .footer { padding: 35px 0 15px; }
    .footer-content { gap: 25px; margin-bottom: 25px; }
    .footer-logo { font-size: 1.2rem; }
    .footer-links h4,
    .footer-contact h4 { font-size: 1rem; margin-bottom: 15px; }
    .footer-bottom { font-size: 0.8rem; }

    /* AI客服 - 手机端：隐藏浮动按钮，显示底部栏 */
    .chat-toggle { display: none; }
    .mobile-bottom-bar { display: flex; }
    .chat-widget { bottom: auto; right: auto; top: 0; left: 0; }
    .chat-window {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100%; height: 100%;
        border-radius: 0;
        z-index: 10000;
    }
    /* 手机端页面底部留出空间给浮动栏 */
    .footer { padding-bottom: 70px; }
    .back-to-top { bottom: 75px; right: 15px; width: 38px; height: 38px; }
}

/* ---------- 超小屏幕 (≤360px) ---------- */
@media (max-width: 360px) {
    .hero-content h1 { font-size: 1.5rem; }
    .hero-content .slogan { font-size: 1rem; }
    .hero-slider { min-height: 380px; }
    .stat-item { flex: 1 1 100%; }
    .hero-stats { flex-direction: column; align-items: center; gap: 8px; }
    .services-grid { grid-template-columns: 1fr; }
    .env-thumbnails { grid-template-columns: repeat(3, 1fr); }
    .section-header h2 { font-size: 1.3rem; }
    .about-text h3 { font-size: 1.15rem; }
    .logo { font-size: 1.1rem; }
    .logo i { font-size: 1.2rem; }
}

/* ---------- 横屏模式优化 ---------- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-slider { min-height: 100vh; height: 100vh; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content .slogan { font-size: 1.1rem; }
    .hero-content .description { display: none; }
    .hero-stats { padding: 12px 20px; gap: 20px; }
    .stat-number { font-size: 1.4rem; }
    .nav-menu.active { padding-top: 10px; gap: 0; }
    .nav-menu li a { padding: 10px 20px; font-size: 1rem; }
}

/* ---------- 触控设备优化 ---------- */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover { transform: none; box-shadow: var(--shadow); }
    .service-card:hover { transform: none; }
    .news-card:hover { transform: none; }
    .highlight-item:hover { transform: none; }
    .btn-primary:hover { transform: none; }
    .back-to-top:hover { transform: none; }
    .tab-btn, .env-tab-btn, .news-tab-btn { min-height: 44px; }
    .nav-menu li a { min-height: 48px; display: flex; align-items: center; justify-content: center; }
    .card-action { min-height: 44px; display: flex; align-items: center; justify-content: center; }
    .btn { min-height: 44px; }
}

/* ---------- 高分辨率屏幕 ---------- */
@media (min-width: 1400px) {
    .container { max-width: 1320px; }
    .hero-content h1 { font-size: 4rem; }
    .hero-content .slogan { font-size: 2rem; }
    .products-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 打印样式 ---------- */
@media print {
    .navbar, .chat-widget, .back-to-top, .hero-slider { display: none; }
    .section { padding: 20px 0; page-break-inside: avoid; }
    body { color: #000; }
    a { color: #000; text-decoration: underline; }
}
