/* ============================================
   红黑大战棋牌 · 国潮红韵设计系统
   Awwwards 级 · 暖白基底 + 朱红鎏金
   ============================================ */

/* 基础重置 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    overflow-x: hidden;
    background: #FDF6ED;
    color: #1A1410;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
::selection {
    background: #D4312D;
    color: #fff;
}

/* 滚动条 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F0EAE0; }
::-webkit-scrollbar-thumb { background: #D4312D; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #B82926; }

/* 核心布局 — 必须居中 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.section {
    padding: 80px 0;
    position: relative;
}
.section:nth-child(even) {
    background: #F8F2EA;
}

/* 装饰性斜线背景（独特视觉语言） */
.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle at 100% 100%, rgba(212, 49, 45, 0.04) 0%, transparent 70%);
    pointer-events: none;
}
.section:nth-child(even)::after {
    background: radial-gradient(circle at 0% 0%, rgba(200, 155, 60, 0.05) 0%, transparent 70%);
    bottom: auto;
    top: 0;
    right: auto;
    left: 0;
}

/* ========== 导航 ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(253, 246, 237, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(212, 49, 45, 0.12);
    transition: background 0.3s;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.35rem;
    text-decoration: none;
    color: #1A1410;
    letter-spacing: 1px;
}
.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #D4312D 0%, #B82926 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(212, 49, 45, 0.25);
}
.logo span:last-child {
    color: #D4312D;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}
.main-nav a {
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    color: #3A322C;
    transition: color 0.25s, transform 0.2s;
    position: relative;
    padding: 4px 0;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D4312D;
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 2px;
}
.main-nav a:hover {
    color: #D4312D;
}
.main-nav a:hover::after {
    width: 100%;
}
.nav-cta {
    padding: 9px 24px;
    border-radius: 8px;
    color: #fff !important;
    font-weight: 700;
    background: linear-gradient(135deg, #D4312D 0%, #B82926 100%);
    box-shadow: 0 4px 14px rgba(212, 49, 45, 0.3);
    transition: transform 0.25s, box-shadow 0.25s !important;
}
.nav-cta::after {
    display: none !important;
}
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 49, 45, 0.35) !important;
    color: #fff !important;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1A1410;
    padding: 4px;
}

/* ========== Hero ========== */
.hero {
    min-height: 78vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 68px;
    background: linear-gradient(135deg, #FDF6ED 0%, #F8F0E6 50%, #FDF6ED 100%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 49, 45, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200, 155, 60, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-content {
    max-width: 720px;
    position: relative;
    z-index: 2;
}
.hero-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 20px;
    background: rgba(212, 49, 45, 0.08);
    color: #D4312D;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(212, 49, 45, 0.15);
}
.hero h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 900;
    color: #1A1410;
    letter-spacing: -0.5px;
}
.hero h1 em {
    font-style: normal;
    color: #D4312D;
    background: linear-gradient(135deg, #D4312D, #B82926);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.12rem;
    opacity: 0.7;
    max-width: 560px;
    margin-bottom: 36px;
    line-height: 1.7;
    color: #4A423C;
}
.hero-buttons {
    display: flex;
    gap: 16px;
}
.hero-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(212, 49, 45, 0.08);
}
.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========== 按钮 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #D4312D 0%, #B82926 100%);
    box-shadow: 0 4px 16px rgba(212, 49, 45, 0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(212, 49, 45, 0.35);
}
.btn-outline {
    background: transparent;
    border: 2px solid #D4312D;
    color: #D4312D;
}
.btn-outline:hover {
    background: #D4312D;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(212, 49, 45, 0.2);
}

/* ========== 标签/标题 ========== */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 14px;
    color: #C89B3C;
    text-transform: uppercase;
    position: relative;
    padding-left: 20px;
}
.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 2px;
    background: #C89B3C;
    border-radius: 2px;
}
.section-title {
    font-size: 2.2rem;
    margin-bottom: 14px;
    font-weight: 800;
    color: #1A1410;
    letter-spacing: -0.3px;
    line-height: 1.25;
}
.section-desc {
    max-width: 600px;
    opacity: 0.7;
    margin-bottom: 44px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4A423C;
}

/* ========== 卡片网格 ========== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}
.category-card {
    border-radius: 16px;
    padding: 32px 28px;
    background: #fff;
    border: 1px solid rgba(212, 49, 45, 0.06);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #D4312D, #C89B3C);
    opacity: 0;
    transition: opacity 0.4s;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(212, 49, 45, 0.08);
    border-color: rgba(212, 49, 45, 0.15);
}
.category-card:hover::before {
    opacity: 1;
}
.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 1.4rem;
    background: rgba(212, 49, 45, 0.06);
    color: #D4312D;
    transition: all 0.3s;
}
.category-card:hover .card-icon {
    background: #D4312D;
    color: #fff;
}
.category-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1A1410;
}
.category-card p {
    font-size: 0.9rem;
    opacity: 0.6;
    line-height: 1.6;
    margin-bottom: 16px;
    color: #4A423C;
}
.card-link {
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    color: #D4312D;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}
.card-link:hover {
    gap: 12px;
}

/* ========== 特性块 ========== */
.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.feature-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(212, 49, 45, 0.06);
}
.feature-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-image:hover img {
    transform: scale(1.02);
}
.feature-text {
    padding: 12px 0;
}
.feature-text h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #1A1410;
}
.feature-text p {
    font-size: 1rem;
    opacity: 0.7;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #4A423C;
}
.feature-list {
    list-style: none;
}
.feature-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #1A1410;
}
.feature-list li::before {
    content: '✓';
    font-weight: 800;
    color: #D4312D;
    font-size: 1.1rem;
}

/* ========== 数据条 ========== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    text-align: center;
}
.stat-item {
    padding: 32px 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(212, 49, 45, 0.06);
    transition: all 0.3s;
    position: relative;
}
.stat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #D4312D, #C89B3C);
    border-radius: 3px 3px 0 0;
    opacity: 0;
    transition: opacity 0.3s, width 0.3s;
}
.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(212, 49, 45, 0.06);
}
.stat-item:hover::after {
    opacity: 1;
    width: 60px;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #D4312D;
    line-height: 1.1;
    letter-spacing: -1px;
}
.stat-label {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 8px;
    color: #4A423C;
    font-weight: 500;
}

/* ========== 内容墙 ========== */
.content-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}
.content-wall-item {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(212, 49, 45, 0.06);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.content-wall-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(212, 49, 45, 0.08);
    border-color: rgba(212, 49, 45, 0.12);
}
.content-wall-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}
.content-wall-item:hover img {
    transform: scale(1.03);
}
.content-wall-body {
    padding: 24px 24px 28px;
}
.content-wall-body h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1A1410;
}
.content-wall-body p {
    font-size: 0.85rem;
    opacity: 0.6;
    line-height: 1.6;
    color: #4A423C;
}
.content-wall-body .card-link {
    margin-top: 12px;
}

/* ========== FAQ ========== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border: 1px solid rgba(212, 49, 45, 0.08);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    transition: all 0.3s;
}
.faq-item:hover {
    border-color: rgba(212, 49, 45, 0.18);
    box-shadow: 0 4px 16px rgba(212, 49, 45, 0.04);
}
.faq-item .faq-question {
    padding: 18px 24px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: #1A1410;
    transition: color 0.3s;
}
.faq-item .faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: #D4312D;
    transition: transform 0.3s;
}
.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}
.faq-item .faq-answer {
    padding: 0 24px 18px;
    display: none;
    opacity: 0.7;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #4A423C;
}
.faq-item.open .faq-answer {
    display: block;
    animation: faqFadeIn 0.35s ease;
}
@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 0.7; transform: translateY(0); }
}

/* ========== CTA横幅 ========== */
.cta-banner {
    padding: 64px 32px;
    text-align: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #D4312D 0%, #B82926 50%, #8B1A1A 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(200, 155, 60, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.cta-banner h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}
.cta-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.cta-banner .btn-primary {
    background: #fff;
    color: #D4312D;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}
.cta-banner .btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* ========== 页脚 ========== */
.site-footer {
    padding: 60px 0 28px;
    background: #1A1410;
    color: rgba(255, 255, 255, 0.8);
}
.site-footer .container {
    position: relative;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}
.footer-brand {
    max-width: 320px;
}
.footer-brand .logo {
    color: #fff;
    margin-bottom: 16px;
}
.footer-brand p {
    font-size: 0.85rem;
    opacity: 0.6;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}
.footer-col h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 1px;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul li a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.25s, padding-left 0.25s;
}
.footer-col ul li a:hover {
    color: #C89B3C;
    padding-left: 4px;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 44px;
    padding-top: 24px;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
}

/* ========== 工具类 ========== */
.text-accent {
    color: #D4312D;
}
.text-center {
    text-align: center;
}
.seo-description {
    max-width: 600px;
    margin: 0 auto 48px;
    opacity: 0.7;
    font-size: 1.02rem;
    line-height: 1.7;
    color: #4A423C;
}
.mt-0 {
    margin-top: 0;
}
.mb-0 {
    margin-bottom: 0;
}

/* ========== 额外增强组件 ========== */
/* 品牌色分割线 */
.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #D4312D, #C89B3C);
    border-radius: 3px;
    margin: 20px 0 24px;
}
.divider.center {
    margin-left: auto;
    margin-right: auto;
}

/* 徽章标签 */
.badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: rgba(212, 49, 45, 0.08);
    color: #D4312D;
    border: 1px solid rgba(212, 49, 45, 0.12);
}

/* 金色高亮 */
.highlight-gold {
    color: #C89B3C;
}

/* 卡片顶部装饰条 */
.card-strip {
    position: relative;
    overflow: hidden;
}
.card-strip::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D4312D, #C89B3C);
    border-radius: 16px 16px 0 0;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.6rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .footer-brand {
        max-width: 100%;
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .feature-block {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .feature-block .feature-image {
        order: -1;
    }
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .main-nav {
        display: none;
    }
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 1.6rem;
        cursor: pointer;
        color: #1A1410;
        padding: 4px;
        width: 44px;
        height: 44px;
    }
    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 68px;
        left: 0;
        width: 100%;
        background: #FDF6ED;
        padding: 24px 28px;
        gap: 16px;
        border-bottom: 2px solid rgba(212, 49, 45, 0.1);
        box-shadow: 0 20px 48px rgba(0, 0, 0, 0.06);
    }
    .main-nav.open a {
        padding: 8px 0;
        font-size: 1rem;
    }
    .main-nav.open .nav-cta {
        display: inline-flex;
        width: fit-content;
    }
    .hero {
        min-height: 60vh;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    .section {
        padding: 56px 0;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .cards-grid {
        gap: 18px;
    }
    .content-wall {
        gap: 18px;
    }
    .stat-item {
        padding: 24px 16px;
    }
    .stat-number {
        font-size: 1.8rem;
    }
    .cta-banner {
        padding: 40px 24px;
    }
    .cta-banner h2 {
        font-size: 1.5rem;
    }
    .faq-item .faq-question {
        padding: 14px 18px;
        font-size: 0.92rem;
    }
    .faq-item .faq-answer {
        padding: 0 18px 14px;
    }
}

@media (max-width: 480px) {
    .cards-grid,
    .content-wall,
    .stats-bar {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .hero h1 {
        font-size: 1.6rem;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .container {
        padding: 0 16px;
    }
    .header-inner {
        padding: 0 16px;
    }
    .logo {
        font-size: 1.1rem;
    }
    .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
    .stat-number {
        font-size: 1.5rem;
    }
    .feature-block {
        gap: 24px;
    }
    .feature-text h3 {
        font-size: 1.2rem;
    }
    .cta-banner h2 {
        font-size: 1.2rem;
    }
    .cta-banner p {
        font-size: 0.92rem;
    }
    .site-footer {
        padding: 40px 0 20px;
    }
}