/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 动态背景 */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(100, 200, 255, 0.1);
    animation: float 15s infinite linear;
}

.circle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 70%;
    left: 80%;
    animation-delay: 3s;
    background: rgba(255, 150, 100, 0.1);
}

.circle:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 40%;
    left: 85%;
    animation-delay: 6s;
    background: rgba(100, 255, 150, 0.1);
}

.circle:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 20%;
    animation-delay: 9s;
    background: rgba(255, 100, 200, 0.1);
}

.circle:nth-child(5) {
    width: 70px;
    height: 70px;
    top: 20%;
    left: 70%;
    animation-delay: 12s;
    background: rgba(200, 100, 255, 0.1);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(0) rotate(180deg);
    }
    75% {
        transform: translateY(20px) rotate(270deg);
    }
}

/* 基础样式 */
body {
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #3b82f6;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    font-size: 2rem;
    margin-right: 10px;
}

/* 搜索框样式 */
.search-container {
    position: relative;
    flex-grow: 1;
    max-width: 500px;
    margin: 0 30px;
}

.search-form {
    display: flex;
    background-color: #f1f5f9;
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.search-form:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.search-form input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 1rem;
    outline: none;
}

.search-form button {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-form button:hover {
    background-color: #2563eb;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 10px;
    margin-top: 5px;
    display: none;
    z-index: 100;
}

.search-suggestions a {
    display: inline-block;
    background-color: #f1f5f9;
    color: #475569;
    padding: 5px 10px;
    margin: 3px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.search-suggestions a:hover {
    background-color: #3b82f6;
    color: white;
}

/* 导航样式 */
.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s;
}

.main-nav a:hover {
    background-color: #f1f5f9;
    color: #3b82f6;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: #475569;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: white;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
}

.mobile-menu a {
    text-decoration: none;
    color: #475569;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 500;
}

.mobile-menu .search-box {
    display: flex;
    margin-top: 15px;
}

.mobile-menu .search-box input {
    flex-grow: 1;
    border: 1px solid #e2e8f0;
    border-radius: 5px 0 0 5px;
    padding: 10px;
}

.mobile-menu .search-box button {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 5px 5px 0;
}

/* 主横幅样式 */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,50 Q25,40 50,50 T100,50" stroke="%233b82f6" stroke-width="0.5" fill="none" opacity="0.1"/><path d="M0,60 Q25,70 50,60 T100,60" stroke="%233b82f6" stroke-width="0.5" fill="none" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    position: relative;
}

.hero h1 {
    font-size: 2.8rem;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background-color: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.btn-secondary:hover {
    background-color: #f1f5f9;
    transform: translateY(-3px);
}

/* 关键词区域样式 */
.keywords-section {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
}

.keywords-section h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.keywords-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.keywords-cloud a {
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s;
    font-weight: 500;
}

.keyword-large {
    background-color: #dbeafe;
    color: #1d4ed8;
    font-size: 1.1rem;
}

.keyword-medium {
    background-color: #f0f9ff;
    color: #0369a1;
    font-size: 1rem;
}

.keyword-small {
    background-color: #f8fafc;
    color: #475569;
    font-size: 0.9rem;
}

.keywords-cloud a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 通用分区样式 */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #1e293b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
}

.dark-section {
    background-color: #f1f5f9;
    border-radius: 30px;
    margin: 30px;
}

/* 图片网格样式 */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.image-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.image-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.image-card:hover .image-wrapper img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 20px;
}

.image-card:hover .image-overlay {
    opacity: 1;
}

.image-overlay h3 {
    color: white;
    margin-bottom: 10px;
    text-align: center;
}

.image-overlay p {
    color: #e2e8f0;
    text-align: center;
    margin-bottom: 20px;
}

.btn-overlay {
    background-color: #3b82f6;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-overlay:hover {
    background-color: #2563eb;
}

.image-info {
    padding: 20px;
}

.image-info h4 {
    color: #1e293b;
    margin-bottom: 10px;
}

.image-info p {
    color: #64748b;
    font-size: 0.9rem;
}

.image-info a {
    color: #3b82f6;
    text-decoration: none;
}

.image-info a:hover {
    text-decoration: underline;
}

/* 视频网格样式 */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.video-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(59, 130, 246, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.video-card:hover .play-btn {
    background-color: rgba(59, 130, 246, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 20px;
}

.video-info h4 {
    color: #1e293b;
    margin-bottom: 10px;
}

.video-info p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.video-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.video-keywords a {
    background-color: #f1f5f9;
    color: #475569;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.video-keywords a:hover {
    background-color: #3b82f6;
    color: white;
}

/* 分类网格样式 */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 70px;
    height: 70px;
    background-color: #dbeafe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #3b82f6;
    font-size: 1.8rem;
}

.category-card h3 {
    color: #1e293b;
    margin-bottom: 15px;
}

.category-card p {
    color: #64748b;
    margin-bottom: 20px;
}

.category-link {
    display: inline-block;
    background-color: #3b82f6;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.category-link:hover {
    background-color: #2563eb;
}

/* 更多链接样式 */
.more-links {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-top: 30px;
}

.more-links p {
    color: #475569;
    font-size: 1rem;
}

.more-links a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.more-links a:hover {
    text-decoration: underline;
}

/* 页脚样式 */
.footer {
    background-color: #1e293b;
    color: #cbd5e1;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo i {
    font-size: 2rem;
    margin-right: 10px;
}

.footer-logo p {
    color: #94a3b8;
    line-height: 1.6;
}

.footer-links h4, .footer-keywords h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3b82f6;
}

.footer-keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-keywords-list a {
    background-color: #334155;
    color: #cbd5e1;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.footer-keywords-list a:hover {
    background-color: #3b82f6;
    color: white;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-bottom a {
    color: #60a5fa;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .dark-section {
        margin: 20px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }
    
    .search-container {
        order: 3;
        max-width: 100%;
        margin: 20px 0 0;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .dark-section {
        margin: 10px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .keywords-cloud {
        gap: 10px;
    }
    
    .keyword-large, .keyword-medium, .keyword-small {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .images-grid, .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}