/* ============================================
   问鼎游戏 · 设计系统
   风格代号：琥珀琉璃 · 暖橙绿洲
   设计语言：现代复古游戏美学 + 层叠光影
   ============================================ */

/* ----- 基础重置 ----- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    overflow-x: hidden;
    background: #FDF8F2;
    color: #2D3436;
    line-height: 1.6;
}

::selection {
    background: #E76F51;
    color: #fff;
}

/* ----- 滚动条美化 ----- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F2;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #F4A261, #E76F51);
    border-radius: 4px;
}

/* ----- 核心布局 ----- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section:nth-child(even) {
    background: #F8F4EE;
}

/* 装饰性斜线背景 */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F4A261 0%, #E76F51 50%, #2A9D8F 100%);
    opacity: 0.3;
}

/* ----- 导航 — 琥珀玻璃态 ----- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(253, 248, 242, 0.88);
    backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid rgba(212, 163, 115, 0.15);
    transition: background 0.3s;
}

.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.3rem;
    text-decoration: none;
    color: #264653;
    letter-spacing: 0.5px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #F4A261, #E76F51);
    color: #fff;
    box-shadow: 0 4px 12px rgba(231, 111, 81, 0.25);
    transform: rotate(-5deg);
    transition: transform 0.3s;
}

.logo:hover .logo-icon {
    transform: rotate(0deg) scale(1.05);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.main-nav a {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4A4A4A;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #F4A261, #E76F51);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
}

.main-nav a:hover {
    color: #E76F51;
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px !important;
    border-radius: 50px !important;
    color: #fff !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, #F4A261, #E76F51);
    box-shadow: 0 4px 14px rgba(231, 111, 81, 0.3);
    transition: all 0.3s !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(231, 111, 81, 0.4);
    color: #fff !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #264653;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.menu-toggle:hover {
    background: rgba(212, 163, 115, 0.15);
}

/* ----- 首页Hero — 层叠光影 ----- */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(160deg, #FDF8F2 0%, #F8F0E6 50%, #F0E6D8 100%);
    overflow: hidden;
    padding-top: 72px;
}

/* 装饰性几何光圈 */
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 70%;
    height: 140%;
    background: radial-gradient(ellipse at center, rgba(244, 162, 97, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(42, 157, 143, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 640px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
    background: rgba(42, 157, 143, 0.12);
    color: #2A9D8F;
    border: 1px solid rgba(42, 157, 143, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #264653;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero h1 span {
    background: linear-gradient(135deg, #F4A261, #E76F51);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: #5A5A5A;
    max-width: 520px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(38, 70, 83, 0.12), 0 8px 24px rgba(38, 70, 83, 0.06);
    transform: perspective(1000px) rotateY(-4deg);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ----- 按钮系统 ----- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 0.3px;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #F4A261, #E76F51);
    box-shadow: 0 6px 20px rgba(231, 111, 81, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(231, 111, 81, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #264653;
    color: #264653;
}

.btn-outline:hover {
    background: #264653;
    color: #fff;
    transform: translateY(-3px);
}

/* ----- 标签/标题 ----- */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: #2A9D8F;
    padding: 4px 12px;
    border-left: 3px solid #F4A261;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #264653;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-desc {
    max-width: 600px;
    color: #5A5A5A;
    margin-bottom: 48px;
    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: 16px;
    padding: 32px 28px;
    background: #FFFFFF;
    border: 1px solid rgba(212, 163, 115, 0.12);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    box-shadow: 0 4px 12px rgba(38, 70, 83, 0.04);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F4A261, #E76F51);
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.4s;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(38, 70, 83, 0.08), 0 4px 16px rgba(231, 111, 81, 0.08);
    border-color: rgba(231, 111, 81, 0.15);
}

.category-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(244, 162, 97, 0.12), rgba(231, 111, 81, 0.12));
    color: #E76F51;
    transition: transform 0.3s;
}

.category-card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.card-link {
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    color: #E76F51;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    transition: gap 0.3s;
}

.card-link:hover {
    gap: 12px;
}

/* ----- 特性块 — 交错琉璃 ----- */
.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.feature-block:nth-child(even) .feature-image {
    order: 1;
}

.feature-block:nth-child(even) .feature-text {
    order: 2;
}

.feature-image {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(38, 70, 83, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.5s;
}

.feature-image:hover {
    transform: scale(1.02);
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-text h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #264653;
    margin-bottom: 16px;
}

.feature-text p {
    color: #5A5A5A;
    line-height: 1.7;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4A4A4A;
    font-weight: 500;
}

.feature-list li::before {
    content: '✦';
    font-weight: 400;
    color: #F4A261;
    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: #FFFFFF;
    border: 1px solid rgba(212, 163, 115, 0.1);
    transition: all 0.4s;
    box-shadow: 0 4px 16px rgba(38, 70, 83, 0.03);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(38, 70, 83, 0.06);
    border-color: rgba(244, 162, 97, 0.2);
}

.stat-number {
    font-size: 2.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #F4A261, #E76F51);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: #6A6A6A;
    margin-top: 8px;
    font-weight: 500;
}

/* ----- 内容墙 — 杂志风网格 ----- */
.content-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.content-wall-item {
    border-radius: 16px;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid rgba(212, 163, 115, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 12px rgba(38, 70, 83, 0.03);
}

.content-wall-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 56px rgba(38, 70, 83, 0.08);
    border-color: rgba(244, 162, 97, 0.15);
}

.content-wall-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s;
}

.content-wall-item:hover img {
    transform: scale(1.05);
}

.content-wall-body {
    padding: 24px;
}

.content-wall-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #264653;
    margin-bottom: 8px;
}

.content-wall-body p {
    color: #6A6A6A;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ----- FAQ — 琉璃折叠 ----- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid rgba(212, 163, 115, 0.15);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #FFFFFF;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: rgba(244, 162, 97, 0.3);
}

.faq-item .faq-question {
    padding: 18px 24px;
    font-weight: 600;
    color: #264653;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    transition: background 0.3s;
}

.faq-item .faq-question::after {
    content: '↓';
    font-size: 1.1rem;
    color: #F4A261;
    transition: transform 0.4s;
}

.faq-item.open .faq-question::after {
    transform: rotate(180deg);
}

.faq-item .faq-answer {
    padding: 0 24px 20px;
    display: none;
    color: #5A5A5A;
    line-height: 1.7;
    font-size: 0.95rem;
}

.faq-item.open .faq-answer {
    display: block;
    animation: faqSlide 0.35s ease;
}

@keyframes faqSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----- CTA横幅 — 琥珀渐变 ----- */
.cta-banner {
    padding: 64px 48px;
    text-align: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #264653 0%, #2A9D8F 50%, #F4A261 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-banner h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
    margin: 0 auto 28px;
    font-size: 1.05rem;
    position: relative;
}

.cta-banner .btn-primary {
    background: #fff;
    color: #264653;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.cta-banner .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

/* ----- 页脚 — 深色暖调 ----- */
.site-footer {
    padding: 64px 0 32px;
    background: #264653;
    color: rgba(255, 255, 255, 0.85);
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand h3 {
    color: #F4A261;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.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.9rem;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #F4A261;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 48px;
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ----- 工具类 ----- */
.text-accent {
    color: #E76F51;
}

.text-center {
    text-align: center;
}

.seo-description {
    max-width: 600px;
    margin: 0 auto 48px;
    color: #5A5A5A;
    line-height: 1.7;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

/* ----- 额外装饰组件 ----- */
/* 分隔装饰线 */
.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #F4A261, #E76F51);
    border-radius: 4px;
    margin: 16px 0 24px;
}

.divider.center {
    margin: 16px auto 24px;
}

/* 标签组 */
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(42, 157, 143, 0.08);
    color: #2A9D8F;
    border: 1px solid rgba(42, 157, 143, 0.15);
}

/* 引用块 */
.blockquote {
    padding: 20px 24px;
    border-left: 4px solid #F4A261;
    background: rgba(244, 162, 97, 0.06);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #4A4A4A;
    margin: 24px 0;
}

/* ----- 响应式设计 ----- */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .hero-image {
        transform: perspective(800px) rotateY(0deg);
    }

    .feature-block {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-block:nth-child(even) .feature-image {
        order: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: rgba(253, 248, 242, 0.98);
        backdrop-filter: blur(16px);
        padding: 24px 28px;
        gap: 16px;
        border-bottom: 1px solid rgba(212, 163, 115, 0.1);
        box-shadow: 0 16px 48px rgba(38, 70, 83, 0.06);
    }

    .main-nav.open a {
        font-size: 1rem;
        padding: 8px 0;
    }

    .main-nav.open .nav-cta {
        text-align: center;
        margin-top: 8px;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .cta-banner {
        padding: 48px 24px;
    }

    .cta-banner h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .cards-grid,
    .content-wall,
    .stats-bar {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stat-item {
        padding: 24px 16px;
    }

    .container {
        padding: 0 16px;
    }

    .header-inner {
        padding: 0 16px;
    }
}

/* ----- 动画辅助 ----- */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.float-anim {
    animation: float 4s ease-in-out infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* 卡片延迟入场 */
.card-stagger .category-card:nth-child(1) { animation-delay: 0.05s; }
.card-stagger .category-card:nth-child(2) { animation-delay: 0.1s; }
.card-stagger .category-card:nth-child(3) { animation-delay: 0.15s; }
.card-stagger .category-card:nth-child(4) { animation-delay: 0.2s; }
.card-stagger .category-card:nth-child(5) { animation-delay: 0.25s; }
.card-stagger .category-card:nth-child(6) { animation-delay: 0.3s; }

/* 打印优化 */
@media print {
    .site-header {
        position: relative;
        background: #fff;
        backdrop-filter: none;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    .cta-banner {
        background: #264653 !important;
        -webkit-text-fill-color: #fff !important;
    }

    .btn-primary {
        background: #264653 !important;
        -webkit-text-fill-color: #fff !important;
    }
}