/* ===== 问鼎娱乐 (WENDING) 官方网站 - 完整样式 ===== */
/* ===== UI 风格：深色科技感 + 金色点缀 ===== */

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

:root {
    /* 主色调 - 深色科技感 */
    --primary: #1a1a2e;
    --secondary: #16213e;
    --bg: #0f0f23;
    --surface: #1e1e3a;
    --text: #e0e0e0;
    --text2: #a0a0b0;

    /* 强调色 - 金色 + 玫瑰红 */
    --accent: #f0c040;
    --accent2: #e94560;

    /* 玻璃态 */
    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* 阴影与圆角 */
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;

    /* 过渡 */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* 字体 */
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ---------- 全局样式 ---------- */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background var(--transition-slow), color var(--transition-slow);
}

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

a:hover {
    color: var(--accent2);
}

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

/* ---------- 容器 ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ---------- 滚动条美化 ---------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ---------- 选中状态 ---------- */
::selection {
    background: var(--accent);
    color: #1a1a2e;
}

/* ---------- 头部导航 ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 35, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: background var(--transition-slow), border-color var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    user-select: none;
}

.logo svg {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

/* 导航链接 */
.nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text2);
    transition: var(--transition);
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: var(--accent);
    background: var(--glass);
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* 主题切换 & 菜单按钮 */
.theme-toggle,
.menu-toggle {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
    flex-shrink: 0;
}

.theme-toggle:hover,
.menu-toggle:hover {
    background: var(--glass-border);
    color: var(--accent);
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-bottom: 1px solid var(--glass-border);
    z-index: 999;
    flex-direction: column;
    gap: 12px;
    transform: translateY(-110%);
    transition: transform var(--transition-slow);
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu a {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    color: var(--text2);
    transition: var(--transition);
}

.mobile-menu a:hover {
    background: var(--glass);
    color: var(--accent);
}

/* ---------- 主内容区 ---------- */
main {
    padding-top: 70px;
}

section {
    padding: 80px 0;
    transition: background var(--transition-slow);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: var(--text2);
}

.breadcrumb a {
    color: var(--accent);
    transition: var(--transition);
}

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

.breadcrumb span {
    margin: 0 6px;
}

/* ---------- Hero 区域 ---------- */
.hero {
    position: relative;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 30%, #16213e 60%, #0f3460 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-bg .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.hero-bg .orb:nth-child(1) {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.hero-bg .orb:nth-child(2) {
    width: 350px;
    height: 350px;
    background: var(--accent2);
    bottom: -80px;
    right: -80px;
    animation-delay: -7s;
}

.hero-bg .orb:nth-child(3) {
    width: 250px;
    height: 250px;
    background: #0f3460;
    top: 40%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -40px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(40px, 30px) scale(1.05);
    }
}

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

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent), #f5d060, var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text2);
    margin-bottom: 32px;
    max-width: 560px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #d4a030);
    color: #1a1a2e;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240, 192, 64, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: var(--transition);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--glass-border);
    transform: translateY(-2px);
}

/* ---------- Hero 轮播 ---------- */
.hero-carousel {
    position: relative;
    z-index: 2;
    margin-top: 48px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.carousel-track {
    display: flex;
    overflow: hidden;
    gap: 16px;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide .icon {
    font-size: 40px;
    flex-shrink: 0;
}

.carousel-slide .text h3 {
    font-size: 18px;
    color: var(--accent);
    margin-bottom: 4px;
}

.carousel-slide .text p {
    color: var(--text2);
    font-size: 14px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.carousel-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text2);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dots button.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
}

/* ---------- 标题 ---------- */
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
    position: relative;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text2);
    margin-bottom: 48px;
    max-width: 600px;
}

/* ---------- 网格布局 ---------- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* ---------- 卡片 ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.card .icon {
    font-size: 36px;
    margin-bottom: 16px;
    display: block;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--accent);
}

.card p {
    color: var(--text2);
    font-size: 15px;
}

.card .number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* 玻璃卡片 */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ---------- 团队成员 ---------- */
.team-member {
    text-align: center;
}

.team-member .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    font-weight: 700;
    transition: var(--transition);
}

.team-member:hover .avatar {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(240, 192, 64, 0.3);
}

.team-member h4 {
    font-size: 18px;
    color: var(--text);
}

.team-member p {
    color: var(--text2);
    font-size: 14px;
}

/* ---------- FAQ 手风琴 ---------- */
.faq-item {
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 0;
    cursor: pointer;
    transition: var(--transition);
}

.faq-item:hover {
    padding-left: 8px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    user-select: none;
}

.faq-question .arrow {
    transition: transform var(--transition-slow);
    font-size: 14px;
    flex-shrink: 0;
}

.faq-item.open .faq-question .arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    color: var(--text2);
    font-size: 15px;
    padding-top: 0;
}

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

/* ---------- 联系信息 ---------- */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.contact-info .item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--glass);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.contact-info .item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.contact-info .item .label {
    color: var(--text2);
    font-size: 13px;
}

.contact-info .item .value {
    color: var(--text);
    font-weight: 500;
}

/* ---------- 搜索框 ---------- */
.search-box {
    display: flex;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    overflow: hidden;
    max-width: 400px;
    position: relative;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(240, 192, 64, 0.1);
}

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

.search-box input::placeholder {
    color: var(--text2);
}

.search-box button {
    padding: 12px 20px;
    background: var(--accent);
    border: none;
    color: #1a1a2e;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background: #d4a030;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 50;
    box-shadow: var(--shadow);
}

.search-results.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.search-results .item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
}

.search-results .item:last-child {
    border-bottom: none;
}

.search-results .item:hover {
    background: var(--glass);
}

.search-results .item .title {
    color: var(--accent);
    font-weight: 500;
}

.search-results .item .desc {
    color: var(--text2);
    font-size: 13px;
}

/* ---------- 页脚 ---------- */
.footer {
    background: var(--primary);
    border-top: 1px solid var(--glass-border);
    padding: 48px 0 24px;
}

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

.footer h4 {
    color: var(--accent);
    margin-bottom: 16px;
    font-size: 16px;
}

.footer a {
    display: block;
    padding: 4px 0;
    color: var(--text2);
    font-size: 14px;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
    color: var(--text2);
    font-size: 13px;
}

/* ---------- 返回顶部 ---------- */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #1a1a2e;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(240, 192, 64, 0.3);
    transition: var(--transition);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
}

.scroll-top.visible {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(240, 192, 64, 0.5);
}

/* ---------- 懒加载 ---------- */
.lazy {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy.loaded {
    opacity: 1;
}

/* ---------- 辅助功能 ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ---------- 动画 ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ---------- 暗色模式 ---------- */
.dark-mode {
    --bg: #f5f5fa;
    --surface: #ffffff;
    --text: #1a1a2e;
    --text2: #555;
    --primary: #e8e8f0;
    --secondary: #dddde8;
    --glass: rgba(0, 0, 0, 0.04);
    --glass-border: rgba(0, 0, 0, 0.08);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.dark-mode header {
    background: rgba(245, 245, 250, 0.85);
}

.dark-mode .hero {
    background: linear-gradient(135deg, #f0f0f8, #e8e8f0, #dddde8, #d0d0e0);
}

.dark-mode .hero h1 {
    -webkit-text-fill-color: #1a1a2e;
    background: linear-gradient(135deg, #1a1a2e, #e94560);
}

.dark-mode .btn-primary {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #f0c040;
}

.dark-mode .card .number {
    -webkit-text-fill-color: #1a1a2e;
}

.dark-mode .scroll-top {
    background: #1a1a2e;
    color: #f0c040;
}

.dark-mode .search-box button {
    background: #1a1a2e;
    color: #f0c040;
}

.dark-mode .search-box button:hover {
    background: #16213e;
}

/* ---------- 响应式：平板 ---------- */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .hero-content {
        text-align: center;
    }

    .hero p {
        margin: 0 auto 32px;
    }

    .hero-actions {
        justify-content: center;
    }

    .section-title {
        text-align: center;
    }

    .section-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr 1fr;
    }

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

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    section {
        padding: 60px 0;
    }

    .hero {
        min-height: calc(100vh - 70px);
    }

    .hero-carousel {
        margin-top: 32px;
        padding: 16px;
    }

    .card {
        padding: 24px;
    }

    .glass-card {
        padding: 24px;
    }

    .hero-bg .orb:nth-child(1) {
        width: 250px;
        height: 250px;
        top: -50px;
        left: -50px;
    }

    .hero-bg .orb:nth-child(2) {
        width: 200px;
        height: 200px;
        bottom: -40px;
        right: -40px;
    }

    .hero-bg .orb:nth-child(3) {
        width: 150px;
        height: 150px;
    }
}

/* ---------- 响应式：手机 ---------- */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .header-inner {
        height: 60px;
    }

    .logo {
        font-size: 20px;
    }

    .logo svg {
        width: 28px;
        height: 28px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

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

    section {
        padding: 40px 0;
    }

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

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

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .hero-carousel {
        padding: 12px;
    }

    .carousel-slide .icon {
        font-size: 32px;
    }

    .card {
        padding: 20px;
    }

    .card .number {
        font-size: 36px;
    }

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

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 32px;
    }

    .team-member .avatar {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }

    .scroll-top {
        bottom: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .footer {
        padding: 32px 0 16px;
    }

    .footer-grid {
        gap: 24px;
    }

    .search-box {
        max-width: 100%;
    }
}

/* ---------- 打印样式 ---------- */
@media print {
    header,
    .scroll-top,
    .hero-bg,
    .mobile-menu {
        display: none !important;
    }

    main {
        padding-top: 0;
    }

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

    .card,
    .glass-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

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

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ---------- 暗色模式下的滚动条 ---------- */
.dark-mode ::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.dark-mode ::-webkit-scrollbar-thumb {
    background: #ccc;
}

.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #999;
}