/* ============================================
   麻将胡了3 · 设计系统
   版本：1.0
   风格：现代东方 · 麻将美学 · 轻奢好运
   ============================================ */

/* █ 基础重置 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    overflow-x: hidden;
    background: #F8F4EC;
    color: #3D2E1E;
    line-height: 1.6;
}

::selection {
    background: #C9A96E;
    color: #F8F4EC;
}

/* █ 核心布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section:nth-child(even) {
    background: #F3EDE1;
}

/* █ 导航 — 固定顶部 + 麻将牌装饰 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(248, 244, 236, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(201, 169, 110, 0.25);
    transition: background 0.3s;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #C9A96E, #D4524A, #C9A96E, transparent);
    opacity: 0.3;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    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: #3D2E1E;
    letter-spacing: 0.02em;
    position: relative;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #C9A96E 0%, #E8D5B5 100%);
    color: #3D2E1E;
    box-shadow: 0 2px 8px rgba(201, 169, 110, 0.3);
    font-weight: 700;
    position: relative;
}

.logo-icon::after {
    content: '🀄';
    font-size: 1.2rem;
}

.logo span {
    background: linear-gradient(135deg, #3D2E1E 40%, #C9A96E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.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: #5A4A3A;
    transition: all 0.25s ease;
    position: relative;
    padding: 4px 0;
    letter-spacing: 0.03em;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #C9A96E, #D4524A);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.main-nav a:hover {
    color: #C9A96E;
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px !important;
    border-radius: 6px !important;
    background: linear-gradient(135deg, #C9A96E 0%, #B8934F 100%) !important;
    color: #F8F4EC !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(201, 169, 110, 0.35);
    transition: all 0.3s ease !important;
    position: relative;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 110, 0.5) !important;
    color: #fff !important;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #3D2E1E;
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-toggle:hover {
    background: rgba(201, 169, 110, 0.15);
}

/* █ 首页Hero — 麻将牌局意境 */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(165deg, #F8F4EC 0%, #F3EDE1 40%, #EDE4D4 100%);
    overflow: hidden;
    padding-top: 72px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 60%;
    height: 140%;
    background: radial-gradient(ellipse at center, rgba(201, 169, 110, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '🀄 🀅 🀆 🀃 🀂 🀁 🀀';
    position: absolute;
    bottom: 5%;
    right: 5%;
    font-size: 3rem;
    opacity: 0.04;
    letter-spacing: 1.5rem;
    pointer-events: none;
    transform: rotate(-5deg);
    white-space: nowrap;
}

.hero-content {
    max-width: 780px;
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.2) 0%, rgba(212, 82, 74, 0.1) 100%);
    color: #C9A96E;
    border: 1px solid rgba(201, 169, 110, 0.2);
    letter-spacing: 0.05em;
}

.hero-eyebrow::before {
    content: '🀄';
    font-size: 0.9rem;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 22px;
    font-weight: 900;
    color: #3D2E1E;
    letter-spacing: -0.01em;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #C9A96E 0%, #D4524A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero h1 .highlight::after {
    content: '🎋';
    font-size: 0.8em;
    -webkit-text-fill-color: initial;
    margin-left: 4px;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.75;
    max-width: 600px;
    margin-bottom: 36px;
    color: #5A4A3A;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 520px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(201, 169, 110, 0.15);
    border: 2px solid rgba(201, 169, 110, 0.15);
    opacity: 0.7;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* █ 按钮 — 麻将牌质感 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    position: relative;
}

.btn-primary {
    background: linear-gradient(135deg, #C9A96E 0%, #B8934F 100%);
    color: #F8F4EC !important;
    box-shadow: 0 4px 16px rgba(201, 169, 110, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(201, 169, 110, 0.5);
}

.btn-primary::before {
    content: '🎲';
    font-size: 1.1rem;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid #C9A96E;
    color: #C9A96E !important;
}

.btn-outline:hover {
    background: rgba(201, 169, 110, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 110, 0.15);
}

/* █ 标签/标题 */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 14px;
    color: #C9A96E;
    text-transform: uppercase;
}

.section-label::before {
    content: '■';
    font-size: 0.6rem;
    color: #D4524A;
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 16px;
    font-weight: 900;
    color: #3D2E1E;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.section-title .charm {
    color: #C9A96E;
    display: inline-block;
}

.section-desc {
    max-width: 640px;
    opacity: 0.72;
    margin-bottom: 44px;
    color: #5A4A3A;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* █ 卡片网格 — 麻将牌设计 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.category-card {
    border-radius: 12px;
    padding: 32px 28px;
    border: 1px solid rgba(201, 169, 110, 0.2);
    background: #F8F4EC;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #C9A96E, #D4524A);
    opacity: 0;
    transition: opacity 0.3s;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(201, 169, 110, 0.15);
    border-color: #C9A96E;
}

.category-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 1.6rem;
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.15) 0%, rgba(212, 82, 74, 0.05) 100%);
    border: 1px solid rgba(201, 169, 110, 0.15);
    transition: all 0.3s;
}

.category-card:hover .card-icon {
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.25) 0%, rgba(212, 82, 74, 0.1) 100%);
    transform: scale(1.05);
}

.category-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #3D2E1E;
}

.category-card p {
    font-size: 0.92rem;
    opacity: 0.65;
    margin-bottom: 18px;
    color: #5A4A3A;
    line-height: 1.6;
}

.card-link {
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    color: #C9A96E;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}

.card-link::after {
    content: '→';
    transition: transform 0.3s;
}

.card-link:hover {
    gap: 12px;
}

.card-link:hover::after {
    transform: translateX(2px);
}

/* █ 特性块 */
.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.feature-image {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(201, 169, 110, 0.12);
    border: 2px solid rgba(201, 169, 110, 0.1);
    position: relative;
}

.feature-image::after {
    content: '🀄';
    position: absolute;
    bottom: 16px;
    right: 16px;
    font-size: 2rem;
    opacity: 0.15;
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-text h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #3D2E1E;
}

.feature-text p {
    opacity: 0.72;
    margin-bottom: 24px;
    color: #5A4A3A;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: #3D2E1E;
}

.feature-list li::before {
    content: '🀫';
    font-weight: 700;
    color: #C9A96E;
    font-size: 1.1rem;
}

/* █ 数据条 — 麻将点数风格 */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item {
    padding: 32px 20px;
    border-radius: 12px;
    border: 1px solid rgba(201, 169, 110, 0.2);
    background: #F8F4EC;
    transition: all 0.3s;
    position: relative;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(201, 169, 110, 0.12);
    border-color: #C9A96E;
}

.stat-item::before {
    content: '🀄';
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.2rem;
    opacity: 0.08;
}

.stat-number {
    font-size: 2.6rem;
    font-weight: 900;
    color: #3D2E1E;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-number .unit {
    font-size: 1.2rem;
    font-weight: 600;
    color: #C9A96E;
}

.stat-label {
    font-size: 0.92rem;
    opacity: 0.6;
    margin-top: 8px;
    color: #5A4A3A;
    font-weight: 500;
}

/* █ 内容墙 */
.content-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.content-wall-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(201, 169, 110, 0.15);
    background: #F8F4EC;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.content-wall-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(201, 169, 110, 0.12);
    border-color: #C9A96E;
}

.content-wall-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s;
}

.content-wall-item:hover img {
    transform: scale(1.03);
}

.content-wall-body {
    padding: 24px 22px;
}

.content-wall-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #3D2E1E;
}

.content-wall-body p {
    font-size: 0.9rem;
    opacity: 0.65;
    color: #5A4A3A;
    line-height: 1.6;
}

.content-wall-body .meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: #C9A96E;
    margin-top: 14px;
    font-weight: 600;
}

/* █ FAQ — 折叠牌九 */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #F8F4EC;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: rgba(201, 169, 110, 0.4);
}

.faq-item .faq-question {
    padding: 18px 24px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #3D2E1E;
    font-size: 1.05rem;
    transition: background 0.3s;
    gap: 16px;
}

.faq-item .faq-question::after {
    content: '🀰';
    font-size: 1.2rem;
    color: #C9A96E;
    transition: transform 0.4s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-question::after {
    transform: rotate(90deg);
}

.faq-item .faq-answer {
    padding: 0 24px 20px;
    display: none;
    opacity: 0.72;
    color: #5A4A3A;
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    display: block;
    animation: faqSlide 0.35s ease;
}

@keyframes faqSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 0.72;
        transform: translateY(0);
    }
}

/* █ CTA横幅 — 红金喜庆 */
.cta-banner {
    padding: 64px 32px;
    text-align: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #C9A96E 0%, #B8934F 40%, #D4524A 100%);
    color: #F8F4EC;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '🀄 🀅 🀆 🀃 🀂 🀁 🀀';
    position: absolute;
    top: -20%;
    left: -10%;
    font-size: 6rem;
    opacity: 0.04;
    transform: rotate(-10deg);
    pointer-events: none;
    white-space: nowrap;
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #F8F4EC, transparent, #F8F4EC);
    opacity: 0.2;
}

.cta-banner h2 {
    color: #F8F4EC;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 12px;
    position: relative;
}

.cta-banner p {
    color: rgba(248, 244, 236, 0.85);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.6;
    position: relative;
}

.cta-banner .btn-primary {
    background: #F8F4EC;
    color: #3D2E1E !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cta-banner .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cta-banner .btn-primary::before {
    content: '🎋';
}

/* █ 页脚 — 暖木色调 */
.site-footer {
    padding: 64px 0 32px;
    background: #3D2E1E;
    color: rgba(248, 244, 236, 0.85);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #C9A96E, #D4524A, #C9A96E, transparent);
    opacity: 0.3;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand h3 {
    color: #F8F4EC;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-brand p {
    opacity: 0.65;
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-col h4 {
    color: #E8D5B5;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: rgba(248, 244, 236, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul a::before {
    content: '·';
    color: #C9A96E;
    font-weight: 700;
}

.footer-col ul a:hover {
    color: #C9A96E;
}

.footer-bottom {
    border-top: 1px solid rgba(201, 169, 110, 0.15);
    margin-top: 48px;
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.5;
    color: rgba(248, 244, 236, 0.6);
}

/* █ 工具类 */
.text-accent {
    color: #C9A96E;
}

.text-center {
    text-align: center;
}

.text-center .section-desc {
    margin-left: auto;
    margin-right: auto;
}

.seo-description {
    max-width: 640px;
    margin: 0 auto 48px;
    opacity: 0.7;
    color: #5A4A3A;
    line-height: 1.7;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* █ 装饰性麻将元素 */
.mahjong-ornament {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #C9A96E;
    font-size: 0.7rem;
    letter-spacing: 4px;
    opacity: 0.3;
    margin-top: 24px;
}

/* █ 响应式 */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.6rem;
    }
    .hero-image {
        width: 40%;
        opacity: 0.5;
    }
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero-image {
        display: none;
    }
    .feature-block {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .feature-block .feature-image {
        order: -1;
    }
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .main-nav {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: rgba(248, 244, 236, 0.98);
        backdrop-filter: blur(16px);
        padding: 24px 28px;
        gap: 16px;
        border-bottom: 1px solid rgba(201, 169, 110, 0.2);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    }
    .main-nav.open a {
        font-size: 1rem;
        padding: 8px 0;
    }
    .nav-cta {
        text-align: center;
        padding: 12px 24px !important;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 480px) {
    .cards-grid,
    .content-wall,
    .stats-bar {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .stat-number {
        font-size: 2rem;
    }
    .cta-banner {
        padding: 40px 20px;
    }
    .cta-banner h2 {
        font-size: 1.4rem;
    }
}

/* █ 额外：滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #F3EDE1;
}

::-webkit-scrollbar-thumb {
    background: #C9A96E;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B8934F;
}

/* █ 选中状态 */
input:focus, textarea:focus, select:focus {
    outline: 2px solid #C9A96E;
    outline-offset: 2px;
}

/* █ 打印样式 */
@media print {
    .site-header {
        position: static;
        background: #F8F4EC;
        border-bottom: 1px solid #ddd;
    }
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
    .hero-image {
        display: none;
    }
    .btn:hover {
        transform: none !important;
    }
    .category-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}