/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 24px;
    font-weight: 700;
}

.logo i {
    color: #4a9eff;
    margin-right: 10px;
    font-size: 28px;
}

.highlight {
    color: #4a9eff;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover {
    color: #4a9eff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4a9eff;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px 0 0 25px;
    width: 250px;
    font-size: 14px;
    outline: none;
    transition: border 0.3s;
}

.search-input:focus {
    border-color: #4a9eff;
}

.search-btn {
    background-color: #4a9eff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #3a8aee;
}

/* 头部展示区样式 */
.hero {
    background: linear-gradient(135deg, #f5f7ff 0%, #eef1ff 100%);
    padding: 80px 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #222;
}

.hero p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    max-width: 600px;
}

.btn-primary {
    display: inline-block;
    background-color: #4a9eff;
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid #4a9eff;
}

.btn-primary:hover {
    background-color: transparent;
    color: #4a9eff;
}

.hero-image {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* 关键词云样式 */
.keywords-section {
    padding: 60px 0;
    background-color: white;
}

.keywords-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 32px;
}

.keywords-section h2 i {
    color: #4a9eff;
    margin-right: 10px;
}

.keywords-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.keyword-tag {
    display: inline-block;
    padding: 8px 18px;
    background-color: #f0f5ff;
    border-radius: 30px;
    text-decoration: none;
    color: #4a9eff;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid #d9e6ff;
}

.keyword-tag:hover {
    background-color: #4a9eff;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 158, 255, 0.2);
}

.keyword-tag.large {
    font-size: 18px;
    padding: 10px 22px;
}

.keyword-tag.medium {
    font-size: 16px;
}

.keyword-tag.small {
    font-size: 14px;
    padding: 6px 14px;
}

/* 图片展示区样式 */
.gallery-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #666;
    font-size: 17px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.5s;
    height: 300px;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.gallery-overlay p {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.btn-secondary {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 视频展示区样式 */
.video-section {
    padding: 60px 0;
    background-color: white;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
}

.video-card {
    display: flex;
    background-color: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    flex: 1;
    position: relative;
    min-height: 200px;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(74, 158, 255, 0.9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.play-btn:hover {
    background-color: rgba(74, 158, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    flex: 1;
    padding: 25px;
}

.video-info h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #333;
}

.video-info p {
    color: #666;
    margin-bottom: 20px;
}

/* 高密度关键词区域样式 */
.dense-keywords {
    padding: 60px 0;
    background-color: #f0f5ff;
}

.dense-keywords h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 32px;
}

.dense-keywords h2 i {
    color: #4a9eff;
    margin-right: 10px;
}

.dense-content {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.dense-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #444;
}

.highlighted-keywords {
    background-color: #f0f5ff;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 5px solid #4a9eff;
}

.highlighted-keywords h3 {
    color: #4a9eff;
    margin-bottom: 15px;
    font-size: 20px;
}

/* 页脚样式 */
.footer {
    background-color: #222;
    color: #ddd;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section h3 i {
    color: #4a9eff;
    margin-right: 10px;
}

.footer-section p {
    line-height: 1.7;
    color: #aaa;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #4a9eff;
}

.footer-search {
    margin-bottom: 20px;
}

.footer-search-input {
    padding: 10px 15px;
    border: 1px solid #444;
    border-radius: 25px 0 0 25px;
    width: 180px;
    font-size: 14px;
    outline: none;
    background-color: #333;
    color: white;
}

.footer-search-btn {
    background-color: #4a9eff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.footer-search-btn:hover {
    background-color: #3a8aee;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: #4a9eff;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #aaa;
    margin-bottom: 15px;
}

.footer-bottom a {
    color: #4a9eff;
    text-decoration: none;
}

.footer-keywords {
    color: #888;
    font-size: 14px;
    margin-top: 10px;
}

.footer-keywords span {
    color: #aaa;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .video-card {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-input {
        width: 200px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .keywords-cloud {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .search-input {
        width: 150px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .dense-content {
        padding: 20px;
    }
}