/**
 * MockTimer Pro 首页（落地页）样式
 * 配色取自 App Store 截图：每个功能卡片使用对应截图的渐变背景
 * 依赖 styles.css 中的导航栏、语言切换器与页脚样式
 */

:root {
    --lp-ink: #0f1b3d;
    --lp-muted: #5b6785;
    --lp-line: #e3e8f3;
    --lp-soft: #f4f7fd;
    --lp-blue: #2879e2;
    --lp-blue-light: #6abefe;
    --lp-gold: #ffd873;
    --lp-navy: #1c275f;
    --lp-radius: 32px;
}

.lp {
    color: var(--lp-ink);
}

.lp em {
    font-style: normal;
}

/* ========== 导航栏（首屏透明） ========== */
@media (min-width: 769px) {
    .navbar--hero:not(.scrolled) {
        background: transparent;
        border-bottom-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .navbar--hero:not(.scrolled) .logo,
    .navbar--hero:not(.scrolled) .nav-links a {
        color: #fff;
    }

    .navbar--hero:not(.scrolled) .nav-links a::after {
        background: var(--lp-gold);
    }

    .navbar--hero:not(.scrolled) .lang-dropdown-btn {
        background: rgba(255, 255, 255, 0.16);
        border-color: rgba(255, 255, 255, 0.35);
        color: #fff;
    }

    .navbar--hero:not(.scrolled) .lang-dropdown-btn::after {
        border-color: rgba(255, 255, 255, 0.8);
    }
}

/* ========== 通用 ========== */
.lp-section {
    padding: 112px 0;
}

.lp-section-head {
    max-width: 760px;
    margin: 0 auto 56px;
    text-align: center;
}

.lp-section-title {
    font-size: clamp(30px, 4.4vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.lp-section-title em {
    color: var(--lp-blue);
}

.lp-section-sub {
    font-size: 18px;
    color: var(--lp-muted);
    line-height: 1.7;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lp-btn:hover {
    transform: translateY(-2px);
}

.lp-btn--light {
    background: #fff;
    color: var(--lp-ink);
    box-shadow: 0 10px 30px rgba(10, 40, 110, 0.25);
}

.lp-btn--light:hover {
    box-shadow: 0 14px 36px rgba(10, 40, 110, 0.32);
}

.lp-btn--ghost {
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.lp-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.lp-apple {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* 截图里的装饰圆 */
.lp-bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.lp-bubbles span {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.lp-bubbles span:nth-child(1) {
    width: 420px;
    height: 420px;
    top: -160px;
    left: -140px;
}

.lp-bubbles span:nth-child(2) {
    width: 260px;
    height: 260px;
    top: 18%;
    right: -90px;
}

.lp-bubbles span:nth-child(3) {
    width: 180px;
    height: 180px;
    bottom: -60px;
    left: 38%;
    background: rgba(255, 255, 255, 0.07);
}

/* ========== 英雄区域 ========== */
.lp-hero {
    position: relative;
    overflow: hidden;
    padding: 148px 0 96px;
    color: #fff;
    background: linear-gradient(160deg, #2879e2 0%, #3f8eea 45%, #6abefe 100%);
}

.lp-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.lp-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 28px;
}

.lp-pill-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.lp-hero-title {
    font-size: clamp(36px, 4.6vw, 58px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 24px;
}

.lp-hero-title em {
    color: var(--lp-gold);
}

.lp-hero-tagline {
    max-width: 520px;
    font-size: 19px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 36px;
}

.lp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
}

.lp-hero-stats {
    display: flex;
    gap: 40px;
    list-style: none;
}

.lp-hero-stats li {
    display: flex;
    flex-direction: column;
}

.lp-hero-stats strong {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
}

.lp-hero-stats span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
}

.lp-hero-visual {
    position: relative;
    padding: 0 0 64px 64px;
}

.lp-hero-ipad,
.lp-hero-iphone {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 30px 80px rgba(8, 30, 90, 0.35);
}

.lp-hero-ipad {
    border-radius: 28px;
}

.lp-hero-iphone {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34%;
    border-radius: 24px;
}

.lp-hero-ipad img,
.lp-hero-iphone img {
    display: block;
    width: 100%;
    height: auto;
}

/* ========== 核心特色（截图卡片） ========== */
.lp-device-toggle {
    display: inline-flex;
    gap: 4px;
    margin-top: 32px;
    padding: 4px;
    border-radius: 999px;
    background: var(--lp-soft);
    border: 1px solid var(--lp-line);
}

.lp-device-toggle button {
    min-width: 96px;
    padding: 10px 20px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--lp-muted);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.lp-device-toggle button[aria-pressed="true"] {
    background: #fff;
    color: var(--lp-ink);
    box-shadow: 0 2px 10px rgba(15, 27, 61, 0.1);
}

.lp-device-toggle button:focus-visible {
    outline: 2px solid var(--lp-blue);
    outline-offset: 2px;
}

.lp-features {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.lp-feature {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: stretch;
    border-radius: var(--lp-radius);
    overflow: hidden;
    color: #fff;
    background: linear-gradient(160deg, var(--c1), var(--c2));
}

.lp-feature--flip .lp-feature-copy {
    order: 2;
}

.lp-feature-copy {
    align-self: center;
    padding: 64px 56px;
}

.lp-feature-index {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 14px;
}

.lp-feature-title {
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
    text-wrap: balance;
}

.lp-feature-title em {
    color: var(--lp-gold);
}

.lp-feature-desc {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 24px;
}

.lp-checks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lp-checks li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
}

.lp-checks svg {
    flex: none;
    width: 22px;
    height: 22px;
    padding: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lp-feature-media {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 48px;
}

/* 截图边缘柔化，与卡片渐变自然融合 */
.lp-feature-media img {
    display: block;
    width: auto;
    height: 560px;
    max-width: 100%;
    -webkit-mask-image:
        linear-gradient(to right, transparent, #000 12%, #000 88%, transparent),
        linear-gradient(to bottom, transparent, #000 10%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent, #000 12%, #000 88%, transparent),
        linear-gradient(to bottom, transparent, #000 10%);
    mask-composite: intersect;
}

/* iPad 预览：文字在上，横屏截图铺满卡片底部 */
.lp-features[data-device="ipad"] .lp-feature {
    grid-template-columns: 1fr;
}

.lp-features[data-device="ipad"] .lp-feature-copy {
    order: 0;
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 40px 0;
    text-align: center;
}

.lp-features[data-device="ipad"] .lp-checks {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
}

.lp-features[data-device="ipad"] .lp-feature-media {
    padding: 40px 32px 0;
}

.lp-features[data-device="ipad"] .lp-feature-media img {
    width: 100%;
    max-width: 960px;
    height: auto;
}

/* ========== 更多功能 ========== */
.lp-more {
    padding-top: 24px;
}

.lp-more-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.lp-more-card {
    padding: 32px;
    border-radius: 24px;
    background: var(--lp-soft);
    border: 1px solid var(--lp-line);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lp-more-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 27, 61, 0.08);
}

.lp-more-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin-bottom: 20px;
    color: #fff;
    background: var(--accent);
}

.lp-more-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lp-more-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
}

.lp-more-card p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--lp-muted);
}

/* ========== 适用场景 ========== */
.lp-scenarios {
    background: var(--lp-soft);
}

.lp-scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.lp-scenario {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--lp-line);
}

.lp-scenario-num {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    color: var(--lp-blue);
    background: rgba(40, 121, 226, 0.1);
}

.lp-scenario h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.lp-scenario p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--lp-muted);
}

/* ========== 产品理念（星空） ========== */
.lp-philosophy {
    position: relative;
    padding: 120px 0;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(1.5px 1.5px at 12% 22%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 78% 14%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 64% 68%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 28% 80%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 90% 52%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 44% 36%, rgba(255, 255, 255, 0.5), transparent),
        linear-gradient(170deg, #11182b 0%, #1c275f 55%, #2a3762 100%);
}

.lp-philosophy-title {
    font-size: clamp(30px, 4.4vw, 46px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.lp-philosophy-text {
    max-width: 720px;
    margin: 0 auto 48px;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
}

.lp-philosophy-text span {
    display: block;
}

.lp-philosophy-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    list-style: none;
}

.lp-philosophy-list li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 16px;
    font-weight: 500;
}

.lp-philosophy-list li::before {
    content: '★';
    color: var(--lp-gold);
}

/* ========== 下载 ========== */
.lp-download-card {
    position: relative;
    overflow: hidden;
    padding: 80px 32px;
    border-radius: 40px;
    text-align: center;
    color: #fff;
    background: linear-gradient(160deg, #2879e2 0%, #6abefe 100%);
}

.lp-download-title {
    position: relative;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.lp-download-sub {
    position: relative;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 32px;
}

.lp-download-card .download-button {
    position: relative;
    display: inline-block;
    transition: transform 0.2s ease;
}

.lp-download-card .download-button:hover {
    transform: translateY(-2px);
}

.lp-download-card .app-store-badge {
    display: block;
    height: 56px;
    width: auto;
}

.lp-download-info {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.lp-download-info div {
    min-width: 120px;
    padding: 12px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.lp-download-info dt {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.lp-download-info dd {
    font-size: 16px;
    font-weight: 700;
}

/* ========== 联系我们 ========== */
.lp-contact {
    padding-top: 0;
    text-align: center;
}

.lp-contact .lp-section-sub span {
    display: block;
}

.lp-contact-email {
    display: inline-flex;
    margin-top: 28px;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 600;
    color: var(--lp-blue);
    text-decoration: none;
    background: rgba(40, 121, 226, 0.08);
    transition: background 0.2s ease;
}

.lp-contact-email:hover {
    background: rgba(40, 121, 226, 0.14);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .lp-hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .lp-hero-copy {
        text-align: center;
    }

    .lp-hero-tagline {
        margin-left: auto;
        margin-right: auto;
    }

    .lp-hero-actions,
    .lp-hero-stats {
        justify-content: center;
    }

    .lp-hero-visual {
        max-width: 640px;
        margin: 0 auto;
        width: 100%;
    }

    .lp-more-grid,
    .lp-scenario-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .lp-section {
        padding: 72px 0;
    }

    .lp-section-head {
        margin-bottom: 40px;
    }

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

    .lp-feature--flip .lp-feature-copy {
        order: 0;
    }

    .lp-feature-copy,
    .lp-features[data-device="ipad"] .lp-feature-copy {
        padding: 44px 28px 0;
        text-align: left;
    }

    .lp-features[data-device="ipad"] .lp-checks {
        flex-direction: column;
    }

    .lp-feature-media {
        padding: 32px 24px 0;
    }

    .lp-feature-media img {
        height: 460px;
    }

    .lp-features[data-device="ipad"] .lp-feature-media {
        padding: 28px 16px 0;
    }

    .lp-philosophy {
        padding: 80px 0;
    }

    .lp-download-card {
        padding: 56px 24px;
        border-radius: 32px;
    }
}

@media (max-width: 600px) {
    .lp-hero {
        padding: 112px 0 64px;
    }

    .lp-hero-tagline {
        font-size: 17px;
    }

    .lp-hero-actions .lp-btn {
        flex: 1 1 100%;
    }

    .lp-hero-stats {
        gap: 28px;
    }

    .lp-hero-stats strong {
        font-size: 24px;
    }

    .lp-hero-visual {
        padding: 0 0 40px 40px;
    }

    .lp-features {
        gap: 20px;
    }

    .lp-feature {
        border-radius: 24px;
    }

    .lp-feature-media img {
        height: 400px;
    }

    .lp-more-grid,
    .lp-scenario-grid {
        grid-template-columns: 1fr;
    }

    .lp-more-card {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp *,
    .lp *::before {
        transition: none !important;
        animation: none !important;
    }
}
