/* ===== 全局重置与基础样式 ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* 锚点偏移补偿固定导航栏高度 */
section[id],
footer {
    scroll-margin-top: 70px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f8fc;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 配色变量 ===== */
:root {
    --primary-dark: #0a1f3d;
    --primary-purple: #0d2f5f;
    --secondary-purple: #0055cc;
    --accent-pink: #0068ff;
    --accent-pink-hover: #0055cc;
    --accent-gold: #ffd700;
    --white: #ffffff;
    --light-gray: #f4f4f8;
    --medium-gray: #888;
    --dark-text: #001f4d;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease, padding 0.3s ease;
    padding: 20px 0;
}

/* 滚动后添加背景 */
.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.footer-logo .logo-img {
    height: 48px;
}

.nav-links {
    display: flex;
    gap: 60px;
    margin-left: auto;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-pink);
}

.nav-links a.active {
    color: var(--accent-pink);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-pink);
    border-radius: 2px;
    animation: underlineIn 0.3s ease;
}

@keyframes underlineIn {
    from { width: 0; }
    to   { width: 100%; }
}

/* ===== Hero 区域 ===== */
.hero {
    position: relative;
    min-height: 100vh;
    background: url('images/banner.png') center center / cover no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    color: var(--white);
    max-width: 680px;
}

.hero-subtitle {
    font-size: 15px;
    color: #222;
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-title {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #222;
}

.hero-description {
    font-size: 20px;
    color: #222;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 6px 6px 6px 16px;
    max-width: 450px;
}

.phone-prefix {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-right: 10px;
    white-space: nowrap;
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    padding: 10px;
    font-size: 15px;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-download-main {
    background: var(--accent-pink);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 160px;
}

.btn-download-main:hover {
    background: var(--accent-pink-hover);
    transform: scale(1.02);
}

.hero-badges {
    display: flex;
    gap: 24px;
    margin-top: 25px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.badge-icon {
    font-size: 16px;
}

/* ===== 通用按钮 ===== */
.btn-primary {
    display: inline-block;
    background: var(--accent-pink);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 104, 255, 0.35);
}

.btn-primary:hover {
    background: var(--accent-pink-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 104, 255, 0.45);
}

/* ===== 通用标题 ===== */
.section-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.section-title.center {
    text-align: center;
    margin-bottom: 15px;
}

.highlight-pink {
    color: var(--accent-pink);
}

.section-subtitle {
    font-size: 16px;
    color: var(--medium-gray);
}

.section-subtitle.center {
    text-align: center;
    margin-bottom: 50px;
}

.section-text {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.8;
}

/* ===== 关于区域 ===== */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-content {
    flex: 1;
}

/* 手机 Mockup */
.phone-mockup {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #0d1a33, #1a2a4a);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25), 0 0 0 6px #051020, 0 0 0 8px #001f4d;
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 22px;
    background: #051020;
    border-radius: 15px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0d2f5f 0%, #0a1f3d 100%);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-screen-app {
    padding-top: 25px;
    color: white;
}

.app-header {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-logo-small {
    font-weight: 700;
    font-size: 14px;
    color: var(--accent-pink);
}

.app-nav {
    display: flex;
    gap: 12px;
    font-size: 14px;
}

.app-banner {
    margin: 10px 15px;
    padding: 20px;
    background: linear-gradient(135deg, var(--accent-pink), #3d8bff);
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
}

.app-matches {
    padding: 0 15px;
    flex: 1;
}

.match-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}

.team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 13px;
}

.vs {
    color: var(--accent-pink);
    font-weight: 700;
    font-size: 12px;
}

.match-info {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin: 8px 0;
}

.join-btn-small {
    width: 100%;
    background: var(--accent-pink);
    color: white;
    border: none;
    padding: 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

/* 装饰圆圈 */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.deco-1 {
    width: 150px;
    height: 150px;
    background: var(--accent-pink);
    top: -20px;
    right: 20px;
}

.deco-2 {
    width: 80px;
    height: 80px;
    background: var(--accent-gold);
    bottom: 50px;
    left: 40px;
}

/* ===== 步骤区域 ===== */
.steps {
    padding: 100px 0;
    background: var(--light-gray);
}

/* 功能模块纵向排列 */
.feature-rows {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 80px;
}

.feature-row-reverse .feature-row-text {
    order: 2;
}

.feature-row-reverse .feature-row-img {
    order: 1;
}

.feature-row-text {
    flex: 1;
}

.feature-row-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.feature-row-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}

.feature-row-img {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    height: 400px;
    /* border-radius: 20px; */
    overflow: hidden;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); */
}

.feature-row-img img {
    /* width: 100%; */
    /* height: 100%; */
    object-fit: cover;
    display: block;
}

/* .feature-row-img-1 {
    background: linear-gradient(135deg, #0068ff 20%, #cce4ff 100%);
}

.feature-row-img-2 {
    background: linear-gradient(135deg, #0055cc 20%, #99ccff 100%);
}

.feature-row-img-3 {
    background: linear-gradient(135deg, #ffd700 20%, #fff59d 100%);
}

.feature-row-img-4 {
    background: linear-gradient(135deg, #3d8bff 20%, #0068ff 100%);
} */

/* ===== 下载应用区域 ===== */
.download-app {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.download-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a1f3d 0%, #0d2f5f 100%);
}

.download-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 80px;
}

.download-content {
    flex: 1;
    color: var(--white);
}

.download-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
}

.download-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    max-width: 420px;
}

.download-buttons {
    display: flex;
    gap: 15px;
}

.btn-apple,
.btn-google {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    color: var(--primary-dark);
    padding: 12px 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-apple:hover,
.btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-apple-icon,
.btn-google-icon {
    font-size: 28px;
}

.btn-apple-text,
.btn-google-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.btn-apple-text small,
.btn-google-text small {
    font-size: 10px;
    color: var(--medium-gray);
}

.btn-apple-text strong,
.btn-google-text strong {
    font-size: 15px;
    font-weight: 700;
}

.download-phone {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-big {
    width: 320px;
    height: 640px;
    background: linear-gradient(145deg, #0d1a33, #1a2a4a);
    border-radius: 45px;
    padding: 14px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4), 0 0 0 7px #051020, 0 0 0 9px #001f4d;
}

.phone-big::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 25px;
    background: #051020;
    border-radius: 15px;
    z-index: 10;
}

.phone-big-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0d2f5f 0%, #0a1f3d 100%);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 25px 18px;
    color: white;
}

.phone-big-header {
    text-align: center;
    margin-bottom: 25px;
}

.phone-big-logo {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-pink);
}

.phone-big-content {
    flex: 1;
}

.big-banner {
    background: linear-gradient(135deg, var(--accent-pink), #3d8bff);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 25px;
}

.big-stats {
    display: flex;
    gap: 15px;
}

.stat {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
}

.stat-val {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 5px;
}

.stat-lbl {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.player-art {
    position: absolute;
    width: 120px;
    height: 120px;
    font-size: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.player-1 {
    top: 20%;
    left: -20px;
    transform: rotate(-15deg);
}

.player-2 {
    bottom: 20%;
    right: -20px;
    transform: rotate(15deg);
}

/* ===== 功能区域 ===== */
.features {
    padding: 100px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    text-align: center;
    padding: 20px;
}

.feature-phone {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.feature-screen {
    width: 220px;
    height: 420px;
    background: linear-gradient(180deg, #0d2f5f 0%, #0a1f3d 100%);
    border-radius: 25px;
    padding: 40px 18px 20px;
    color: white;
    box-shadow: 0 20px 50px rgba(45, 27, 78, 0.3);
    position: relative;
}

.feature-screen::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.feature-header {
    background: linear-gradient(135deg, var(--accent-pink), #3d8bff);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 15px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    text-align: left;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
}

/* ===== CTA 下载 ===== */
.cta-download {
    padding: 100px 0;
    /* background: linear-gradient(135deg, #f8f8fc 0%, #e9e9f5 100%); */
    text-align: center;
}

.cta-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.cta-desc {
    font-size: 16px;
    color: var(--medium-gray);
    margin-bottom: 30px;
}

.cta-buttons {
    margin-bottom: 50px;
}

.cta-phone-row {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.cta-phone {
    width: 80px;
    height: 160px;
    background: linear-gradient(145deg, #0d1a33, #1a2a4a);
    border-radius: 18px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.cta-phone:hover {
    transform: translateY(-5px);
}

.cta-phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-purple), var(--primary-dark));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

/* ===== 用户评价 ===== */
.testimonials {
    padding: 100px 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--light-gray);
    padding: 35px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
    color: var(--accent-gold);
    font-size: 18px;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-pink), #3d8bff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    font-size: 15px;
    color: var(--primary-dark);
}

.author-info span {
    font-size: 12px;
    color: var(--accent-pink);
}

/* ===== Footer ===== */
.footer {
    background: var(--primary-dark);
    background: url('images/foot.png');
    background-size: cover;
    padding: 70px 0 30px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    max-width: 300px;
}

.footer-heading {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-contact {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-pink);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-pink);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-note {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.3);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 36px;
    }

    .input-group {
        margin: 0 auto;
    }

    .hero-badges {
        justify-content: center;
    }

    .about-container {
        flex-direction: column;
        gap: 50px;
    }

    .feature-row {
        flex-direction: column;
        gap: 30px;
    }

    .feature-row-reverse .feature-row-text {
        order: 1;
    }

    .feature-row-reverse .feature-row-img {
        order: 2;
    }

    .feature-row-img {
        width: 100%;
        height: 260px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .download-container {
        flex-direction: column;
        text-align: center;
    }

    .download-buttons {
        justify-content: center;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 28px;
    }

    .input-group {
        flex-direction: column;
        padding: 15px;
        gap: 10px;
    }

    .btn-download-main {
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .cta-title {
        font-size: 30px;
    }

    .phone-big {
        width: 260px;
        height: 520px;
    }
}
