:root {
    color-scheme: light;
    font-family: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--page-text, #1d2a3a);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--page-primary) 18%, transparent), transparent 38%),
        radial-gradient(circle at top right, color-mix(in srgb, var(--page-accent) 16%, transparent), transparent 30%),
        linear-gradient(180deg, #f6efe4 0%, #efe6da 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(130deg, rgba(255, 255, 255, 0.38), transparent 45%),
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 16px);
    opacity: 0.8;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

.site-body {
    position: relative;
}

.landing-page {
    position: relative;
    z-index: 1;
    width: min(100% - 24px, 960px);
    margin: 0 auto;
    padding: 16px 0 112px;
}

.site-pill,
.section-label,
.brand-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.site-pill {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.15);
    color: inherit;
    font-size: 0.78rem;
}

.site-pill.is-soft {
    background: rgba(255, 255, 255, 0.08);
}

.site-btn,
.sticky-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 18px;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.site-btn:hover,
.sticky-action:hover {
    transform: translateY(-1px);
}

.site-btn-primary,
.sticky-action.is-primary {
    background: linear-gradient(135deg, var(--page-primary), color-mix(in srgb, var(--page-primary) 80%, white));
    color: #fff;
    box-shadow: 0 16px 32px color-mix(in srgb, var(--page-primary) 32%, transparent);
}

.site-btn-secondary {
    color: #fff;
    background: linear-gradient(135deg, var(--page-accent), color-mix(in srgb, var(--page-accent) 72%, white));
    box-shadow: 0 16px 32px color-mix(in srgb, var(--page-accent) 22%, transparent);
}

.hero-actions .site-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.hero-h5 {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    min-height: min(900px, calc(100vh - 32px));
    padding: 20px;
    background:
        linear-gradient(180deg, rgba(7, 13, 20, 0.16) 0%, rgba(7, 13, 20, 0.78) 100%),
        linear-gradient(135deg, color-mix(in srgb, var(--page-accent) 88%, black) 0%, color-mix(in srgb, var(--page-primary) 52%, var(--page-accent)) 100%);
    background-position: center;
    background-size: cover;
    color: #fff;
    box-shadow: 0 28px 70px rgba(18, 26, 39, 0.18);
}

.hero-h5::before {
    content: "";
    position: absolute;
    inset: auto -12% -16% auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--page-primary) 62%, transparent);
    filter: blur(16px);
    opacity: 0.35;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 24px;
    height: 100%;
}

.hero-copy {
    display: grid;
    gap: 18px;
    align-content: start;
}

.hero-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.brand-lockup {
    display: grid;
    gap: 10px;
}

.brand-name {
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.88);
}

.brand-pills,
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-entry {
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.hero-text {
    display: grid;
    gap: 14px;
}

.hero-text h1 {
    margin: 0;
    font-size: clamp(2.4rem, 9vw, 5rem);
    line-height: 0.95;
    max-width: 10ch;
    text-wrap: balance;
}

.hero-lead,
.hero-description,
.device-card p,
.feature-item p,
.gallery-copy p,
.step-item p,
.faq-item p,
.rich-text,
.notice-card,
.conversion-card-head p,
.site-footer p,
.empty-card p,
.form-status {
    margin: 0;
    line-height: 1.75;
}

.hero-lead {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.94);
}

.hero-description {
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.78);
}

.hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hero-tags span {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.88);
}

.hero-visual {
    display: grid;
    gap: 14px;
    align-content: end;
}

.device-frame {
    position: relative;
    overflow: hidden;
    padding: 14px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.device-frame img,
.device-placeholder {
    width: 100%;
    aspect-ratio: 10 / 13;
    border-radius: 22px;
    object-fit: cover;
}

.device-placeholder {
    display: grid;
    place-items: center;
    padding: 20px;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.26);
    color: rgba(255, 255, 255, 0.72);
}

.device-card {
    position: absolute;
    right: 26px;
    bottom: 26px;
    left: 26px;
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(12, 18, 27, 0.78);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.device-card span {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.68);
}

.device-card strong {
    font-size: 1.12rem;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.metric-card {
    padding: 14px 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    text-align: center;
}

.metric-card strong {
    display: block;
    font-size: 1.3rem;
    line-height: 1.1;
}

.metric-card span {
    display: block;
    margin-top: 8px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.74);
}

.story-stack,
.conversion-grid {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.story-card,
.conversion-stage,
.conversion-card,
.empty-card {
    border-radius: 30px;
    box-shadow: 0 18px 48px rgba(20, 32, 51, 0.08);
}

.story-card,
.empty-card {
    padding: 22px 18px;
    background: color-mix(in srgb, var(--page-surface) 80%, white);
    border: 1px solid color-mix(in srgb, var(--page-primary) 14%, rgba(17, 27, 41, 0.08));
}

.story-card[data-tone="accent"] {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--page-accent) 88%, black) 0%, color-mix(in srgb, var(--page-primary) 24%, var(--page-accent)) 100%);
    color: #fff;
    border-color: transparent;
}

.story-card[data-tone="accent"] .section-label {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.82);
}

.story-card[data-tone="accent"] .feature-item,
.story-card[data-tone="accent"] .step-item,
.story-card[data-tone="accent"] .faq-item,
.story-card[data-tone="accent"] .notice-card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
}

.story-card[data-tone="accent"] p,
.story-card[data-tone="accent"] .notice-card,
.story-card[data-tone="accent"] .rich-text {
    color: rgba(255, 255, 255, 0.78);
}

.section-head,
.conversion-head,
.conversion-card-head {
    display: grid;
    gap: 10px;
}

.section-head {
    margin-bottom: 18px;
}

.section-label {
    padding: 8px 12px;
    background: color-mix(in srgb, var(--page-primary) 12%, white);
    color: color-mix(in srgb, var(--page-text) 82%, var(--page-primary));
    font-size: 0.76rem;
}

.section-head h2,
.conversion-head h2,
.conversion-card-head h3,
.empty-card h1 {
    margin: 0;
    line-height: 1.15;
}

.section-head h2,
.conversion-head h2 {
    font-size: clamp(1.5rem, 4.8vw, 2.3rem);
}

.conversion-stage {
    padding: 22px 18px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--page-accent) 10%, white) 0%, color-mix(in srgb, var(--page-surface) 92%, white) 100%);
    border: 1px solid color-mix(in srgb, var(--page-accent) 10%, rgba(17, 27, 41, 0.08));
}

.conversion-head p {
    color: color-mix(in srgb, var(--page-text) 74%, white);
}

.conversion-card {
    padding: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(17, 27, 41, 0.08);
}

.conversion-card-head h3 {
    font-size: 1.28rem;
}

.feature-list,
.gallery-list,
.steps-list,
.faq-list,
.lead-form,
.chat-form {
    display: grid;
    gap: 12px;
}

.feature-item,
.gallery-item,
.step-item,
.faq-item,
.notice-card {
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(17, 27, 41, 0.08);
}

.feature-item,
.step-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
}

.feature-index,
.step-number {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-weight: 800;
}

.feature-index {
    background: rgba(17, 27, 41, 0.08);
    color: var(--page-primary);
}

.step-number {
    background: rgba(255, 255, 255, 0.16);
    color: currentColor;
}

.feature-item h3,
.gallery-copy h3,
.step-item h3 {
    margin: 0 0 6px;
}

.gallery-item {
    overflow: hidden;
    padding: 0;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.gallery-copy {
    padding: 16px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

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

.faq-item[open] summary {
    color: var(--page-primary);
}

.faq-item p {
    margin-top: 10px;
}

.rich-text,
.notice-card,
.json-preview,
.empty-card p,
.site-footer p,
.form-status,
.conversion-card-head p {
    color: color-mix(in srgb, var(--page-text) 76%, white);
}

.rich-text {
    white-space: pre-line;
}

.json-preview {
    margin: 0;
    padding: 16px;
    overflow: auto;
    border-radius: 18px;
    background: rgba(17, 27, 41, 0.06);
    font-family: "JetBrains Mono", "Cascadia Code", monospace;
    font-size: 0.84rem;
    line-height: 1.6;
}

.lead-form label,
.chat-form label {
    display: grid;
    gap: 8px;
}

.lead-form span,
.chat-form span {
    font-weight: 700;
}

.lead-form input,
.lead-form select,
.lead-form textarea,
.chat-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(17, 27, 41, 0.12);
    background: rgba(255, 255, 255, 0.96);
    color: var(--page-text);
    outline: none;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus,
.chat-form textarea:focus {
    border-color: color-mix(in srgb, var(--page-primary) 42%, white);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--page-primary) 12%, transparent);
}

.chat-messages {
    display: grid;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    margin: 4px 0 14px;
    padding-right: 4px;
}

.chat-empty {
    margin: 0;
    padding: 14px;
    border-radius: 18px;
    background: rgba(17, 27, 41, 0.05);
    color: color-mix(in srgb, var(--page-text) 72%, white);
    text-align: center;
}

.chat-message {
    max-width: 88%;
    padding: 13px 15px;
    border-radius: 18px;
    line-height: 1.68;
}

.chat-message-user {
    margin-left: auto;
    background: var(--page-primary);
    color: #fff;
}

.chat-message-bot,
.chat-message-admin {
    background: rgba(17, 27, 41, 0.08);
    color: var(--page-text);
}

.form-status {
    min-height: 24px;
    font-size: 0.92rem;
}

.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    padding: 2px 6px 0;
}

.site-footer p {
    text-align: center;
}

.site-empty {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.empty-card {
    width: min(520px, 100%);
    display: grid;
    gap: 14px;
    text-align: center;
}

.sticky-actions {
    position: fixed;
    left: 50%;
    bottom: 14px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: min(100% - 24px, 520px);
    padding: 10px;
    border-radius: 26px;
    background: rgba(12, 18, 27, 0.86);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    transform: translateX(-50%);
}

.sticky-actions.is-single {
    grid-template-columns: 1fr;
}

.sticky-action {
    min-height: 48px;
}

.sticky-action.is-secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

@media (min-width: 900px) {
    .landing-page {
        width: min(100% - 40px, 1100px);
        padding-top: 20px;
    }

    .hero-h5 {
        padding: 26px;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        align-items: end;
    }

    .story-stack,
    .conversion-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .story-card[data-tone="accent"] {
        grid-column: span 2;
    }

    .sticky-actions {
        width: min(100% - 40px, 680px);
    }
}

@media (max-width: 720px) {
    .hero-text h1 {
        max-width: none;
    }

    .hero-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .landing-page {
        width: calc(100% - 18px);
        padding-bottom: 106px;
    }

    .hero-h5,
    .story-card,
    .conversion-stage,
    .conversion-card,
    .empty-card {
        border-radius: 26px;
    }

    .hero-h5,
    .story-card,
    .conversion-stage {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-entry {
        width: 100%;
        justify-content: center;
    }

    .device-card {
        right: 18px;
        bottom: 18px;
        left: 18px;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .metric-card {
        text-align: left;
    }

    .metric-card strong,
    .metric-card span {
        display: inline;
    }

    .metric-card span {
        margin-left: 8px;
    }

    .sticky-actions {
        width: calc(100% - 18px);
        grid-template-columns: 1fr 1fr;
    }
}
