/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
    text-decoration: none;
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background-color: #f0f0f0;
    color: #4CAF50;
}

.search-box form {
    display: flex;
}

.search-box input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    width: 200px;
    font-size: 14px;
}

.search-box button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #3d8b40;
}

/* 关键词展示区域 */
.keywords-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    text-align: center;
}

.keywords-section h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

.keywords-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.keyword-large {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 10px 15px;
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #4CAF50;
    transition: all 0.3s ease;
}

.keyword-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: #4CAF50;
    color: white;
}

.keyword-medium {
    font-size: 1.2rem;
    padding: 8px 12px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #3498db;
    transition: all 0.3s ease;
}

.keyword-medium:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.15);
    background-color: #3498db;
    color: white;
}

.keyword-small {
    font-size: 1rem;
    padding: 6px 10px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #e74c3c;
    transition: all 0.3s ease;
}

.keyword-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    background-color: #e74c3c;
    color: white;
}

/* 主要内容区域 */
.main-content {
    padding: 40px 0;
}

.main-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

.subtitle {
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: normal;
}

/* 图片展示区域 */
.image-gallery {
    margin-bottom: 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.image-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: white;
}

.image-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.image-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.image-title {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: #2c3e50;
    background-color: white;
}

.image-item a {
    text-decoration: none;
    color: inherit;
}

/* 视频展示区域 */
.video-gallery {
    margin-bottom: 60px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.video-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: white;
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.video-title {
    padding: 15px;
    font-weight: bold;
    font-size: 1.1rem;
    color: #2c3e50;
    text-align: center;
}

.video-item a {
    text-decoration: none;
    color: inherit;
}

/* 关键词列表区域 */
.keyword-list {
    margin-bottom: 60px;
}

.keyword-columns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.keyword-column h3 {
    font-size: 1.3rem;
    color: #4CAF50;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.keyword-column ul {
    list-style-type: none;
}

.keyword-column li {
    margin-bottom: 8px;
}

.keyword-column a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
}

.keyword-column a:hover {
    color: #4CAF50;
    padding-left: 5px;
}

/* 底部关键词区域 */
.footer-keywords {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.footer-keywords h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.footer-keyword-links {
    margin-bottom: 20px;
    text-align: center;
}

.footer-keyword-links span {
    font-weight: bold;
    color: #555;
}

.footer-keyword-links a {
    color: #4CAF50;
    text-decoration: none;
    margin: 0 8px;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-keyword-links a:hover {
    color: #3d8b40;
    text-decoration: underline;
}

.footer-all-keywords {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #4CAF50;
}

.footer-all-keywords span {
    font-weight: bold;
    color: #555;
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ecf0f1;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
}

.footer-logo p {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ecf0f1;
}

.footer-links a {
    display: block;
    color: #bdc3c7;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #4CAF50;
}

.footer-contact p {
    color: #bdc3c7;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-main-link {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.footer-main-link:hover {
    background-color: #3d8b40;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav {
        order: 3;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .keywords-cloud {
        gap: 10px;
    }
    
    .keyword-large {
        font-size: 1.3rem;
        padding: 8px 12px;
    }
    
    .keyword-medium {
        font-size: 1.1rem;
        padding: 7px 10px;
    }
    
    .keyword-small {
        font-size: 0.9rem;
        padding: 5px 8px;
    }
    
    .gallery-grid,
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .keywords-section h1 {
        font-size: 2rem;
    }
    
    .main-content h2 {
        font-size: 1.7rem;
    }
    
    .keyword-columns {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .search-box input {
        width: 150px;
    }
}

@media (max-width: 576px) {
    .keywords-cloud {
        flex-direction: column;
        align-items: center;
    }
    
    .keyword-large,
    .keyword-medium,
    .keyword-small {
        width: 80%;
        text-align: center;
    }
    
    .gallery-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box form {
        width: 100%;
    }
    
    .search-box input {
        flex-grow: 1;
        width: auto;
    }
}