:root {
    --bg: #FFEEF2;
    --surface: #FFFFFF;
    --surface-soft: #FFF6F8;
    --header: #FFCED8;
    --line: #FFD6DE;
    --primary: #E63946;
    --primary-strong: #C92538;
    --pink: #FFB6C1;
    --hot: #FF69B4;
    --ink: #5A1F2A;
    --muted: #9A5B68;
    --shadow: rgba(230, 57, 70, 0.16);
    --nav-height: 68px;
    --radius: 8px;
    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #2A1118;
    --surface: #3A1720;
    --surface-soft: #451C26;
    --header: #4A1C26;
    --line: #5C2430;
    --primary: #FF6B7A;
    --primary-strong: #FF8B96;
    --pink: #6E2A36;
    --hot: #FF6FA5;
    --ink: #FFF1F3;
    --muted: #E8A8B2;
    --shadow: rgba(0, 0, 0, 0.35);
    color-scheme: dark;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--ink);
    font-family: "Comic Sans MS", "Marker Felt", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    padding-top: var(--nav-height);
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: min(1120px, 100% - 40px);
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.icon {
    width: 18px;
    height: 18px;
    flex: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

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

.btn:focus-visible,
.nav-toggle:focus-visible,
.theme-toggle:focus-visible,
.carousel-dot:focus-visible,
.download-modal-close:focus-visible {
    outline: 3px solid var(--hot);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 6px 16px var(--shadow);
}

.btn-primary:hover {
    background-color: var(--primary-strong);
}

.btn-ghost {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--line);
}

.btn-ghost:hover {
    background-color: var(--surface);
    border-color: var(--primary);
}

.btn-light {
    background-color: #FFFFFF;
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.22);
}

.btn-light:hover {
    background-color: var(--surface-soft);
}

.btn-lg {
    min-height: 48px;
    padding: 0 24px;
    font-size: 16px;
}

.btn-lg .icon {
    width: 20px;
    height: 20px;
}

.site-nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: var(--header);
    box-shadow: 0 4px 12px var(--shadow);
}

.site-nav-bar-inner {
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0;
}

.logo-img {
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.08);
}

.site-nav {
    display: flex;
    align-items: center;
}

.site-nav-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-list a {
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    position: relative;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-list a:hover::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    width: 40px;
    padding: 0;
    border-color: var(--line);
    background-color: var(--surface);
    color: var(--primary);
}

.theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: inline-block;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background-color: var(--surface);
    color: var(--primary);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav-toggle-bar {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background-color: currentColor;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
    display: none;
}

.hero {
    padding: 64px 0 72px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 400px;
    align-items: center;
    gap: 56px;
}

.hero-content {
    min-width: 0;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background-color: var(--surface);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.hero-title {
    font-size: 40px;
    line-height: 1.25;
    color: var(--primary);
    letter-spacing: 0;
    margin-bottom: 16px;
}

.hero-subtitle {
    max-width: 620px;
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 28px;
}

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

.hero-media {
    display: flex;
    justify-content: center;
}

.phone-frame {
    position: relative;
    width: min(100%, 320px);
    aspect-ratio: 9 / 16;
    border: 8px solid var(--surface);
    border-radius: 24px;
    background-color: var(--surface);
    box-shadow: 0 20px 50px var(--shadow);
}

.carousel {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 17px;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.carousel-slide.is-active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-dot.is-active {
    background-color: var(--primary);
    transform: scale(1.25);
}

.features,
.faq {
    padding: 72px 0;
}

.features {
    background-color: var(--surface);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    color: var(--primary);
    font-size: 30px;
    letter-spacing: 0;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--muted);
    font-size: 15px;
}

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

.feature-card {
    padding: 28px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background-color: var(--surface-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px var(--shadow);
}

.feature-icon {
    width: 40px;
    height: 40px;
    color: var(--primary);
    margin-bottom: 18px;
}

.feature-card h3 {
    color: var(--primary);
    font-size: 19px;
    letter-spacing: 0;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--muted);
    font-size: 14px;
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background-color: var(--surface);
    overflow: hidden;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    width: 24px;
    height: 24px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--pink);
    color: var(--primary);
    font-size: 18px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 20px 18px;
    color: var(--muted);
    font-size: 14px;
}

.cta-banner {
    padding: 56px 0;
    background-color: var(--primary);
    color: #FFFFFF;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.cta-text h2 {
    font-size: 26px;
    letter-spacing: 0;
    margin-bottom: 6px;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.site-footer {
    padding: 28px 0;
    background-color: var(--header);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-copy {
    color: var(--primary);
    font-size: 13px;
}

.download-modal {
    width: min(440px, calc(100% - 32px));
    border: 0;
    border-radius: 12px;
    padding: 0;
    background-color: transparent;
    color: var(--ink);
}

.download-modal::backdrop {
    background-color: rgba(74, 17, 27, 0.55);
    backdrop-filter: blur(4px);
}

.download-modal-panel {
    position: relative;
    padding: 34px 28px 28px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background-color: var(--surface);
}

.download-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background-color: var(--surface-soft);
    color: var(--primary);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.download-modal h2 {
    color: var(--primary);
    font-size: 24px;
    letter-spacing: 0;
    margin-bottom: 6px;
}

.download-modal-subtitle {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 22px;
}

.download-buttons {
    display: grid;
    gap: 12px;
}

.btn-store {
    justify-content: flex-start;
    min-height: 64px;
    padding: 0 18px;
    border-color: var(--line);
    background-color: var(--surface-soft);
    color: var(--primary);
}

.btn-store:hover {
    border-color: var(--primary);
}

.btn-store-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background-color: var(--primary);
    color: #FFFFFF;
}

.btn-store-icon .icon-store {
    width: 20px;
    height: 20px;
}

.btn-store-text {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.btn-store-label {
    font-size: 16px;
}

.btn-store-hint {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

section[id] {
    scroll-margin-top: calc(var(--nav-height) + 12px);
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

@media (max-width: 720px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        max-height: calc(100vh - var(--nav-height));
        background-color: var(--header);
        padding: 18px 20px 24px;
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    .site-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .site-nav-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .nav-list a {
        display: block;
        padding: 12px 8px;
    }

    .nav-list a::after {
        display: none;
    }

    .nav-actions {
        justify-content: space-between;
    }

    .nav-backdrop {
        position: fixed;
        inset: var(--nav-height) 0 0;
        z-index: 998;
        display: block;
        background-color: rgba(74, 17, 27, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .nav-backdrop.is-open {
        opacity: 1;
        visibility: visible;
    }

    .hero {
        padding: 44px 0 56px;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .phone-frame {
        width: 100%;
        aspect-ratio: auto;
        border: 0;
        border-radius: 0;
        background-color: transparent;
        box-shadow: none;
    }

    .carousel {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        overflow: visible;
        border-radius: 0;
    }

    .carousel-slide {
        position: static;
        opacity: 1;
        overflow: hidden;
        border-radius: var(--radius);
        background-color: var(--surface);
        box-shadow: 0 10px 24px var(--shadow);
    }

    .carousel-slide img {
        aspect-ratio: 375 / 667;
        object-fit: cover;
    }

    .carousel-dots {
        display: none;
    }

    .features,
    .faq {
        padding: 56px 0;
    }

    .section-header h2 {
        font-size: 26px;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-text h2 {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
