:root {
    --ink: #18211d;
    --muted: #66736c;
    --line: #dce3df;
    --surface: #ffffff;
    --soft: #f3f6f4;
    --green: #087552;
    --green-dark: #055c40;
    --green-soft: #eaf6f0;
    --amber: #e79016;
    --amber-soft: #fff5df;
    --red: #b63b32;
    --red-soft: #fff0ee;
    --navy: #172b45;
    --shadow: 0 10px 30px rgba(21, 41, 32, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--soft); letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(8, 117, 82, .2); outline-offset: 2px; }
.ui-icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; display: inline-block; stroke: currentColor; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; background: var(--green); color: #fff; border-radius: 6px; font-weight: 800; }
.brand > span:last-child { display: grid; gap: 1px; }
.brand strong { font-size: 16px; line-height: 1.1; }
.brand small { color: var(--muted); font-size: 11px; }
.home-tech { overflow-x: hidden; background: #091016; }
.home-tech main { min-width: 0; background: #f2f5f3; }
.home-tech .site-footer { max-width: none; padding-right: max(32px, calc((100vw - 1216px) / 2)); padding-left: max(32px, calc((100vw - 1216px) / 2)); color: #afbbb6; background: #091016; border-color: #2a353d; font-size: 14px; }
.eyebrow { margin: 0 0 10px; color: var(--green); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.payment-heading h1, .login-copy h1 { margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.08; }

.operations-hero { height: 520px; min-height: 500px; position: relative; isolation: isolate; overflow: hidden; color: #f4f8f6; background: #091016; border-bottom: 1px solid #2a353d; }
.operations-hero::before { content: ""; width: 1px; height: 100%; position: absolute; top: 0; left: max(32px, calc((100vw - 1216px) / 2)); z-index: 1; background: #1d2a31; }
.city-network { width: 100%; height: 100%; position: absolute; top: 0; right: 0; z-index: 0; display: block; opacity: .56; }
.operations-hero-inner { width: min(1216px, calc(100% - 64px)); height: 100%; margin: 0 auto; padding-top: 148px; position: relative; z-index: 1; }
.operations-hero-copy { width: 100%; margin: 0 auto; position: relative; z-index: 2; text-align: center; }
.hero-logo { --logo-travel: calc(min(1216px, 100vw - 64px) - 150px); width: 150px; height: auto; position: absolute; top: 24px; left: max(32px, calc((100vw - 1216px) / 2)); z-index: 2; display: block; filter: drop-shadow(0 0 9px rgba(86, 214, 170, .34)); animation: hero-logo-patrol 16s linear infinite alternate; will-change: transform; }
.operations-hero h1 { max-width: none; margin: 0 auto; color: #f5f8f7; font-size: 40px; line-height: 1.2; font-weight: 800; white-space: nowrap; text-shadow: 0 0 2px rgba(255, 255, 255, .64), 0 0 12px rgba(86, 214, 170, .38), 0 0 28px rgba(74, 125, 170, .28); animation: hero-title-light 3.6s ease-in-out infinite alternate; }
@keyframes hero-logo-patrol {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(var(--logo-travel), 6px, 0); }
}
@keyframes hero-title-light {
    from { text-shadow: 0 0 2px rgba(255, 255, 255, .52), 0 0 9px rgba(86, 214, 170, .28), 0 0 20px rgba(74, 125, 170, .2); }
    to { text-shadow: 0 0 3px rgba(255, 255, 255, .8), 0 0 17px rgba(86, 214, 170, .58), 0 0 36px rgba(74, 125, 170, .38); }
}
.hero-subtitle { max-width: 720px; margin: 18px auto 0; color: #c1cbc7; font-size: 17px; line-height: 1.75; }
.hero-actions { margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.hero-primary-action { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: #071710; background: #62ddb4; border: 1px solid #62ddb4; border-radius: 3px; font-size: 16px; font-weight: 750; transition: color .18s, background .18s, border-color .18s; }
.hero-primary-action:hover { background: #83e6c4; border-color: #83e6c4; }
.hero-primary-action:focus-visible { outline: 3px solid #b5f2de; outline-offset: 3px; }
.purchase-workspace { max-width: 1280px; margin: 0 auto; padding: 42px 32px 70px; }
.package-section { padding: 0; background: transparent; border: 0; }
.payment-methods { background: var(--surface); border: 1px solid var(--line); padding: 28px; border-radius: 8px; }
.section-heading { margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-heading > div { display: flex; align-items: center; gap: 12px; }
.section-heading h2 { margin: 0; font-size: 24px; }
.section-heading p { margin: 0; color: #58655f; font-size: 16px; }
.section-number { color: var(--green); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 800; }

.package-section { scroll-margin-top: 20px; }
.package-matrix { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); overflow: visible; background: transparent; border: 0; border-radius: 0; gap: 16px; }
.package-card { min-width: 0; min-height: 600px; padding: 24px; display: flex; flex-direction: column; position: relative; background: #fff; border: 1px solid #aebbb5; border-radius: 3px; cursor: pointer; transition: background .18s, border-color .18s, box-shadow .18s; }
.package-card:hover { background: #f7faf8; }
.package-card:focus-visible { z-index: 2; outline: 3px solid #087552; outline-offset: -4px; }
.package-card.selected { color: #14231d; background: #edf8f3; box-shadow: inset 0 4px 0 #087552, inset 0 0 0 1px #087552; }
.package-identity { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.package-code { color: #67756f; font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.selection-state { width: 24px; height: 24px; display: grid; place-items: center; color: #8b9993; opacity: .45; }
.selection-state .ui-icon { width: 22px; height: 22px; }
.package-card.selected .selection-state { color: #087552; opacity: 1; }
.package-topline { min-height: 70px; padding-top: 12px; display: flex; align-items: flex-start; flex-wrap: wrap; align-content: flex-start; gap: 8px; }
.package-topline strong { max-width: 100%; overflow-wrap: anywhere; font-size: 24px; line-height: 1.35; }
.package-topline em { padding: 4px 7px; color: #774a00; background: #fff2d3; border-radius: 2px; font-size: 13px; font-style: normal; font-weight: 700; }
.package-subtitle { min-height: 52px; margin-top: 4px; color: #58655f; font-size: 16px; line-height: 1.55; }
.package-price { min-height: 58px; margin-top: 14px; display: flex; align-items: baseline; font-size: 44px; line-height: 1; font-weight: 800; }
.package-price small { margin-right: 3px; font-size: 20px; }
.package-price i { margin-left: 6px; color: #66736c; font-size: 16px; font-style: normal; font-weight: 500; }
.package-card.selected .package-price { color: #056244; }
.list-price { min-height: 24px; margin-top: 4px; color: #75817c; font-size: 14px; text-decoration: line-through; }
.package-core { min-height: 66px; margin: 16px 0 8px; padding: 12px 14px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; color: #183c4a; background: #edf3f5; border-left: 3px solid #3f7386; font-size: 16px; }
.package-card.selected .package-core { background: #dcefe7; border-left-color: #087552; }
.package-core b { font-size: 20px; }
.package-core span { width: 100%; color: #50615a; }
.package-card ul { min-height: 154px; margin: 12px 0 22px; padding: 0; display: grid; align-content: start; gap: 10px; list-style: none; color: #3f4d47; font-size: 16px; }
.package-card li { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 7px; line-height: 1.45; }
.package-card li .ui-icon { margin-top: 2px; color: #087552; }
.buy-package-button { width: 100%; min-height: 48px; margin-top: auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; color: #fff; background: #142c36; border: 1px solid #142c36; border-radius: 3px; font-size: 16px; font-weight: 750; transition: color .18s, background .18s, border-color .18s; }
.buy-package-button:hover, .package-card.selected .buy-package-button { color: #061710; background: #62ddb4; border-color: #4fc99f; }

.package-comparison { margin-top: 52px; padding-top: 36px; border-top: 1px solid #cdd8d4; }
.comparison-table-wrap { max-width: 100%; overflow-x: auto; background: #fff; border: 1px solid #b8c5bf; border-radius: 3px; scrollbar-color: #67837a #e5ebe8; }
.comparison-table-wrap:focus-visible { outline: 3px solid rgba(8, 117, 82, .22); outline-offset: 3px; }
.comparison-table { width: 100%; min-width: 900px; border-collapse: collapse; table-layout: fixed; text-align: center; }
.comparison-table th, .comparison-table td { height: 66px; padding: 12px 16px; border-right: 1px solid #d8e0dd; border-bottom: 1px solid #d8e0dd; }
.comparison-table tr:last-child th, .comparison-table tr:last-child td { border-bottom: 0; }
.comparison-table th:last-child, .comparison-table td:last-child { border-right: 0; }
.comparison-table thead th { color: #eaf6f2; background: #0f1d27; font-size: 17px; }
.comparison-table thead th:first-child { width: 210px; color: #baf1dd; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 16px; font-weight: 800; }
.comparison-table thead small { width: fit-content; margin: 5px auto 0; padding: 2px 5px; display: block; color: #10261f; background: #62dcb4; border-radius: 3px; font-size: 9px; }
.comparison-table tbody th { width: 210px; color: #3f4d47; background: #f7f9f8; font-size: 16px; font-weight: 650; text-align: center; }
.comparison-table thead th:first-child, .comparison-table tbody th { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 #d8e0dd; }
.comparison-table thead th:first-child { z-index: 2; box-shadow: inset 0 -3px 0 #62dcb4, 1px 0 0 #d8e0dd; }
.comparison-table tbody td { color: #26332f; font-size: 16px; }
.comparison-table tbody td strong { color: #0d6047; font-size: 18px; }
.comparison-table .comparison-sale th { color: #745117; background: #fff9e9; }
.comparison-table .comparison-sale td { background: #fffdf6; }
.comparison-table .comparison-sale td strong { color: #a16200; font-size: 21px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid label, .login-form label, .editor-form label, .filter-bar label { min-width: 0; display: grid; gap: 8px; color: #38443e; font-size: 13px; font-weight: 700; }
label span b { color: var(--red); }
input, textarea, select { width: 100%; color: var(--ink); background: #fff; border: 1px solid #cfd8d3; border-radius: 6px; }
input, select { height: 48px; padding: 0 12px; }
textarea { padding: 11px 12px; resize: vertical; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #a1aaa5; }
input:hover, textarea:hover, select:hover { border-color: #9daca5; }
input:focus, textarea:focus, select:focus { border-color: var(--green); outline: 3px solid rgba(8,117,82,.11); }
.full-field { grid-column: 1 / -1; }
.field-error { display: block; margin: 4px 0 0; color: var(--red); font-size: 12px; }
.submit-row { margin-top: 24px; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
.submit-row p { margin: 0; color: var(--muted); font-size: 13px; }
.submit-row p strong { color: var(--ink); }
.primary-button, .secondary-button { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border-radius: 6px; font-weight: 750; }
.primary-button { color: #fff; background: var(--green); border: 1px solid var(--green); }
.primary-button:hover { background: var(--green-dark); border-color: var(--green-dark); }
.secondary-button { color: var(--ink); background: #fff; border: 1px solid #bdc9c3; }
.secondary-button:hover { border-color: var(--green); color: var(--green); }
.inline-button { width: fit-content; margin-top: 10px; }
.site-footer { max-width: 1280px; margin: 0 auto; padding: 26px 32px 34px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }

.purchase-dialog { width: min(520px, calc(100vw - 28px)); max-width: 520px; max-height: calc(100vh - 28px); padding: 0; color: var(--ink); background: transparent; border: 0; border-radius: 8px; overflow: visible; }
.purchase-dialog::backdrop { background: rgba(10, 24, 18, .62); }
.purchase-dialog-card { max-height: calc(100vh - 28px); padding: 24px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 22px 70px rgba(10, 31, 22, .26); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dialog-header h2 { margin: 0; font-size: 26px; }
.dialog-close { width: 48px; height: 48px; flex: 0 0 48px; padding: 0; display: grid; place-items: center; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 4px; line-height: 1; }
.dialog-close .ui-icon { width: 22px; height: 22px; }
.dialog-close:hover { color: var(--ink); border-color: #a9b7b0; }
.dialog-package-summary { min-height: 82px; margin: 20px 0; padding: 15px 18px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 16px; color: #fff; background: var(--navy); border-radius: 6px; }
.dialog-package-summary > span { color: #bccad6; font-size: 12px; }
.dialog-package-summary strong { grid-row: 1 / span 2; grid-column: 2; color: #ffda8b; font-size: 28px; }
.dialog-package-summary strong small { margin-right: 3px; font-size: 14px; }
.dialog-package-summary em { color: #c5d1dc; font-size: 12px; font-style: normal; }
.dialog-fields { display: grid; gap: 16px; }
.dialog-fields label { display: grid; gap: 8px; color: #38443e; font-size: 16px; font-weight: 700; }
.fixed-password { min-height: 70px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 14px; background: var(--amber-soft); border: 1px solid #efd49b; border-radius: 6px; }
.fixed-password > span { color: #645331; font-size: 12px; font-weight: 700; }
.fixed-password strong { grid-row: 1 / span 2; grid-column: 2; color: #744c00; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 23px; }
.fixed-password small { color: #7a6a4a; font-size: 11px; }
.dialog-actions { margin-top: 22px; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
.modal-open { overflow: hidden; }

.payment-page { max-width: 960px; margin: 0 auto; padding: 56px 28px 70px; }
.payment-heading { text-align: center; }
.payment-heading .success-mark { width: 48px; height: 48px; margin: 0 auto 16px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-size: 23px; font-weight: 800; }
.payment-heading.is-cancelled .success-mark { background: var(--red); }
.payment-heading h1 { font-size: 42px; }
.payment-heading > p:last-child { color: var(--muted); line-height: 1.7; }
.order-summary { margin: 34px 0 20px; padding: 4px 22px; display: grid; grid-template-columns: 1.4fr 1fr .9fr; gap: 0; background: var(--navy); color: #fff; border-radius: 8px; box-shadow: var(--shadow); }
.order-summary > div { min-width: 0; padding: 20px 18px; display: grid; align-content: center; gap: 7px; position: relative; border-right: 1px solid rgba(255,255,255,.15); }
.order-summary > div:last-child { border: 0; }
.order-summary span { color: #b9c8d8; font-size: 12px; }
.order-summary strong { overflow-wrap: anywhere; font-size: 16px; }
.order-summary .amount strong { color: #ffd987; font-size: 25px; }
.order-summary .amount small { font-size: 14px; }
.copy-button { width: fit-content; min-height: 32px; padding: 2px 0; display: inline-flex; align-items: center; gap: 6px; color: #9ed7c1; background: transparent; border: 0; font-size: 12px; }
.copy-button .ui-icon { width: 15px; height: 15px; }
.tianque-payment { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.tianque-payment.is-paid { border-color: #b9dfcf; }
.provider-status { padding: 6px 9px; color: #7b530d; background: var(--amber-soft); border-radius: 4px; font-size: 11px; font-weight: 700; }
.provider-status.is-success { color: var(--green-dark); background: var(--green-soft); }
.tianque-payment-body { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr); align-items: center; gap: 42px; }
.dynamic-qr { display: grid; justify-items: center; gap: 10px; }
.dynamic-qr img { width: min(280px, 100%); aspect-ratio: 1; padding: 10px; display: block; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.dynamic-qr span { color: var(--muted); font-size: 12px; }
.payment-instructions { min-width: 0; }
.payment-kicker { margin: 0 0 8px; color: var(--green); font-size: 12px; font-weight: 800; }
.payment-instructions h3 { margin: 0; font-size: 25px; }
.payment-instructions > p:not(.payment-kicker) { margin: 14px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.payment-instructions > small { display: block; margin-top: 14px; color: #89938e; font-size: 11px; }
.payment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.payment-actions form { margin: 0; }
.paid-result { min-height: 160px; display: flex; align-items: center; justify-content: center; gap: 18px; text-align: left; }
.paid-result-mark { width: 54px; height: 54px; flex: 0 0 54px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-size: 25px; font-weight: 800; }
.paid-result-copy { min-width: 0; max-width: 620px; }
.paid-result strong { font-size: 22px; }
.paid-result p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
.delivery-contacts { margin: 16px 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 24px; list-style: none; }
.delivery-contacts li { min-width: 150px; padding-right: 24px; display: grid; gap: 3px; border-right: 1px solid var(--line); }
.delivery-contacts li:last-child { padding-right: 0; border-right: 0; }
.delivery-contacts span { color: var(--muted); font-size: 11px; }
.delivery-contacts b { color: var(--green-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px; }
.delivery-note { display: block; color: #627068; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.payment-unavailable { min-height: 180px; padding: 28px; display: grid; justify-items: center; align-content: center; gap: 10px; text-align: center; background: var(--soft); border: 1px dashed #b9c5bf; border-radius: 6px; }
.payment-unavailable p { margin: 0; color: var(--muted); font-size: 13px; }
.payment-unavailable small { max-width: 620px; color: var(--red); overflow-wrap: anywhere; }
.payment-unavailable form { margin-top: 8px; }
.manual-fallback { margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.manual-fallback summary { padding: 16px 20px; color: var(--muted); cursor: pointer; font-size: 13px; }
.manual-fallback[open] summary { color: var(--ink); border-bottom: 1px solid var(--line); }
.manual-fallback .payment-grid { padding: 18px; }
.payment-methods { padding: 28px; }
.payment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.payment-method { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 8px; }
.payment-method-title { display: flex; align-items: center; gap: 10px; }
.payment-method-title > span { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 6px; font-weight: 800; }
.payment-method h3 { margin: 0; font-size: 18px; }
.payment-method > p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.qr-image { width: min(240px, 100%); aspect-ratio: 1; margin: 20px auto 8px; display: block; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; }
.account-info { margin: 18px 0 10px; padding: 14px; color: var(--navy); background: #eef4f8; border-radius: 6px; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.empty-payment { padding: 38px 20px; text-align: center; background: var(--soft); border: 1px dashed #b9c5bf; border-radius: 6px; }
.empty-payment h3 { margin: 0 0 8px; }
.empty-payment p { margin: 0; color: var(--muted); }
.payment-help { margin-top: 16px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--amber-soft); border: 1px solid #f0d49d; border-radius: 8px; font-size: 13px; }
.payment-help span { color: #66583d; }

.error-page { min-height: calc(100vh - 145px); padding: 80px 20px; display: grid; place-items: center; align-content: center; text-align: center; }
.error-code { width: 52px; height: 52px; display: grid; place-items: center; color: #fff; background: var(--red); border-radius: 50%; font-size: 28px; font-weight: 800; }
.error-page h1 { margin: 18px 0 4px; }
.error-page p { color: var(--muted); }

.auth-body { min-height: 100vh; background: #eaf0ed; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 560px) minmax(420px, 1fr); }
.login-panel { padding: clamp(34px, 7vw, 82px); display: flex; flex-direction: column; justify-content: center; background: #fff; }
.login-copy { margin: 64px 0 28px; }
.login-copy h1 { max-width: 480px; font-size: 42px; }
.login-copy > p:last-child { color: var(--muted); }
.login-form { display: grid; gap: 18px; }
.login-form .primary-button { width: 100%; margin-top: 2px; }
.back-link { margin-top: 24px; color: var(--muted); font-size: 13px; }
.login-aside { padding: clamp(40px, 8vw, 100px); display: flex; flex-direction: column; justify-content: center; color: #fff; background: var(--navy); }
.login-aside > span { width: fit-content; padding: 5px 8px; color: #133326; background: #9ed7c1; border-radius: 4px; font-size: 12px; font-weight: 800; }
.login-aside h2 { max-width: 650px; margin: 24px 0; font-size: clamp(36px, 4.5vw, 64px); line-height: 1.15; }
.login-aside ul { margin: 12px 0 0; padding: 0; display: grid; gap: 16px; list-style: none; color: #c5d3df; }
.login-aside li { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 10px; }
.login-aside li .ui-icon { margin-top: 2px; color: #9ed7c1; }
.back-link { display: inline-flex; align-items: center; gap: 8px; }

.install-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(620px, 760px) minmax(340px, 1fr); background: #f4f7f5; }
.install-panel { padding: 48px 64px; background: #fff; }
.install-heading { display: flex; align-items: center; gap: 18px; }
.install-heading > span { display: grid; width: 64px; height: 64px; place-items: center; color: #10231c; background: #86d9b9; border: 1px solid #4f9f81; font-size: 16px; font-weight: 900; }
.install-heading h1 { margin: 3px 0 0; color: #10231c; font-size: 34px; line-height: 1.15; }
.install-intro { margin: 22px 0 26px; color: #52635b; font-size: 16px; }
.install-requirements { margin-bottom: 18px; padding: 14px 16px; color: #682d24; background: #fff2ef; border: 1px solid #d7a097; }
.install-requirements ul { margin: 8px 0 0; padding-left: 20px; }
.install-form { display: grid; gap: 24px; }
.install-form fieldset { margin: 0; padding: 20px; border: 1px solid #cad5cf; }
.install-form legend { padding: 0 10px; color: #1c3329; font-size: 16px; font-weight: 800; }
.install-form legend span { margin-right: 8px; color: #37795f; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.install-grid { display: grid; grid-template-columns: 1fr 140px; gap: 16px; }
.install-grid label { min-width: 0; display: grid; align-content: start; gap: 8px; color: #34483f; font-size: 14px; font-weight: 700; }
.install-grid .wide { grid-column: 1 / -1; }
.install-grid input { width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid #aebdb5; border-radius: 4px; color: #13271e; background: #fff; font: inherit; }
.install-grid input:focus { outline: 3px solid rgba(55, 121, 95, .25); border-color: #37795f; }
.install-grid small { color: #65766e; font-size: 12px; font-weight: 400; }
.install-submit { width: 100%; min-height: 52px; }
.install-submit:disabled { cursor: not-allowed; opacity: .55; }
.install-aside { padding: 64px; display: flex; flex-direction: column; justify-content: center; color: #eaf4ef; background: #101b20; }
.install-aside > span { width: fit-content; padding: 6px 8px; color: #10231c; background: #86d9b9; font-size: 12px; font-weight: 900; }
.install-aside h2 { margin: 28px 0 36px; font-size: 48px; line-height: 1.16; }
.install-aside ol { margin: 0; padding: 0; list-style: none; counter-reset: install-step; }
.install-aside li { min-height: 58px; padding: 17px 0 17px 46px; position: relative; border-top: 1px solid #34434a; color: #c5d1cc; font-size: 16px; counter-increment: install-step; }
.install-aside li::before { content: counter(install-step, decimal-leading-zero); position: absolute; left: 0; color: #86d9b9; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; }

.admin-body { min-height: 100vh; background: #f1f4f2; }
.admin-topbar { height: 64px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; color: #fff; background: #142a22; }
.brand-light small { color: #a9bbb4; }
.admin-actions { display: flex; align-items: center; gap: 20px; color: #bdcbc5; font-size: 13px; }
.admin-actions form { margin: 0; }
.text-button { padding: 0; color: #bdcbc5; background: transparent; border: 0; }
.admin-shell { min-height: calc(100vh - 64px); display: grid; grid-template-columns: 210px minmax(0, 1fr); }
.admin-nav { padding: 24px 12px; display: flex; flex-direction: column; gap: 6px; background: #fff; border-right: 1px solid var(--line); }
.admin-nav a { height: 44px; padding: 0 12px; display: flex; align-items: center; gap: 12px; color: #59665f; border-radius: 6px; font-size: 14px; }
.admin-nav a span { color: #9ba7a1; font-size: 10px; }
.admin-nav a.active { color: var(--green-dark); background: var(--green-soft); font-weight: 700; }
.admin-nav a.active span { color: var(--green); }
.admin-main { min-width: 0; padding: 34px; }
.admin-page-heading { margin-bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.admin-page-heading h1 { margin: 0; font-size: 30px; }
.admin-page-heading > span { color: var(--muted); font-size: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stats-grid > div { min-height: 108px; padding: 20px; display: grid; align-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.stats-grid span { color: var(--muted); font-size: 12px; }
.stats-grid strong { font-size: 28px; }
.stats-grid .revenue { color: #fff; background: var(--navy); border-color: var(--navy); }
.stats-grid .revenue span { color: #b8c7d5; }
.filter-bar { margin: 18px 0 12px; padding: 14px; display: flex; align-items: end; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.filter-bar label { width: 170px; }
.filter-bar .search-field { width: min(360px, 100%); }
.filter-bar input, .filter-bar select { height: 38px; }
.filter-bar .secondary-button { min-height: 38px; }
.table-wrap { overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.data-table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 13px; }
.data-table th { padding: 12px 14px; color: var(--muted); background: #f8faf9; border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; font-weight: 700; }
.data-table td { padding: 14px; vertical-align: top; border-bottom: 1px solid #e9eeeb; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td > strong, .data-table td > small { display: block; }
.data-table td > small { margin-top: 4px; color: var(--muted); line-height: 1.45; }
.data-table .payment-error { max-width: 260px; color: #9a321f; white-space: normal; overflow-wrap: anywhere; }
.data-table .money { font-weight: 700; }
.data-table details { margin-top: 6px; color: var(--muted); font-size: 11px; }
.data-table details p { max-width: 280px; margin: 6px 0 0; color: var(--ink); line-height: 1.5; }
.status { padding: 5px 8px; display: inline-block; border-radius: 4px; font-size: 11px; font-weight: 700; }
.status-pending { color: #8a5900; background: var(--amber-soft); }
.status-paid { color: var(--green-dark); background: var(--green-soft); }
.status-cancelled { color: #68726d; background: #edf0ee; }
.status-form { display: flex; align-items: center; gap: 6px; }
.status-form select { width: 86px; height: 32px; padding: 0 7px; font-size: 12px; }
.status-form button { height: 32px; color: var(--green); background: #fff; border: 1px solid #a9beb5; border-radius: 5px; font-size: 12px; }
.terminal-status { color: var(--muted); font-size: 12px; }
.order-payment-link { margin-bottom: 7px; display: block; color: var(--green); font-size: 12px; font-weight: 700; }
.pagination { margin-top: 14px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; color: var(--muted); font-size: 12px; }
.pagination a { padding: 7px 10px; color: var(--green-dark); background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.empty-row { padding: 46px !important; color: var(--muted); text-align: center; }

.editor-list { display: grid; gap: 12px; }
.editor-panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.editor-panel summary { min-height: 66px; padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; }
.editor-panel summary::-webkit-details-marker { display: none; }
.editor-panel summary > span { display: grid; gap: 3px; }
.editor-panel summary strong { font-size: 15px; }
.editor-panel summary small { color: var(--muted); font-size: 12px; }
.editor-panel summary em { color: var(--green); font-size: 12px; font-style: normal; }
.editor-panel[open] summary { background: #f8faf9; border-bottom: 1px solid var(--line); }
.editor-form { padding: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.editor-form .wide, .editor-form .form-actions { grid-column: 1 / -1; }
.editor-form label > small { color: var(--muted); font-size: 11px; font-weight: 400; }
.field-status { margin: 0; padding: 12px 14px; color: #38443e; background: #f4f7f5; border: 1px solid var(--line); font-size: 13px; }
.toggle-label { align-content: end; }
.toggle-label input { width: 18px; height: 18px; margin: 0; }
.toggle-label { display: flex !important; flex-direction: row; align-items: center; }
.form-actions { padding-top: 4px; display: flex; justify-content: flex-end; }
.form-actions .primary-button { min-width: 130px; }
.notice { margin-bottom: 16px; padding: 15px 18px; display: flex; align-items: center; gap: 18px; color: #624b22; background: var(--amber-soft); border: 1px solid #efd7a8; border-radius: 8px; }
.notice p { margin: 0; font-size: 12px; }
.tianque-settings-panel { margin-bottom: 16px; }
.alert { margin-bottom: 16px; padding: 12px 14px; border-radius: 6px; font-size: 13px; }
.alert-error { color: #8d2f28; background: var(--red-soft); border: 1px solid #ecc5c1; }
.alert-success { color: var(--green-dark); background: var(--green-soft); border: 1px solid #b9dfcf; }

@media (max-width: 980px) {
    .operations-hero { height: 540px; }
    .operations-hero-inner { width: min(100% - 48px, 820px); }
    .operations-hero-copy { width: 100%; }
    .operations-hero h1 { font-size: 30px; }
    .city-network { width: 100%; opacity: .48; }
    .package-matrix { grid-template-columns: 1fr; }
    .package-card { min-height: 0; }
    .package-card ul { min-height: 0; }
    .login-shell { grid-template-columns: 1fr; }
    .login-aside { display: none; }
    .install-shell { grid-template-columns: 1fr; }
    .install-aside { display: none; }
    .install-panel { min-height: 100vh; padding: 36px 28px; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-nav { padding: 10px 14px; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
    .admin-nav a { min-width: 130px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) and (min-width: 701px) {
    .operations-hero h1 { font-size: 27px; }
}

@media (max-width: 700px) {
    .operations-hero { height: auto; min-height: 440px; }
    .operations-hero::before { left: 18px; }
    .operations-hero-inner { width: calc(100% - 36px); min-height: 440px; padding: 98px 0 0; display: flex; flex-direction: column; }
    .operations-hero-copy { width: 100%; }
    .hero-logo { --logo-travel: calc(100vw - 148px); width: 112px; top: 16px; left: 18px; }
    .operations-hero h1 { font-size: 30px; line-height: 1.25; white-space: normal; }
    .hero-subtitle { margin-top: 14px; font-size: 16px; line-height: 1.65; }
    .hero-actions { margin-top: 20px; display: grid; grid-template-columns: 1fr; gap: 8px; }
    .hero-primary-action { width: 100%; }
    .city-network { width: 100%; height: 430px; top: 0; opacity: .38; }
    .purchase-workspace { padding: 32px 12px 52px; }
    .package-section { padding: 0; }
    .package-matrix { gap: 12px; }
    .payment-methods { padding: 18px; }
    .section-heading { align-items: flex-start; }
    .section-heading > p { display: none; }
    .package-card { min-height: 0; padding: 20px 18px; }
    .package-topline { min-height: 0; padding: 10px 0 4px; }
    .package-subtitle { min-height: 0; }
    .package-price { font-size: 42px; }
    .package-comparison { margin-top: 38px; padding-top: 30px; }
    .comparison-table { min-width: 760px; }
    .comparison-table th, .comparison-table td { height: 58px; padding: 10px 12px; }
    .comparison-table thead th:first-child, .comparison-table tbody th { width: 154px; }
    .comparison-table thead th { font-size: 15px; }
    .comparison-table tbody th { font-size: 15px; }
    .comparison-table tbody td { font-size: 15px; }
    .home-tech .site-footer { padding-right: 18px; padding-left: 18px; }
    .purchase-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
    .purchase-dialog-card { max-height: calc(100vh - 20px); padding: 20px 18px; }
    .dialog-actions { grid-template-columns: 92px minmax(0, 1fr); }
    .site-footer { padding: 24px 18px; flex-direction: column; }
    .payment-page { padding: 36px 12px 50px; }
    .payment-heading h1 { font-size: 36px; }
    .order-summary { padding: 8px 16px; grid-template-columns: 1fr; }
    .order-summary > div { padding: 14px 4px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
    .tianque-payment { padding: 18px; }
    .tianque-payment-body { grid-template-columns: 1fr; gap: 24px; }
    .dynamic-qr img { width: min(260px, 100%); }
    .payment-instructions { text-align: center; }
    .payment-actions { display: grid; grid-template-columns: 1fr; }
    .payment-actions form, .payment-actions .primary-button, .payment-actions .secondary-button { width: 100%; }
    .paid-result { align-items: center; flex-direction: column; text-align: center; }
    .delivery-contacts { justify-content: center; }
    .delivery-contacts li { min-width: 0; padding-right: 18px; text-align: left; }
    .payment-grid { grid-template-columns: 1fr; }
    .payment-help { align-items: flex-start; flex-direction: column; }
    .login-panel { min-height: 100vh; padding: 28px 22px; }
    .login-copy { margin: 50px 0 25px; }
    .login-copy h1 { font-size: 36px; }
    .install-panel { padding: 26px 18px 36px; }
    .install-heading > span { width: 56px; height: 56px; }
    .install-heading h1 { font-size: 28px; }
    .install-grid { grid-template-columns: 1fr; }
    .install-grid .wide { grid-column: auto; }
    .admin-topbar { padding: 0 14px; }
    .admin-actions a { display: none; }
    .admin-main { padding: 22px 12px; }
    .admin-page-heading { align-items: flex-start; flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid > div { min-height: 94px; padding: 15px; }
    .stats-grid strong { font-size: 23px; }
    .filter-bar { align-items: stretch; flex-direction: column; }
    .filter-bar label, .filter-bar .search-field { width: 100%; }
    .editor-form { grid-template-columns: 1fr; }
    .editor-form .wide, .editor-form .form-actions { grid-column: auto; }
    .notice { align-items: flex-start; flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-logo, .operations-hero h1 { animation: none; }
    .hero-logo { transform: none; will-change: auto; }
}
