/* 基础样式重置 */
* {
    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-color: #f8fdfa;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 150, 136, 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 a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #009688;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

.main-nav a:hover {
    color: #009688;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #009688;
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

.search-box form {
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 10px 15px;
    border: 2px solid #e0f2f1;
    border-radius: 25px 0 0 25px;
    outline: none;
    width: 200px;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: #009688;
    width: 250px;
}

.search-box button {
    background-color: #009688;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #00796b;
}

/* 英雄区域 */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #e0f7fa 0%, #e8f5e9 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
}

.hero-content h1 {
    font-size: 2.8rem;
    color: #00695c;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: #009688;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 150, 136, 0.3);
}

.btn:hover {
    background-color: #00796b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 150, 136, 0.4);
}

.hero-image {
    flex: 1;
    min-width: 300px;
}

.image-rotator {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 150, 136, 0.2);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.image-rotator img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.rotator-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 105, 92, 0.8), transparent);
    padding: 20px;
    display: flex;
    justify-content: space-around;
}

.rotator-overlay span {
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    animation: textGlow 3s infinite alternate;
}

@keyframes textGlow {
    0% { text-shadow: 0 0 5px rgba(255, 255, 255, 0.7); }
    100% { text-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.5); }
}

/* 关键词展示区 */
.keywords-section {
    padding: 60px 0;
    background-color: white;
}

.keywords-section h2 {
    text-align: center;
    color: #00695c;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

.keywords-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.keyword {
    padding: 10px 20px;
    background-color: #e0f2f1;
    border-radius: 25px;
    font-weight: 600;
    color: #00796b;
    transition: all 0.3s;
    cursor: pointer;
    animation: pulse 2s infinite;
}

.keyword:hover {
    background-color: #b2dfdb;
    transform: scale(1.05);
}

.keyword.high-density {
    background-color: #009688;
    color: white;
    font-weight: 700;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 rgba(0, 150, 136, 0.4); }
    50% { box-shadow: 0 0 15px rgba(0, 150, 136, 0.6); }
}

/* 图片展示区 */
.gallery {
    padding: 80px 0;
    background-color: #f1f8e9;
}

.gallery h2, .videos h2 {
    text-align: center;
    color: #00695c;
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 150, 136, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 20px;
}

.gallery-info h3 {
    color: #00796b;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.gallery-info p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.view-btn {
    display: inline-block;
    background-color: transparent;
    color: #009688;
    border: 2px solid #009688;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.view-btn:hover {
    background-color: #009688;
    color: white;
}

.gallery-item.featured {
    border: 3px solid #009688;
    position: relative;
}

.gallery-item.featured::before {
    content: "热门";
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ff5722;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

/* 视频展示区 */
.videos {
    padding: 80px 0;
    background-color: white;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.video-item {
    background-color: #f9f9f9;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s;
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 150, 136, 0.2);
}

.video-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.video-item:hover .video-thumb img {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 150, 136, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0.9;
    transition: all 0.3s;
}

.video-item:hover .play-btn {
    background-color: rgba(0, 150, 136, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    color: #00796b;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.video-info p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.watch-btn {
    display: inline-block;
    background-color: #009688;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.watch-btn:hover {
    background-color: #00796b;
}

.video-item.featured {
    border: 3px solid #009688;
    position: relative;
}

.video-item.featured::before {
    content: "推荐";
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ff9800;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

/* 底部样式 */
.footer {
    background-color: #00695c;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.footer-logo p {
    color: #b2dfdb;
    line-height: 1.7;
    margin-top: 15px;
}

.footer-links h3, .footer-keywords h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b2dfdb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-list a {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    color: #b2dfdb;
    padding: 6px 15px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.keyword-list a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #b2dfdb;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .main-nav li {
        margin: 0 10px 10px;
    }
    
    .search-box input {
        width: 180px;
    }
    
    .search-box input:focus {
        width: 200px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .gallery-grid, .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .gallery-grid, .video-grid {
        grid-template-columns: 1fr;
    }
    
    .keywords-cloud {
        gap: 10px;
    }
    
    .keyword {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}