/* 
 * 玩物社区 - 汽车改装与视频社区
 * 原创主题：霓虹绿 + 碳黑电竞风
 */

 :root {
    --primary-color: #00E63C; /* 霓虹绿 */
    --primary-dark: #00B32D;
    --bg-color: #080C10; /* 深黑底色 */
    --bg-light: #121820; /* 次级黑 */
    --text-main: #E0E0E0;
    --text-muted: #8A9AAB;
    --white: #FFFFFF;
    --border-color: #222C38;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

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

a:hover {
    color: var(--primary-dark);
}

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

/* 头部导航 */
.site-header {
    background-color: rgba(8, 12, 16, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.brand-logo {
    height: 40px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--white);
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-trigger {
    color: var(--white);
    cursor: pointer;
}

.search-trigger:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: 0.3s;
}

/* 搜索覆盖层 */
.search-overlay {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg-light);
    padding: 20px;
    border-bottom: 1px solid var(--primary-color);
}

.search-overlay.active {
    display: block;
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
}

.search-form input {
    flex: 1;
    padding: 12px 20px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--white);
    outline: none;
}

.search-form button {
    padding: 0 25px;
    background-color: var(--primary-color);
    color: #000;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

/* 英雄区 */
.hero-section {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(8,12,16,0.9) 0%, rgba(8,12,16,0.6) 50%, rgba(8,12,16,0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.hero-title {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-main);
    max-width: 600px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 15px;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 分类导航 */
.category-nav {
    background-color: var(--bg-light);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.cat-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cat-item {
    padding: 8px 20px;
    background-color: var(--bg-color);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
}

.cat-item:hover, .cat-item.active {
    background-color: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

/* 视频网格 */
.video-grid-section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.section-title {
    font-size: 28px;
    color: var(--white);
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

.section-title span {
    color: var(--primary-color);
}

.view-all {
    font-size: 14px;
    font-weight: bold;
}

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

.video-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid transparent;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 230, 60, 0.1);
}

.video-thumb {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    cursor: pointer;
}

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

.video-card: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, 230, 60, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #000;
    margin-left: 5px;
}

.video-card:hover .play-btn {
    opacity: 1;
}

.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 4px;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: #000;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
}

.video-info {
    padding: 20px;
}

.video-title {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 15px;
    line-height: 1.4;
    cursor: pointer;
}

.video-title:hover {
    color: var(--primary-color);
}

.video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

/* 专家与服务 */
.experts-services {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.es-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.expert-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.expert-item img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.expert-info h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 5px;
}

.expert-info .role {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 10px;
}

.service-list {
    list-style: none;
}

.service-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.service-list .icon {
    font-size: 30px;
    background-color: rgba(0, 230, 60, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    color: var(--primary-color);
}

.service-list h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 5px;
}

/* 口碑评论 */
.reviews-section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
    border-left: none;
    padding-left: 0;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.review-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    position: relative;
}

.stars {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
}

.reviewer {
    color: var(--white);
    font-weight: bold;
}

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

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

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

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    color: var(--white);
}

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

.toggle-icon {
    font-size: 24px;
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

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

/* 底部 */
.site-footer {
    background-color: #05080A;
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-icon {
    padding: 5px 12px;
    background-color: var(--bg-light);
    border-radius: 4px;
    font-size: 14px;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: #000;
}

.footer-links {
    display: flex;
    justify-content: space-around;
}

.link-group h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 16px;
}

.link-group ul {
    list-style: none;
}

.link-group li {
    margin-bottom: 10px;
}

.footer-qr {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qr-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qr-item img {
    width: 80px;
    height: 80px;
    border: 2px solid var(--primary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

.legal-links a {
    margin-left: 15px;
    color: var(--text-muted);
}

.legal-links a:hover {
    color: var(--primary-color);
}

/* 内页布局 */
.page-header {
    background-color: var(--bg-light);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 10px;
}

.breadcrumbs {
    font-size: 14px;
}

.breadcrumbs span {
    color: var(--text-muted);
}

.page-content {
    padding: 60px 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
}

.column-title {
    color: var(--white);
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.video-list-item {
    display: flex;
    gap: 20px;
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.v-thumb {
    width: 280px;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}

.v-thumb img {
    width: 100%;
    border-radius: 4px;
}

.v-details h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.v-desc {
    margin-bottom: 15px;
}

.v-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--primary-color);
}

.widget {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.widget-title {
    color: var(--white);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    background-color: var(--bg-color);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid var(--border-color);
}

.tag-cloud a:hover {
    border-color: var(--primary-color);
}

.expert-card {
    text-align: center;
}

.expert-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 2px solid var(--primary-color);
}

/* MCP挂件 */
.mcp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #121820, #080C10);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    padding: 20px;
    width: 250px;
    box-shadow: 0 10px 30px rgba(0, 230, 60, 0.2);
    z-index: 999;
}

.mcp-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 20px;
}

.mcp-title {
    color: var(--white);
    font-weight: bold;
    margin-bottom: 5px;
}

.mcp-desc {
    font-size: 12px;
    margin-bottom: 15px;
}

.mcp-btn {
    width: 100%;
    padding: 8px;
    background-color: var(--primary-color);
    color: #000;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

/* 响应式 */
@media (max-width: 992px) {
    .es-layout, .content-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-light);
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .video-list-item {
        flex-direction: column;
    }
    
    .v-thumb {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
