/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

:root {
    --primary-color: #1a73e8;
    --secondary-color: #0d47a1;
    --accent-color: #64b5f6;
    --text-color: #333;
    --light-text: #fff;
    --bg-color: #f8f9fa;
    --section-padding: 80px 0;
}

body {
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 导航栏 */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* 英雄区域 */
.hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    padding: 0 20px;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 18px;
    margin-bottom: 25px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 产品展示区域 */
.products-section {
    padding: var(--section-padding);
    background-color: #f5f7fa;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.products-slider {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.products-track {
    display: flex;
    transition: transform 0.5s ease;
}

.product-item {
    min-width: 300px;
    margin: 0 15px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #e8ecef;
    position: relative;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
    border-color: var(--accent-color);
}

.product-img {
    height: 200px;
    background-color: #f8f9fa;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    z-index: 2;
    overflow: hidden;
    margin: 12px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

.product-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    z-index: 1;
}

.product-info {
    padding: 20px;
    position: relative;
    z-index: 2;
    background: linear-gradient(to bottom, #ffffff, #fafafa);
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: 600;
}

.product-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.slider-controls button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin: 0 8px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    border: 2px solid transparent;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.slider-controls button:hover {
    background-color: var(--secondary-color);
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 产品链接样式 */
.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.product-link:hover {
    text-decoration: none;
    color: inherit;
}

/* 无产品数据样式 */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
    background-color: #fff;
    border-radius: 8px;
    border: 2px dashed #e0e0e0;
    margin: 0 15px;
}

/* 内容区域 */
.content-section {
    padding: var(--section-padding);
    background-color: var(--bg-color);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.content-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.content-item:hover {
    transform: translateY(-5px);
}

.content-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* 下载中心 */
.download-section {
    padding: var(--section-padding);
    background-color: #fff;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.download-item {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.download-item:hover {
    transform: translateY(-5px);
}

.download-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.download-item p {
    margin-bottom: 20px;
    color: #666;
}

/* 项目案例 */
.cases-section {
    padding: var(--section-padding);
    background-color: var(--bg-color);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.case-item:hover {
    transform: translateY(-5px);
}

.case-img {
    height: 200px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
}

.case-item h3 {
    padding: 20px 20px 10px;
    font-size: 18px;
    color: var(--primary-color);
}

.case-item p {
    padding: 0 20px 20px;
    color: #666;
}

/* 公司简介 */
.about-section {
    padding: var(--section-padding);
    background-color: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: 8px;
}

.stat-item h3 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 微信联系 */
.wechat-contact {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
}

.wechat-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.wechat-btn:hover {
    background-color: var(--secondary-color);
}

.wechat-popup {
    position: absolute;
    bottom: 60px;
    right: 0;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: none;
}

.wechat-popup img {
    width: 300px;
    height: 300px;
    margin-bottom: 10px;
}

.wechat-contact:hover .wechat-popup {
    display: block;
}

/* 底部区域 */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section p, .footer-section li {
    margin-bottom: 10px;
    color: #bdc3c7;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav {
        width: 100%;
        margin-top: 15px;
        display: none;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 0 0 10px 0;
    }
    
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 15px;
        top: 15px;
    }
    
    .hero {
        height: 40vh;
        min-height: 300px;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .wechat-contact {
        right: 15px;
        bottom: 15px;
    }
    
    .wechat-popup {
        right: -50px;
    }
    
    .product-item {
        min-width: 280px;
        margin: 0 10px;
    }
    
    .product-img {
        height: 160px;
        margin: 8px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
}

/* 展项开发相关样式 */

/* 展项列表页样式 */
.hero-subpage {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    padding: 150px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.hero-subpage h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subpage p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.exhibits-section {
    padding: var(--section-padding);
    background-color: var(--bg-color);
}

.exhibits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.exhibit-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eaeaea;
}

.exhibit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.exhibit-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #ecf0f1;
}

.exhibit-content {
    padding: 25px;
}

.exhibit-language {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

.exhibit-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.exhibit-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 14px;
    color: #7f8c8d;
}

/* 展项详情页样式 */
.exhibit-detail {
    padding: 100px 0 60px;
}

.exhibit-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.language-tag {
    background: var(--primary-color);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.date {
    color: #7f8c8d;
}

.exhibit-featured-image {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.exhibit-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.exhibit-content {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #555;
}

.project-process {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 4px solid var(--primary-color);
}

.project-process h3 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.process-content {
    line-height: 1.8;
    color: #555;
}

.code-section {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.code-header {
    background: var(--secondary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: rgba(255,255,255,0.3);
}

.code-section pre {
    margin: 0;
    background: #f8f9fa;
    padding: 20px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #eaeaea;
}

.exhibit-navigation {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    grid-column: 1 / -1;
}

/* 响应式设计 */
   @media (max-width: 768px) {
    .exhibits-grid {
        grid-template-columns: 1fr;
    }
    
    .exhibit-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .project-process {
        padding: 20px;
    }
    
    .code-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .hero-subpage {
        padding: 120px 0 60px;
        margin-top: 60px;
    }
    
    .hero-subpage h1 {
        font-size: 2rem;
    }
/* 确保产品轨道有正确的样式 */
.products-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

/* 产品项不能收缩 */
.product-item {
    flex-shrink: 0;
    min-width: 300px;
    margin: 0 15px;
    /* 其他样式保持不变 */
}
/* 访问记录提示 */
.visit-notice {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 10px 15px;
    text-align: center;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.visit-notice i {
    margin-right: 8px;
}

/* 访问记录区域 */
.visits-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.visits-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.visit-stat {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.visit-stat:hover {
    transform: translateY(-5px);
}

.visit-stat i {
    font-size: 2.5rem;
    color: #6a11cb;
    margin-bottom: 15px;
}

.visit-stat h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #495057;
}

.visit-stat p {
    font-size: 1.8rem;
    font-weight: 700;
    color: #212529;
}

.visits-log {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.visits-log h3 {
    margin-bottom: 20px;
    color: #495057;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.log-entries {
    max-height: 300px;
    overflow-y: auto;
}

.log-entry {
    padding: 10px 15px;
    border-bottom: 1px solid #f1f1f1;
    font-family: monospace;
    font-size: 0.85rem;
}

.log-entry:last-child {
    border-bottom: none;
}
}