/* --- 全局重置与基础样式 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- 核心布局容器 --- */
.container {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 1. 头部导航 --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0; /* 初始内边距稍大，显得大气 */
    
    /* 核心样式：默认透明 */
    background-color: transparent; 
    transition: all 0.4s ease; /* 平滑过渡动画 */
    
    /* 确保文字在透明背景下（深色Banner）是白色的 */
    color: #fff; 
}

/* 当添加 .scrolled 类时的样式 */
header.scrolled {
    background-color: #ffffff; /* 背景变白 */
    padding: 15px 0; /* 滚动后高度稍微缩小一点，更紧凑 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* 添加柔和阴影 */
    color: #333; /* 文字变深色 */
}

/* Logo 样式适配 */
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: inherit; /* 继承 header 的颜色 (白 或 黑) */
    text-decoration: none;
    transition: color 0.3s;
    letter-spacing: -0.5px;
}

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

/* 导航链接样式适配 */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: inherit; /* 继承 header 的颜色 */
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s, opacity 0.3s;
    position: relative;
}

/* 链接悬停效果 */
.nav-links li a:hover {
    color: #007bff; /* 悬停时始终显示品牌蓝 */
    opacity: 1;
}

/* 移动端菜单按钮颜色适配 */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit; /* 继承 header 颜色 */
}

.logo a{
    font-size: 32px;
    font-weight: 600;
    background-image: -webkit-linear-gradient(45deg, #ff9200, #ff0404);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-animation: hue 5s infinite linear;
}
@-webkit-keyframes hue {
    from {-webkit-filter: hue-rotate(0deg);}
    to {-webkit-filter: hue-rotate(-360deg);}
}



/* --- 2. Banner 区域 --- */
/* =========================================
   Hero Banner 样式
   ========================================= */

.banner {
    position: relative;
    padding: 160px 0 100px; /* 顶部留白更多 */
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #007bff 100%);
    color: #fff;
    min-height: 85vh; /* 占据大部分视口 */
    display: flex;
    align-items: center;
}

/* --- 1. 动态背景动画 --- */
.hero-bg-animation {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* 浮动光斑 (Blobs) */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatBlob 10s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px; height: 400px;
    background: #7b2cbf;
    top: -100px; left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px; height: 500px;
    background: #007bff;
    bottom: -150px; right: -100px;
    animation-delay: -2s;
}

.blob-3 {
    width: 300px; height: 300px;
    background: #00d2ff;
    top: 40%; left: 40%;
    animation-delay: -4s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* 网格覆盖层 */
.grid-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* --- 2. 内容布局 --- */
.banner-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* 左文右图 */
    gap: 50px;
    align-items: center;
}

.hero-text-wrapper {
    max-width: 650px;
}

/* --- 3. 排版细节 --- */
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #00d2ff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.2);
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(to right, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 90%;
}

/* --- 4. 按钮组增强 --- */
.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.btn-glow {
    position: relative;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 35px rgba(0, 123, 255, 0.8);
    transform: translateY(-3px);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

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

.play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #fff;
    color: #007bff;
    border-radius: 50%;
    font-size: 10px;
    margin-right: 8px;
}

/* --- 5. 信任背书 --- */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-item {
    display: flex;
    flex-direction: column;
}

.trust-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.trust-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* --- 6. 右侧视觉装饰 (浮动卡片) --- */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    position: absolute;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: floatCard 6s infinite ease-in-out;
    border: 4px solid rgba(255, 255, 255, 0.1);
}

/* 让图片稍微变暗并带一点蓝色调，以融合背景 */
.floating-card img {
    /* 保持原有样式 */
    display: block;
    width: 100%;
    height: auto;
    
    /* 新增：混合模式，让图片看起来更像UI截图 */
    mix-blend-mode: multiply; 
    /* 或者使用滤镜稍微去色并加蓝 */
    filter: saturate(1.2) contrast(1.1);
}

/* 如果需要更强烈的融合效果，可以使用伪元素加渐变 */
.floating-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.2) 0%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none; /* 确保不阻挡点击 */
    border-radius: 11px; /* 略小于父元素的 border-radius */
}

.card-1 {
    width: 320px;
    z-index: 2;
    top: 50px;
    right: 20px;
    animation-delay: 0s;
}

.card-2 {
    width: 220px;
    z-index: 3;
    bottom: 80px;
    left: 20px;
    animation-delay: -3s;
    border: 4px solid #fff;
}

.circle-decor {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.circle-1 {
    width: 400px; height: 400px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 20s linear infinite;
}

.circle-2 {
    width: 550px; height: 550px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-style: dashed;
    animation: spin-reverse 30s linear infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spin-reverse {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0deg); }
}

/* --- 7. 底部波浪 --- */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 100px; /* 调整波浪高度 */
}

/* --- 8. 入场动画类 --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: fadeInRight 1s forwards ease-out;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

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

@keyframes fadeInRight {
    to { opacity: 1; transform: translateX(0); }
}

/* --- 9. 响应式调整 --- */
@media (max-width: 992px) {
    .banner {
        padding: 120px 0 80px;
        min-height: auto;
        text-align: center;
    }
    
    .banner-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-text-wrapper {
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .hero-visual {
        height: 400px;
        margin: 0 auto;
        max-width: 500px;
    }
    
    .card-1 { right: 0; }
    .card-2 { left: 0; }
}
@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-lg {
        width: 100%;
        justify-content: center;
    }
    
    .hero-trust {
        flex-wrap: wrap;
        gap: 15px 30px;
    }
    
    .trust-divider {
        display: none; /* 手机端隐藏分隔线 */
    }
    
    .hero-wave svg {
        height: 60px;
    }
}

/* --- 通用 Section --- */
.section { padding: 60px 0; }
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #007bff;
    margin: 10px auto 0;
}

/* --- 3. 分类区域 --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.category-card {
    background: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    cursor: pointer;
}
.category-card:hover { transform: translateY(-5px); }
.category-icon { font-size: 40px; margin-bottom: 15px; color: #007bff; }

/* --- 4. 橱窗展示 --- */
.showcase-bg { background-color: #f1f4f8; }
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(386px, 1fr));
    gap: 30px;
}
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
}
.product-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.product-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 14px;
}
.p-img-1 { background: #e3f2fd; } .p-img-2 { background: #ffebee; }
.p-img-3 { background: #e8f5e9; } .p-img-4 { background: #fff3e0; }
.p-img-5 { background: #f3e5f5; } .p-img-6 { background: #eceff1; }

.product-info { padding: 20px; }
.product-title { font-size: 1.1rem; margin-bottom: 10px; font-weight: bold; }
.product-price { color: #e74c3c; font-weight: bold; font-size: 1.2rem; }

/* --- 5. 联系方式 --- */
.contact-section { background: #fff; }
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}
.contact-info, .contact-form { flex: 1; min-width: 300px; }
.contact-desc { margin-bottom: 20px; color: #666; }
.info-item { margin-bottom: 20px; display: flex; align-items: center; gap: 15px; }
.form-group { margin-bottom: 15px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}
.form-group textarea { height: 120px; resize: vertical; }
.submit-btn {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}
.submit-btn:hover { background: #0056b3; }

/* --- 6. 底部 --- */
footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    text-align: center;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
    text-align: left;
}
.footer-col { flex: 1; min-width: 200px; margin-bottom: 20px; padding: 0 15px; }
.footer-col h4 { margin-bottom: 15px; color: #fff; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #bdc3c7; }
.footer-col ul li a:hover { color: #fff; }
.footer-desc { color: #bdc3c7; font-size: 0.9rem; }
.copyright {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #95a5a6;
}

/* --- 页面顶部 Hero 区域 --- */
.page-hero {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    padding: 100px 0 60px;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

        /* --- 关于我们内容块 --- */
.about-story {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.about-image {
    flex: 1;
    height: 400px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
        /* 模拟图片占位 */
.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dee2e6;
    color: #6c757d;
    font-size: 1.2rem;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
}

        /* --- 核心价值观 --- */
.values-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
}

.value-card h3 {
    margin-bottom: 15px;
    color: #007bff;
}

        /* --- 数据统计栏 --- */
.stats-section {
    background: #007bff;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    flex: 1;
    min-width: 200px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

        /* --- 团队介绍 --- */
.team-section {
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s;
}

.team-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.team-img {
    height: 250px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 14px;
}

.team-info {
    padding: 20px;
}

.team-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.team-role {
    color: #007bff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.team-bio {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

        /* --- 时间轴 (发展历程) --- */
.timeline-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
}
        /* 中间的线 */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #007bff;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: 1px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    right: -16px;
    background-color: #fff;
    border: 4px solid #007bff;
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
    text-align: right;
}

.right {
    left: 50%;
    text-align: left;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.timeline-year {
    font-weight: bold;
    color: #007bff;
    font-size: 1.2rem;
    margin-bottom: 5px;
    display: block;
}


/* =========================================
   联系页面样式
   ========================================= */

/* --- 1. Hero 区域 --- */
.contact-hero {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    padding: 100px 0 60px;
    text-align: center;
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.contact-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* --- 2. 主布局网格 --- */
.contact-main {
    background-color: #f9f9f9;
    padding-bottom: 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* 左侧信息占1份，右侧表单占1.5份 */
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

/* --- 3. 左侧联系信息卡片 --- */
.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid transparent;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-left-color: #007bff;
}

.icon-box {
    font-size: 28px;
    background: #eef6ff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #2c3e50;
}

.info-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* --- 4. 右侧表单区域 --- */
.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-form-wrapper h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.form-desc {
    color: #666;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fcfcfc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    background-color: #fff;
}

.submit-btn-large {
    width: 100%;
    padding: 15px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
}

.submit-btn-large:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.submit-btn-large:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* --- 5. 地图区域 --- */
.map-section {
    margin-top: 80px;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    background: #e9ecef;
}

/* 模拟地图样式 (实际使用时可替换为 iframe) */
.mock-map {
    width: 100%;
    height: 100%;
    background-image: url('/skin/images/map.jpg');
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.map-pin {
    font-size: 40px;
    animation: bounce 2s infinite;
    z-index: 2;
}

.map-pin + p {
    background: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    margin-top: 10px;
    z-index: 2;
}

.map-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.map-controls span {
    width: 30px;
    height: 30px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    user-select: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}


/* =========================================
   模板列表页样式
   ========================================= */

/* --- 1. Hero 区域增强 --- */
.templates-hero {
    padding-bottom: 40px;
}

.search-bar-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.search-bar-container input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border-radius: 30px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-size: 1rem;
    outline: none;
}

.search-bar-container .search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 40px;
    border-radius: 50%;
    border: none;
    background: #007bff;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.search-bar-container .search-btn:hover {
    background: #0056b3;
}

/* --- 2. 主布局 (侧边栏 + 内容) --- */
.catalog-section {
    background-color: #f9f9f9;
    padding-top: 40px;
}

.catalog-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* --- 3. 侧边栏筛选 --- */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 90px; /* 跟随滚动 */
}

.filter-group {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.filter-list {
    list-style: none;
    padding: 0;
}

.filter-list li {
    margin-bottom: 10px;
}

.filter-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #555;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.filter-list label:hover {
    color: #007bff;
}

.filter-list input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #007bff;
}

/* 价格滑块 */
.price-range {
    padding: 0 5px;
}
.slider {
    width: 100%;
    height: 6px;
    background: #ddd;
    outline: none;
    border-radius: 3px;
    appearance: none;
}
.slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    transition: background .15s ease-in-out;
}
.price-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    font-weight: bold;
}

.sort-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    background: #fff;
}

.apply-filter-btn {
    width: 100%;
    padding: 12px;
    background: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.apply-filter-btn:hover {
    background: #1a252f;
}

/* --- 4. 产品网格区域 --- */
.product-grid-area {
    flex: 1;
    min-width: 0; /* 防止溢出 */
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9rem;
}

.view-toggle button {
    background: #fff;
    border: 1px solid #ddd;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
    border-radius: 4px;
}

.view-toggle button.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* 网格布局 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* 产品卡片增强版 */
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 14px;
    background-size: cover;
    background-position: center;
}

.img-placeholder {
    z-index: 1;
    font-weight: bold;
    opacity: 0.6;
}

/* 标签 Badge */
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    z-index: 2;
}
.badge.new { background: #2ecc71; }
.badge.hot { background: #e74c3c; }
.badge.free { background: #f39c12; }

/* 悬停遮罩层 */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3;
}

.product-card:hover .card-overlay {
    opacity: 1;
}

.btn-preview, .btn-buy {
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.product-card:hover .btn-preview,
.product-card:hover .btn-buy {
    transform: translateY(0);
}

.btn-preview {
    background: #fff;
    color: #333;
}
.btn-preview:hover { background: #f0f0f0; }

.btn-buy {
    background: #007bff;
    color: #fff;
}
.btn-buy:hover { background: #0056b3; }

.card-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-cat {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 15px;
}

.product-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f5f5f5;
    padding-top: 15px;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e74c3c;
}

.rating {
    font-size: 0.85rem;
    color: #f1c40f;
}

/* --- 5. 分页 --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}

.page-link:hover {
    border-color: #007bff;
    color: #007bff;
}

.page-link.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.page-link.dots {
    border: none;
    cursor: default;
}


/* =========================================
   产品详情页样式
   ========================================= */

/* --- 1. Hero 区域布局 --- */
.product-hero-section {
    padding: 60px 0;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.product-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: start;
}

/* 左侧图片 */
.hero-image-wrapper .main-thumbnail {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.hero-image-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.3s;
}

.img-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.thumbnail-strip {
    display: flex;
    gap: 10px;
}

.thumb-item {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.thumb-item:hover, .thumb-item.active {
    opacity: 1;
    border-color: #007bff;
}

/* 右侧信息 */
.breadcrumb {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
}
.breadcrumb a { color: #888; text-decoration: none; }
.breadcrumb a:hover { color: #007bff; }

.product-title-large {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.2;
}

.product-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-short-desc {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
}

.feature-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.feature-tags span {
    background: #f0f7ff;
    color: #007bff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.price-display {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-price {
    font-size: 2rem;
    font-weight: bold;
    color: #e74c3c;
}

.original-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background: #ffebee;
    color: #e74c3c;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-lg {
    padding: 14px 20px;
    font-size: 1.1rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
}
.btn-outline-primary:hover {
    background: #007bff;
    color: #fff;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}
.btn-secondary:hover {
    background: #5a6268;
}

.btn-primary {
    background: #007bff;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}
.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.trust-badges {
    color: #888;
    font-size: 0.85rem;
    text-align: center;
}

/* --- 2. 详情内容区 --- */
.product-details-content {
    padding: 60px 0;
    background: #f9f9f9;
}

.detail-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    border-bottom: 2px solid #eee;
}

.tab-link {
    background: none;
    border: none;
    font-size: 1.1rem;
    padding: 10px 0;
    color: #666;
    cursor: pointer;
    position: relative;
    font-weight: 600;
}

.tab-link.active {
    color: #007bff;
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #007bff;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s;
}
.tab-content.active { display: block; }

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

/* 轮播样式 */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #000;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    cursor: zoom-in;
}

.carousel-slide img {
    width: 100%;
    display: block;
}

.zoom-hint {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
}
.carousel-slide:hover .zoom-hint { opacity: 1; }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    transition: background 0.3s;
    z-index: 10;
}
.carousel-btn:hover { background: #fff; }
.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

.carousel-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.carousel-thumbnails img {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
}
.carousel-thumbnails img.active {
    opacity: 1;
    border-color: #007bff;
}

/* 富文本与表格 */
.rich-text-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    line-height: 1.8;
    color: #444;
}
.rich-text-content h2, .rich-text-content h3 { color: #2c3e50; margin-top: 30px; }
.rich-text-content ul { margin-bottom: 20px; }
.rich-text-content li { margin-bottom: 10px; }

.specs-table {
    width: 100%;
    background: #fff;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
}
.specs-table th, .specs-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.specs-table th {
    background: #f8f9fa;
    width: 20%;
    color: #555;
    font-weight: 600;
}
.specs-table tr:last-child td, .specs-table tr:last-child th { border-bottom: none; }

/* --- 3. 弹窗 (Modal) --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    animation: slideDown 0.3s;
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
}
.close-modal:hover { color: #333; }

.qr-container, .payment-options {
    margin: 30px 0;
}

.qr-container img, .qr-box img {
    width: 200px;
    height: 200px;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 8px;
}

.payment-options {
    display: flex;
    justify-content: center;
    gap: 30px;
}
.qr-box p { margin-top: 10px; font-weight: bold; color: #555; }

.modal-footer-note {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    color: #666;
    font-size: 0.85rem;
}

/* --- 4. Lightbox (全屏) --- */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.close-lightbox {
    position: absolute;
    top: 30px; right: 40px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}


/* =========================================
   新闻资讯页样式
   ========================================= */

/* --- 1. Hero 区域 --- */
.news-hero {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    padding: 80px 0 60px;
    text-align: center;
}

.news-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.news-search-box {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.news-search-box input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 30px 0 0 30px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.news-search-box button {
    padding: 12px 25px;
    border-radius: 0 30px 30px 0;
    border: none;
    background: #004494;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.news-search-box button:hover {
    background: #003370;
}

/* --- 2. 主布局 --- */
.news-section {
    background-color: #f9f9f9;
    padding-top: 40px;
    padding-bottom: 60px;
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr 320px; /* 左侧自适应，右侧固定320px */
    gap: 40px;
    align-items: start;
}

/* --- 3. 分类 Tabs --- */
.category-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none; /* Firefox 隐藏滚动条 */
}
.category-tabs::-webkit-scrollbar { display: none; } /* Chrome 隐藏滚动条 */

.tab-item {
    text-decoration: none;
    color: #666;
    padding: 8px 16px;
    border-radius: 20px;
    background: #fff;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.tab-item:hover, .tab-item.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* --- 4. 文章卡片 --- */
.articles-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/*  Featured (大图) 样式 */
.news-card.featured {
    flex-direction: column;
}
.news-card.featured .card-image {
    height: 350px;
}
.news-card.featured .card-content {
    padding: 30px;
}

/* Standard (列表) 样式 */
.news-card.standard {
    flex-direction: row;
}
.news-card.standard .card-image {
    width: 300px;
    flex-shrink: 0;
    height: 200px;
}
.news-card.standard .card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 卡片内部通用样式 */
.card-image {
    position: relative;
    overflow: hidden;
    background: #eee;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
    z-index: 2;
    text-transform: uppercase;
}
.badge.hot { background: #e74c3c; }
.badge.new { background: #2ecc71; }
.badge.guide { background: #f39c12; }

.card-content {
    flex: 1;
}

.meta-info {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 12px;
}

.meta-info .category {
    color: #007bff;
    font-weight: 600;
}

.article-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}
.news-card.standard .article-title {
    font-size: 1.2rem;
}

.article-title a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.2s;
}
.article-title a:hover {
    color: #007bff;
}

.article-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #f5f5f5;
    padding-top: 15px;
}

.read-more {
    text-decoration: none;
    color: #007bff;
    font-weight: 600;
    font-size: 0.95rem;
    transition: padding-left 0.2s;
}
.read-more:hover {
    padding-left: 5px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
}
.author-info img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* --- 5. 侧边栏小工具 --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #2c3e50;
    border-left: 4px solid #007bff;
    padding-left: 12px;
}

/* 个人简介 */
.widget-profile {
    text-align: center;
}
.profile-img img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #eef6ff;
}
.widget-profile h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.widget-profile p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}
.social-links a {
    display: inline-block;
    margin: 0 5px;
    font-size: 1.2rem;
    color: #666;
    transition: color 0.3s;
}
.social-links a:hover { color: #007bff; }

/* 热门文章列表 */
.popular-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}
.popular-posts li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}
.popular-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.post-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ddd;
    min-width: 25px;
}
.popular-posts li:nth-child(1) .post-number { color: #e74c3c; }
.popular-posts li:nth-child(2) .post-number { color: #e67e22; }
.popular-posts li:nth-child(3) .post-number { color: #f39c12; }

.post-info a {
    display: block;
    font-size: 0.95rem;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 5px;
    transition: color 0.2s;
}
.post-info a:hover { color: #007bff; }
.post-date {
    font-size: 0.8rem;
    color: #999;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-cloud a {
    background: #f8f9fa;
    color: #555;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #eee;
}
.tag-cloud a:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* 订阅表单 */
.widget-subscribe p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}
.widget-subscribe input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    box-sizing: border-box;
}
.btn-subscribe {
    width: 100%;
    padding: 10px;
    background: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}
.btn-subscribe:hover {
    background: #007bff;
}

/* --- 6. 分页 (复用之前的样式，微调) --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}
.page-link {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
    background: #fff;
}
.page-link:hover, .page-link.active {
    border-color: #007bff;
    color: #fff;
    background: #007bff;
}
.page-link.dots {
    border: none;
    background: transparent;
    cursor: default;
}


/* =========================================
   新闻详情页样式
   ========================================= */

/* --- 1. 文章 Hero 区域 --- */
.article-hero {
    position: relative;
    padding: 100px 0 60px;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    filter: brightness(0.6); /* 压暗背景以突出文字 */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px; /* 限制宽度以保证阅读体验 */
    margin: 0 auto;
}

.breadcrumb {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 20px;
    display: inline-block;
    background: rgba(0,0,0,0.3);
    padding: 5px 15px;
    border-radius: 20px;
}
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.article-main-title {
    font-size: 2.8rem;
    line-height: 1.3;
    margin-bottom: 30px;
    font-weight: 800;
}

.article-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.meta-text {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    text-align: left;
}
.author-name { font-weight: bold; }
.publish-date { opacity: 0.8; font-size: 0.8rem; }

.meta-right {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
}

.share-buttons a {
    color: #fff;
    margin-left: 10px;
    font-size: 1.1rem;
    opacity: 0.8;
    transition: opacity 0.3s;
    text-decoration: none;
}
.share-buttons a:hover { opacity: 1; }

/* --- 2. 主体布局 --- */
.article-body-section {
    background: #fff;
    padding-top: 60px;
    padding-bottom: 80px;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 280px; /* 左侧内容，右侧目录 */
    gap: 60px;
    align-items: start;
}

/* --- 3. 文章排版 (Typography) --- */
.article-content-wrapper {
    max-width: 800px; /* 最佳阅读宽度 */
    margin: 0 auto; /* 居中 */
    width: 100%;
}

.rich-article {
    font-size: 1.125rem; /* 18px 基础字号 */
    line-height: 1.8;
    color: #333;
}

.lead-text {
    font-size: 1.35rem;
    font-weight: 500;
    color: #444;
    margin-bottom: 30px;
    border-left: 4px solid #007bff;
    padding-left: 20px;
}

.divider {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 40px 0;
}

.rich-article h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-top: 50px;
    margin-bottom: 20px;
    font-weight: 700;
    scroll-margin-top: 100px; /* 锚点定位偏移 */
}

.rich-article p {
    margin-bottom: 20px;
}

.rich-article strong {
    color: #007bff;
    font-weight: 600;
}

/* 引用块 */
blockquote {
    background: #f8f9fa;
    border-left: 5px solid #007bff;
    margin: 30px 0;
    padding: 20px 30px;
    font-style: italic;
    color: #555;
    border-radius: 0 8px 8px 0;
}

/* 列表 */
.rich-article ul, .rich-article ol {
    margin-bottom: 20px;
    padding-left: 25px;
}
.rich-article li {
    margin-bottom: 10px;
}

/* 图片与标题 */
.image-caption {
    margin: 30px 0;
    text-align: center;
}
.image-caption img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.image-caption figcaption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #888;
}

/* 表格 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 1rem;
}
.data-table th, .data-table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
}
.data-table th {
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
}
.data-table tr:nth-child(even) {
    background: #fcfcfc;
}

/* 标签盒 */
.tag-box {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
}
.tag-box a {
    display: inline-block;
    background: #eef6ff;
    color: #007bff;
    padding: 5px 12px;
    border-radius: 4px;
    margin: 5px 5px 0 0;
    text-decoration: none;
    transition: background 0.3s;
}
.tag-box a:hover {
    background: #007bff;
    color: #fff;
}

/* --- 4. 作者信息块 --- */
.author-box {
    display: flex;
    gap: 20px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-top: 60px;
    align-items: center;
}
.author-box-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.author-box-info h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: #2c3e50;
}
.author-box-info p {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 15px;
    line-height: 1.6;
}
.author-socials a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 15px;
    font-weight: 600;
}

/* --- 5. 上下篇导航 --- */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 30px 0;
}

.nav-post {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: 15px;
    border-radius: 8px;
    transition: background 0.3s;
}
.nav-post:hover {
    background: #f8f9fa;
}

.nav-label {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
}
.nav-title {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
}
.nav-post.prev { text-align: left; border-right: 1px solid #eee; }
.nav-post.next { text-align: right; align-items: flex-end; }

/* --- 6. 评论区 --- */
.comments-section {
    margin-top: 60px;
}
.comments-section h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #2c3e50;
}
.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 15px;
    resize: vertical;
}
.btn-submit-comment {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}
.btn-submit-comment:hover { background: #0056b3; }

.single-comment {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f5f5f5;
}
.single-comment img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.comment-header strong { color: #2c3e50; }
.comment-date { font-size: 0.85rem; color: #999; }
.comment-body p { margin: 0; color: #555; line-height: 1.6; }

/* --- 7. 侧边目录 (TOC) --- */
.toc-sidebar {
    position: sticky;
    top: 100px;
}

.toc-widget {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.toc-widget h4 {
    margin: 0 0 15px;
    font-size: 1.1rem;
    color: #2c3e50;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 10px;
}

.toc-list a {
    text-decoration: none;
    color: #666;
    font-size: 0.95rem;
    display: block;
    padding: 5px 0;
    border-left: 2px solid transparent;
    padding-left: 10px;
    transition: all 0.3s;
}

.toc-list a:hover, .toc-list a.active {
    color: #007bff;
    border-left-color: #007bff;
    background: #fff;
    padding-left: 15px;
}

.toc-progress {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: #007bff;
    transition: width 0.2s;
}
.toc-widget small {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: #999;
    margin-top: 5px;
}

.related-mini {
    margin-top: 30px;
    background: #fff;
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 8px;
}
.mini-post-list {
    list-style: none;
    padding: 0;
}
.mini-post-list li {
    margin-bottom: 12px;
}
.mini-post-list a {
    text-decoration: none;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.2s;
}
.mini-post-list a:hover { color: #007bff; }


        /* --- 响应式调整 --- */
/* =========================================
   响应式媒体查询
   ========================================= */
@media (max-width: 900px) {
    .contact-grid {grid-template-columns: 1fr;} /* 堆叠显示 */
    .contact-info-cards {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .info-card {flex: 1 1 200px;} /* 最小宽度200px */
    .catalog-layout {flex-direction: column;}
    .sidebar {
        width: 100%;
        position: static;
        margin-bottom: 30px;
    }
    .filter-group {
        display: inline-block;
        vertical-align: top;
        width: 45%;
        margin-right: 4%;
        border-bottom: none;
        padding-bottom: 0;
    }
    .filter-group:nth-child(even) {margin-right: 0;}
    .product-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .hero-image-wrapper { order: 1; }
    .hero-info-wrapper { order: 2; }
    .action-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .btn-lg { flex: 1; min-width: 140px; }
    .news-layout {grid-template-columns: 1fr;} /* 单列布局 */
    .sidebar {order: 2;} /* 侧边栏在下方 */
    .news-card.standard {flex-direction: column;} /* 卡片也变为垂直排列 */
    .news-card.standard .card-image {width: 100%;height: 200px;}
    .article-layout {
        grid-template-columns: 1fr; /* 单列 */
        gap: 40px;
    }
    .toc-sidebar {
        position: static; /* 取消固定 */
        order: 2; /* 放到文章下方 */
    }
    .article-content-wrapper {order: 1;}
    .article-main-title {font-size: 2rem;}
    .article-meta-bar {
        flex-direction: column;
        gap: 15px;
        border-radius: 15px;
    }
    .meta-right {
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-top: 15px;
    }
    .post-navigation {grid-template-columns: 1fr;}
    .nav-post.prev {
        border-right: none;
        border-bottom: 1px solid #eee;
        text-align: left;
        align-items: flex-start;
    }
    .nav-post.next {text-align: left;align-items: flex-start;}
}
@media (max-width: 768px) {
    .navbar {
        /* 确保导航栏是 flex 布局，且内容两端对齐 */
        display: flex;
        justify-content: space-between; 
        align-items: center;
        position: relative;
    }

    /* 1. Logo 固定在左侧 */
    .logo {
        order: 1; /* 第一个显示 */
        margin-right: auto; /* 确保它紧贴左边，如果有其他元素干扰 */
    }

    /* 2. 菜单按钮 固定在右侧 */
    .menu-toggle {
        display: block;order: 2;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff; /* 移动端菜单展开必须是白色背景 */
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        
        /* 默认隐藏 */
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    /* 移动端菜单激活状态 */
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* 移动端下链接颜色强制为深色，因为背景是白的 */
    .nav-links li a {color: #333;}
    
    /* 即使 header 没滚动，移动端展开菜单时 logo 也要变黑（可选，看喜好） */
    header .logo {color: #333;}
    header .navbar {
        flex-direction: row !important; 
        justify-content: space-between !important;
    }

    /* 其他移动端适配 */
    .banner h1 { font-size: 2rem; }
    .contact-wrapper { flex-direction: column; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-col { text-align: center; }
    
    .page-hero h1 {font-size: 2.2rem;}
    .about-story {flex-direction: column;}
    .about-image {width: 100%;height: 300px;}
    /* 时间轴移动端适配 */
    .timeline::after {left: 31px;}
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item::after {left: 21px;}
    .left {text-align: left;}
    .right {left: 0%;}
    .stats-grid {
        flex-direction: column;
        gap: 40px;
    }
    .contact-hero h1 { font-size: 2.2rem; }
    .contact-form-wrapper {padding: 25px;}
    .form-row {
        grid-template-columns: 1fr; /* 表单输入框垂直排列 */
        gap: 0;
    }
    .contact-info-cards {flex-direction: column;}
    .info-card {flex: 1 1 100%;}
    .map-container {height: 300px;}
    .templates-hero h1 { font-size: 2.2rem; }
    .filter-group {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
    .card-image {height: 160px;}
    .pagination {flex-wrap: wrap;}
    .detail-tabs { gap: 15px; font-size: 0.9rem; }
    .rich-text-content { padding: 20px; }
    .payment-options { flex-direction: column; gap: 15px; }
    .news-hero h1 { font-size: 2.2rem; }
    .category-tabs {justify-content: flex-start;}
    .news-card.featured .card-image {height: 250px;}
    .article-title {font-size: 1.2rem;}
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    .author-box-info {text-align: center;}
    .author-socials {justify-content: center;display: flex;}
}


@media (max-width: 480px) {
    .product-grid {grid-template-columns: 1fr;} /* 手机端单列显示 */
    .view-toggle {display: none;} /* 手机端隐藏视图切换 */
}

/* 下滑动画 */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}