/* 
 * 暗网修车改装社区 - 核心样式表
 * 采用修车主题配色：深灰底色 + 红色点缀 + 金属质感
 */

:root {
    --primary-color: #E60000; /* 赛道红 */
    --secondary-color: #FF3333;
    --dark-bg: #121212; /* 深色背景 */
    --darker-bg: #0A0A0A;
    --light-bg: #1E1E1E;
    --text-main: #E0E0E0;
    --text-muted: #999999;
    --border-color: #333333;
    --accent-metal: #8C92AC; /* 金属灰 */
    --font-family: 'Helvetica Neue', Helvetica, Arial, 'Microsoft YaHei', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

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

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

/* 按钮样式 */
.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 ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 0 15px rgba(230, 0, 0, 0.5);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-small {
    padding: 8px 15px;
    font-size: 14px;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 3px;
}

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

/* 头部与导航 */
.header {
    background-color: rgba(10, 10, 10, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

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

.logo img {
    border-radius: 5px;
}

.logo-text {
    font-size: 28px;
    font-weight: 900;
    font-style: italic;
    color: #fff;
    letter-spacing: -1px;
}

.logo-text span {
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-list a {
    color: var(--text-main);
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    position: relative;
}

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

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list a:hover::after, .nav-list a.active::after {
    width: 100%;
}

.header-search {
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 5px 15px;
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-main);
    outline: none;
    width: 180px;
    font-size: 14px;
}

.search-box button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
}

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

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: all 0.3s;
}

/* 面包屑 */
.breadcrumb-wrap {
    margin-top: 80px;
    background-color: var(--darker-bg);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    color: var(--border-color);
}

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

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

/* 首页 Hero */
.hero {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 80px;
}

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

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-desc {
    font-size: 18px;
    color: #ddd;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* 通用区块 */
.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--darker-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 18px;
}

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

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

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

.video-thumb {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
}

.video-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    transition: background-color 0.3s;
}

.video-card:hover .video-thumb::before {
    background-color: rgba(0,0,0,0.1);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(230, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: all 0.3s;
}

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

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

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.video-info {
    padding: 20px;
}

.tag {
    display: inline-block;
    font-size: 12px;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 2px 8px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.video-title {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 15px;
    height: 44px;
    overflow: hidden;
}

.video-title a {
    color: var(--text-main);
}

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

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

/* 特性网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--dark-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--accent-metal);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: #fff;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* 专家团队 */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.expert-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
}

.expert-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter 0.3s;
}

.expert-card:hover .expert-img {
    filter: grayscale(0%);
}

.expert-info {
    padding: 25px;
}

.expert-info h3 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 5px;
}

.expert-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 14px;
}

.expert-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    height: 60px;
    overflow: hidden;
}

/* 公司展示 */
.company-showcase {
    display: flex;
    gap: 50px;
    align-items: center;
}

.company-img {
    flex: 1;
    height: 400px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    box-shadow: 15px 15px 0 var(--primary-color);
}

.company-info {
    flex: 1;
}

.company-info h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #fff;
}

.company-info p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.service-list {
    margin-bottom: 30px;
}

.service-list li {
    margin-bottom: 10px;
    color: var(--text-main);
    font-weight: bold;
}

.join-guide {
    background-color: var(--light-bg);
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
}

.join-guide h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 18px;
}

/* 评论网格 */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.review-card {
    background-color: var(--darker-bg);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: relative;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 60px;
    color: rgba(255,255,255,0.05);
    font-family: serif;
}

.stars {
    color: #FFD700;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-main);
}

.reviewer {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 14px;
}

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

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.faq-q {
    background-color: var(--light-bg);
    padding: 15px 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.faq-icon {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s;
}

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

.faq-a {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--dark-bg);
    color: var(--text-muted);
}

.faq-item.active .faq-a {
    padding: 20px;
    max-height: 500px;
    border-top: 1px solid var(--border-color);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

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

.footer-col h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: var(--text-muted);
}

.footer-col ul a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-list li {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.contact-list strong {
    color: #fff;
}

.qrcode-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qrcode-box {
    text-align: center;
}

.qrcode-box p {
    color: var(--text-muted);
    font-size: 12px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .company-showcase {
        flex-direction: column;
    }
    .company-img {
        width: 100%;
        box-shadow: 10px 10px 0 var(--primary-color);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 60px;
    }
    .menu-toggle {
        display: flex;
    }
    .nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgba(10, 10, 10, 0.98);
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        display: none;
    }
    .nav.active {
        display: block;
    }
    .nav-list {
        flex-direction: column;
        gap: 15px;
    }
    .header-search {
        display: none;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .qrcode-col {
        flex-direction: row;
        justify-content: flex-start;
    }
}

/* 内页样式 */
.page-header {
    padding: 60px 0 40px;
    text-align: center;
    background-color: var(--darker-bg);
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 36px;
    color: #fff;
    margin-bottom: 15px;
}

.page-desc {
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

.content-box {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.content-box h2 {
    color: #fff;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.content-box p {
    margin-bottom: 15px;
}
