/* ============================================================
   钀藉彾浜戝钩鍙?- 瀹樼綉缁熶竴鏍峰紡
   浼佷笟鏋佺畝椋庢牸 路 绉诲姩PC鍙岀閫傞厤 路 Slate Blue 浣撶郴
   ============================================================ */

/* ---------- Variables ---------- */
:root {
    --lp-primary: #2563eb;
    --lp-primary-hover: #1d4ed8;
    --lp-primary-light: #eff6ff;
    --lp-primary-100: #dbeafe;
    --lp-primary-200: #bfdbfe;
    --lp-success: #16a34a;
    --lp-success-light: #f0fdf4;
    --lp-warning: #ea580c;
    --lp-warning-light: #fff7ed;
    --lp-danger: #dc2626;
    --lp-text: #0f172a;
    --lp-text-secondary: #64748b;
    --lp-text-muted: #94a3b8;
    --lp-bg: #f8fafc;
    --lp-bg-alt: #f1f5f9;
    --lp-card-bg: #ffffff;
    --lp-border: #e2e8f0;
    --lp-border-light: #f1f5f9;
    --lp-radius: 12px;
    --lp-radius-sm: 8px;
    --lp-radius-xs: 6px;
    --lp-shadow: 0 1px 3px rgb(0 0 0 / .04), 0 1px 2px -1px rgb(0 0 0 / .04);
    --lp-shadow-md: 0 4px 6px -1px rgb(0 0 0 / .05), 0 2px 4px -2px rgb(0 0 0 / .05);
    --lp-shadow-lg: 0 10px 40px -10px rgb(0 0 0 / .08), 0 4px 12px -4px rgb(0 0 0 / .04);
    --lp-transition: 180ms cubic-bezier(.4, 0, .2, 1);
    --lp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    --lp-max-width: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    font-family: var(--lp-font);
    background: var(--lp-card-bg);
    color: var(--lp-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Utility ---------- */
.lp-container { max-width: var(--lp-max-width); margin: 0 auto; padding: 0 24px; }

.lp-section { padding: 88px 0; }
.lp-section-sm { padding: 56px 0; }
.lp-section-dark { background: #0f172a; color: #fff; }

.lp-section-header { text-align: center; margin-bottom: 56px; }
.lp-section-header.light h2 { color: #fff; }
.lp-section-header.light p { color: #94a3b8; }

.lp-section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--lp-primary);
    background: var(--lp-primary-100);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.lp-section-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 12px;
    color: var(--lp-text);
}

.lp-section-desc {
    font-size: 15px;
    color: var(--lp-text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- Header / Nav ---------- */
.lp-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgb(255 255 255 / .82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgb(0 0 0 / .06);
    z-index: 1000;
    transition: var(--lp-transition);
}

.lp-header.scrolled { box-shadow: 0 1px 8px rgb(0 0 0 / .06); }

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

.lp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--lp-text);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.lp-logo-icon {
    width: 34px; height: 34px;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-logo-icon img {
    border-radius: 6px;
}

.lp-nav { display: flex; align-items: center; gap: 4px; }

.lp-nav-link {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--lp-text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--lp-transition);
}

.lp-nav-link:hover { color: var(--lp-primary); background: var(--lp-primary-light); }

.lp-nav-cta {
    margin-left: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--lp-primary);
    border-radius: 8px;
    text-decoration: none;
    transition: var(--lp-transition);
}

.lp-nav-cta:hover { background: var(--lp-primary-hover); box-shadow: 0 4px 12px rgb(37 99 235 / .25); }

.lp-mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--lp-text);
    border-radius: 6px;
}

.lp-mobile-toggle:hover { background: var(--lp-bg-alt); }

/* ---------- Hero ---------- */
.lp-hero {
    padding: 140px 0 100px;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.lp-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgb(255 255 255 / .85) 0%,
        rgb(248 250 252 / .78) 50%,
        rgb(255 255 255 / .88) 100%
    );
    pointer-events: none;
}

.lp-hero-inner { text-align: center; position: relative; z-index: 2; }

.lp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--lp-border);
    padding: 5px 14px 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--lp-text-secondary);
    margin-bottom: 24px;
    box-shadow: var(--lp-shadow);
}

.lp-hero-badge-dot {
    width: 8px; height: 8px;
    background: var(--lp-success);
    border-radius: 50%;
    animation: lpPulse 2s ease infinite;
}

@keyframes lpPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .45; }
}

.lp-hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
    margin-bottom: 20px;
    color: var(--lp-text);
}

.lp-hero-title span {
    background: linear-gradient(135deg, var(--lp-primary), #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-hero-desc {
    font-size: 16px;
    color: var(--lp-text-secondary);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.lp-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: var(--lp-transition);
    cursor: pointer;
    border: none;
    font-family: var(--lp-font);
    white-space: nowrap;
}

.lp-btn-primary {
    background: var(--lp-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgb(37 99 235 / .25);
}

.lp-btn-primary:hover {
    background: var(--lp-primary-hover);
    box-shadow: 0 6px 20px rgb(37 99 235 / .3);
    transform: translateY(-1px);
}

.lp-btn-outline {
    background: #fff;
    color: var(--lp-text);
    border: 1px solid var(--lp-border);
    box-shadow: var(--lp-shadow);
}

.lp-btn-outline:hover {
    border-color: var(--lp-primary-200);
    box-shadow: var(--lp-shadow-md);
    transform: translateY(-1px);
}

.lp-btn-sm {
    padding: 9px 18px;
    font-size: 13px;
    border-radius: 8px;
}

.lp-hero-platforms {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.lp-hero-platform {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--lp-text-secondary);
    font-weight: 500;
}

.lp-hero-platform-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---------- Modules Grid ---------- */
.lp-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.lp-module-card {
    background: var(--lp-card-bg);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    padding: 24px;
    transition: var(--lp-transition);
    position: relative;
    overflow: hidden;
}

.lp-module-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--lp-primary);
    opacity: 0;
    transition: opacity .25s;
}

.lp-module-card:hover {
    box-shadow: var(--lp-shadow-lg);
    border-color: var(--lp-primary-200);
    transform: translateY(-2px);
}

.lp-module-card:hover::before { opacity: 1; }

.lp-module-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 20px;
}

.lp-module-icon.blue { background: #eff6ff; color: var(--lp-primary); }
.lp-module-icon.green { background: #f0fdf4; color: var(--lp-success); }
.lp-module-icon.orange { background: #fff7ed; color: var(--lp-warning); }
.lp-module-icon.purple { background: #f5f3ff; color: #7c3aed; }
.lp-module-icon.rose { background: #fff1f2; color: #e11d48; }
.lp-module-icon.teal { background: #f0fdfa; color: #0d9488; }
.lp-module-icon.amber { background: #fffbeb; color: #d97706; }
.lp-module-icon.indigo { background: #eef2ff; color: #4f46e5; }

.lp-module-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.lp-module-desc {
    font-size: 13px;
    color: var(--lp-text-secondary);
    line-height: 1.5;
}

/* ---------- Level System ---------- */
.lp-levels-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.lp-level-card {
    background: var(--lp-card-bg);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    padding: 24px 16px;
    text-align: center;
    transition: var(--lp-transition);
}

.lp-level-card:hover { box-shadow: var(--lp-shadow-lg); transform: translateY(-2px); }

.lp-level-badge {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
}

.lp-level-badge.lv1 { background: #f1f5f9; }
.lp-level-badge.lv2 { background: #eff6ff; }
.lp-level-badge.lv3 { background: #fef9c3; }
.lp-level-badge.lv4 { background: #fce7f3; }
.lp-level-badge.lv5 { background: linear-gradient(135deg, #fef3c7, #fde68a); }

.lp-level-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.lp-level-lv { font-size: 11px; color: var(--lp-primary); font-weight: 600; margin-bottom: 6px; }
.lp-level-bonus { font-size: 11px; color: var(--lp-text-muted); line-height: 1.5; }

/* ---------- How It Works ---------- */
.lp-steps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

.lp-step-card {
    text-align: center;
    position: relative;
}

.lp-step-num {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--lp-primary-light);
    color: var(--lp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.lp-step-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.lp-step-card p { font-size: 13px; color: var(--lp-text-secondary); line-height: 1.5; }

/* ---------- Stats ---------- */
.lp-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.lp-stat-card {
    background: var(--lp-card-bg);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    padding: 28px 20px;
    text-align: center;
    transition: var(--lp-transition);
}

.lp-stat-card:hover { box-shadow: var(--lp-shadow-lg); }

.lp-stat-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--lp-primary);
    margin-bottom: 6px;
    letter-spacing: -.02em;
}

.lp-stat-label { font-size: 13px; color: var(--lp-text-secondary); }

/* ---------- Code Showcase ---------- */
.lp-code-wrap {
    max-width: 700px;
    margin: 0 auto;
}

.lp-code-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.lp-code-tab {
    padding: 6px 14px;
    background: rgb(255 255 255 / .08);
    border: 1px solid rgb(255 255 255 / .1);
    color: #94a3b8;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    font-family: var(--lp-font);
    transition: var(--lp-transition);
}

.lp-code-tab:hover { color: #e2e8f0; background: rgb(255 255 255 / .12); }
.lp-code-tab.active { background: var(--lp-primary); color: #fff; border-color: var(--lp-primary); }

.lp-code-block {
    background: #1e293b;
    border-radius: var(--lp-radius);
    padding: 24px;
    overflow-x: auto;
    font-family: 'SF Mono', 'Cascadia Code', 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.7;
    display: none;
    border: 1px solid rgb(255 255 255 / .06);
}

.lp-code-block.active { display: block; }

.lp-code-c { color: #5c6370; }      /* comment */
.lp-code-k { color: #c792ea; }      /* keyword */
.lp-code-f { color: #82aaff; }      /* function */
.lp-code-s { color: #c3e88d; }      /* string */
.lp-code-n { color: #f78c6c; }      /* number */
.lp-code-o { color: #89ddff; }      /* operator */

/* ---------- Changelog ---------- */
.lp-changelog-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 36px auto 0; }

.lp-changelog-item {
    background: var(--lp-card-bg);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    padding: 20px 24px;
    transition: var(--lp-transition);
}

.lp-changelog-item:hover { border-color: var(--lp-primary-200); }

.lp-changelog-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }

.lp-changelog-ver {
    background: var(--lp-primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.lp-changelog-date { font-size: 12px; color: var(--lp-text-muted); }

.lp-changelog-body ul { list-style: none; font-size: 13px; color: var(--lp-text-secondary); }

.lp-changelog-body li {
    padding: 4px 0 4px 18px;
    position: relative;
    line-height: 1.5;
}

.lp-changelog-body li::before {
    content: '';
    position: absolute;
    left: 4px; top: 12px;
    width: 6px; height: 6px;
    background: var(--lp-primary-200);
    border-radius: 50%;
}

/* ---------- Community ---------- */
.lp-community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.lp-community-card {
    background: var(--lp-card-bg);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    padding: 20px;
    text-align: center;
    transition: var(--lp-transition);
}

.lp-community-card:hover { border-color: var(--lp-primary-200); box-shadow: var(--lp-shadow-md); }

.lp-community-card h4 { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.lp-community-card p { font-size: 14px; font-weight: 700; color: var(--lp-primary); letter-spacing: .04em; }

/* ---------- CTA Banner ---------- */
.lp-cta {
    background: linear-gradient(135deg, var(--lp-primary), #4f46e5);
    border-radius: 16px;
    padding: 56px 48px;
    text-align: center;
    color: #fff;
}

.lp-cta h2 { font-size: 28px; font-weight: 700; margin-bottom: 12px; letter-spacing: -.02em; }
.lp-cta p { font-size: 15px; opacity: .85; margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }

.lp-btn-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    background: #fff;
    color: var(--lp-primary);
    text-decoration: none;
    transition: var(--lp-transition);
    box-shadow: 0 4px 16px rgb(0 0 0 / .12);
}

.lp-btn-light:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgb(0 0 0 / .16); }

/* ---------- Footer ---------- */
.lp-footer {
    background: var(--lp-bg-alt);
    border-top: 1px solid var(--lp-border);
    padding: 56px 0 28px;
}

.lp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.lp-footer-brand p { font-size: 13px; color: var(--lp-text-secondary); margin-top: 12px; line-height: 1.6; }

.lp-footer-col h4 { font-size: 13px; font-weight: 600; margin-bottom: 16px; }

.lp-footer-links { list-style: none; }

.lp-footer-links li { margin-bottom: 10px; }

.lp-footer-links a {
    font-size: 13px;
    color: var(--lp-text-secondary);
    text-decoration: none;
    transition: color .15s;
}

.lp-footer-links a:hover { color: var(--lp-primary); }

.lp-footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--lp-border);
    text-align: center;
}

.lp-footer-bottom p {
    font-size: 12px;
    color: var(--lp-text-muted);
    margin-bottom: 4px;
}

.lp-footer-bottom a {
    color: var(--lp-text-muted);
    text-decoration: none;
}

.lp-footer-bottom a:hover { color: var(--lp-primary); }

/* ---------- Mobile ---------- */
@media (max-width: 1024px) {
    .lp-levels-grid { grid-template-columns: repeat(3, 1fr); }
    .lp-steps-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .lp-section { padding: 64px 0; }
    .lp-section-header { margin-bottom: 40px; }
    .lp-section-title { font-size: 26px; }

    .lp-mobile-toggle { display: block; }

    .lp-nav {
        display: none;
        position: fixed;
        top: 60px; left: 0; right: 0;
        background: rgb(255 255 255 / .95);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--lp-border);
        padding: 12px 20px 20px;
        flex-direction: column;
        gap: 2px;
        box-shadow: var(--lp-shadow-lg);
    }

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

    .lp-nav-cta { margin-left: 0; text-align: center; width: 100%; margin-top: 8px; }

    .lp-hero { padding: 120px 0 72px; }
    .lp-hero-title { font-size: 32px; }
    .lp-hero-desc { font-size: 14px; }

    .lp-modules-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }

    .lp-levels-grid { grid-template-columns: repeat(2, 1fr); }

    .lp-steps-row { grid-template-columns: 1fr; gap: 16px; }

    .lp-stats-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .lp-stat-num { font-size: 26px; }

    .lp-cta { padding: 40px 24px; }
    .lp-cta h2 { font-size: 22px; }

    .lp-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

    .lp-code-block { font-size: 11px; padding: 16px; }
}

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

    .lp-section-title { font-size: 22px; }

    .lp-hero-title { font-size: 26px; }
    .lp-hero-desc { font-size: 13px; }
    .lp-hero-actions { flex-direction: column; }
    .lp-hero-actions .lp-btn { width: 100%; justify-content: center; }
    .lp-hero-platforms { gap: 14px; }

    .lp-modules-grid { grid-template-columns: 1fr; }

    .lp-levels-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .lp-level-card { padding: 16px 10px; }
    .lp-level-badge { width: 44px; height: 44px; font-size: 20px; }

    .lp-stats-row { grid-template-columns: 1fr; }

    .lp-footer-grid { grid-template-columns: 1fr; gap: 20px; }
}



/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
