/* 母狗 - 影视传媒与社区平台 */
/* 外部样式表 */

:root {
    --primary-color: #6B4C9A;
    --accent-color: #D4AF37;
    --text-color: #333;
    --bg-color: #f9f9f9;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand .logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.navbar-brand .brand-name {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.navbar-menu {
    display: flex;
    gap: 30px;
    flex: 1;
    margin-left: 40px;
}

.navbar-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-menu a:hover {
    color: var(--primary-color);
}

.search-box {
    display: flex;
    gap: 5px;
}

.search-input {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 150px;
}

.search-btn {
    padding: 8px 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: var(--accent-color);
}

/* 英雄区 */
.hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-overlay h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero-overlay p {
    font-size: 20px;
    margin-bottom: 20px;
}

.cta-btn {
    padding: 12px 30px;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
}

.cta-btn:hover {
    transform: scale(1.05);
}

/* 分类 */
.categories {
    padding: 60px 0;
    background: white;
}

.categories h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.video-card {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

.category-card h3 {
    padding: 15px;
    font-size: 18px;
    color: var(--primary-color);
}

.category-card p {
    padding: 0 15px 15px;
    color: #666;
    font-size: 14px;
}

/* AI赋能 */
.ai-section {
    padding: 60px 0;
    background: var(--bg-color);
}

.ai-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.ai-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.ai-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.ai-card p {
    color: #666;
}

/* 社区 */
.community-section {
    padding: 60px 0;
    background: white;
}

.community-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.community-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.feature {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.feature h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* FAQ */
.faq-section {
    padding: 60px 0;
    background: var(--bg-color);
}

.faq-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-item h4 {
    padding: 15px;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s;
}

.faq-item h4:hover {
    background: var(--accent-color);
}

.faq-item p {
    padding: 15px;
    color: #666;
}

/* 评价 */
.reviews-section {
    padding: 60px 0;
    background: white;
}

.reviews-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.review-text {
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

.review-author {
    color: var(--primary-color);
    font-weight: bold;
}

/* 专家 */
.experts-section {
    padding: 60px 0;
    background: var(--bg-color);
}

.experts-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.expert-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
}

.expert-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.expert-card h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.expert-bio {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
}

.expert-btn {
    padding: 8px 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.expert-btn:hover {
    background: var(--accent-color);
}

/* 页脚 */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-section p, .footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    margin-bottom: 8px;
    display: block;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .navbar-menu {
        margin-left: 0;
        gap: 15px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-input {
        flex: 1;
    }
    
    .hero-overlay h1 {
        font-size: 32px;
    }
    
    .hero-overlay p {
        font-size: 16px;
    }
    
    .category-grid, .ai-grid, .reviews-grid, .experts-grid {
        grid-template-columns: 1fr;
    }
}

