/* 平博体育APP下载 - 完整样式表 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f8faff;
    --surface: #ffffff;
    --primary: #0f2b4f;
    --accent: #1a6b9c;
    --accent2: #2590c8;
    --text: #1a2634;
    --text-light: #4a5a6e;
    --border: #dce3ed;
    --radius: 20px;
    --shadow: 0 12px 30px rgba(0, 20, 40, 0.08);
    --glass: rgba(255, 255, 255, 0.55);
    --glow: 0 0 0 1px rgba(255, 255, 255, 0.3);
    --nav-bg: rgba(255, 255, 255, 0.78);
    --card-bg: #ffffff;
    --footer-bg: #0b1a2e;
    --footer-text: #b0c7dd;
}

body.dark {
    --bg: #0b121c;
    --surface: #141f2d;
    --primary: #b0d0f0;
    --accent: #3f8ec0;
    --accent2: #5faae0;
    --text: #e3ecf5;
    --text-light: #9fb0c5;
    --border: #2a3a4e;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    --glass: rgba(20, 30, 44, 0.7);
    --nav-bg: rgba(15, 25, 40, 0.85);
    --card-bg: #1a2636;
    --footer-bg: #040b14;
    --footer-text: #8fa8c2;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s, color 0.2s;
    scroll-behavior: smooth;
}

.wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 毛玻璃面板 */
.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* 头部导航 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s, border-bottom-color 0.3s;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    flex-wrap: wrap;
}

.logo svg {
    height: 42px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-menu a {
    padding: 8px 14px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
    transition: all 0.2s;
    text-decoration: none;
    background: transparent;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 14px rgba(26, 107, 156, 0.3);
    transform: translateY(-1px);
}

.nav-extra {
    display: flex;
    align-items: center;
    gap: 14px;
}

#darkToggle {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 60px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: 0.2s;
    color: var(--text);
}

#darkToggle:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: rotate(20deg);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text);
    transition: transform 0.2s;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

/* 英雄区域 - 渐变Banner */
.hero {
    margin: 30px 0 50px;
    border-radius: 40px;
    overflow: hidden;
    background: linear-gradient(145deg, #0b1f32, #163a5e);
    padding: 50px 40px;
    position: relative;
    isolation: isolate;
    transition: box-shadow 0.3s;
}

.hero:hover {
    box-shadow: 0 20px 40px rgba(11, 31, 50, 0.3);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(55, 155, 225, 0.2), transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 2 1 340px;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-text h1 span {
    background: linear-gradient(135deg, #7fc6ff, #ade0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    color: #cbdbea;
    max-width: 600px;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 60px;
    font-weight: 600;
    border: none;
    background: var(--accent2);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 8px 18px rgba(37, 144, 200, 0.35);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    box-shadow: none;
    backdrop-filter: blur(4px);
}

.btn:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.hero-visual {
    flex: 1 1 260px;
    display: flex;
    justify-content: center;
}

.hero-visual svg {
    width: 100%;
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(70, 160, 230, 0.4));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 通用区块 */
section {
    margin: 70px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-sub {
    color: var(--text-light);
    max-width: 700px;
    margin-bottom: 40px;
}

/* 网格布局 */
.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 28px;
}

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

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

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

/* 卡片样式 */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.25s;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.card-icon svg {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    transition: transform 0.3s;
}

.card:hover .card-icon svg {
    transform: scale(1.1) rotate(-5deg);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text);
}

.card p {
    color: var(--text-light);
}

.badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* FAQ 折叠 */
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    transition: background 0.2s;
}

.faq-item:hover {
    background: rgba(26, 107, 156, 0.03);
}

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

.faq-question span {
    transition: transform 0.3s;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    color: var(--text-light);
}

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

/* 页脚 */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    border-radius: 40px 40px 0 0;
    padding: 50px 24px 30px;
    margin-top: 80px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent2), transparent);
}

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

.footer-grid a {
    color: var(--footer-text);
    text-decoration: none;
    display: block;
    margin: 6px 0;
    font-size: 0.9rem;
    transition: all 0.2s;
    position: relative;
    padding-left: 0;
}

.footer-grid a:hover {
    color: #fff;
    padding-left: 8px;
}

.footer-grid h4 {
    color: #fff;
    margin-bottom: 12px;
}

.footer-copy {
    border-top: 1px solid #253545;
    margin-top: 40px;
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* 滚动动画 */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 780px) {
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        background: var(--surface);
        padding: 16px;
        border-radius: 28px;
        margin-top: 12px;
        box-shadow: var(--shadow);
    }

    .nav-menu.open {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

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

    .hero {
        padding: 30px 20px;
    }

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

    .card {
        padding: 20px 16px;
    }

    .site-footer {
        padding: 30px 16px 20px;
    }

    .footer-grid {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .wrapper {
        padding: 0 16px;
    }

    .hero-text h1 {
        font-size: 1.6rem;
    }

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

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

    .grid-2,
    .grid-3,
    .grid-4 {
        gap: 16px;
    }
}

/* 工具类 */
.breadcrumb-hidden {
    display: none;
}

.animate-count {
    display: inline-block;
}

/* 轮播指示器 */
.carousel-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--border);
    border-radius: 50%;
    margin: 0 6px;
    cursor: pointer;
    transition: 0.2s;
}

.carousel-dot.active {
    background: var(--accent2);
    width: 28px;
    border-radius: 20px;
}

.carousel-dot:hover {
    background: var(--accent);
    transform: scale(1.2);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--accent2);
    border-radius: 10px;
}

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

/* 选中文本样式 */
::selection {
    background: var(--accent2);
    color: #fff;
}

/* 图片/媒体自适应 */
img,
video,
svg {
    max-width: 100%;
    height: auto;
}

/* 暗色模式下的微调 */
body.dark .card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

body.dark .hero {
    background: linear-gradient(145deg, #0a1628, #122b44);
}

body.dark .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark .faq-item:hover {
    background: rgba(63, 142, 192, 0.05);
}

/* 返回顶部按钮样式 */
button[style*="position:fixed"] {
    transition: all 0.3s;
    opacity: 0.9;
}

button[style*="position:fixed"]:hover {
    transform: scale(1.1);
    opacity: 1;
}