* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif; color: #333; background: #f5f7fa; }

/* 顶部导航 */
.top-bar { background: #003a8c; color: #cdd8f0; font-size: 12px; padding: 5px 0; }
.top-bar .inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; }
.top-bar a { color: #cdd8f0; text-decoration: none; }

.header { background: #fff; border-bottom: 2px solid #1677ff; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.header .inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon { width: 48px; height: 48px; background: linear-gradient(135deg, #1677ff, #003a8c); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.logo-text h1 { font-size: 22px; color: #003a8c; font-weight: 700; }
.logo-text p { font-size: 11px; color: #1677ff; margin-top: 1px; }

nav { display: flex; gap: 0; }
nav a { display: block; padding: 0 18px; line-height: 70px; color: #333; text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.2s; border-bottom: 3px solid transparent; }
nav a:hover, nav a.active { color: #1677ff; border-bottom-color: #1677ff; }

/* Banner */
.banner { background: linear-gradient(135deg, #003a8c 0%, #1677ff 60%, #40a9ff 100%); color: #fff; padding: 30px 0; }
.banner .inner { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.banner-text { text-align: center; margin-bottom: 30px; }
.banner-text h2 { font-size: 36px; font-weight: 900; line-height: 1.2; margin-bottom: 12px; }
.banner-text h2 span { color: #ffd666; }
.banner-text p { font-size: 16px; color: #d0e8ff; margin-bottom: 20px; line-height: 1.6; }
.banner-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn-primary { background: #ffd666; color: #003a8c; padding: 10px 24px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none; border: none; cursor: pointer; transition: all 0.2s; }
.btn-primary:hover { background: #ffe58f; transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; padding: 10px 24px; border-radius: 6px; font-size: 14px; font-weight: 600; text-decoration: none; border: 2px solid rgba(255,255,255,0.6); transition: all 0.2s; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* Banner 双视频网格布局 */
.banner-video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 760px !important;
    width: 760px;
    margin: 0 auto;
}

/* 音效标签 */
.audio-effect-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffd700;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    z-index: 5;
    border: 1px solid rgba(255, 215, 0, 0.5);
}

/* 视频标题标签（居中，播放时隐藏） */
.video-title-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 58, 140, 0.9);
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
    z-index: 10;
    border: 3px solid rgba(255, 215, 0, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    letter-spacing: 2px;
    pointer-events: none;
}

.video-title-badge.hidden {
    display: none;
}

.video-wrapper {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
    border: 5px solid #000;
    box-sizing: border-box;
    border-radius: 4px;
    overflow: hidden;
}

#videoPlayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 功能卡片区 */
.features { padding: 60px 0; background: #fff; }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h3 { font-size: 30px; color: #003a8c; font-weight: 700; }
.section-title p { font-size: 15px; color: #888; margin-top: 10px; }
.section-title .line { width: 48px; height: 3px; background: #1677ff; margin: 14px auto 0; border-radius: 2px; }

.features-grid { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: #f5f7fa; border-radius: 10px; padding: 36px 28px; text-align: center; border: 1px solid #e8ecf4; transition: all 0.25s; cursor: pointer; }
.feature-card:hover { box-shadow: 0 8px 24px rgba(22,119,255,0.12); transform: translateY(-3px); border-color: #91caff; }
.feature-card .icon { font-size: 48px; margin-bottom: 16px; }
.feature-card h4 { font-size: 18px; color: #003a8c; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: #666; line-height: 1.7; }
.feature-card .tag { display: inline-block; background: #e6f4ff; color: #1677ff; font-size: 12px; padding: 3px 10px; border-radius: 10px; margin-top: 14px; }

/* 数据统计 */
.stats { background: #003a8c; color: #fff; padding: 50px 0; }
.stats-grid { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item .num { font-size: 44px; font-weight: 900; color: #ffd666; }
.stat-item .unit { font-size: 18px; font-weight: 400; }
.stat-item .label { font-size: 14px; color: #91caff; margin-top: 8px; }

/* 博客入口 */
.blog-entry { background: #f0f5ff; padding: 60px 0; }
.blog-entry .inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.blog-entry-text h3 { font-size: 28px; color: #003a8c; font-weight: 700; margin-bottom: 12px; }
.blog-entry-text p { font-size: 15px; color: #555; line-height: 1.7; max-width: 520px; }
.blog-entry-text .tags { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.blog-entry-text .tags span { background: #e6f4ff; color: #1677ff; font-size: 12px; padding: 5px 14px; border-radius: 20px; border: 1px solid #91caff; }
.blog-entry-btn { flex-shrink: 0; }
.btn-blog { background: #1677ff; color: #fff; padding: 16px 44px; border-radius: 8px; font-size: 16px; font-weight: 700; text-decoration: none; display: inline-block; transition: all 0.2s; box-shadow: 0 4px 14px rgba(22,119,255,0.3); }
.btn-blog:hover { background: #0958d9; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(22,119,255,0.4); }

/* 关于我们 */
.about { background: #fff; padding: 60px 0; }
.about .inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h3 { font-size: 28px; color: #003a8c; font-weight: 700; margin-bottom: 16px; }
.about-text p { font-size: 14px; color: #666; line-height: 1.9; margin-bottom: 12px; }
.about-items { display: flex; flex-direction: column; gap: 12px; }
.about-item { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: #f0f5ff; border-radius: 8px; border-left: 3px solid #1677ff; }
.about-item .icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.about-item h5 { font-size: 14px; color: #003a8c; font-weight: 600; margin-bottom: 4px; }
.about-item p { font-size: 13px; color: #666; line-height: 1.6; margin: 0; }

/* 底部 */
footer { background: #001d57; color: #91caff; padding: 40px 0 20px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand h4 { color: #fff; font-size: 18px; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; line-height: 1.8; color: #8bacd4; }
.footer-col h5 { color: #d6e4ff; font-size: 14px; font-weight: 600; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid #1a3a7c; }
.footer-col a { display: block; color: #8bacd4; text-decoration: none; font-size: 13px; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: #40a9ff; }
.footer-bottom { max-width: 1200px; margin: 30px auto 0; padding: 16px 20px 0; border-top: 1px solid #1a3a7c; text-align: center; font-size: 12px; color: #4a6a9c; }
.footer-bottom a { color: #4a6a9c; text-decoration: none; }

/* 汉堡菜单 */
.menu-btn { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; border: none; background: transparent; }
.menu-btn span { display: block; width: 22px; height: 2px; background: #333; border-radius: 2px; transition: all 0.3s; }
.mobile-nav { display: none; background: #fff; border-top: 1px solid #e8ecf4; padding: 8px 0; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.mobile-nav a { display: block; padding: 12px 20px; color: #333; font-size: 15px; border-bottom: 1px solid #f0f0f0; }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav.open { display: block; }

/* 浮动切换按钮 */
.view-switch-btn { position: fixed; bottom: 24px; right: 16px; z-index: 9999; background: linear-gradient(135deg, #003a8c, #1677ff); color: #fff; border: none; border-radius: 24px; padding: 10px 16px; font-size: 12px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 16px rgba(22,119,255,0.4); display: flex; align-items: center; gap: 6px; transition: all 0.2s; white-space: nowrap; font-family: 'Microsoft YaHei', sans-serif; }
.view-switch-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(22,119,255,0.5); }
.view-switch-btn .icon { font-size: 14px; }

/* 响应式 */
@media (max-width: 900px) { .top-bar .inner { flex-direction: column; gap: 2px; text-align: center; padding: 4px 16px; } }
@media (max-width: 768px) {
    .banner .inner { flex-direction: column; text-align: center; padding: 0 16px; }
    .banner { padding: 44px 0; }
    .banner-visual { font-size: 70px; }
    .banner-text h2 { font-size: 26px; }
    .banner-text p { font-size: 15px; }
    .banner-btns { justify-content: center; }
    .features-grid { grid-template-columns: 1fr 1fr; padding: 0 16px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); padding: 0 16px; }
    .blog-entry .inner { flex-direction: column; text-align: center; padding: 0 16px; }
    .blog-entry-text .tags { justify-content: center; }
    .about .inner { grid-template-columns: 1fr; padding: 0 16px; }
    .footer-inner { grid-template-columns: 1fr; padding: 0 16px; }
    nav { display: none; }
    .menu-btn { display: flex; }
    .header .inner { padding: 0 16px; }
    .section-title h3 { font-size: 22px; }
    .stat-item .num { font-size: 32px; }
}
@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .banner-text h2 { font-size: 22px; }
    .btn-primary, .btn-outline { padding: 12px 24px; font-size: 14px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .logo-text h1 { font-size: 17px; }
    .logo-text p { display: none; }
    .top-bar { display: none; }
    .features { padding: 36px 0; }
    .blog-entry { padding: 36px 0; }
    .about { padding: 36px 0; }
    .stat-item .num { font-size: 28px; }
}

/* 强制电脑版 */
html.force-desktop * { max-width: none !important; }
html.force-desktop body { min-width: 1100px; overflow-x: auto; }
html.force-desktop .banner .inner { flex-direction: row !important; text-align: left !important; }
html.force-desktop .banner-text h2 { font-size: 42px !important; }
html.force-desktop .features-grid { grid-template-columns: repeat(3, 1fr) !important; }
html.force-desktop .stats-grid { grid-template-columns: repeat(4, 1fr) !important; }
html.force-desktop .about .inner { grid-template-columns: 1fr 1fr !important; }
html.force-desktop .footer-inner { grid-template-columns: 2fr 1fr 1fr !important; }
html.force-desktop nav { display: flex !important; }
html.force-desktop .menu-btn { display: none !important; }
html.force-desktop .mobile-nav { display: none !important; }
html.force-desktop .top-bar { display: block !important; }
html.force-desktop .top-bar .inner { flex-direction: row !important; }

/* 强制手机版 */
html.force-mobile body { max-width: 420px; margin: 0 auto; overflow-x: hidden; }
html.force-mobile .banner .inner { flex-direction: column !important; text-align: center !important; padding: 0 16px !important; }
html.force-mobile .banner-text h2 { font-size: 22px !important; }
html.force-mobile .features-grid { grid-template-columns: 1fr !important; padding: 0 16px !important; }
html.force-mobile .stats-grid { grid-template-columns: repeat(2, 1fr) !important; padding: 0 16px !important; }
html.force-mobile .about .inner { grid-template-columns: 1fr !important; padding: 0 16px !important; }
html.force-mobile .footer-inner { grid-template-columns: 1fr !important; padding: 0 16px !important; }
html.force-mobile nav { display: none !important; }
html.force-mobile .menu-btn { display: flex !important; }
html.force-mobile .top-bar { display: none !important; }

/* ========== 视频轮播播放器 ========== */
.video-carousel {
    margin: 60px 0;
    background: #f5f7fa;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 58, 140, 0.08);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 480px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.carousel-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* 视频信息覆盖层 */
.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    padding: 20px;
    color: #fff;
}

.video-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.video-indicator {
    font-size: 14px;
    color: #d0e8ff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.video-type.exclusive {
    background: #ffd666;
    color: #003a8c;
}

.video-type.client {
    background: #1677ff;
    color: #fff;
}

/* 播放控制栏 */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.control-btn {
    width: 44px;
    height: 44px;
    border: 2px solid #e8ecf4;
    background: #fff;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: #1677ff;
    border-color: #1677ff;
    color: #fff;
    transform: scale(1.05);
}

.control-btn:active {
    transform: scale(0.95);
}

#playPauseBtn {
    width: 52px;
    height: 52px;
    font-size: 22px;
    background: linear-gradient(135deg, #1677ff, #003a8c);
    border-color: #1677ff;
    color: #fff;
}

#playPauseBtn:hover {
    background: linear-gradient(135deg, #0958d9, #1677ff);
    border-color: #0958d9;
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 4px;
    background: #e8ecf4;
    border-radius: 2px;
    margin-top: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1677ff, #40a9ff);
    border-radius: 2px;
    transition: width 0.1s linear;
    width: 0%;
}

/* 视频指示器 */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d9d9d9;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.indicator-dot:hover {
    background: #1677ff;
    transform: scale(1.15);
}

.indicator-dot.active {
    background: #1677ff;
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.3);
    transform: scale(1.15);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-container {
        height: 320px;
    }

    .video-title {
        font-size: 16px;
    }

    .control-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    #playPauseBtn {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .video-carousel {
        padding: 16px;
        margin: 40px 0;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 240px;
    }

    .video-title {
        font-size: 14px;
    }

    .control-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    #playPauseBtn {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .carousel-controls {
        gap: 8px;
        padding: 10px;
    }

    .indicator-dot {
        width: 10px;
        height: 10px;
    }
}

/* 加载状态 */
.carousel-video:not([src]) {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.carousel-video:not([src])::before {
    content: "暂无视频";
}

/* ========== 带边框的视频播放器 ========== */
.video-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
    border: 5px solid #000;
    box-sizing: border-box;
    border-radius: 4px;
    overflow: hidden;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 视频封面（未播放时显示） */
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 48px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.video-placeholder.hidden {
    display: none;
}

.video-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.btn-play,
.btn-mute {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 60px;
    justify-content: center;
}

.btn-play:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-play:active {
    transform: translateY(0);
}

.btn-play .icon-pause {
    display: none;
}

.btn-play.playing .icon-play {
    display: none;
}

.btn-play.playing .icon-pause {
    display: inline;
}

.btn-mute {
    background: #6c757d;
}

.btn-mute:hover {
    background: #5a6268;
}

.btn-mute.muted {
    background: #dc3545;
}

.btn-mute.muted:hover {
    background: #c82333;
}

.btn-mute .icon-sound {
    display: none;
}

.btn-mute.muted .icon-mute {
    display: none;
}

.btn-mute.muted .icon-sound {
    display: inline;
}

.progress-container {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.1s linear;
    width: 0%;
}

.time-display {
    font-size: 14px;
    color: #495057;
    font-family: monospace;
    white-space: nowrap;
    min-width: 50px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .banner-video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .banner-video-grid {
        grid-template-columns: 1fr;
    }

    .video-controls {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
    }

    .progress-container {
        order: -1;
        width: 100%;
        margin-bottom: 8px;
    }

    .btn-play,
    .btn-mute {
        padding: 6px 12px;
        font-size: 11px;
    }
}
