/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4a6fa5;
    text-decoration: none;
    background: linear-gradient(45deg, #4a6fa5, #6b93d6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background: #4a6fa5;
    color: white;
}

.search-box form {
    display: flex;
}

.search-box input {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px 0 0 25px;
    width: 200px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #4a6fa5;
    width: 250px;
}

.search-box button {
    padding: 10px 20px;
    background: linear-gradient(45deg, #4a6fa5, #6b93d6);
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: #3a5a8a;
}

/* 轮播图样式 */
.hero-slider {
    position: relative;
    margin: 30px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.slider-container {
    height: 400px;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px;
}

.slide-content h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    max-width: 600px;
}

.btn {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.slider-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* 关键词云样式 */
.keyword-density {
    background: white;
    padding: 40px;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.keyword-density h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #4a6fa5;
    font-size: 1.8rem;
}

.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.keyword-cloud a {
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.keyword-large {
    font-size: 1.4rem;
    background: linear-gradient(45deg, #4a6fa5, #6b93d6);
    color: white;
}

.keyword-medium {
    font-size: 1.1rem;
    background: #e9f0fa;
    color: #4a6fa5;
}

.keyword-small {
    font-size: 0.9rem;
    background: #f5f7fa;
    color: #6b93d6;
}

.keyword-tiny {
    font-size: 0.8rem;
    background: #fafbfd;
    color: #8aa7d6;
    padding: 5px 10px;
}

.keyword-cloud a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 111, 165, 0.2);
}

/* 图片展示区 */
.image-gallery {
    margin: 40px 0;
}

.image-gallery h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #4a6fa5;
    font-size: 1.8rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.image-info {
    padding: 20px;
}

.image-info h3 {
    margin-bottom: 10px;
}

.image-info h3 a {
    color: #4a6fa5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.image-info h3 a:hover {
    color: #ff6b6b;
}

.image-info p {
    color: #666;
    font-size: 0.95rem;
}

/* 视频展示区 */
.video-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    margin: 40px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.video-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #4a6fa5;
    font-size: 1.8rem;
}

.video-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.video-player {
    background: #f5f7fa;
    border-radius: 10px;
    overflow: hidden;
}

.video-placeholder {
    position: relative;
    height: 300px;
    background: #222;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.play-btn {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 107, 107, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 107, 107, 1);
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    margin-bottom: 15px;
}

.video-info h3 a {
    color: #4a6fa5;
    text-decoration: none;
}

.video-info p {
    color: #666;
}

.video-list {
    background: #f5f7fa;
    padding: 20px;
    border-radius: 10px;
}

.video-list h3 {
    margin-bottom: 20px;
    color: #4a6fa5;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.video-list ul {
    list-style: none;
}

.video-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e8e8;
}

.video-list a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.video-list a:hover {
    color: #4a6fa5;
    padding-left: 5px;
}

/* SEO内容区 */
.seo-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    margin: 40px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.seo-content h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #4a6fa5;
    font-size: 1.8rem;
}

.seo-text {
    line-height: 1.8;
    font-size: 1.05rem;
}

.seo-text p {
    margin-bottom: 25px;
    text-align: justify;
}

.seo-text a {
    color: #4a6fa5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.seo-text a:hover {
    color: #ff6b6b;
    text-decoration: underline;
}

/* 页脚样式 */
.main-footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #ecf0f1;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #4a6fa5;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #4a6fa5;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #95a5a6;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #4a6fa5;
    text-decoration: none;
}

.footer-bottom p:last-child {
    margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .video-container {
        grid-template-columns: 1fr;
    }
    
    .main-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-box input {
        width: 180px;
    }
    
    .search-box input:focus {
        width: 200px;
    }
    
    .slider-container {
        height: 300px;
    }
    
    .slide-content h2 {
        font-size: 1.6rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .hero-slider {
        margin: 15px 0;
    }
    
    .slider-container {
        height: 250px;
    }
    
    .slide-content {
        padding: 15px;
    }
    
    .slide-content h2 {
        font-size: 1.3rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
    }
    
    .keyword-density, .video-section, .seo-content {
        padding: 25px 20px;
    }
    
    .keyword-cloud {
        gap: 10px;
    }
    
    .keyword-large {
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}