/* ===== 问鼎娱乐 (WENDING) 完整样式表 ===== */
/* 版本: 1.0 | 更新时间: 2026-03-01 */
/* 全部CSS内联，无外部依赖 */

/* ===== CSS自定义属性 ===== */
:root {
    --brand-primary: #1a1a2e;
    --brand-secondary: #e94560;
    --brand-accent: #0f3460;
    --brand-light: #16213e;
    --text-light: #f0f0f0;
    --text-dark: #1a1a2e;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius: 16px;
    --transition: 0.3s ease;
    --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --max-width: 1200px;
    --header-height: 68px;
}

/* ===== 重置 & 基础 ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-gradient);
    color: var(--text-light);
    line-height: 1.7;
    min-height: 100vh;
    transition: background 0.5s ease, color 0.5s ease;
}

/* ===== 暗色/亮色模式 ===== */
body.light-mode {
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --text-light: #1a1a2e;
    --text-dark: #f0f0f0;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body.light-mode header {
    background: rgba(245, 247, 250, 0.85);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .btn-secondary {
    color: #1a1a2e;
}

body.light-mode .card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .banner-slide {
    background: rgba(255, 255, 255, 0.6);
}

body.light-mode .partner-item svg rect {
    fill: rgba(0, 0, 0, 0.05);
}

body.light-mode footer {
    background: rgba(0, 0, 0, 0.05);
}

/* ===== 容器 ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 头部 ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: calc(var(--max-width) + 40px);
    margin: 0 auto;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    user-select: none;
}

.logo span {
    color: var(--brand-secondary);
}

/* ===== 导航 ===== */
nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
}

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

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

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

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

/* ===== 菜单按钮 ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

.menu-toggle span {
    width: 26px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.dark-toggle {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.dark-toggle:hover {
    background: var(--brand-secondary);
    border-color: var(--brand-secondary);
    transform: scale(1.05);
}

/* ===== Hero区域 ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    background: radial-gradient(ellipse at 30% 50%, rgba(233, 69, 96, 0.15) 0%, transparent 60%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
    color: var(--brand-secondary);
    position: relative;
    display: inline-block;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--brand-secondary);
    border-radius: 2px;
    opacity: 0.4;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== 按钮 ===== */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--brand-secondary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(6px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===== 面包屑 ===== */
.breadcrumb {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 20px 0 0;
    font-size: 0.85rem;
    opacity: 0.7;
    justify-content: center;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--brand-secondary);
}

/* ===== 通用section ===== */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--brand-secondary);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
    font-size: 1.05rem;
}

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

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    border-color: rgba(233, 69, 96, 0.3);
}

.card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    display: block;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.card p {
    opacity: 0.85;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== Banner轮播 ===== */
.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin: 40px 0;
    height: 400px;
    box-shadow: var(--shadow);
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    font-weight: 800;
}

.banner-slide p {
    max-width: 500px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.banner-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background: var(--brand-secondary);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

.banner-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* ===== 滚动动画 ===== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 统计数字 ===== */
.stats-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--brand-secondary);
    line-height: 1.2;
}

.stat-item p {
    opacity: 0.8;
    font-size: 1.05rem;
}

/* ===== FAQ ===== */
.faq-item {
    border-bottom: 1px solid var(--glass-border);
    padding: 18px 0;
    transition: border-color 0.3s ease;
}

.faq-item:first-child {
    border-top: 1px solid var(--glass-border);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    user-select: none;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--brand-secondary);
}

.faq-question span {
    transition: transform 0.3s ease;
    font-size: 1.4rem;
    line-height: 1;
    display: inline-block;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding-top: 0;
    opacity: 0.85;
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-top: 14px;
}

.faq-item.open .faq-question span {
    transform: rotate(45deg);
    color: var(--brand-secondary);
}

/* ===== 合作伙伴 ===== */
.partner-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.partner-item {
    width: 120px;
    height: 60px;
    background: var(--glass-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    padding: 10px;
    transition: all 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--brand-secondary);
}

/* ===== 搜索框 ===== */
.search-box {
    display: flex;
    max-width: 400px;
    margin: 20px auto;
    background: var(--glass-bg);
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1rem;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-light);
    opacity: 0.5;
}

.search-box button {
    padding: 12px 24px;
    background: var(--brand-secondary);
    border: none;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-box button:hover {
    opacity: 0.9;
    background: #d63850;
}

/* ===== 页脚 ===== */
footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    padding: 60px 0 30px;
    border-top: 1px solid var(--glass-border);
}

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

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--brand-secondary);
    font-weight: 700;
}

.footer-col a {
    display: block;
    color: var(--text-light);
    opacity: 0.7;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--brand-secondary);
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ===== 回到顶部 ===== */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-secondary);
    color: #fff;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-top.show {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

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

.back-top:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.5);
}

/* ===== 其他辅助样式 ===== */
section[style*="background"] {
    transition: background 0.3s ease;
}

/* 卡片内标题跟随 */
.card h4 {
    font-weight: 600;
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
    section {
        padding: 80px 0;
    }

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

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

    .banner-slider {
        height: 350px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(12px);
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--glass-border);
    }

    body.light-mode nav ul {
        background: rgba(245, 247, 250, 0.95);
    }

    nav ul.open {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .menu-toggle {
        display: flex;
    }

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

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

    section {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

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

    .banner-slider {
        height: 280px;
    }

    .banner-slide h3 {
        font-size: 1.5rem;
    }

    .card-grid {
        gap: 20px;
    }

    .card {
        padding: 24px 18px;
    }

    .stats-grid {
        gap: 30px;
    }

    .stat-item h3 {
        font-size: 2.2rem;
    }

    .footer-grid {
        gap: 30px;
    }

    .back-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 10px 16px;
    }

    .logo {
        font-size: 1.3rem;
    }

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

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

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .banner-slider {
        height: 240px;
    }

    .banner-slide {
        padding: 20px;
    }

    .banner-slide h3 {
        font-size: 1.2rem;
    }

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

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

    .stats-grid {
        flex-direction: column;
        gap: 20px;
    }

    .partner-item {
        width: 100px;
        height: 50px;
    }

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

    .back-top {
        bottom: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* ===== 打印样式 ===== */
@media print {
    header,
    .back-top,
    .banner-controls,
    .menu-toggle,
    .dark-toggle {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .card {
        background: #f5f5f5;
        border: 1px solid #ddd;
        box-shadow: none;
    }

    .hero {
        min-height: auto;
        padding: 40px 20px;
    }

    section {
        padding: 40px 0;
        page-break-inside: avoid;
    }
}

/* ===== 辅助动画 ===== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 加载占位动画 */
.loading-placeholder {
    animation: pulse 1.5s ease-in-out infinite;
}

/* 暗色模式下的图片/图标适配 */
body.light-mode .card-icon svg rect[fill="#e94560"][opacity="0.2"] {
    opacity: 0.1;
}

/* 确保所有SVG图标正确渲染 */
.card-icon svg {
    width: 100%;
    height: 100%;
}

/* 表单元素兼容 */
input,
button,
textarea,
select {
    font-family: inherit;
}

/* 高DPI屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card,
    .banner-slider,
    .partner-item {
        -webkit-font-smoothing: antialiased;
    }
}