/* 困困兔汽车改装网站 - 全局样式 */

:root {
    --racing-red: #E31E24;
    --carbon-black: #1A1A1A;
    --metallic-silver: #C0C0C0;
    --speed-orange: #FF6600;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--carbon-black);
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
}

/* 导航栏 */
header {
    background: linear-gradient(to right, var(--carbon-black), #2D2D2D);
    box-shadow: 0 2px 10px rgba(227, 30, 36, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--racing-red);
    text-shadow: 0 0 10px rgba(227, 30, 36, 0.5);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--racing-red);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--racing-red);
}

/* Hero区域 */
.hero {
    background: url('../images/hero-banner.jpg') center/cover no-repeat;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.7), rgba(26, 26, 26, 0.8));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(227, 30, 36, 0.8);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(227, 30, 36, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(227, 30, 36, 1);
    }
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, var(--racing-red), var(--speed-orange));
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(227, 30, 36, 0.6);
}

/* 内容区域 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section {
    margin-bottom: 4rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.section-title {
    font-size: 2.5rem;
    color: var(--racing-red);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--racing-red), var(--speed-orange));
    border-radius: 2px;
}

/* 视频卡片 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(227, 30, 36, 0.4);
}

.video-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: var(--racing-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
}

.video-info {
    padding: 1rem;
    background: var(--white);
}

.video-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--carbon-black);
    margin-bottom: 0.5rem;
}

.video-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* 专家团队 */
.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.expert-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    border-radius: 15px;
    transition: all 0.3s;
}

.expert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(227, 30, 36, 0.3);
}

.expert-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid var(--racing-red);
}

.expert-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--carbon-black);
    margin-bottom: 0.5rem;
}

.expert-title {
    color: var(--racing-red);
    font-weight: 500;
    margin-bottom: 1rem;
}

.expert-bio {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

/* FAQ */
.faq-list {
    margin-top: 2rem;
}

.faq-item {
    background: #f9f9f9;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--racing-red);
}

.faq-question {
    font-weight: bold;
    color: var(--carbon-black);
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: #555;
    line-height: 1.6;
}

/* 用户评价 */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.review-card {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    border-top: 3px solid var(--racing-red);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

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

.review-rating {
    color: var(--speed-orange);
}

.review-text {
    color: #555;
    line-height: 1.6;
}

/* 页脚 */
footer {
    background: var(--carbon-black);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--racing-red);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--metallic-silver);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: var(--metallic-silver);
}

/* 面包屑导航 */
.breadcrumb {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
}

.breadcrumb a {
    color: var(--racing-red);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .video-grid,
    .experts-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}
