/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fcfd;
    background-image: linear-gradient(to bottom, #e6f7ff, #f8fcfd);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 150, 200, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 1.8rem;
    color: #2a9d8f;
    margin-bottom: 5px;
}

.logo h1 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.logo h1 a:hover {
    color: #1d7873;
}

.tagline {
    font-size: 0.9rem;
    color: #666;
}

.search-box {
    flex-grow: 1;
    max-width: 500px;
    margin: 0 30px;
}

.search-box form {
    display: flex;
}

.search-input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 2px solid #a8e6cf;
    border-radius: 30px 0 0 30px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #2a9d8f;
}

.search-btn {
    background-color: #2a9d8f;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #1d7873;
}

.main-nav {
    display: flex;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #2a9d8f;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2a9d8f;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2a9d8f;
    cursor: pointer;
}

/* 关键词展示区域 */
.keywords-section {
    background: linear-gradient(135deg, #a8e6cf 0%, #dcedc1 100%);
    padding: 30px 0;
    margin-bottom: 40px;
}

.keywords-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #1d7873;
}

.keywords-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.keyword-highlight {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 500;
    color: #2a9d8f;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.keyword-highlight:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    background-color: white;
}

/* 主要内容区域 */
.main-content {
    padding-bottom: 50px;
}

.section {
    margin-bottom: 60px;
}

.section h2 {
    font-size: 1.8rem;
    color: #2a9d8f;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #a8e6cf;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 图片库样式 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.gallery-item {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s, box-shadow 0.4s;
}

.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;
    display: block;
}

.gallery-info {
    padding: 20px;
}

.gallery-info h3 {
    color: #2a9d8f;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.gallery-info p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.view-btn {
    display: inline-block;
    background-color: #2a9d8f;
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.3s;
}

.view-btn:hover {
    background-color: #1d7873;
    transform: scale(1.05);
}

/* 关键词内容区域 */
.keywords-content {
    background-color: rgba(168, 230, 207, 0.2);
    padding: 25px;
    border-radius: 15px;
    margin-top: 30px;
    border-left: 5px solid #2a9d8f;
}

.keywords-content h3 {
    color: #1d7873;
    margin-bottom: 15px;
}

.keywords-content p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #555;
}

/* 视频库样式 */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.video-item {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(42, 157, 143, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    transition: background-color 0.3s, transform 0.3s;
}

.video-item:hover .play-btn {
    background-color: rgba(29, 120, 115, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    color: #2a9d8f;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.video-info p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.85rem;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 分类展示 */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.category-card {
    background-color: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card h3 {
    color: #2a9d8f;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #a8e6cf;
}

.category-card ul {
    list-style-type: none;
}

.category-card li {
    margin-bottom: 10px;
}

.category-card a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

.category-card a:hover {
    color: #2a9d8f;
    padding-left: 5px;
}

/* 关于我们 */
.about-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #555;
}

.cta-box {
    text-align: center;
    margin-top: 30px;
}

.cta-btn {
    display: inline-block;
    background: linear-gradient(to right, #2a9d8f, #1d7873);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(29, 120, 115, 0.3);
}

/* 页脚 */
.footer {
    background-color: #1d7873;
    color: white;
    padding: 50px 0 20px;
}

.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: #a8e6cf;
}

.footer-section p {
    line-height: 1.6;
    opacity: 0.9;
}

.footer-section ul {
    list-style-type: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-keywords a {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }
    
    .search-box {
        order: 3;
        max-width: 100%;
        margin: 20px 0 0;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .keywords-cloud {
        gap: 10px;
    }
    
    .keyword-highlight {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 576px) {
    .header .container {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .keywords-content, .about-content {
        padding: 20px;
    }
}