/* 基础样式重置 */
:root {
    --primary-color: #e53935;
    --primary-dark: #c62828;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f5f5f5;
    --bg-dark: #121212;
    --white: #fff;
    --border-color: #eee;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

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

ul {
    list-style: none;
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-align: center;
}

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

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

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

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

.btn-sm {
    padding: 6px 16px;
    font-size: 14px;
}

/* 头部导航 */
.site-header {
    background-color: var(--bg-dark);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

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

.logo a {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.logo-sub {
    font-size: 12px;
    color: #aaa;
    letter-spacing: 1px;
}

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

.main-nav a {
    color: var(--white);
    font-weight: 500;
    font-size: 16px;
}

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

/* 搜索框 */
.search-bar-container {
    background-color: #1a1a1a;
    padding: 15px 0;
    border-top: 1px solid #333;
}

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

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-box button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: bold;
}

.hot-searches {
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    color: #888;
}

.hot-searches a {
    color: #aaa;
    margin: 0 5px;
}

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

/* 面包屑 */
.breadcrumb-wrap {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-light);
}

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

.breadcrumb span {
    margin: 0 8px;
    color: #ccc;
}

/* 首页 Banner */
.hero-banner {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #ddd;
}

.hero-desc {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.8;
    color: #ccc;
}

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

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

.bg-light {
    background-color: var(--white);
}

.bg-dark {
    background-color: var(--bg-dark);
}

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

.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

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

.section-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header p {
    color: var(--text-light);
    font-size: 18px;
}

.view-all {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

/* 核心板块 */
.core-modules {
    padding: 40px 0;
    background: #fff;
    margin-top: -40px;
    position: relative;
    z-index: 10;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.module-card {
    text-align: center;
    padding: 20px;
}

.module-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.module-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

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

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

.video-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s, transform 0.5s;
}

.video-card:hover .video-thumb img {
    opacity: 0.7;
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(229, 57, 53, 0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

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

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

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

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.video-desc {
    font-size: 13px;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 专家团队 */
.expert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.expert-card {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.expert-card img {
    width: 200px;
    object-fit: cover;
}

.expert-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.expert-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.expert-actions {
    display: flex;
    gap: 10px;
}

/* 专家内页样式 */
.expert-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.expert-profile {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.expert-profile.reverse {
    flex-direction: row-reverse;
}

.expert-profile-img {
    flex: 0 0 400px;
}

.expert-profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-profile-info {
    padding: 40px;
    flex: 1;
}

.expert-profile-info h2 {
    font-size: 28px;
    margin-bottom: 5px;
}

.expert-desc {
    margin: 20px 0;
    color: var(--text-light);
}

.expert-desc p {
    margin-bottom: 10px;
}

.expert-stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.stat span {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
}

/* 用户评价 */
.review-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.review-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 60px;
    color: #f0f0f0;
    font-family: serif;
}

.review-stars {
    color: #f39c12;
    margin-bottom: 15px;
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.review-content {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.review-author {
    font-weight: bold;
    color: var(--text-color);
    text-align: right;
}

/* 合作伙伴与指南 */
.partner-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.partner-logos span {
    font-size: 24px;
    font-weight: 800;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.join-guide {
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
}

.guide-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.guide-content ol {
    padding-left: 20px;
}

.guide-content li {
    margin-bottom: 10px;
    color: #ccc;
}

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

.faq-item {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-q {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-q .toggle {
    font-size: 20px;
    color: var(--primary-color);
}

.faq-a {
    padding: 0 20px 20px;
    color: var(--text-light);
    display: none;
}

/* 内部页面头部 */
.inner-page-header {
    background-color: var(--bg-dark);
    color: white;
    padding: 80px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.inner-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
}

.inner-page-header .container {
    position: relative;
    z-index: 1;
}

.inner-page-header h1 {
    font-size: 40px;
    margin-bottom: 15px;
}

/* 关于页面 */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.about-image {
    flex: 1;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

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

.stat-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
}

/* 修车改装业务 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-color);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.service-card p {
    color: var(--text-light);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.step {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step h4 {
    margin-bottom: 10px;
}

.step p {
    font-size: 13px;
    color: var(--text-light);
}

/* 视频列表页 */
.video-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-light);
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 社区页面 */
.community-layout {
    display: flex;
    gap: 30px;
}

.community-main {
    flex: 1;
}

.community-sidebar {
    width: 300px;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-avatar.small {
    width: 30px;
    height: 30px;
}

.user-name {
    font-weight: 600;
}

.post-time {
    font-size: 12px;
    color: var(--text-light);
}

.post-content h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.post-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.post-actions {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 14px;
}

.post-actions span {
    cursor: pointer;
}

.post-actions span:hover {
    color: var(--primary-color);
}

.sidebar-widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
    margin-bottom: 15px;
    font-size: 16px;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}

.topic-list li {
    margin-bottom: 10px;
}

.topic-list a {
    color: var(--primary-color);
    font-size: 14px;
}

.active-users li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
}

/* 联系我们页面 */
.contact-layout {
    display: flex;
    gap: 50px;
}

.contact-info-box, .contact-form-box {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.contact-info-box h2, .contact-form-box h2 {
    margin-bottom: 25px;
    color: var(--primary-color);
}

.contact-info-box p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 底部样式 */
.site-footer {
    background-color: var(--bg-dark);
    color: #ccc;
    padding: 60px 0 20px;
    margin-top: 60px;
}

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

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 15px;
}

.brand-col p {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.8;
}

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

.share-btn {
    display: inline-block;
    padding: 5px 12px;
    background: #333;
    border-radius: 4px;
    font-size: 12px;
}

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

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

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

.footer-col a {
    color: #aaa;
    font-size: 14px;
}

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

.contact-info li {
    font-size: 14px;
    color: #aaa;
}

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

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

.qr-placeholder {
    width: 100px;
    height: 100px;
    background: #fff;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-weight: bold;
    font-size: 14px;
}

.qrcode-item span {
    font-size: 12px;
    color: #888;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #888;
}

.footer-links a {
    margin-left: 15px;
    color: #888;
}

.footer-links a:hover {
    color: var(--white);
}

/* 关键词标签 */
.kw-tags {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.kw-tags a {
    display: inline-block;
    margin: 4px 6px;
    padding: 5px 14px;
    background: #f5f5f5;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-light);
    transition: all 0.3s;
}

.kw-tags a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* SEO文字块 */
.seo-text-block {
    background: #fff;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.seo-text-block h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.seo-text-block p {
    color: var(--text-light);
    line-height: 1.9;
    font-size: 15px;
}

/* 视频弹窗模态框 */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.video-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 900px;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.video-modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
}

.modal-video-container {
    aspect-ratio: 16/9;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.modal-video-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.modal-play-icon {
    position: absolute;
    font-size: 80px;
    color: var(--primary-color);
}

.modal-info {
    padding: 20px;
    color: white;
}

.modal-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.modal-desc {
    color: #aaa;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .module-grid { grid-template-columns: repeat(2, 1fr); }
    .expert-grid { grid-template-columns: 1fr; }
    .expert-profile, .expert-profile.reverse { flex-direction: column; }
    .expert-profile-img { flex: 0 0 300px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-layout { flex-direction: column; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }
    .mobile-menu-btn span {
        width: 25px;
        height: 3px;
        background: white;
        transition: 0.3s;
    }
    .hero-content h1 { font-size: 32px; }
    .hero-content h2 { font-size: 18px; }
    .review-grid { grid-template-columns: 1fr; }
    .about-content { flex-direction: column; }
    .stats-row { flex-wrap: wrap; gap: 20px; }
    .stat-box { width: 45%; }
    .services-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr 1fr; }
    .community-layout { flex-direction: column; }
    .community-sidebar { width: 100%; }
}

@media (max-width: 480px) {
    .module-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}
