/* 91 修车改装视频社区 - 原创样式表 */
/* 颜色方案：深邃夜蓝 + 赛车红 + 金属橙 */

:root {
    --primary: #1a1a2e;
    --secondary: #e94560;
    --accent: #f5a623;
    --bg-dark: #0f0f1a;
    --text-light: #e8e8e8;
    --card-bg: #16213e;
    --border-color: #2a2a4a;
    --text-muted: #8892b0;
    --gradient-start: #1a1a2e;
    --gradient-end: #0f0f1a;
    --success: #2ecc71;
    --shadow: rgba(233, 69, 96, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

img {
    max-width: 100%;
    height: auto;
}

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

/* 头部导航 */
.site-header {
    background: linear-gradient(180deg, var(--primary) 0%, rgba(26, 26, 46, 0.95) 100%);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--secondary);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-area img {
    height: 48px;
    width: 48px;
    border-radius: 8px;
}

.logo-area .brand-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.main-nav a {
    color: var(--text-light);
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--secondary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 60%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 搜索框 */
.search-bar {
    background: var(--primary);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    margin-top: 68px;
}

.search-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.search-input-wrap {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.search-input-wrap input {
    width: 100%;
    padding: 10px 45px 10px 18px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background: var(--card-bg);
    color: var(--text-light);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-input-wrap input:focus {
    border-color: var(--secondary);
}

.search-input-wrap input::placeholder {
    color: var(--text-muted);
}

.search-input-wrap .search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

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

/* Banner区域 */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 520px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner .banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45);
    z-index: 1;
}

.hero-banner .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 15, 26, 0.3) 0%, rgba(15, 15, 26, 0.85) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.3;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-content h1 .brand-highlight {
    color: var(--secondary);
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-content .cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: #d63851;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow);
    color: #fff;
}

.btn-outline {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
}

/* 通用模块标题 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2 .brand-highlight {
    color: var(--secondary);
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 内容区块 */
.section {
    padding: 60px 0;
}

.section-alt {
    background: var(--primary);
}

/* 视频卡片网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.video-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(233, 69, 96, 0.2);
    border-color: var(--secondary);
}

.video-card .thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    cursor: pointer;
}

.video-card .thumb-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .thumb-wrap img {
    transform: scale(1.08);
}

.video-card .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 56px;
    height: 56px;
    background: rgba(233, 69, 96, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
}

.video-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1);
}

.video-card .play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #fff;
    margin-left: 3px;
}

.video-card .duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 5;
}

.video-card .card-body {
    padding: 16px;
}

.video-card .card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card .card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.video-card .card-meta .views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-card .card-tags {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.video-card .card-tags span {
    background: rgba(233, 69, 96, 0.15);
    color: var(--secondary);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
}

/* 面包屑 */
.breadcrumb {
    padding: 15px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--secondary);
}

.breadcrumb span {
    margin: 0 8px;
    color: var(--border-color);
}

/* FAQ模块 */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: var(--secondary);
}

.faq-item .faq-question {
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
}

.faq-item .faq-question:hover {
    color: var(--secondary);
}

.faq-item .faq-question .faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
    color: var(--secondary);
    flex-shrink: 0;
    margin-left: 10px;
}

.faq-item.active .faq-question .faq-icon {
    transform: rotate(45deg);
}

.faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 20px;
    color: var(--text-muted);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 20px 18px;
}

/* 用户评论 */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.review-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.review-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.review-card .review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-card .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.review-card .review-info .name {
    font-weight: 600;
    font-size: 0.95rem;
}

.review-card .review-info .date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.review-card .stars {
    color: var(--accent);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.review-card .review-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* 专家展示 */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.expert-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
}

.expert-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(233, 69, 96, 0.15);
    border-color: var(--secondary);
}

.expert-card .expert-photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.expert-card .expert-info {
    padding: 20px;
}

.expert-card .expert-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.expert-card .expert-info .role {
    color: var(--secondary);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.expert-card .expert-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.expert-card .expert-btns {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.expert-card .expert-btns a {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    transition: all 0.3s;
}

.expert-card .expert-btns a:hover {
    background: var(--secondary);
    color: #fff;
}

/* 合作品牌Logo墙 */
.brand-wall {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

.brand-wall .brand-item {
    background: var(--card-bg);
    padding: 20px 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
}

.brand-wall .brand-item:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.05);
}

/* AI赋能模块 */
.ai-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.ai-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.ai-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(245, 166, 35, 0.15);
}

.ai-card .ai-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.ai-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.ai-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 社区模块 */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.community-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
}

.community-card:hover {
    border-color: var(--secondary);
    transform: translateY(-4px);
}

.community-card .comm-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.community-card h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.community-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 联系我们 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.3s;
}

.contact-card:hover {
    border-color: var(--secondary);
}

.contact-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--secondary);
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* 分享按钮 */
.share-bar {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px 0;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    background: var(--card-bg);
    cursor: pointer;
    transition: all 0.3s;
}

.share-btn:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-2px);
}

/* 页脚 */
.site-footer {
    background: var(--primary);
    border-top: 2px solid var(--secondary);
    padding: 40px 0 20px;
}

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

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--secondary);
}

.footer-col p,
.footer-col a {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 2;
    display: block;
}

.footer-col a:hover {
    color: var(--secondary);
}

.footer-col .qr-img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom .brand-highlight {
    color: var(--secondary);
    font-weight: 700;
}

/* How-To指南 */
.howto-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.howto-step {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    position: relative;
}

.howto-step .step-num {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0 auto 12px;
}

.howto-step h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.howto-step p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* 数据统计条 */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 30px 0;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--secondary);
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* 内页Banner */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--bg-dark) 100%);
    padding: 100px 0 40px;
    text-align: center;
}

.page-banner h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-banner p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* 内容文章 */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 30px 0 15px;
    color: var(--secondary);
}

.article-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 24px 0 12px;
}

.article-content p {
    margin-bottom: 16px;
    color: var(--text-muted);
    line-height: 1.9;
}

.article-content img {
    border-radius: 10px;
    margin: 20px 0;
}

/* 懒加载占位 */
.lazy-placeholder {
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* MCP前端代码区域 */
.mcp-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}

.mcp-section pre {
    background: var(--bg-dark);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.85rem;
    color: var(--accent);
    line-height: 1.6;
}

/* 响应式 */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        border-top: 1px solid var(--border-color);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        padding: 14px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-banner {
        min-height: 400px;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .stats-bar {
        gap: 20px;
    }

    .stat-item .stat-num {
        font-size: 1.6rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        padding: 8px 15px;
    }

    .search-bar {
        margin-top: 62px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .btn-primary, .btn-outline {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}
