/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 引入本地字体 */
@font-face {
    font-family: 'AlimamaFangYuanTi';
    src: url('fonts/AlimamaFangYuanTiVF-Thin.woff2') format('woff2'),
         url('fonts/AlimamaFangYuanTiVF-Thin.woff') format('woff'),
         url('fonts/AlimamaFangYuanTiVF-Thin.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html, body {
    font-family: 'AlimamaFangYuanTi', Arial, sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    position: relative;
    font-size: 12px;
}

body {
    overflow-y: auto;
    overflow-x: hidden;
}

/* 菜单区块容器 */
.menu-container {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 0 20px;
}

/* 菜单区块 */
.menu-block {
    max-width: 1200px;
    min-width: 300px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.35);
    border-radius: 2px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO样式 */
.logo a {
    color: #007bff;
    text-decoration: none;
    font-size: 25px;
    font-weight: bold;
}

/* 导航链接样式 */
.nav-links ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 20px;
}

.nav-links a:hover {
    color: #007bff;
}

/* 语言选择样式 */
.language-selector .custom-select {
    position: relative;
    display: inline-block;
}

.language-selector .select-selected {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 80px;
}

.language-selector .flag-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.language-selector .flag-icon.zh {
    background-image: url('https://flagsapi.com/CN/flat/16.png');
}

.language-selector .flag-icon.en {
    background-image: url('https://flagsapi.com/GB/flat/16.png');
}

.language-selector .flag-icon.ru {
    background-image: url('https://flagsapi.com/RU/flat/16.png');
}

.language-selector .flag-icon.es {
    background-image: url('https://flagsapi.com/ES/flat/16.png');
}

.language-selector .flag-icon.pt {
    background-image: url('https://flagsapi.com/PT/flat/16.png');
}

.language-selector .flag-icon.nl {
    background-image: url('https://flagsapi.com/NL/flat/16.png');
}

.language-selector .flag-icon.th {
    background-image: url('https://flagsapi.com/TH/flat/16.png');
}

.language-selector .flag-icon.ja {
    background-image: url('https://flagsapi.com/JP/flat/16.png');
}

.language-selector .flag-icon.ko {
    background-image: url('https://flagsapi.com/KR/flat/16.png');
}

.language-selector .select-arrow {
    margin-left: auto;
    font-size: 10px;
}

.language-selector .select-items {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-top: 2px;
    display: none;
    z-index: 100;
}

.language-selector .select-item {
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.language-selector .select-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.language-selector .custom-select.active .select-items {
    display: block;
}

/* 首屏背景层 */
.hero-bg {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

/* 首屏内容显示层容器 */
.hero-content-container {
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 20px;
    padding-top: 100px;
}

/* 首屏内容显示层 */
.hero-content {
    max-width: 1200px;
    min-width: 300px;
    margin: 0 auto;
    padding: 20px;
    color: #ffffff;
    background-color: rgba(200, 200, 200, 0.25);
    border-radius: 2px;
    box-sizing: border-box;
    z-index: 10;
}

/* 首屏大标题 */
.hero-title {
    font-size: 48px;
    font-weight: bold;
    text-align: left;
    margin-bottom: 30px;
}

/* 首屏介绍内容 */
.hero-description {
    font-size: 36px;
    text-align: left;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* 响应式字体大小 */
@media (max-width: 1200px) {
    .logo a {
        font-size: 22px;
    }
    .nav-links a {
        font-size: 18px;
    }
    .hero-title {
        font-size: 40px;
    }
    .hero-description {
        font-size: 30px;
    }
    .hero-content-container {
        padding-top: 50px;
    }
    .content-title {
        font-size: 40px;
    }
    .content-description {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .logo a {
        font-size: 20px;
    }
    .nav-links a {
        font-size: 16px;
    }
    .hero-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    .hero-description {
        font-size: 24px;
        margin-bottom: 15px;
    }
    .hero-content-container {
        padding-top: 80px;
    }
    .content-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    .content-description {
        font-size: 24px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .logo a {
        font-size: 18px;
    }
    .nav-links a {
        font-size: 14px;
    }
    .hero-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    .hero-description {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .hero-content-container {
        padding-top: 100px;
    }
    .content-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    .content-description {
        font-size: 18px;
        margin-bottom: 10px;
    }
}

/* 背景视频 */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}



/* 视频播放速度控制 */
.background-video {
    /* 播放速度将通过JavaScript控制 */
}

/* 确保视频在加载后自动播放 */
.background-video[autoplay] {
    display: block;
}

/* 内容层 */
.content-layer {
    position: relative;
    z-index: 10;
    background-color: #ffffff;
    padding: 20px 20px;
    margin-top: 10px;
}

.content-layer:first-child {
    margin-top: 0;
}

/* 内容区块容器 */
.content-block-container {
    max-width: 1200px;
    min-width: 300px;
    margin: 0 auto;
}

/* 内容区块 */
.content-block {
    padding: 20px;
    background-color: rgba(200, 200, 200, 0.25);
    border-radius: 2px;
}

/* 轮播容器 */
.carousel-container {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}

.carousel-wrapper {
    width: 100%;
}

.carousel-slide {
    display: flex;
    animation: scroll 90s linear infinite;
    margin-left: -10px;
}

@media (max-width: 768px) {
    .carousel-slide {
        margin-left: -8px;
    }
}

@media (max-width: 480px) {
    .carousel-slide {
        margin-left: -6px;
    }
}

/* 轮播项 */
.carousel-item {
    flex: 0 0 220px;
    height: 50px;
    margin: 0 10px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

/* 轮播图片 */
.carousel-item img {
    height: 42px;
    max-width: 100%;
    object-fit: contain;
}

/* 轮播动画 */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-220px * 22 - 20px));
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 180px;
        height: 40px;
        margin: 0 8px;
    }
    
    .carousel-item img {
        height: 34px;
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-180px * 22 - 16px));
        }
    }
}

@media (max-width: 480px) {
    .carousel-item {
        flex: 0 0 140px;
        height: 35px;
        margin: 0 6px;
    }
    
    .carousel-item img {
        height: 28px;
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-140px * 22 - 12px));
        }
    }
}

/* 内容区块标题 */
.content-title {
    font-size: 48px;
    font-weight: bold;
    text-align: left;
    margin-bottom: 30px;
    color: #333333;
}

/* 内容区块描述 */
.content-description {
    font-size: 36px;
    text-align: left;
    margin-bottom: 20px;
    line-height: 1.8;
    color: #333333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-bg {
        height: 100vh;
    }
    
    .background-video,
    .video-cover {
        width: 100vw;
        height: 100vh;
    }
    
    /* 菜单响应式设计 */
    .menu-block {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .nav-links ul {
        gap: 15px;
    }
    
    .language-selector {
        align-self: flex-end;
        width: 100%;
        text-align: right;
    }
    
    /* 首屏内容显示层响应式设计 */
    .hero-content {
        padding-top: 280px;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 20px;
    }
}

/* 数据仪表盘样式 */
.data-dashboard {
    width: 100%;
}

.dashboard-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-title {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    color: #0066cc;
}

.device-stats {
    margin-bottom: 20px;
}

.device-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.device-item {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.device-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-icon i {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 设备图标背景 */
.device-icon-windows {
    background-image: url('https://cdn.jsdelivr.net/npm/simple-icons@v9/icons/windows.svg');
}

.device-icon-android {
    background-image: url('https://cdn.jsdelivr.net/npm/simple-icons@v9/icons/android.svg');
}

.device-icon-ios {
    background-image: url('https://cdn.jsdelivr.net/npm/simple-icons@v9/icons/apple.svg');
}

.device-icon-macos {
    background-image: url('https://cdn.jsdelivr.net/npm/simple-icons@v9/icons/apple.svg');
}

.device-icon-lg-webos {
    background-image: url('https://cdn.jsdelivr.net/npm/simple-icons@v9/icons/lg.svg');
}

.device-icon-linux {
    background-image: url('https://cdn.jsdelivr.net/npm/simple-icons@v9/icons/linux.svg');
}

.device-icon-其他 {
    /* 空白占位，不显示图标 */
}

.device-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.device-count {
    font-size: 16px;
    font-weight: bold;
    color: #0066cc;
}

.bandwidth-stats {
    margin-bottom: 20px;
}

.bandwidth-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.bandwidth-item {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    padding: 15px;
    flex: 1;
    min-width: 200px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bandwidth-label {
    font-size: 14px;
    color: #666;
    margin-right: 10px;
}

.bandwidth-value {
    font-size: 18px;
    font-weight: bold;
    color: #0066cc;
}

.countdown-container {
    position: relative;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.countdown-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #0066cc;
    transition: width 1s linear;
}

.countdown-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    z-index: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dashboard-title {
        font-size: 20px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .bandwidth-info {
        flex-direction: column;
    }
    
    .bandwidth-item {
        min-width: 100%;
    }
}

/* 底部栏样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 14px;
}