/* ==================== 困困兔 - 汽车改装视频社区 CSS ==================== */
/* 品牌：困困兔 | 域名：rimcgx1.cn | 主题：迈巴赫风格豪华汽车改装 */
/* 设计理念：高端、精致、性能、社区 */

:root {
    --primary-dark: #0a0e27;
    --primary-light: #1a1f3a;
    --accent-gold: #d4af37;
    --accent-rose: #e8b4d4;
    --text-primary: #f5f5f5;
    --text-secondary: #b0b0b0;
    --border-color: #2a2f4a;
    --success: #4ade80;
    --danger: #ff6b6b;
}

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

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* ==================== 头部导航 ==================== */
header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    border-bottom: 2px solid var(--accent-gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.1);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo span {
    letter-spacing: 2px;
}

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

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

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

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

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

.search-box {
    display: flex;
    align-items: center;
    background: rgba(26, 31, 58, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
    width: 200px;
    font-size: 0.9rem;
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.search-box button {
    background: none;
    border: none;
    color: var(--accent-gold);
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.search-box button:hover {
    transform: scale(1.2);
}

/* ==================== Hero 区域 ==================== */
.hero {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.9) 0%, rgba(26, 31, 58, 0.9) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="%23d4af37" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
    background-attachment: fixed;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 0.8s ease;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-rose) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-rose) 100%);
    color: var(--primary-dark);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
}

/* ==================== 区域标题 ==================== */
.section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-rose) 100%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* ==================== 卡片网格 ==================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.card {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(26, 31, 58, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.card-header {
    height: 180px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-rose) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==================== 视频卡片 ==================== */
.video-card {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(26, 31, 58, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: var(--primary-dark);
    overflow: hidden;
}

.video-thumbnail video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-dark);
    opacity: 0;
    transition: all 0.3s ease;
}

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

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.video-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.video-stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.video-date {
    font-size: 0.85rem;
    color: var(--accent-gold);
    margin-top: 0.8rem;
}

/* ==================== 行列布局 ==================== */
.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.col-3 {
    grid-column: span 1;
}

.col-4 {
    grid-column: span 1;
}

.col-6 {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .col-3 {
        grid-column: span 1;
    }
    .col-4 {
        grid-column: span 1;
    }
    .col-6 {
        grid-column: span 1;
    }
}

/* ==================== FAQ ==================== */
.faq-item {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(26, 31, 58, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(212, 175, 55, 0.05);
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
}

.faq-toggle {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

/* ==================== 评价区域 ==================== */
.review-item {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(26, 31, 58, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.review-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-rose) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.review-meta {
    flex: 1;
}

.review-name {
    font-weight: 600;
    color: var(--text-primary);
}

.review-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.review-rating {
    color: var(--accent-gold);
    font-size: 0.9rem;
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== 页脚 ==================== */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    border-top: 2px solid var(--accent-gold);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.footer-section li {
    margin-bottom: 0.8rem;
}

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

.footer-section a:hover {
    color: var(--accent-gold);
}

.footer-qr {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

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

.qr-item img {
    width: 120px;
    height: 120px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.qr-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-bottom a {
    color: var(--accent-gold);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-rose) 100%);
    color: var(--primary-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

    nav ul {
        gap: 1rem;
    }

    nav a {
        font-size: 0.85rem;
    }

    .search-box input {
        width: 120px;
    }

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

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

    .footer-qr {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-wrapper {
        flex-direction: column;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero {
        min-height: 300px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .section {
        padding: 2rem 0;
    }

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

/* ==================== 工具类 ==================== */
.text-center {
    text-align: center;
}

.text-gold {
    color: var(--accent-gold);
}

.text-secondary {
    color: var(--text-secondary);
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.hidden {
    display: none !important;
}

/* ==================== 动画 ==================== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-slide {
    animation: slideIn 0.5s ease;
}

.animate-fade {
    animation: fadeIn 0.5s ease;
}
