:root {
    color-scheme: light;
}

body {
    margin: 0;
    background: #f6f8f4;
}

.lp-page {
    --lp-ink: #17231d;
    --lp-muted: #607066;
    --lp-soft: #edf2ec;
    --lp-panel: #ffffff;
    --lp-line: #d8e0d7;
    --lp-green: #23684b;
    --lp-green-dark: #174d38;
    --lp-coral: #c95b3a;
    --lp-blue: #2f6f9f;
    --lp-warning: #9f5f18;
    --lp-danger: #a63a3a;
    --lp-shadow: 0 18px 44px rgba(25, 39, 31, 0.11);
    min-height: 100vh;
    color: var(--lp-ink);
    font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.6;
}

.lp-page *,
.lp-page *::before,
.lp-page *::after {
    box-sizing: border-box;
}

.lp-page a {
    color: inherit;
}

.lp-page [hidden] {
    display: none !important;
}

.lp-site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 24px 8px;
}

.lp-brand {
    color: var(--lp-green-dark);
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
}

.lp-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.lp-nav a {
    border-radius: 8px;
    color: #304137;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 10px;
    text-decoration: none;
}

.lp-nav a:hover,
.lp-nav a:focus-visible {
    background: #e5eee4;
    color: var(--lp-green-dark);
    outline: none;
}

.lp-app {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 24px 40px;
}

.lp-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
    padding-top: 10px;
}

.lp-hero-copy {
    padding: 22px 0 8px;
}

.lp-eyebrow,
.lp-step-label {
    margin: 0 0 8px;
    color: var(--lp-coral);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.lp-hero h1 {
    max-width: 920px;
    margin: 0;
    color: var(--lp-ink);
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: 0;
}

.lp-hero-text {
    max-width: 760px;
    margin: 18px 0 0;
    color: #33463b;
    font-size: 18px;
}

.lp-hero-actions,
.lp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.lp-primary-link,
.lp-secondary-link,
.lp-button {
    align-items: center;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.lp-primary-link,
.lp-button-primary {
    background: var(--lp-green);
    color: #ffffff;
}

.lp-secondary-link,
.lp-button-secondary {
    background: #eef5f0;
    border-color: #bfd2c4;
    color: var(--lp-green-dark);
}

.lp-button-ghost {
    background: transparent;
    border-color: var(--lp-line);
    color: #425249;
}

.lp-primary-link:hover,
.lp-secondary-link:hover,
.lp-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.lp-primary-link:focus-visible,
.lp-secondary-link:focus-visible,
.lp-button:focus-visible,
.lp-dropzone:focus-visible,
.lp-example-card:focus-visible {
    outline: 3px solid rgba(47, 111, 159, 0.3);
    outline-offset: 2px;
}

.lp-button:disabled,
.lp-button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.lp-quick-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 24px 0 0;
    padding: 0;
    color: var(--lp-muted);
    font-size: 14px;
    list-style: none;
}

.lp-quick-notes li {
    border-left: 3px solid #bdd4c3;
    padding-left: 10px;
}

.lp-workspace {
    display: grid;
    gap: 16px;
    width: 100%;
}

.lp-panel,
.lp-status-card,
.lp-content-section {
    background: var(--lp-panel);
    border: 1px solid var(--lp-line);
    border-radius: 8px;
    box-shadow: var(--lp-shadow);
}

.lp-panel,
.lp-status-card {
    padding: 18px;
}

.lp-panel-compact {
    padding-bottom: 14px;
}

.lp-panel-heading,
.lp-status-topline,
.lp-result-meta {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.lp-panel-heading h2,
.lp-status-topline h2,
.lp-section-heading h2 {
    margin: 0;
    color: var(--lp-ink);
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: 0;
}

.lp-panel-heading > p,
.lp-section-heading > p,
.lp-status-card p {
    margin: 0;
    color: var(--lp-muted);
}

.lp-panel-heading > p {
    max-width: 360px;
    font-size: 14px;
    text-align: right;
}

.lp-upload-grid,
.lp-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.lp-file-card {
    display: grid;
    gap: 8px;
}

.lp-dropzone {
    background: #f9fbf8;
    border: 1px dashed #a7b9aa;
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    gap: 12px;
    min-height: 100%;
    padding: 12px;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.lp-dropzone:hover,
.lp-dropzone.is-dragover {
    background: #eef6ef;
    border-color: var(--lp-green);
}

.lp-dropzone.is-disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.lp-preview,
.lp-result-preview {
    align-items: center;
    aspect-ratio: 16 / 10;
    background: #eef2ee;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.lp-preview-image {
    aspect-ratio: 1 / 1;
}

.lp-preview img,
.lp-preview video,
.lp-result-preview video {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.lp-placeholder,
.lp-result-empty {
    align-items: center;
    color: #627369;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    min-height: 130px;
    padding: 16px;
    text-align: center;
}

.lp-placeholder strong {
    color: #2f4238;
    font-size: 18px;
}

.lp-placeholder span,
.lp-field-help,
.lp-file-meta span,
.lp-result-meta p {
    color: var(--lp-muted);
    font-size: 13px;
}

.lp-file-meta h3,
.lp-result-meta h3 {
    margin: 0;
    color: var(--lp-ink);
    font-size: 16px;
    line-height: 1.2;
}

.lp-file-meta p,
.lp-result-meta p {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
}

.lp-field-help {
    margin: 0;
}

.lp-example-groups {
    display: grid;
    gap: 18px;
    margin-top: 16px;
}

.lp-example-block {
    display: grid;
    gap: 10px;
}

.lp-example-subtitle {
    align-items: end;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.lp-example-subtitle h3 {
    margin: 0;
    color: var(--lp-ink);
    font-size: 17px;
    line-height: 1.2;
}

.lp-example-subtitle p {
    margin: 0;
    color: var(--lp-muted);
    font-size: 13px;
    text-align: right;
}

.lp-example-grid {
    display: grid;
    gap: 10px;
}

.lp-source-example-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.lp-driving-example-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lp-example-card {
    background: #f9fbf8;
    border: 1px solid var(--lp-line);
    border-radius: 8px;
    color: var(--lp-ink);
    cursor: pointer;
    display: grid;
    gap: 8px;
    padding: 8px;
    text-align: left;
}

.lp-example-card:hover,
.lp-example-card.is-active {
    border-color: var(--lp-green);
}

.lp-example-card.is-active {
    background: #eef8f1;
    box-shadow: inset 0 0 0 1px var(--lp-green);
}

.lp-example-card img,
.lp-example-card video {
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.lp-example-card video {
    aspect-ratio: 16 / 10;
    background: #dfe7e0;
}

.lp-example-card span {
    color: #405349;
    font-size: 12px;
    font-weight: 800;
}

.lp-example-card small {
    color: var(--lp-muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

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

.lp-option {
    align-items: flex-start;
    background: #f9fbf8;
    border: 1px solid var(--lp-line);
    border-radius: 8px;
    display: flex;
    gap: 10px;
    padding: 12px;
}

.lp-option input {
    accent-color: var(--lp-green);
    flex: 0 0 auto;
    height: 18px;
    margin-top: 2px;
    width: 18px;
}

.lp-option strong,
.lp-option small {
    display: block;
}

.lp-option small {
    color: var(--lp-muted);
    font-size: 13px;
    margin-top: 4px;
}

.lp-status-card {
    box-shadow: none;
}

.lp-badge {
    background: #eef5f0;
    border: 1px solid #c9d9cc;
    border-radius: 999px;
    color: var(--lp-green-dark);
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 800;
    padding: 5px 10px;
}

.lp-status-card[data-state="error"] .lp-badge {
    background: #faece8;
    border-color: #e4b9ad;
    color: var(--lp-danger);
}

.lp-status-card[data-state="success"] .lp-badge {
    background: #e9f7ef;
    border-color: #add4bc;
    color: var(--lp-green-dark);
}

#lpStatusMessage {
    margin-top: 10px;
    color: #26372e;
    font-weight: 700;
}

#lpRemoteStatus,
.lp-status-meta {
    margin-top: 6px;
    font-size: 14px;
}

.lp-status-meta {
    color: var(--lp-warning);
}

.lp-results {
    scroll-margin-top: 12px;
}

.lp-result-card {
    background: #f9fbf8;
    border: 1px solid var(--lp-line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 12px;
}

.lp-result-preview {
    aspect-ratio: 16 / 9;
}

.lp-result-meta {
    align-items: center;
}

.lp-content-section {
    margin-top: 26px;
    padding: 24px;
}

.lp-section-heading {
    max-width: 760px;
}

.lp-section-heading h2 {
    font-size: 28px;
}

.lp-section-heading > p {
    margin-top: 8px;
}

.lp-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.lp-feature-grid article,
.lp-note-box,
.lp-faq-list details {
    background: #f9fbf8;
    border: 1px solid var(--lp-line);
    border-radius: 8px;
    padding: 16px;
}

.lp-feature-grid h3,
.lp-note-box h3 {
    margin: 0 0 8px;
    color: var(--lp-ink);
    font-size: 17px;
}

.lp-feature-grid p,
.lp-note-box p,
.lp-faq-list p {
    margin: 0;
    color: var(--lp-muted);
}

.lp-guide-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding-left: 24px;
}

.lp-guide-list li {
    padding-left: 4px;
}

.lp-note-box {
    margin-top: 18px;
}

.lp-faq-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.lp-faq-list summary {
    color: var(--lp-ink);
    cursor: pointer;
    font-weight: 800;
}

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

.lp-footer {
    border-top: 1px solid #dce4db;
    color: #5d6d63;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    justify-content: space-between;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
    font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
}

.lp-footer p {
    margin: 0;
}

.lp-noscript {
    margin: 16px;
    padding: 12px;
    border: 1px solid #e4b9ad;
    border-radius: 8px;
    background: #faece8;
    color: #7a2c2c;
    font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
}

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

@media (max-width: 980px) {
    .lp-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .lp-site-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 16px 4px;
    }

    .lp-nav {
        justify-content: flex-start;
    }

    .lp-app {
        padding: 12px 16px 28px;
    }

    .lp-hero h1 {
        font-size: 34px;
    }

    .lp-hero-text {
        font-size: 16px;
    }

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

    .lp-panel,
    .lp-status-card,
    .lp-content-section {
        padding: 14px;
    }

    .lp-panel-heading,
    .lp-status-topline,
    .lp-result-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .lp-panel-heading > p {
        max-width: none;
        text-align: left;
    }

    .lp-upload-grid,
    .lp-result-grid,
    .lp-option-grid {
        grid-template-columns: 1fr;
    }

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

    .lp-example-subtitle {
        align-items: flex-start;
        flex-direction: column;
    }

    .lp-example-subtitle p {
        text-align: left;
    }

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

@media (max-width: 420px) {
    .lp-hero-actions,
    .lp-actions {
        flex-direction: column;
    }

    .lp-primary-link,
    .lp-secondary-link,
    .lp-button {
        width: 100%;
    }

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