/* 基础样式 */
* {
    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: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.main-header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.logo h1 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.logo h1 a:hover {
    color: #3498db;
}

.tagline {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* 搜索框 */
.search-container {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-form {
    display: flex;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 0.95rem;
}

.search-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #2980b9;
}

/* 导航 */
.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s;
}

.main-nav a:hover {
    color: #3498db;
}

.main-nav a:hover:after {
    width: 100%;
}

/* 关键词云 */
.keywords-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    animation: fadeIn 1s ease-out;
}

.keywords-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
}

.keywords-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.keywords-cloud span {
    padding: 8px 16px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    color: white;
    border-radius: 20px;
    font-size: 0.95rem;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.keywords-cloud span:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
}

.keyword-high {
    background: linear-gradient(to right, #e74c3c, #f39c12) !important;
    font-weight: bold;
}

.keywords-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

/* 图片展示区 */
.gallery-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.gallery-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}

.gallery-section h2 i {
    margin-right: 10px;
    color: #3498db;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s, box-shadow 0.4s;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.image-link {
    display: block;
    position: relative;
    height: 180px;
    overflow: hidden;
}

.image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover .image-link img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.4s;
}

.gallery-item:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.image-overlay p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.image-desc {
    padding: 15px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

/* 视频展示区 */
.video-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.video-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}

.video-section h2 i {
    margin-right: 10px;
    color: #e74c3c;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.video-item {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s, box-shadow 0.4s;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.video-thumb {
    position: relative;
    flex: 0 0 140px;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(231, 76, 60, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.3s;
}

.video-item:hover .play-btn {
    background: rgba(231, 76, 60, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    flex: 1;
    padding: 15px;
}

.video-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.video-info h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.video-info h3 a:hover {
    color: #3498db;
}

.video-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.video-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.video-keywords span {
    background: #f1f2f6;
    color: #555;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    transition: background 0.3s, color 0.3s;
}

.video-keywords span:hover {
    background: #3498db;
    color: white;
}

/* SEO优化区域 */
.seo-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.seo-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
}

.seo-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

.seo-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.seo-links {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.seo-links h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.seo-links ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.seo-links li {
    margin-bottom: 8px;
}

.seo-links a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.seo-links a:before {
    content: '►';
    margin-right: 8px;
    font-size: 0.8rem;
    color: #2ecc71;
}

.seo-links a:hover {
    color: #e74c3c;
}

/* 页脚 */
.main-footer {
    background: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #ecf0f1;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #3498db;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-keywords a {
    background: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.3s, color 0.3s;
}

.footer-keywords a:hover {
    background: #3498db;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.footer-section li a:before {
    content: '›';
    margin-right: 8px;
    color: #3498db;
}

.footer-section li a:hover {
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #95a5a6;
    font-size: 0.9rem;
}

.footer-seo {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #7f8c8d;
    line-height: 1.5;
}

/* 浮动搜索框 */
.floating-search {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.main-float {
    display: block;
    width: 60px;
    height: 60px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 1.5rem;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    margin-bottom: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.main-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.6);
}

.float-search {
    background: white;
    padding: 15px;
    border-radius: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s, transform 0.4s;
    display: none;
}

.floating-search:hover .float-search {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.float-search form {
    display: flex;
}

.float-search input {
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    width: 200px;
    outline: none;
}

.float-search button {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    margin-left: 10px;
    cursor: pointer;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .main-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .search-container {
        width: 100%;
        max-width: 100%;
        margin: 15px 0;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .main-nav li {
        margin: 5px 10px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .video-item {
        flex-direction: column;
    }
    
    .video-thumb {
        flex: 0 0 200px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .seo-links ul {
        grid-template-columns: 1fr;
    }
    
    .floating-search {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .keywords-cloud {
        gap: 10px;
    }
    
    .keywords-cloud span {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .gallery-section, .video-section, .keywords-section, .seo-section {
        padding: 20px;
    }
}