/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --cyan-color: #06b6d4;
    --cyan-light: #22d3ee;
    --cyan-dark: #0891b2;
    --cyan-bright: #00e6ff;
    --secondary-color: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --background: #ffffff;
    --surface: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-cyan: 0 10px 25px rgba(6, 182, 212, 0.2);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #667eea 0%, #06b6d4 50%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--background);
    margin: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    animation: containerFadeIn 1s ease-out;
}

@keyframes containerFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 头部样式 */
.header {
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    background: linear-gradient(135deg, var(--text-primary), var(--cyan-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--cyan-color);
    font-weight: 500;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--cyan-color));
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 4px;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(6, 182, 212, 0.3), transparent);
    animation: logoShine 3s ease-in-out infinite;
}

@keyframes logoShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
}

.nav-item:hover {
    color: var(--primary-color);
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.nav-item.active {
    color: var(--primary-color);
    background: var(--secondary-color);
}

/* 主要内容区域 */
.main {
    flex: 1;
    padding: 0 40px;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 70vh;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    animation: slideInLeft 1s ease-out 0.3s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary), var(--cyan-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(6, 182, 212, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--cyan-color));
    color: white;
    box-shadow: var(--shadow-cyan);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.4);
    background: linear-gradient(135deg, var(--cyan-dark), var(--primary-color));
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    border: 2px solid var(--cyan-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--cyan-color);
    border-color: var(--cyan-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-cyan);
}

/* 视觉元素 */
.hero-visual {
    position: relative;
    height: 400px;
    animation: slideInRight 1s ease-out 0.5s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.card {
    position: absolute;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.card-1 {
    width: 200px;
    height: 140px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: 20%;
    left: 10%;
    animation: float1 6s ease-in-out infinite;
}

.card-2 {
    width: 160px;
    height: 120px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    top: 50%;
    right: 20%;
    animation: float2 8s ease-in-out infinite;
}

.card-3 {
    width: 180px;
    height: 100px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    bottom: 20%;
    left: 30%;
    animation: float3 7s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(15px) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
    75% { transform: translateY(5px) rotate(-1deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    40% { transform: translateY(-15px) rotate(1deg); }
    80% { transform: translateY(8px) rotate(-2deg); }
}

/* 功能特性区域 */
.features {
    padding: 80px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out both;
    animation-delay: calc(var(--index) * 0.2s);
}

.feature-card:nth-child(1) { --index: 1; }
.feature-card:nth-child(2) { --index: 2; }
.feature-card:nth-child(3) { --index: 3; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.icon-1 {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.icon-2 {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.icon-3 {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 8px;
    transform: translate(-50%, -50%);
    opacity: 0.9;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 资源网格区域 */
.resource-grid {
    padding: 80px 0 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.resource-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.resource-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 4px;
    max-width: 400px;
    width: 100%;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-btn {
    padding: 12px 16px;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    padding: 12px 24px;
    border: 2px solid var(--border);
    background: white;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--text-secondary);
}

.filter-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

.resource-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
    padding: 40px;
    background: linear-gradient(135deg, var(--surface), white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.stat-item {
    text-align: center;
    padding: 20px;
    animation: statCounter 2s ease-out;
}

@keyframes statCounter {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.resource-item {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    animation: scaleIn 0.6s ease-out both;
    animation-delay: calc(var(--index) * 0.1s);
    position: relative;
    border: 1px solid var(--border);
}

.resource-item:nth-child(1) { --index: 1; }
.resource-item:nth-child(2) { --index: 2; }
.resource-item:nth-child(3) { --index: 3; }
.resource-item:nth-child(4) { --index: 4; }
.resource-item:nth-child(5) { --index: 5; }
.resource-item:nth-child(6) { --index: 6; }
.resource-item:nth-child(7) { --index: 7; }
.resource-item:nth-child(8) { --index: 8; }

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.resource-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.resource-thumb {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.resource-item:hover .thumb-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    transform: scale(0.8);
    transition: var(--transition);
}

.resource-item:hover .play-icon {
    transform: scale(1);
}

.resource-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resource-badge.hot {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    animation: pulse 2s infinite;
}

.resource-badge.new {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
}

.resource-badge.trending {
    background: linear-gradient(135deg, #ffa726, #ff7043);
    color: white;
}

.resource-badge.premium {
    background: linear-gradient(135deg, #9c27b0, #673ab7);
    color: white;
}

.resource-badge:not(.hot):not(.new):not(.trending):not(.premium) {
    background: rgba(0, 0, 0, 0.7);
    color: white;
}

/* 特定类型的缩略图样式 - 动态效果版本 */
.music-thumb {
    background: #1a1a2e;
    position: relative;
    overflow: hidden;
}

.music-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    animation: musicPulse 3s ease-in-out infinite;
}

.music-thumb .musical-notes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.music-thumb .note {
    font-size: 24px;
    color: #667eea;
    animation: noteFloat 2s ease-in-out infinite;
    opacity: 0.8;
}

.music-thumb .note:nth-child(1) { animation-delay: 0s; }
.music-thumb .note:nth-child(2) { animation-delay: 0.2s; }
.music-thumb .note:nth-child(3) { animation-delay: 0.4s; }
.music-thumb .note:nth-child(4) { animation-delay: 0.6s; }

@keyframes musicPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

@keyframes noteFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.video-thumb {
    background: linear-gradient(45deg, #0f0f23, #1a1a2e);
    position: relative;
    overflow: hidden;
}

.video-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 87, 108, 0.4), transparent);
    animation: videoScan 3s ease-in-out infinite;
}

.video-thumb .video-frames {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 8px;
}

.video-thumb .frame {
    width: 30px;
    height: 20px;
    background: rgba(245, 87, 108, 0.6);
    border-radius: 2px;
    animation: frameFlicker 1.5s ease-in-out infinite;
}

.video-thumb .frame:nth-child(1) { animation-delay: 0s; }
.video-thumb .frame:nth-child(2) { animation-delay: 0.3s; }
.video-thumb .frame:nth-child(3) { animation-delay: 0.6s; }

@keyframes videoScan {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: -100%; }
}

@keyframes frameFlicker {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.template-thumb {
    background: radial-gradient(circle at center, #16213e, #0f172a);
    position: relative;
    overflow: hidden;
}

.template-thumb::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(79, 172, 254, 0.5);
    border-radius: 8px;
    animation: templatePulse 2s ease-in-out infinite;
}

.template-thumb .template-grid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    width: 60%;
    height: 60%;
}

.template-thumb .grid-item {
    background: rgba(79, 172, 254, 0.6);
    border-radius: 2px;
    animation: gridItemPulse 1.8s ease-in-out infinite;
}

.template-thumb .grid-item:nth-child(odd) {
    animation-delay: 0.2s;
}

@keyframes templatePulse {
    0%, 100% { border-color: rgba(79, 172, 254, 0.3); transform: translate(-50%, -50%) scale(1); }
    50% { border-color: rgba(79, 172, 254, 0.8); transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes gridItemPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.effect-thumb {
    background: radial-gradient(circle at center, #0d1117, #1a1a2e);
    position: relative;
    overflow: hidden;
}

.effect-thumb::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #43e97b;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 20px #43e97b,
        0 0 40px #43e97b,
        0 0 60px #43e97b;
    animation: effectEnergy 2s ease-in-out infinite;
}

.effect-thumb .particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.effect-thumb .particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #38f9d7;
    border-radius: 50%;
    animation: particleFloat 3s linear infinite;
}

.effect-thumb .particle:nth-child(1) {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.effect-thumb .particle:nth-child(2) {
    top: 60%;
    left: 70%;
    animation-delay: 1s;
}

.effect-thumb .particle:nth-child(3) {
    top: 80%;
    left: 20%;
    animation-delay: 2s;
}

@keyframes effectEnergy {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 
            0 0 20px #43e97b,
            0 0 40px #43e97b,
            0 0 60px #43e97b;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        box-shadow: 
            0 0 30px #43e97b,
            0 0 60px #43e97b,
            0 0 90px #43e97b;
    }
}

@keyframes particleFloat {
    0% { 
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% { 
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
}
.font-thumb {
    background: linear-gradient(135deg, #2d1b69, #11092b);
    position: relative;
    overflow: hidden;
}

.font-thumb::before {
    content: 'Aa';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: 700;
    color: rgba(250, 112, 154, 0.8);
    animation: fontScale 2.5s ease-in-out infinite;
}

.font-thumb .font-samples {
    position: absolute;
    top: 20%;
    left: 10%;
    right: 10%;
    bottom: 20%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.font-thumb .sample-text {
    color: rgba(254, 225, 64, 0.7);
    font-weight: 600;
    animation: fontFade 3s ease-in-out infinite;
}

.font-thumb .sample-text:nth-child(1) {
    font-size: 12px;
    animation-delay: 0s;
}

.font-thumb .sample-text:nth-child(2) {
    font-size: 14px;
    animation-delay: 1s;
}

.font-thumb .sample-text:nth-child(3) {
    font-size: 16px;
    animation-delay: 2s;
}

@keyframes fontScale {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes fontFade {
    0%, 66%, 100% { opacity: 0.3; }
    33% { opacity: 1; }
}

.sound-thumb {
    background: linear-gradient(135deg, #134e5e, #71b280);
    position: relative;
    overflow: hidden;
}

.sound-thumb::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border: 3px solid rgba(113, 178, 128, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: soundRipple 2s ease-out infinite;
}

.sound-thumb .sound-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: flex-end;
    gap: 3px;
}

.sound-thumb .sound-wave span {
    width: 4px;
    background: rgba(113, 178, 128, 0.8);
    border-radius: 2px;
    animation: waveAnimation 1.2s ease-in-out infinite;
}

.sound-thumb .sound-wave span:nth-child(1) {
    height: 15px;
    animation-delay: 0s;
}

.sound-thumb .sound-wave span:nth-child(2) {
    height: 25px;
    animation-delay: 0.1s;
}

.sound-thumb .sound-wave span:nth-child(3) {
    height: 20px;
    animation-delay: 0.2s;
}

.sound-thumb .sound-wave span:nth-child(4) {
    height: 30px;
    animation-delay: 0.3s;
}

@keyframes soundRipple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

@keyframes waveAnimation {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

.color-thumb {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    position: relative;
    overflow: hidden;
}

.color-thumb::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
    background: linear-gradient(45deg, 
        #ff6b6b 0%, 
        #4ecdc4 25%, 
        #45b7d1 50%, 
        #96ceb4 75%, 
        #ffa726 100%);
    border-radius: 50%;
    animation: colorRotate 4s linear infinite;
}

.color-thumb .color-preview {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
    animation: colorShine 3s ease-in-out infinite;
}

@keyframes colorRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes colorShine {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.icon-thumb {
    background: radial-gradient(circle at center, #2c3e50, #34495e);
    position: relative;
    overflow: hidden;
}

.icon-thumb .icon-grid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.icon-thumb .mini-icon {
    font-size: 24px;
    animation: iconBounce 2s ease-in-out infinite;
}

.icon-thumb .mini-icon:nth-child(1) { animation-delay: 0s; }
.icon-thumb .mini-icon:nth-child(2) { animation-delay: 0.5s; }
.icon-thumb .mini-icon:nth-child(3) { animation-delay: 1s; }
.icon-thumb .mini-icon:nth-child(4) { animation-delay: 1.5s; }

@keyframes iconBounce {
    0%, 80%, 100% { transform: scale(1); }
    40% { transform: scale(1.2); }
}
}

.color-thumb {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
}

.sound-thumb {
    background: linear-gradient(135deg, #d299c2, #fef9d7);
}

.icon-thumb {
    background: linear-gradient(135deg, #89f7fe, #66a6ff);
}

/* 特殊元素样式 */
.font-preview {
    font-size: 48px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.color-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-bar {
    width: 80%;
    height: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sound-wave {
    display: flex;
    align-items: end;
    gap: 4px;
    height: 40px;
}

.sound-wave span {
    display: block;
    width: 4px;
    background: white;
    border-radius: 2px;
    animation: soundWave 1.5s ease-in-out infinite;
}

.sound-wave span:nth-child(1) { height: 20px; animation-delay: 0s; }
.sound-wave span:nth-child(2) { height: 35px; animation-delay: 0.2s; }
.sound-wave span:nth-child(3) { height: 25px; animation-delay: 0.4s; }
.sound-wave span:nth-child(4) { height: 40px; animation-delay: 0.6s; }

@keyframes soundWave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

.icon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 80px;
    height: 80px;
}

.mini-icon {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.resource-info {
    padding: 24px;
}

.resource-info h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.resource-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.resource-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 12px;
    background: var(--secondary-color);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

.resource-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

.downloads, .rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating {
    color: #fbbf24;
}

.load-more-section {
    text-align: center;
    margin-top: 60px;
    padding: 40px 0;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 16px 32px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.load-more-text {
    margin-top: 16px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 品牌横幅样式 */
.brand-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    padding: 20px 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: var(--shadow-cyan);
}

.brand-logo {
    font-size: 2rem;
    animation: brandPulse 2s ease-in-out infinite;
}

@keyframes brandPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.powered-by {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--cyan-bright), white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

/* 极客工具箱样式 */
.geek-tools-section {
    padding: 80px 0;
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--surface), white);
    border-radius: var(--radius);
    margin-top: 40px;
    border: 1px solid var(--border);
}

.tools-container {
    padding: 0 40px;
}

.tools-header {
    text-align: center;
    margin-bottom: 60px;
}

.tools-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 16px;
    text-align: center;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.tool-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border);
    position: relative;
}

.tool-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--cyan-color);
}

.tool-thumb {
    height: 180px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--cyan-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
    animation: toolIconFloat 3s ease-in-out infinite;
}

@keyframes toolIconFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

/* 配音专家视觉元素 */
.voice-thumb .voice-visual {
    display: flex;
    align-items: end;
    gap: 6px;
    height: 40px;
}

.voice-thumb .voice-wave {
    display: block;
    width: 6px;
    background: white;
    border-radius: 3px;
    animation: voiceWave 1.5s ease-in-out infinite;
}

.voice-thumb .voice-wave:nth-child(1) { height: 15px; animation-delay: 0s; }
.voice-thumb .voice-wave:nth-child(2) { height: 30px; animation-delay: 0.2s; }
.voice-thumb .voice-wave:nth-child(3) { height: 20px; animation-delay: 0.4s; }
.voice-thumb .voice-wave:nth-child(4) { height: 35px; animation-delay: 0.6s; }

@keyframes voiceWave {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

/* 视频解析视觉元素 */
.video-parser-thumb .parser-visual {
    position: relative;
    width: 60px;
    height: 60px;
}

.video-parser-thumb .download-arrows {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.video-parser-thumb .arrow {
    font-size: 24px;
    color: white;
    animation: arrowBounce 1.2s ease-in-out infinite;
}

.video-parser-thumb .arrow:nth-child(1) { animation-delay: 0s; }
.video-parser-thumb .arrow:nth-child(2) { animation-delay: 0.3s; }
.video-parser-thumb .arrow:nth-child(3) { animation-delay: 0.6s; }

@keyframes arrowBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
}

/* 文案提取视觉元素 */
.text-extract-thumb .extract-visual {
    position: relative;
    width: 80px;
    height: 50px;
}

.text-extract-thumb .text-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.text-extract-thumb .text-line {
    display: block;
    height: 4px;
    background: white;
    border-radius: 2px;
    animation: textLineAppear 2s ease-in-out infinite;
}

.text-extract-thumb .text-line:nth-child(1) { width: 60px; animation-delay: 0s; }
.text-extract-thumb .text-line:nth-child(2) { width: 45px; animation-delay: 0.5s; }
.text-extract-thumb .text-line:nth-child(3) { width: 55px; animation-delay: 1s; }

.text-extract-thumb .extract-cursor {
    position: absolute;
    right: -8px;
    top: 0;
    width: 2px;
    height: 100%;
    background: white;
    animation: cursorBlink 1s ease-in-out infinite;
}

@keyframes textLineAppear {
    0% { opacity: 0; transform: translateX(-20px); }
    50% { opacity: 1; transform: translateX(0); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.tool-info {
    padding: 24px;
}

.tool-info h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.tool-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.feature-tag {
    padding: 6px 12px;
    background: var(--secondary-color);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.tool-card:hover .feature-tag {
    background: var(--cyan-color);
    color: white;
    border-color: var(--cyan-dark);
}

.tool-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-width: auto;
}

.tools-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    padding: 40px;
    background: linear-gradient(135deg, var(--surface), white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* 工具详情模态框 */
.tool-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.tool-detail-modal.show {
    opacity: 1;
    visibility: visible;
}

.tool-detail-content {
    background: white;
    border-radius: var(--radius);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
}

.tool-detail-modal.show .tool-detail-content {
    transform: scale(1);
}

.tool-detail-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--cyan-color));
    color: white;
    border-radius: var(--radius) var(--radius) 0 0;
}

.tool-detail-body {
    padding: 24px;
}

.tool-detail-features {
    list-style: none;
    margin: 20px 0;
}

.tool-detail-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
}

.tool-detail-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cyan-color);
    font-weight: bold;
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 60px 40px 20px;
    border-top: 3px solid var(--cyan-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    margin-bottom: 40px;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.footer-logo-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--cyan-color));
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow-cyan);
}

.footer-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(135deg, white, var(--cyan-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-subtitle {
    font-size: 1rem;
    color: var(--cyan-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-section h3 {
    color: var(--cyan-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--cyan-color);
    padding-bottom: 8px;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 8px 0;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    padding-left: 12px;
}

.footer-section a:hover {
    color: var(--cyan-light);
    border-left-color: var(--cyan-color);
    transform: translateX(8px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(6, 182, 212, 0.3);
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-tech {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tech-badge {
    background: rgba(6, 182, 212, 0.2);
    color: var(--cyan-light);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(6, 182, 212, 0.3);
    backdrop-filter: blur(10px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 16px;
    }
    
    .header {
        padding: 16px 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav {
        gap: 16px;
    }
    
    .main {
        padding: 0 20px;
    }
    
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .btn {
        min-width: 120px;
        padding: 14px 24px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

/* 新增：短视频资源库卡片特殊样式 */
.tool-card.highlighted {
    background: linear-gradient(135deg, #E6F7FF 0%, #CCF0FF 100%);
    border: 2px solid #00B8E6;
    position: relative;
    overflow: hidden;
}

.tool-card.highlighted::before {
    content: '推荐';
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
    z-index: 1;
}

.resources-thumb {
    background: linear-gradient(135deg, #00D4FF 0%, #0099FF 100%);
    position: relative;
    overflow: hidden;
}

.resources-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

.resources-visual .sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.resources-visual .sparkle {
    position: absolute;
    font-size: 1.2rem;
    animation: sparkle 3s ease-in-out infinite;
}

.resources-visual .sparkle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.resources-visual .sparkle:nth-child(2) {
    top: 30%;
    right: 25%;
    animation-delay: 1s;
}

.resources-visual .sparkle:nth-child(3) {
    bottom: 25%;
    left: 30%;
    animation-delay: 2s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
}

.tool-card.highlighted:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 184, 230, 0.3);
    border-color: #00D4FF;
}

.tool-card.highlighted .tool-info h4 {
    background: linear-gradient(135deg, #00B8E6 0%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* 添加按钮链接样式修复 */
a.btn {
    text-decoration: none;
    display: inline-block;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}