/**
 * ========================================
 * 样式文件 - 移动端优先设计
 * ========================================
 * 设计理念: 
 * - 移动端优先,逐步增强到桌面端
 * - 灰白色调为主,营造简洁专业感
 * - 浅蓝色按钮,圆角矩形设计
 * ========================================
 */

/* ========================================
   基础样式重置
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: white;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body.menu-open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   主内容容器边框
   ======================================== */
.main-content-wrapper {
    background: white;
    border: 3px solid #ddd;
    margin: 8px auto 0;
    max-width: calc(100% - 20px);
}

@media (min-width: 1280px) {
    .main-content-wrapper {
        max-width: 1200px;
    }
}

/* ========================================
   头部导航栏
   ======================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f2f5 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2px 0;
    border: 3px solid #ddd;
    border-bottom: 3px solid #ddd;
    margin: 10px auto 0;
    max-width: calc(100% - 20px);
}

@media (min-width: 1280px) {
    .header {
        max-width: 1200px;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo样式 */
.logo h2 {
    color: #555;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 1px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ========================================
   汉堡菜单按钮
   ======================================== */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: #666;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   导航菜单
   ======================================== */
.nav {
    position: fixed;
    top: 38px;
    right: -100%;
    width: 33.33%;
    max-width: 280px;
    min-width: 180px;
    height: auto;
    background: white;
    display: flex;
    flex-direction: column;
    padding: 15px 20px;
    transition: right 0.3s;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 0 8px;
}

.nav.active {
    right: 0;
}

.nav a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    transition: color 0.3s;
}

.nav a:last-child {
    border-bottom: none;
}

.nav a:hover {
    color: #5fa3d0;
}

/* ========================================
   页面标题区域（与video页面样式一致）
   ======================================== */
.page-title-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f2f5 100%);
    padding: 35px 0;
    text-align: center;
    color: #37474f;
}

.page-title-section h1 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 2px;
    color: #2c3e50;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   产品主图区域
   ======================================== */
.product-intro {
    padding: 25px 0 20px;
    background: white;
}

.product-image {
    max-width: 600px;
    margin: 0 auto 30px;
}

.product-image img {
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* ========================================
   快捷按钮组
   ======================================== */
.links-wrapper {
    display: flex;
    flex-direction: column;  /* 移动端改为纵向排列 */
    justify-content: center;
    align-items: center;  /* 居中对齐 */
    gap: 12px;  /* 减小间距 */
    max-width: 600px;
    margin: 0 auto;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 50px;
    width: 100%;  /* 移动端占满宽度 */
    max-width: 280px;
    min-width: 200px;
    background: #5C79B0;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(95, 163, 208, 0.25);
}

.link-btn:active {
    transform: scale(0.95);
}

/* ========================================
   功能列表区域
   ======================================== */
.functions-section {
    padding: 20px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 16px;
    color: #666;
}

.functions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.function-item {
    background: white;
    padding: 1px 1px;
    text-align: center;
    transition: all 0.3s;
    animation: fadeInUp 0.5s both;
    border-radius: 8px;
}

.function-item:hover {
    transform: translateY(-2px);
}

.function-item img {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    border-radius: 0;
    border: none;
}

.function-item h4 {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

/* ========================================
   功能展示图片区域
   ======================================== */
.video-showcase {
    padding: 40px 0;
    background: white;
}

.video-showcase img {
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* ========================================
   产品特点详情区域
   ======================================== */
.details-section {
    padding: 60px 0;
    background: white;
}

.feature-section {
    margin-bottom: 25px;
}

.feature-details {
    background: white;
    overflow: hidden;
}

.feature-summary {
    padding: 20px;
    background: #dfdfdf;
    color: #263238;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.feature-summary::-webkit-details-marker {
    display: none;
}

.feature-summary h2 {
    font-size: 20px;
    font-weight: 600;
}

.toggle-icon {
    font-size: 18px;
    transition: transform 0.3s;
}

.feature-content {
    padding: 25px 20px;
}

.feature-images {
    margin-bottom: 20px;
}

.feature-images img {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
}

.feature-images img:last-child {
    margin-bottom: 0;
}

/* ========================================
   纯图片模式样式（只显示图片，无标题区域）
   用于只有image字段的feature
   ======================================== */
.feature-images-only {
    margin-bottom: 25px;
}

.feature-images-only img {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.feature-images-only img:last-child {
    margin-bottom: 0;
}

.feature-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.feature-note {
    font-size: 13px;
    color: #999;
    font-style: italic;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

/* ========================================
   视频按钮组
   ======================================== */
.video-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    align-items: center;
}

.video-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 40px;
    width: auto;
    max-width: 320px;
    min-width: 220px;
    background: linear-gradient(135deg, #597ba8 0%, #597ba8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(95, 163, 208, 0.25);
}

.video-btn:active {
    transform: scale(0.95);
}

/* ========================================
   底部区域
   ======================================== */
.footer {
    background: #607d8b;
    color: #eceff1;
    padding: 40px 0 30px;
}

.footer-content {
    text-align: center;
}

.footer-content h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cfd8dc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #eceff1;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s;
}

.social-link:active {
    transform: scale(0.9);
}

.copyright {
    font-size: 13px;
    color: #b0bec5;
    margin-top: 15px;
}

/* ========================================
   视频播放器模态框
   ======================================== */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.video-modal.show {
    display: flex;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.video-modal-content {
    position: relative;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    z-index: 1;
}

.video-close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s;
}

.video-close-btn:hover {
    background: white;
}

.video-modal-content video {
    width: 100%;
    height: auto;
    max-height: 85vh;
    background: #000;
    border-radius: 8px;
}

/* ========================================
   返回顶部按钮
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;  /* 从50px改为40px,缩小尺寸 */
    height: 40px;  /* 从50px改为40px,缩小尺寸 */
    background: #e0e0e0;  /* 改为浅灰色背景 */
    color: #666;  /* 文字颜色改为深灰 */
    border: none;
    border-radius: 8px;
    font-size: 20px;  /* 从24px改为20px,缩小图标 */
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);  /* 调整阴影 */
    opacity: 1;  /* 改为默认显示 */
    visibility: visible;  /* 改为默认可见 */
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:active {
    transform: scale(0.9);
    background: #d0d0d0;  /* 点击时稍微变深 */
}

/* ========================================
   动画定义
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   响应式设计 - 平板适配 (768px+)
   ======================================== */
@media (min-width: 768px) {
    .page-title-section h1 {
        font-size: 30px;
        letter-spacing: 3px;
    }
    
    .logo h2 {
        font-size: 32px;
        letter-spacing: 1.5px;
    }
    
    /* 平板端按钮横向排列 */
    .links-wrapper {
        flex-direction: row;  /* 平板及以上横向排列 */
        gap: 20px;
    }
    
    .link-btn {
        width: auto;  /* 恢复自动宽度 */
    }
    
    .functions-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .function-item img {
        width: 100px;
        height: 100px;
    }
    
    .function-item h4 {
        font-size: 15px;
    }
    
    .video-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .video-btn {
        flex: 0 0 auto;
        min-width: 200px;
    }
}

/* ========================================
   响应式设计 - 桌面端适配 (1024px+)
   ======================================== */
@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
    
    .nav {
        position: static;
        width: auto;
        height: auto;
        flex-direction: row;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        min-width: auto;
        max-width: none;
    }
    
    .nav a {
        color: #666;
        border-bottom: none;
        padding: 0 15px;
    }
    
    .nav a:hover {
        color: #5fa3d0;
    }
    
    .page-title-section h1 {
        font-size: 36px;
        letter-spacing: 4px;
    }
    
    .logo h2 {
        font-size: 36px;
        letter-spacing: 2px;
    }
    
    .functions-grid {
        grid-template-columns: repeat(7, 1fr);
    }
    
    .function-item h4 {
        font-size: 14px;
    }
    
    .feature-summary h2 {
        font-size: 24px;
    }
}