/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, #1a237e 0%, #311b92 100%);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.logo span {
    color: #7c4dff;
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #e8eaf6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-links a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.search-box form {
    display: flex;
}

.search-box input {
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    width: 250px;
    font-size: 0.95rem;
}

.search-box button {
    background-color: #7c4dff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #651fff;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 关键词密度区域 */
.keyword-density-section {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.keyword-density-section h1 {
    color: #1a237e;
    margin-bottom: 20px;
    font-size: 2.2rem;
    line-height: 1.3;
}

.keyword-paragraph {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.high-density-keywords {
    background-color: #f3e5f5;
    border-left: 5px solid #7c4dff;
    padding: 20px;
    margin-top: 25px;
    border-radius: 0 8px 8px 0;
}

.high-density-keywords h2 {
    color: #4a148c;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.high-density-keywords p {
    line-height: 1.8;
}

.high-density-keywords strong {
    color: #7c4dff;
    font-weight: 700;
}

/* 图片展示区 */
.image-gallery, .video-gallery {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.image-gallery h2, .video-gallery h2 {
    color: #1a237e;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
}

.section-description {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.section-description a {
    color: #7c4dff;
    text-decoration: none;
    font-weight: 500;
}

.section-description a:hover {
    text-decoration: underline;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.image-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: white;
}

.image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.image-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.image-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.image-title {
    padding: 15px;
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.load-more-container {
    text-align: center;
    margin-top: 20px;
}

.load-more-btn {
    background: linear-gradient(135deg, #7c4dff 0%, #651fff 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(124, 77, 255, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(124, 77, 255, 0.4);
}

/* 视频展示区 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.video-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: white;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.video-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(124, 77, 255, 0.85);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.video-item:hover .play-button {
    background-color: rgba(101, 31, 255, 0.95);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-title {
    padding: 15px 15px 5px;
    font-weight: 700;
    color: #1a237e;
    font-size: 1.1rem;
}

.video-desc {
    padding: 0 15px 15px;
    color: #666;
    font-size: 0.95rem;
}

.video-item.featured {
    border: 2px solid #7c4dff;
}

/* 关键词汇总 */
.keyword-summary {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.keyword-summary h3 {
    color: #1a237e;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.keyword-cloud a {
    background-color: #f0f2ff;
    color: #1a237e;
    padding: 8px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
    border: 1px solid #d1d9ff;
}

.keyword-cloud a:hover {
    background-color: #7c4dff;
    color: white;
    transform: translateY(-2px);
}

.keyword-notice {
    background-color: #e8f5e9;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
    line-height: 1.7;
}

.keyword-notice strong {
    color: #1a237e;
}

/* 页脚 */
footer {
    background: linear-gradient(135deg, #1a237e 0%, #311b92 100%);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #bbdefb;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #e8eaf6;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-section p {
    color: #e8eaf6;
    line-height: 1.7;
    margin-bottom: 15px;
}

.footer-search input {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.95rem;
}

.footer-search button {
    background-color: #7c4dff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #bbdefb;
}

.footer-bottom p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-bottom a {
    color: #bbdefb;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .keyword-density-section h1 {
        font-size: 1.8rem;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .keyword-cloud a {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .keyword-density-section,
    .image-gallery,
    .video-gallery,
    .keyword-summary {
        padding: 20px;
    }
    
    .search-box {
        display: none;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
}