:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-strong: #f1f4f8;
    --ink: #172033;
    --muted: #667085;
    --line: #e3e8ef;
    --accent: #ff4655;
    --accent-dark: #d93645;
    --teal: #00a6a6;
    --gold: #ffb020;
    --shadow: 0 18px 45px rgba(23, 32, 51, 0.1);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #ffffff 0%, #f6f7fb 46%, #eef3f6 100%);
    font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

body.nav-body {
    min-height: auto;
    background: transparent;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-dark);
    text-decoration: none;
}

.site-nav-frame {
    display: block;
    width: 100%;
    height: 88px;
    border: 0;
    background: transparent;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 76px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(23, 32, 51, 0.08);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand:hover {
    color: var(--ink);
}

.brand-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--teal));
    border-radius: 8px;
    font-weight: 900;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 12px;
    color: #334155;
    border-radius: 8px;
    font-weight: 700;
}

.nav-links a:hover {
    color: var(--ink);
    background: var(--surface-strong);
}

.nav-status {
    margin-left: auto;
    color: var(--muted);
    font-size: 14px;
}

.page-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 56px;
}

.compact-shell {
    width: min(520px, calc(100% - 32px));
}

.hero {
    display: grid;
    gap: 18px;
    padding: 22px 0 28px;
}

.hero h1,
.hero h2,
.form-panel h1,
.contact-panel h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: 0;
}

.hero p,
.form-intro,
.contact-panel p,
.notice {
    margin: 10px 0 0;
    color: var(--muted);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.hero-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.hero-meta span,
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    color: #31505f;
    background: #eaf6f5;
    border: 1px solid #cfe9e6;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.notice {
    padding: 14px 16px;
    background: #fff7e8;
    border: 1px solid #f4d49a;
    border-radius: var(--radius);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    align-items: stretch;
}

.product-card,
.form-panel,
.contact-panel,
.download-section {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100%;
}

.product-card img,
.card-img-top {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--surface-strong);
}

.product-content,
.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.product-content h2,
.card-title {
    margin: 0;
    color: var(--ink);
    font-size: 19px;
    line-height: 1.35;
}

.product-content p,
.card-text {
    margin: 0;
    color: var(--muted);
}

.product-content .btn,
.card-body .btn {
    margin-top: auto;
}

.btn,
button,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    color: #ffffff;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn:hover,
button:hover,
.btn-primary:hover {
    color: #ffffff;
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    box-shadow: 0 10px 24px rgba(255, 70, 85, 0.24);
    transform: translateY(-1px);
}

.btn:disabled,
button:disabled,
.btn-primary:disabled {
    color: #ffffff;
    background: #94a3b8;
    border-color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
    box-shadow: none;
}

.btn:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(0, 166, 166, 0.22);
    outline-offset: 2px;
}

.btn-secondary {
    color: var(--ink);
    background: #ffffff;
    border-color: var(--line);
}

.btn-secondary:hover {
    color: var(--ink);
    background: var(--surface-strong);
    border-color: #cbd5e1;
    box-shadow: 0 10px 24px rgba(23, 32, 51, 0.08);
}

.form-page .page-shell {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 88px);
    padding-top: 20px;
}

.form-panel,
.contact-panel {
    width: 100%;
    padding: 28px;
}

.form-panel h1,
.contact-panel h1 {
    font-size: 28px;
}

.form-group {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    text-align: left;
}

.form-group label {
    color: #344054;
    font-weight: 800;
}

input,
select,
textarea,
.form-control {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid #cfd7e3;
    border-radius: var(--radius);
    font: inherit;
}

textarea {
    min-height: 108px;
    resize: vertical;
}

.form-row-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.form-actions {
    display: grid;
    margin-top: 22px;
}

.form-actions button,
.form-actions .btn {
    width: 100%;
}

.contact-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.contact-item {
    padding: 14px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.download-section {
    padding: 22px;
    margin-top: 18px;
}

.download-section h2 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 24px;
}

.download-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 16px 0 0;
    list-style: none;
}

.download-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.site-footer {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 34px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 14px;
    text-align: center;
}

.purchase-page {
    background:
        linear-gradient(135deg, rgba(255, 70, 85, 0.08) 0%, transparent 28%),
        linear-gradient(225deg, rgba(0, 166, 166, 0.11) 0%, transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f4f7fb 44%, #eef4f4 100%);
}

.purchase-shell {
    padding-top: 36px;
}

.purchase-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: end;
    margin-bottom: 26px;
}

.purchase-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--ink);
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: 0;
}

.purchase-hero p {
    max-width: 680px;
    margin: 12px 0 0;
    color: var(--muted);
}

.purchase-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 38px rgba(23, 32, 51, 0.08);
}

.purchase-stats div {
    min-width: 0;
    padding: 12px;
    background: var(--surface-strong);
    border-radius: var(--radius);
}

.purchase-stats strong {
    display: block;
    color: var(--accent-dark);
    font-size: 18px;
    line-height: 1.1;
}

.purchase-stats span {
    display: block;
    margin-top: 5px;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

.purchase-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 392px;
    gap: 22px;
    align-items: start;
}

.plans-area {
    display: grid;
    gap: 16px;
}

.section-heading,
.checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.section-heading h2,
.checkout-header h2 {
    margin: 0;
    color: var(--ink);
    font-size: 26px;
    line-height: 1.2;
}

.secure-chip,
.checkout-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 7px 10px;
    color: #31505f;
    background: #eaf6f5;
    border: 1px solid #cfe9e6;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.plan-card {
    display: grid;
    gap: 14px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 34px rgba(23, 32, 51, 0.08);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.plan-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 22px 44px rgba(23, 32, 51, 0.11);
}

.plan-card.is-active {
    border-color: rgba(255, 70, 85, 0.56);
    box-shadow: 0 24px 48px rgba(255, 70, 85, 0.16);
}

.plan-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.plan-icon {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--teal));
    border-radius: var(--radius);
    font-size: 18px;
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    color: #31505f;
    background: #eaf6f5;
    border: 1px solid #cfe9e6;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.plan-badge-strong {
    color: #7a4a00;
    background: #fff7e8;
    border-color: #f4d49a;
}

.plan-card h3 {
    margin: 0;
    color: var(--ink);
    font-size: 23px;
    line-height: 1.25;
}

.plan-card p {
    margin: 0;
    color: var(--muted);
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.plan-price strong {
    color: var(--ink);
    font-size: 34px;
    line-height: 1;
}

.plan-price span {
    color: var(--muted);
    font-weight: 800;
}

.plan-features {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    color: #344054;
    list-style: none;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features i {
    color: var(--teal);
}

.plan-select {
    width: fit-content;
    color: var(--ink);
    background: #ffffff;
    border-color: var(--line);
}

.plan-card.is-active .plan-select {
    color: #ffffff;
    background: var(--accent);
    border-color: var(--accent);
}

.checkout-panel {
    position: sticky;
    top: 18px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.payment-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid #cfd7e3;
    border-radius: var(--radius);
}

.payment-box i {
    color: var(--accent-dark);
}

.payment-box select {
    border: 0;
    padding-left: 0;
}

.payment-box select:focus {
    outline: 0;
}

.order-summary {
    display: grid;
    gap: 12px;
    margin-top: 22px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.summary-row,
.summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.summary-row span,
.summary-total span {
    color: var(--muted);
}

.summary-row strong {
    color: var(--ink);
    text-align: right;
}

.summary-total {
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.summary-total strong {
    color: var(--accent-dark);
    font-size: 28px;
    line-height: 1;
}

.checkout-note {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.checkout-note i {
    margin-top: 3px;
    color: var(--teal);
}

@media (max-width: 720px) {
    .site-nav-frame {
        height: 120px;
    }

    .site-nav {
        align-items: flex-start;
        gap: 12px;
        min-height: 108px;
        padding: 12px 16px;
        flex-direction: column;
    }

    .brand {
        font-size: 16px;
        white-space: normal;
    }

    .nav-links {
        width: 100%;
        gap: 6px;
        flex-wrap: nowrap;
    }

    .nav-links a {
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
        padding-inline: 8px;
        font-size: 14px;
        gap: 5px;
    }

    .nav-status {
        margin-left: 0;
    }

    .hero {
        padding-top: 8px;
    }

    .hero h1,
    .hero h2 {
        font-size: 32px;
    }

    .form-row-inline {
        grid-template-columns: 1fr;
    }

    .form-row-inline button {
        width: 100%;
    }

    .download-list li {
        align-items: stretch;
        flex-direction: column;
    }

    .purchase-shell {
        padding-top: 24px;
    }

    .purchase-hero,
    .purchase-layout {
        grid-template-columns: 1fr;
    }

    .purchase-hero {
        gap: 18px;
    }

    .purchase-hero h1 {
        font-size: 36px;
    }

    .section-heading,
    .checkout-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .purchase-stats {
        gap: 6px;
        padding: 8px;
    }

    .purchase-stats div {
        padding: 10px 8px;
    }

    .plan-card,
    .checkout-panel {
        padding: 18px;
    }

    .plan-select {
        width: 100%;
    }

    .checkout-panel {
        position: static;
    }

    .summary-row,
    .summary-total {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .summary-row strong {
        text-align: left;
    }
}
