/* ============================================================
   汇黔科技 / 黔途房车俱乐部 - 共享样式表
   设计风格：复刻 DJI Osmo Action 4 深色主题
   ============================================================ */

/* ---------- CSS 变量定义 ---------- */
:root {
    --brand-color: #ff4d2e;          /* 汇黔科技默认橙红 */
    --brand-color-dark: #cc3d24;
    --bg-dark: #0a0a0a;
    --bg-dark-alt: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #707070;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-bg-hover: rgba(255, 255, 255, 0.08);
    --transition: 0.3s ease;
    --navbar-height: 64px;
}

/* 俱乐部页面切换为绿色品牌色 */
body.club-page {
    --brand-color: #2ecc71;
    --brand-color-dark: #27ae60;
}

/* ---------- 全局重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

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

/* ---------- 导航栏 ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    z-index: 1000;
    background: transparent;
    transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border-color);
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo .logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-color);
    box-shadow: 0 0 12px var(--brand-color);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-primary);
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--brand-color);
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--brand-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 8px 20px;
    border: 1px solid var(--brand-color);
    border-radius: 20px;
    color: var(--brand-color) !important;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--brand-color);
    color: #fff !important;
}

.nav-cta::after {
    display: none;
}

/* 汉堡菜单按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero 全屏首屏 ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 70% 30%, rgba(255, 77, 46, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(255, 77, 46, 0.10) 0%, transparent 50%),
        linear-gradient(160deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

body.club-page .hero {
    background:
        radial-gradient(ellipse at 70% 30%, rgba(46, 204, 113, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(46, 204, 113, 0.10) 0%, transparent 50%),
        linear-gradient(160deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

/* CSS 模拟车辆轮廓光晕 */
.hero::before {
    content: "";
    position: absolute;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 900px;
    height: 40%;
    background: radial-gradient(ellipse at center, var(--brand-color) 0%, transparent 65%);
    opacity: 0.25;
    filter: blur(60px);
    z-index: 0;
}

/* 视差固定的纹理层 */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 2px;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #fff 0%, #c0c0c0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-weight: 400;
    letter-spacing: 1px;
}

.hero-btn {
    display: inline-block;
    background: var(--brand-color);
    color: #fff;
    padding: 16px 48px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    box-shadow: 0 8px 30px rgba(255, 77, 46, 0.35);
}

body.club-page .hero-btn {
    box-shadow: 0 8px 30px rgba(46, 204, 113, 0.35);
}

.hero-btn:hover {
    transform: scale(1.05);
    background: var(--brand-color-dark);
    box-shadow: 0 12px 40px rgba(255, 77, 46, 0.5);
}

body.club-page .hero-btn:hover {
    box-shadow: 0 12px 40px rgba(46, 204, 113, 0.5);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 2px;
    z-index: 2;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ---------- 通用 Section ---------- */
.section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-alt {
    background: var(--bg-dark-alt);
    max-width: 100%;
}

.section-alt > .section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

.section-title .accent {
    color: var(--brand-color);
}

/* ---------- Feature 卡片网格 ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-color);
    background: var(--card-bg-hover);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(255, 77, 46, 0.3);
}

body.club-page .feature-icon {
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.3);
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.7;
}

/* Feature card with image */
.feature-card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 12px 12px 0 0;
    margin: -40px -40px 24px -40px;
    width: calc(100% + 80px);
}

.feature-card-body {
    /* wrapper for content below image */
}

.feature-card:has(.feature-card-image) {
    padding: 0;
    overflow: hidden;
}

.feature-card:has(.feature-card-image) .feature-card-body {
    padding: 32px;
}

/* Hero tagline */
.hero-tagline {
    font-size: 1rem;
    color: var(--brand-color);
    margin-top: 12px;
    font-weight: 500;
    opacity: 0.9;
}

/* Article list */
.article-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.article-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    transition: transform var(--transition), border-color var(--transition);
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-color);
}

.article-date {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--brand-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.article-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.article-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* About image */
.about-image {
    border-radius: 12px;
    margin-bottom: 20px;
    height: 220px;
    background-size: cover;
    background-position: center;
}

/* Footer links */
.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--brand-color);
}

.footer-copyright p {
    margin: 4px 0;
}

@media (max-width: 768px) {
    .article-list {
        grid-template-columns: 1fr;
    }

    .feature-card-image {
        height: 160px;
    }
}

/* ---------- 案例卡片 ---------- */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition);
}

.case-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-color);
}

.case-image {
    height: 180px;
    background: linear-gradient(135deg, var(--bg-dark-alt) 0%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.case-image .case-icon {
    font-size: 3rem;
    color: var(--brand-color);
    opacity: 0.7;
}

.case-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--brand-color) 0%, transparent 70%);
    opacity: 0.1;
}

.case-body {
    padding: 30px;
}

.case-tag {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--brand-color);
    border: 1px solid var(--brand-color);
    border-radius: 12px;
    padding: 3px 12px;
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.case-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.case-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---------- 合作伙伴 ---------- */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.partner-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: transform var(--transition), border-color var(--transition);
}

.partner-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-color);
}

.partner-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-color);
    flex-shrink: 0;
}

.partner-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.partner-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ---------- 关于我们 ---------- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 20px;
}

.about-text .founder {
    background: var(--card-bg);
    border-left: 3px solid var(--brand-color);
    padding: 24px;
    border-radius: 8px;
    margin-top: 24px;
}

.about-text .founder strong {
    color: var(--brand-color);
    font-size: 1.15rem;
}

/* ---------- 时间线 ---------- */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--brand-color) 0%, var(--border-color) 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: 36px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -40px;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--brand-color);
    z-index: 1;
}

.timeline-year {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--brand-color);
    margin-bottom: 6px;
}

.timeline-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.timeline-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---------- 车友故事 ---------- */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.story-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    transition: transform var(--transition), border-color var(--transition);
}

.story-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-color);
}

.story-year {
    display: inline-block;
    color: var(--brand-color);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.story-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.story-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

/* ---------- 统计数据 ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 30px 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    letter-spacing: 1px;
}

/* ---------- 联系表单 ---------- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-group label .required {
    color: var(--brand-color);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition), background var(--transition);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-color);
    background: rgba(255, 255, 255, 0.12);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23b0b0b0' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 48px;
}

.form-select option {
    background: var(--bg-dark-alt);
    color: #fff;
}

.form-submit {
    width: 100%;
    background: var(--brand-color);
    color: #fff;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    margin-top: 10px;
}

.form-submit:hover {
    background: var(--brand-color-dark);
    transform: translateY(-2px);
}

.form-message {
    text-align: center;
    padding: 16px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 600;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

.form-message.error {
    display: block;
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

/* ---------- 页脚 ---------- */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 20px;
    text-align: center;
    background: var(--bg-dark);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.9;
    margin-bottom: 16px;
}

.footer-info .footer-brand {
    color: var(--brand-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: block;
}

.footer-link {
    color: var(--brand-color);
    border-bottom: 1px dashed var(--brand-color);
    transition: opacity var(--transition);
}

.footer-link:hover {
    opacity: 0.7;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    margin-top: 16px;
}

/* ---------- 滚动触发动画 ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: none;
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* 视差固定背景层 */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ---------- 响应式设计 ---------- */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        gap: 24px;
        transform: translateX(100%);
        transition: transform var(--transition);
        align-items: flex-start;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .hero {
        padding: 100px 20px 60px;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 36px;
    }

    .hero-btn {
        padding: 14px 36px;
        font-size: 0.95rem;
    }

    .section,
    .section-alt > .section-inner {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-grid,
    .feature-grid.cols-2,
    .case-grid,
    .partner-grid,
    .about-content,
    .story-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card,
    .case-body,
    .partner-card,
    .story-card {
        padding: 28px;
    }

    .timeline {
        padding-left: 32px;
    }

    .stat-number {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .section-title {
        font-size: 1.7rem;
    }

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