/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom, #1a2980, #26d0ce, #000000);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 气泡效果 */
.bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: rise 10s infinite ease-in;
}

.bubble:nth-child(1) {
    width: 40px;
    height: 40px;
    left: 10%;
    animation-duration: 8s;
}

.bubble:nth-child(2) {
    width: 20px;
    height: 20px;
    left: 20%;
    animation-duration: 5s;
    animation-delay: 1s;
}

.bubble:nth-child(3) {
    width: 50px;
    height: 50px;
    left: 35%;
    animation-duration: 7s;
    animation-delay: 2s;
}

.bubble:nth-child(4) {
    width: 80px;
    height: 80px;
    left: 50%;
    animation-duration: 11s;
    animation-delay: 0s;
}

.bubble:nth-child(5) {
    width: 35px;
    height: 35px;
    left: 55%;
    animation-duration: 6s;
    animation-delay: 1s;
}

.bubble:nth-child(6) {
    width: 45px;
    height: 45px;
    left: 65%;
    animation-duration: 8s;
    animation-delay: 3s;
}

.bubble:nth-child(7) {
    width: 90px;
    height: 90px;
    left: 70%;
    animation-duration: 12s;
    animation-delay: 2s;
}

.bubble:nth-child(8) {
    width: 25px;
    height: 25px;
    left: 80%;
    animation-duration: 6s;
    animation-delay: 2s;
}

.bubble:nth-child(9) {
    width: 15px;
    height: 15px;
    left: 70%;
    animation-duration: 5s;
    animation-delay: 1s;
}

.bubble:nth-child(10) {
    width: 90px;
    height: 90px;
    left: 25%;
    animation-duration: 10s;
    animation-delay: 4s;
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0);
    }
    50% {
        transform: translateX(100px);
    }
    100% {
        bottom: 1080px;
        transform: translateX(-200px);
    }
}

/* 水印效果 */
.watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 8rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    z-index: -1;
    white-space: nowrap;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 30px 0;
    position: relative;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 0, 255, 0.7);
    letter-spacing: 3px;
}

header::after {
    content: '';
    display: block;
    width: 200px;
    height: 4px;
    background: linear-gradient(to right, transparent, #00ffff, transparent);
    margin: 20px auto;
    border-radius: 2px;
}

/* 视频区域 */
.video-section {
    background: rgba(0, 0, 50, 0.4);
    border-radius: 15px;
    padding: 25px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.video-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.video-header i {
    font-size: 2.5rem;
    color: #4dabf7;
    margin-right: 15px;
}

.video-header h2 {
    font-size: 2rem;
    color: #a5d8ff;
}

.video-container {
    position: relative;
    padding-top: 56.25%; /* 16:9 宽高比 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.video-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.control-btn {
    background: rgba(77, 171, 247, 0.2);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-btn:hover {
    background: rgba(77, 171, 247, 0.4);
    transform: translateY(-3px);
}

.control-btn i {
    font-size: 1.2rem;
}

.video-caption {
    text-align: center;
    font-size: 1.1rem;
    color: #74c0fc;
    margin-top: 15px;
}

/* 分类导航 */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 50, 0.8); /* PC端背景 */
    backdrop-filter: blur(10px);
    border-radius: 0 0 15px 15px;
    padding: 15px 0;
    transition: transform 0.3s ease-in-out;
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.sticky-nav.hidden {
    transform: translateY(-100%);
}

.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(77, 171, 247, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
    box-shadow: 0 0 15px rgba(77, 171, 247, 0.5);
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

.category-nav {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap; /* 确保所有按钮在一行 */
    overflow-x: auto; /* 添加水平滚动 */
    gap: 8px; /* 缩小按钮间距 */
    margin: 0 auto;
    max-width: 100%;
    padding: 0 10px;
    scrollbar-width: none; /* 隐藏滚动条 */
}

.category-nav::-webkit-scrollbar {
    display: none; /* 隐藏滚动条 */
}

.nav-btn {
    background: rgba(77, 171, 247, 0.3);
    color: white;
    border: none;
    border-radius: 6px; /* 圆角从50px改为6px */
    padding: 10px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap; /* 防止文字换行 */
    flex-shrink: 0; /* 防止按钮被压缩 */
}

.nav-btn:hover {
    background: rgba(77, 171, 247, 0.5);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: rgba(77, 171, 247, 0.8);
    box-shadow: 0 0 10px rgba(77, 171, 247, 0.5);
}

/* 分类样式 */
.category {
    margin-bottom: 60px;
    position: relative;
    padding-top: 30px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.category.active {
    opacity: 1;
}

.category h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* 软件网格 - 固定高度 */
.software-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.software-item {
    background: rgba(0, 0, 50, 0.5);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    height: 200px; /* 固定高度 */
    display: flex;
    flex-direction: column;
}

.software-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 70, 0.6);
}

.software-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.5s ease;
}

.software-img {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
}

.software-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.software-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 10px 0;
    color: #a5d8ff;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.download-text {
    font-size: 0.9rem;
    color: #74c0fc;
    padding: 5px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
    margin-top: auto;
    transition: all 0.5s ease;
    cursor: pointer;
}

.download-links {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 50, 0.8);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    z-index: 2;
}

.software-item.active .download-links {
    transform: translateY(0);
}

.software-item.active .software-content {
    transform: translateY(-100%);
}

.download-links a {
    display: block;
    color: #a5d8ff;
    padding: 8px 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s;
    font-size: 0.9rem;
}

.download-links a:hover {
    color: #4dabf7;
}

.download-links a i {
    margin-right: 8px;
}

/* 底部样式 */
footer {
    margin-top: 50px;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.qr-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.qr-code {
    text-align: center;
    position: relative;
}

.qr-placeholder {
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* 跑马灯边框效果 */
.qr-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg, 
        transparent, 
        transparent, 
        rgba(77, 171, 247, 0.5),
        transparent, 
        transparent
    );
    animation: borderLight 3s linear infinite;
    z-index: 1;
}

.qr-placeholder::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgba(0, 0, 50, 0.5);
    border-radius: 14px;
    z-index: 2;
}

@keyframes borderLight {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.qr-text {
    font-size: 1.1rem;
    margin-top: 10px;
    position: relative;
    z-index: 3;
}

.copyright {
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 1100px) {
    .software-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .software-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .watermark {
        font-size: 5rem;
    }
}

@media (max-width: 768px) {
    .software-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .qr-container {
        gap: 40px;
    }
    
    .watermark {
        font-size: 3.5rem;
    }
    
    .video-header h2 {
        font-size: 1.6rem;
    }
    
    /* 移动端样式 */
    .sticky-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 100;
        background: rgba(0, 0, 50, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 0;
        padding: 20px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    }
    
    .sticky-nav.active {
        transform: translateY(0);
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .category-nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        max-height: 80vh;
        overflow-y: auto;
        flex-wrap: wrap;
    }
    
    .nav-btn {
        width: 90%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .software-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .software-item {
        padding: 12px;
        height: 180px;
    }
    
    .software-img {
        width: 80px;
        height: 80px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .category h3 {
        font-size: 1.4rem;
        padding: 10px;
    }
    
    .qr-container {
        gap: 20px;
    }
    
    .qr-placeholder {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }
    
    .watermark {
        font-size: 2.5rem;
    }
    
    .video-controls {
        gap: 10px;
    }
    
    .control-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .video-header h2 {
        font-size: 1.4rem;
    }
}