* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-cyan: #00D4FF;
    --primary-blue: #0099FF;
    --primary-tech: #00B8E6;
    --dark-cyan: #0084A8;
    --dark-blue: #0066CC;
    --dark-tech: #005580;
    --light-cyan: #E6F7FF;
    --light-blue: #B3E5FF;
    --light-tech: #CCF0FF;
    --gradient-primary: linear-gradient(135deg, #00D4FF 0%, #0099FF 100%);
    --gradient-secondary: linear-gradient(135deg, #00B8E6 0%, #00D4FF 100%);
    --gradient-hover: linear-gradient(135deg, #0099FF 0%, #00B8E6 100%);
    --gradient-tech: linear-gradient(180deg, #001933 0%, #003D5C 50%, #005580 100%);
    --text-dark: #2C3E50;
    --text-light: #ffffff;
    --shadow-light: 0 4px 6px rgba(0, 212, 255, 0.1);
    --shadow-medium: 0 10px 25px rgba(0, 153, 255, 0.15);
    --shadow-heavy: 0 20px 40px rgba(0, 184, 230, 0.2);
    --glow-cyan: 0 0 30px rgba(0, 212, 255, 0.5);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(180deg, #4A90E2 0%, #5DADE2 35%, #87CEEB 70%, #AFEEEE 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 动态视频元素背景装饰 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(255, 255, 255, 0.25) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
    animation: breathe 15s ease-in-out infinite;
}

/* 视频播放按钮装饰元素 */
body::after {
    content: '';
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
    background-image: 
        radial-gradient(circle at 15% 20%, transparent 0%, transparent 3px, rgba(0, 212, 255, 0.1) 3px, rgba(0, 212, 255, 0.1) 6px, transparent 6px),
        radial-gradient(circle at 85% 80%, transparent 0%, transparent 3px, rgba(0, 153, 255, 0.1) 3px, rgba(0, 153, 255, 0.1) 6px, transparent 6px),
        radial-gradient(circle at 70% 40%, transparent 0%, transparent 3px, rgba(0, 184, 230, 0.1) 3px, rgba(0, 184, 230, 0.1) 6px, transparent 6px);
    background-size: 80px 80px, 100px 100px, 120px 120px;
    animation: floatElements 30s linear infinite;
}

/* 添加视频相关图标元素 */
.video-elements {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.video-element {
    position: absolute;
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    animation: float 20s ease-in-out infinite;
}

.video-element:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.video-element:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 5s;
    animation-duration: 30s;
}

.video-element:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 10s;
    animation-duration: 28s;
}

.video-element:nth-child(4) {
    bottom: 20%;
    right: 25%;
    animation-delay: 15s;
    animation-duration: 35s;
}

.video-element:nth-child(5) {
    top: 50%;
    left: 50%;
    animation-delay: 8s;
    animation-duration: 32s;
}

.video-element:nth-child(6) {
    top: 70%;
    left: 30%;
    animation-delay: 12s;
    animation-duration: 26s;
}

.video-element:nth-child(7) {
    top: 40%;
    right: 30%;
    animation-delay: 18s;
    animation-duration: 34s;
}

.video-element:nth-child(8) {
    bottom: 10%;
    right: 10%;
    animation-delay: 20s;
    animation-duration: 30s;
}

/* 浮动圆形装饰 */
.floating-circles {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.circle {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: circle-float 25s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.circle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.circle:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 20%;
    animation-delay: 5s;
}

.circle:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 30%;
    left: 25%;
    animation-delay: 10s;
}

.circle:nth-child(4) {
    width: 50px;
    height: 50px;
    top: 40%;
    right: 15%;
    animation-delay: 15s;
}

.circle:nth-child(5) {
    width: 70px;
    height: 70px;
    bottom: 15%;
    right: 35%;
    animation-delay: 20s;
}

@keyframes circle-float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(20px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-20px) scale(1.05);
        opacity: 0.5;
    }
}

/* 新增动画效果 */
@keyframes breathe {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes floatElements {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(20px) translateX(-30px) rotate(180deg);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-20px) translateX(30px) rotate(270deg);
        opacity: 0.6;
    }
}

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid transparent;
    background-clip: padding-box;
    border-image: var(--gradient-secondary);
    border-image-slice: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.nav a.active {
    background: var(--gradient-secondary);
    color: var(--text-light);
    box-shadow: var(--shadow-light);
}

.main-content {
    position: relative;
    z-index: 2;
}

.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.3s both;
}

.resources-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 0;
    box-shadow: var(--shadow-medium);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.6s ease;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.resource-card:hover::before {
    transform: scaleX(1);
}

.resource-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    animation: bounce 0.6s ease;
}

.resource-card.recommended {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--gradient-hover) border-box;
}

.card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(0, 184, 230, 0.05) 100%);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    position: relative;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-light);
    animation: pulse 2s infinite;
}

.icon {
    font-size: 2rem;
    filter: grayscale(0);
}

.card-title {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.category-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--gradient-secondary);
    color: var(--text-light);
    border-radius: 15px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.recommend-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
    animation: shimmer 2s infinite;
}

.card-body {
    padding: 1.5rem;
}

.description {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.features {
    margin: 1rem 0;
}

.features h4, .usage-guide h4 {
    color: var(--dark-blue);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.features ul {
    list-style: none;
    padding: 0;
}

.features li {
    padding: 0.3rem 0;
    color: #555;
    font-size: 0.95rem;
}

.usage-guide {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(0, 184, 230, 0.05) 100%);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.usage-guide p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.card-footer {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 153, 255, 0.03) 0%, rgba(0, 184, 230, 0.03) 100%);
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-detail, .btn-link {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}

.btn-detail {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 184, 230, 0.1) 100%);
    color: var(--dark-tech);
    border: 2px solid var(--primary-tech);
}

.btn-detail:hover {
    background: var(--primary-tech);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 184, 230, 0.3);
}

.btn-link {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-link:hover {
    background: var(--gradient-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 153, 255, 0.3);
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow-heavy);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--primary-tech);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-10px) scale(1.02);
    }
    50% {
        transform: translateY(-15px) scale(1.03);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 206, 209, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 206, 209, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 206, 209, 0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(2px);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* 滚动时的视差效果增强 */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 153, 255, 0.1) 100%);
    border-radius: 20px;
    margin: 20px;
    backdrop-filter: blur(5px);
}

/* 添加科技网格背景 */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    opacity: 0.3;
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 212, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-secondary);
    border-radius: 5px;
}

/* 添加更多视频装饰元素 */
.video-decorations {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* 视频播放波纹效果 */
.video-decorations::before {
    content: '▶';
    position: absolute;
    top: 15%;
    right: 10%;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
    animation: pulse-play 8s ease-in-out infinite;
}

.video-decorations::after {
    content: '⏸';
    position: absolute;
    bottom: 25%;
    left: 15%;
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 30px rgba(0, 153, 255, 0.6);
    animation: pulse-play 10s ease-in-out infinite 2s;
}

@keyframes pulse-play {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2) rotate(-5deg);
        opacity: 0.4;
    }
    75% {
        transform: scale(1.1) rotate(3deg);
        opacity: 0.5;
    }
}

/* 资源卡片悬停时的光晕效果 */
.resource-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        var(--shadow-heavy),
        0 0 50px rgba(0, 212, 255, 0.2);
    animation: card-glow 2s ease-in-out;
}

@keyframes card-glow {
    0%, 100% {
        box-shadow: 
            var(--shadow-heavy),
            0 0 30px rgba(0, 212, 255, 0.2);
    }
    50% {
        box-shadow: 
            var(--shadow-heavy),
            0 0 50px rgba(0, 212, 255, 0.4);
    }
}