/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4efe9 100%);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2d8f6e;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo i {
    font-size: 2.2rem;
    margin-right: 10px;
}

.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
}

.search-form {
    display: flex;
    background: #f0f5f2;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    background: transparent;
    font-size: 1rem;
    outline: none;
}

.search-btn {
    background: #2d8f6e;
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #237a5e;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s;
}

.nav a:hover {
    background: #e8f5f0;
    color: #2d8f6e;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: #2d8f6e;
    cursor: pointer;
}

/* 关键词展示区 */
.keywords-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f5f9f7 100%);
}

.section-title {
    font-size: 2.2rem;
    color: #2d8f6e;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2d8f6e, #5bc0a8);
    border-radius: 2px;
}

.keywords-inline {
    font-size: 1.2rem;
    color: #5bc0a8;
    font-weight: 400;
}

.keywords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.keyword-item {
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.keyword-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(45, 143, 110, 0.15);
    border-color: #2d8f6e;
}

.keyword-item.highlight {
    background: linear-gradient(135deg, #e8f5f0, #d4ede4);
    border: 2px solid #2d8f6e;
}

.keyword-item a {
    text-decoration: none;
    color: #2d8f6e;
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
}

/* 图片展示区 */
.images-section {
    padding: 60px 0;
    background: white;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.image-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s;
    background: white;
}

.image-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(45, 143, 110, 0.15);
}

.image-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
}

.image-item:hover img {
    transform: scale(1.05);
}

.image-info {
    padding: 20px;
}

.image-info h3 {
    margin-bottom: 10px;
}

.image-info h3 a {
    text-decoration: none;
    color: #2d8f6e;
    font-size: 1.3rem;
}

.image-info p {
    color: #666;
    font-size: 0.95rem;
}

/* 视频展示区 */
.videos-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f9f7 0%, #e8f5f0 100%);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.video-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s;
    background: white;
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(45, 143, 110, 0.15);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    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: 60px;
    height: 60px;
    background: rgba(45, 143, 110, 0.85);
    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-btn {
    background: rgba(45, 143, 110, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    margin-bottom: 10px;
}

.video-info h3 a {
    text-decoration: none;
    color: #2d8f6e;
    font-size: 1.3rem;
}

.video-info p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.video-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.video-keywords a {
    text-decoration: none;
    background: #e8f5f0;
    color: #2d8f6e;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.video-keywords a:hover {
    background: #2d8f6e;
    color: white;
}

/* 关键词密度区域 */
.density-section {
    padding: 60px 0;
    background: white;
}

.density-content {
    background: #f9fcfb;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.density-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #444;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #1a5c46 0%, #2d8f6e 100%);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo i {
    font-size: 2.2rem;
    margin-right: 10px;
}

.footer-links h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #c6f0e0;
}

.footer-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 600px;
}

.footer-keywords a {
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.footer-keywords a:hover {
    background: rgba(255, 255, 255, 0.25);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #c6f0e0;
}

.copyright a {
    color: #a3e8d0;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

/* 浮动搜索框 */
.floating-search {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    z-index: 1000;
}

.floating-btn {
    width: 60px;
    height: 60px;
    background: #2d8f6e;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(45, 143, 110, 0.3);
    transition: all 0.3s;
    margin-right: 15px;
}

.floating-btn:hover {
    background: #237a5e;
    transform: scale(1.1);
}

.floating-search-box {
    display: flex;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s;
    width: 0;
}

.floating-search:hover .floating-search-box {
    opacity: 1;
    transform: translateX(0);
    width: 300px;
}

.floating-search-box input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    outline: none;
    width: 100%;
}

.floating-search-box button {
    background: #2d8f6e;
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    transition: background 0.3s;
}

.floating-search-box button:hover {
    background: #237a5e;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .keywords-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .images-grid, .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }
    
    .search-container {
        order: 3;
        width: 100%;
        margin: 20px 0 0;
        max-width: 100%;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .keywords-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .images-grid, .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .floating-search-box {
        display: none;
    }
    
    .floating-search:hover .floating-search-box {
        display: none;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.keywords-section, .images-section, .videos-section, .density-section {
    animation: fadeIn 0.8s ease-out;
}

.keyword-item, .image-item, .video-item {
    animation: fadeIn 0.5s ease-out;
}