:root {
    --bg: #07101f;
    --bg-soft: #0b1628;
    --panel: rgba(17, 29, 49, 0.82);
    --panel-solid: #101d31;
    --panel-light: #14243b;
    --line: rgba(174, 194, 220, 0.13);
    --line-strong: rgba(214, 179, 106, 0.34);
    --text: #f5f7fb;
    --muted: #8e9db3;
    --muted-light: #b6c0ce;
    --gold: #d6b36a;
    --gold-light: #f0d493;
    --gold-deep: #a77b31;
    --blue: #4c8df6;
    --green: #49c59b;
    --red: #ef6b72;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 5%, rgba(76, 141, 246, 0.12), transparent 30rem),
        radial-gradient(circle at 88% 18%, rgba(214, 179, 106, 0.1), transparent 28rem),
        var(--bg);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    opacity: 0.42;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 86%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    color: #111827;
    background: var(--gold-light);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    border: 2px solid var(--bg);
    border-radius: 999px;
    background: #3a4c66;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 16, 31, 0.82);
    backdrop-filter: blur(18px);
}

.nav-row {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    color: var(--gold-light);
    background: linear-gradient(145deg, rgba(214, 179, 106, 0.15), rgba(214, 179, 106, 0.03));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -1px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.brand-note {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    margin-left: auto;
}

.main-nav a {
    position: relative;
    color: var(--muted-light);
    font-size: 14px;
    transition: color 0.2s ease;
}

.main-nav a::after {
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 1px;
    content: "";
    transform: scaleX(0);
    background: var(--gold);
    transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: var(--gold-light);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.header-contact {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 9px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted-light);
    background: rgba(255, 255, 255, 0.025);
    font-size: 12px;
}

.online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(73, 197, 155, 0.1);
}

.hero {
    position: relative;
    display: grid;
    min-height: 570px;
    align-items: center;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
    gap: 80px;
    padding-top: 72px;
    padding-bottom: 68px;
}

.hero::after {
    position: absolute;
    top: 48px;
    right: 22%;
    z-index: -1;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    content: "";
    opacity: 0.22;
    background: var(--gold-deep);
    filter: blur(110px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 24px;
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 34px;
    height: 1px;
    content: "";
    background: var(--gold);
}

.hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(42px, 5.4vw, 70px);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 1.12;
}

.hero h1 span {
    color: transparent;
    background: linear-gradient(100deg, #f7e1aa, #c89a49 70%);
    background-clip: text;
    -webkit-background-clip: text;
}

.hero-lead {
    max-width: 650px;
    margin: 28px 0 0;
    color: var(--muted-light);
    font-size: 17px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #172033;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 12px 30px rgba(214, 179, 106, 0.15);
}

.btn-primary:hover {
    box-shadow: 0 15px 36px rgba(214, 179, 106, 0.24);
}

.btn-secondary {
    border-color: var(--line);
    color: var(--muted-light);
    background: rgba(255, 255, 255, 0.025);
}

.btn-secondary:hover {
    border-color: var(--line-strong);
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
}

.arrow-icon {
    font-size: 17px;
    line-height: 1;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 45%),
        var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero-panel::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.panel-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
}

.panel-kicker strong {
    color: var(--gold);
    font-size: 13px;
}

.quality-list {
    display: grid;
    gap: 8px;
    padding: 22px 0;
}

.quality-item {
    display: grid;
    align-items: center;
    gap: 16px;
    padding: 15px 0;
    grid-template-columns: 34px 1fr auto;
}

.quality-index {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--gold-light);
    font-family: Georgia, serif;
    font-size: 12px;
}

.quality-copy strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 600;
}

.quality-copy span {
    color: var(--muted);
    font-size: 12px;
}

.quality-state {
    color: var(--green);
    font-family: Consolas, monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
}

.panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
}

.panel-signature {
    color: var(--gold-light);
    font-family: Georgia, serif;
    font-size: 17px;
    font-style: italic;
}

.trust-strip {
    display: grid;
    margin-bottom: 110px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    grid-template-columns: repeat(4, 1fr);
}

.trust-item {
    position: relative;
    padding: 24px 28px;
}

.trust-item + .trust-item {
    border-left: 1px solid var(--line);
}

.trust-item strong {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.trust-item span {
    color: var(--muted);
    font-size: 12px;
}

.section {
    padding-bottom: 110px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 34px;
}

.section-label {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600;
    letter-spacing: -0.04em;
}

.section-heading > p {
    max-width: 470px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.search-shell {
    display: flex;
    width: min(100%, 560px);
    min-height: 52px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-shell:focus-within {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 4px rgba(214, 179, 106, 0.06);
}

.search-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-left: 17px;
    color: var(--muted);
}

.search-shell input {
    min-width: 0;
    flex: 1;
    padding: 0 15px;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font-size: 14px;
}

.search-shell input::placeholder {
    color: #617087;
}

.search-shell button {
    align-self: stretch;
    padding: 0 21px;
    border: 0;
    border-left: 1px solid var(--line);
    color: var(--gold-light);
    background: rgba(214, 179, 106, 0.07);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.search-shell button:hover {
    background: rgba(214, 179, 106, 0.13);
}

.result-count {
    color: var(--muted);
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
}

.product-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.product-card::after {
    position: absolute;
    top: -90px;
    right: -90px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    content: "";
    opacity: 0;
    background: rgba(214, 179, 106, 0.1);
    filter: blur(50px);
    transition: opacity 0.25s ease;
}

.product-card:hover {
    z-index: 1;
    transform: translateY(-5px);
    border-color: rgba(214, 179, 106, 0.28);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018));
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.24);
}

.product-card:hover::after {
    opacity: 1;
}

.product-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 25px;
}

.tag {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.tag-red {
    border-color: rgba(239, 107, 114, 0.28);
    color: #ff9da2;
    background: rgba(239, 107, 114, 0.08);
}

.tag-green {
    border-color: rgba(73, 197, 155, 0.28);
    color: #7cdbbd;
    background: rgba(73, 197, 155, 0.08);
}

.tag-blue {
    border-color: rgba(76, 141, 246, 0.3);
    color: #8bb6fa;
    background: rgba(76, 141, 246, 0.08);
}

.product-code {
    color: #697991;
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.product-card h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 23px;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.45;
}

.product-card h3 a {
    transition: color 0.2s ease;
}

.product-card h3 a:hover {
    color: var(--gold-light);
}

.product-summary {
    min-height: 50px;
    margin: 12px 0 24px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.85;
}

.product-meta {
    display: grid;
    margin: 0 -28px;
    padding: 18px 28px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    grid-template-columns: 1fr 1fr;
}

.meta-block + .meta-block {
    padding-left: 24px;
    border-left: 1px solid var(--line);
}

.meta-block span {
    display: block;
    margin-bottom: 6px;
    color: #67768d;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.meta-block strong {
    color: var(--muted-light);
    font-size: 13px;
    font-weight: 500;
}

.product-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding-top: 23px;
}

.price-label {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
}

.price-value {
    color: var(--gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    font-weight: 600;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-link {
    color: var(--muted-light);
    font-size: 12px;
    transition: color 0.2s ease;
}

.demo-link:hover {
    color: var(--gold-light);
}

.product-footer .btn {
    min-height: 40px;
    padding: 0 17px;
    border-radius: 8px;
    font-size: 12px;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 70px 24px;
    border: 1px dashed var(--line);
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
}

.empty-state strong {
    display: block;
    margin-bottom: 9px;
    color: var(--text);
    font-size: 17px;
}

.service-grid {
    display: grid;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--line);
    grid-template-columns: repeat(3, 1fr);
}

.service-card {
    padding: 32px;
    background: var(--bg-soft);
}

.service-number {
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 13px;
}

.service-card h3 {
    margin: 29px 0 12px;
    font-size: 18px;
    font-weight: 600;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.cta {
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 100px;
    padding: 46px 52px;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background:
        radial-gradient(circle at 85% 50%, rgba(214, 179, 106, 0.15), transparent 26rem),
        var(--panel-solid);
}

.cta::before {
    position: absolute;
    top: 0;
    right: 20%;
    left: 20%;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cta h2 {
    margin: 0 0 10px;
    font-size: clamp(25px, 4vw, 36px);
    font-weight: 600;
    letter-spacing: -0.035em;
}

.cta p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.site-footer {
    padding: 30px 0 36px;
    border-top: 1px solid var(--line);
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #66758a;
    font-size: 11px;
}

.footer-links {
    display: flex;
    gap: 22px;
}

.footer-links a {
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--muted-light);
}

/* Shared side navigation */
.side-nav {
    position: fixed;
    top: 96px;
    left: 16px;
    z-index: 40;
    display: grid;
    width: 148px;
    gap: 7px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(11, 22, 40, 0.92);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
}

.side-nav-link {
    display: grid;
    min-height: 46px;
    align-items: center;
    gap: 9px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--muted-light);
    grid-template-columns: 22px 1fr;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.side-nav-link:hover {
    border-color: var(--line);
    color: var(--text);
    background: rgba(255, 255, 255, 0.035);
}

.side-nav-link.is-active {
    border-color: var(--line-strong);
    color: var(--gold-light);
    background: rgba(214, 179, 106, 0.09);
}

.side-nav-number {
    color: #68778d;
    font-family: Consolas, "Courier New", monospace;
    font-size: 10px;
}

.side-nav-link.is-active .side-nav-number {
    color: var(--gold);
}

.side-nav-text {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

body.has-side-nav > main,
body.has-side-nav > footer {
    padding-left: 168px;
}

/* Shared utility pages */
.utility-page {
    padding-top: 42px;
    padding-bottom: 72px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.page-heading h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 600;
    letter-spacing: -0.04em;
}

.page-heading p {
    max-width: 620px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

.page-count {
    color: var(--muted);
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
    white-space: nowrap;
}

.utility-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.utility-toolbar .search-shell {
    width: min(100%, 580px);
    min-height: 46px;
}

.filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.filter-chip {
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    font-size: 11px;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
    border-color: var(--line-strong);
    color: var(--gold-light);
    background: rgba(214, 179, 106, 0.07);
}

.market-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.market-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.024);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.market-card:hover {
    transform: translateY(-3px);
    border-color: rgba(214, 179, 106, 0.3);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.market-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--panel-solid);
}

.market-image::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(to top, rgba(7, 16, 31, 0.35), transparent 55%);
    pointer-events: none;
}

.market-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.market-card:hover .market-image img {
    transform: scale(1.035);
}

.market-card-body {
    padding: 17px;
}

.market-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

.market-category {
    color: var(--gold);
    font-size: 10px;
    font-weight: 600;
}

.market-code {
    color: #66758a;
    font-family: Consolas, monospace;
    font-size: 9px;
}

.market-card h2,
.market-card h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
}

.market-card-description {
    display: -webkit-box;
    min-height: 39px;
    overflow: hidden;
    margin: 8px 0 15px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.market-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
}

.market-price {
    color: var(--gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 600;
}

.market-card-footer .btn {
    min-height: 34px;
    padding: 0 13px;
    border-radius: 8px;
    font-size: 11px;
}

.catalog-empty {
    padding: 70px 24px;
    border: 1px dashed var(--line);
    border-radius: 15px;
    color: var(--muted);
    text-align: center;
    grid-column: 1 / -1;
}

.catalog-empty strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 16px;
}

.download-list {
    display: grid;
    gap: 10px;
}

.download-card {
    display: grid;
    min-height: 94px;
    align-items: center;
    gap: 20px;
    padding: 16px 19px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.022);
    grid-template-columns: minmax(0, 1fr) 170px 120px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.download-card:hover {
    border-color: rgba(214, 179, 106, 0.25);
    background: rgba(255, 255, 255, 0.034);
}

.download-card-main {
    min-width: 0;
}

.download-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
}

.download-card h2 {
    overflow: hidden;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-card p {
    overflow: hidden;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.65;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-meta {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 10px;
}

.download-meta strong {
    color: var(--muted-light);
    font-weight: 500;
}

.download-action {
    display: flex;
    justify-content: flex-end;
}

.download-action .btn {
    min-height: 36px;
    min-width: 100px;
    padding: 0 13px;
    font-size: 11px;
}

.btn-disabled {
    border-color: var(--line);
    color: #617087;
    background: rgba(255, 255, 255, 0.025);
    cursor: not-allowed;
    pointer-events: none;
}

.version-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.version-card {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.024);
    grid-template-columns: 42% 1fr;
}

.version-image {
    min-height: 210px;
    overflow: hidden;
    background: var(--panel-solid);
}

.version-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.version-card:hover .version-image img {
    transform: scale(1.035);
}

.version-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 20px;
}

.version-body h2 {
    margin: 9px 0 10px;
    font-size: 18px;
    font-weight: 600;
}

.version-body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.version-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
}

.version-info {
    color: #718097;
    font-size: 10px;
}

.version-footer .btn {
    min-height: 35px;
    padding: 0 13px;
    font-size: 11px;
}

/* List space */
.upload-layout {
    display: grid;
    align-items: stretch;
    gap: 18px;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
}

.upload-panel,
.rules-panel {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.024);
}

.upload-zone {
    display: grid;
    min-height: 210px;
    place-items: center;
    padding: 28px;
    border: 1px dashed rgba(214, 179, 106, 0.45);
    border-radius: 12px;
    background: rgba(214, 179, 106, 0.035);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.upload-zone:hover,
.upload-zone.is-dragging {
    border-color: var(--gold-light);
    background: rgba(214, 179, 106, 0.075);
}

.upload-zone input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.upload-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin: 0 auto 15px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    color: var(--gold-light);
    font-size: 22px;
}

.upload-zone strong {
    display: block;
    margin-bottom: 7px;
    font-size: 15px;
}

.upload-zone span {
    color: var(--muted);
    font-size: 11px;
}

.selected-file {
    min-height: 20px;
    margin: 13px 0;
    color: var(--muted-light);
    font-size: 11px;
    text-align: center;
}

.upload-submit {
    width: 100%;
}

.upload-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.rules-panel h2 {
    margin: 0 0 18px;
    font-size: 17px;
    font-weight: 600;
}

.rule-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rule-list li {
    display: grid;
    gap: 11px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.65;
    grid-template-columns: 23px 1fr;
}

.rule-index {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--gold);
    font-family: Consolas, monospace;
    font-size: 9px;
}

.upload-result {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid rgba(73, 197, 155, 0.28);
    border-radius: 13px;
    background: rgba(73, 197, 155, 0.055);
}

.upload-result h2 {
    margin: 0 0 7px;
    color: #7cdbbd;
    font-size: 16px;
}

.upload-result p {
    margin: 0 0 13px;
    color: var(--muted);
    font-size: 11px;
}

.result-link-row {
    display: flex;
    gap: 9px;
}

.result-link {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted-light);
    background: rgba(0, 0, 0, 0.14);
    font-family: Consolas, monospace;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-link-row .btn {
    min-height: 40px;
    flex: 0 0 auto;
    padding: 0 14px;
    font-size: 11px;
}

.form-message {
    min-height: 20px;
    margin-top: 11px;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.form-message.is-error {
    color: #ff9da2;
}

.list-view-page {
    padding-top: 42px;
    padding-bottom: 70px;
}

.list-document {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.025);
}

.list-document-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
}

.list-document pre {
    min-height: 300px;
    margin: 0;
    overflow: auto;
    padding: 22px;
    color: var(--muted-light);
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Compact catalog homepage */
.home-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 32px;
}

.home-intro h1 {
    margin: 0;
    font-size: clamp(32px, 4.2vw, 48px);
    font-weight: 700;
    letter-spacing: -0.045em;
    background: linear-gradient(135deg, #f0d493 0%, #d6b36a 50%, #a77b31 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(214, 179, 106, 0.3));
}

.home-intro p {
    max-width: 720px;
    margin: 13px 0 0;
    color: var(--muted-light);
    font-size: 14px;
    line-height: 1.75;
}

.home-intro .btn {
    flex: 0 0 auto;
}

.catalog-section {
    padding-bottom: 48px;
}

.catalog-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
}

.catalog-heading h2 {
    margin: 0;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.catalog-heading p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.catalog-section .catalog-toolbar {
    margin-bottom: 14px;
}

.catalog-section .search-shell {
    width: 100%;
    min-height: 46px;
}

.product-scroll {
    height: clamp(160px, 34vh, 380px);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.018);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18);
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.product-scroll::-webkit-scrollbar {
    width: 10px;
}

.product-scroll::-webkit-scrollbar-track {
    border-radius: 0 16px 16px 0;
    background: rgba(255, 255, 255, 0.018);
}

.product-scroll::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 999px;
    background: #45546a;
    background-clip: padding-box;
}

.product-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--gold-deep);
    background-clip: padding-box;
}

.product-list {
    min-height: 100%;
}

.product-row {
    position: relative;
    display: grid;
    min-height: 84px;
    align-items: center;
    gap: 22px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--line);
    grid-template-columns: minmax(0, 1fr) 150px 80px 154px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.product-row:last-child {
    border-bottom: 0;
}

.product-row:hover {
    z-index: 1;
    background: linear-gradient(90deg, rgba(214, 179, 106, 0.055), rgba(255, 255, 255, 0.018));
}

.product-main {
    min-width: 0;
}

.product-labels {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 5px;
}

.product-labels .tag {
    min-height: 21px;
    padding: 0 8px;
    font-size: 10px;
}

.product-row h3 {
    overflow: hidden;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.015em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-row h3 a {
    transition: color 0.2s ease;
}

.product-row h3 a:hover {
    color: var(--gold-light);
}

.product-quick-meta {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 11px;
}

.product-quick-meta span:first-child {
    color: var(--muted-light);
}

.compact-price {
    color: var(--gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 600;
    white-space: nowrap;
}

.compact-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.compact-actions .btn {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 12px;
}

.compact-actions .demo-link {
    white-space: nowrap;
}

.product-list .empty-state {
    display: grid;
    min-height: 258px;
    align-content: center;
    border: 0;
    border-radius: 0;
}

.compact-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 50px;
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
    font-size: 12px;
}

.compact-help a {
    color: var(--gold-light);
    font-weight: 600;
    white-space: nowrap;
}

/* Checkout */
.checkout-page {
    min-height: calc(100vh - 146px);
    padding-top: 40px;
    padding-bottom: 80px;
}

.checkout-layout {
    display: grid;
    align-items: start;
    gap: 20px;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
}

.checkout-card {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 55%),
        var(--panel);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
}

.checkout-kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.purchase-card h1,
.payment-card h2 {
    margin: 0;
    font-weight: 600;
}

.purchase-card h1 {
    max-width: 620px;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.35;
}

.payment-card h2 {
    font-size: 24px;
}

.checkout-product-meta {
    display: grid;
    gap: 10px;
    margin: 26px 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checkout-product-meta > div {
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.12);
}

.checkout-product-meta span,
.checkout-product-meta strong {
    display: block;
}

.checkout-product-meta span {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 10px;
}

.checkout-product-meta strong {
    color: var(--muted-light);
    font-size: 13px;
    font-weight: 500;
}

.checkout-product-meta .checkout-price {
    color: var(--gold-light);
    font-size: 18px;
    font-weight: 600;
}

.checkout-steps {
    display: grid;
    gap: 13px;
    margin: 0 0 26px;
    padding: 0;
    color: var(--muted-light);
    font-size: 12px;
    line-height: 1.65;
    list-style: none;
}

.checkout-steps li {
    display: grid;
    align-items: center;
    gap: 12px;
    grid-template-columns: 28px 1fr;
}

.checkout-steps span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--gold);
    font-family: Consolas, "Courier New", monospace;
    font-size: 9px;
}

.checkout-payment,
.checkout-submit {
    width: 100%;
}

.checkout-note,
.checkout-intro {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}

.checkout-note {
    margin: 12px 0 0;
    text-align: center;
}

.checkout-intro {
    margin: 9px 0 22px;
}

.checkout-start-form,
.manual-lookup form {
    display: grid;
    gap: 15px;
}

.checkout-start-form {
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.checkout-field {
    display: grid;
    gap: 7px;
}

.checkout-field span {
    color: var(--muted-light);
    font-size: 11px;
}

.checkout-field input {
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: none;
    color: var(--text);
    background: rgba(0, 0, 0, 0.16);
    font-size: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-field input:focus {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 3px rgba(214, 179, 106, 0.08);
}

.checkout-field input::placeholder {
    color: #617087;
}

.checkout-submit:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
}

.checkout-start-form .form-message,
.manual-lookup .form-message {
    margin: -3px 0 0;
}

.payment-empty {
    display: grid;
    min-height: 320px;
    margin-top: 22px;
    place-content: center;
    gap: 7px;
    border: 1px dashed var(--line-strong);
    border-radius: 14px;
    color: var(--muted);
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
}

.payment-empty strong {
    color: var(--muted-light);
    font-size: 14px;
    font-weight: 500;
}

.payment-empty span {
    font-size: 11px;
}

.payment-active {
    display: grid;
    justify-items: center;
    margin-top: 22px;
}

.payment-qr {
    display: grid;
    width: 240px;
    min-height: 240px;
    padding: 10px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    color: #314055;
    background: #fff;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.payment-qr img,
.payment-qr canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.payment-order {
    max-width: 100%;
    margin: 14px 0 0;
    color: var(--muted);
    font-family: Consolas, "Courier New", monospace;
    font-size: 10px;
    overflow-wrap: anywhere;
}

.payment-order strong {
    color: var(--muted-light);
    font-weight: 500;
}

.payment-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 18px;
    color: var(--gold-light);
    font-size: 12px;
}

.payment-status > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 5px rgba(214, 179, 106, 0.1);
    animation: paymentPulse 1.5s ease-in-out infinite;
}

.payment-status.is-paid {
    color: #7cdbbd;
}

.payment-status.is-paid > span {
    background: #49c59b;
    box-shadow: 0 0 0 5px rgba(73, 197, 155, 0.1);
    animation: none;
}

@keyframes paymentPulse {
    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

.manual-lookup {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.manual-lookup summary {
    color: var(--muted-light);
    font-size: 11px;
    cursor: pointer;
    user-select: none;
}

.manual-lookup[open] summary {
    color: var(--gold-light);
}

.manual-lookup .checkout-intro {
    margin-top: 14px;
}

.delivery-result {
    display: grid;
    gap: 9px;
    margin-top: 20px;
    padding: 18px;
    border: 1px solid rgba(73, 197, 155, 0.3);
    border-radius: 12px;
    background: rgba(73, 197, 155, 0.055);
}

.delivery-result > span {
    color: #7cdbbd;
    font-size: 10px;
}

.delivery-result > strong {
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 600;
}

.delivery-direct-link,
.delivery-history-link {
    width: fit-content;
    max-width: 100%;
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.delivery-direct-link[aria-disabled="true"],
.delivery-direct-link.is-placeholder {
    cursor: default;
    text-decoration: none;
}

.order-history-card {
    max-width: 760px;
    margin: 0 auto;
}

.order-history-card h1 {
    margin: 0;
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 600;
}

.order-history-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.order-history-item {
    display: grid;
    gap: 11px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.12);
}

.order-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.order-history-head strong {
    font-size: 14px;
    font-weight: 600;
}

.order-history-head time,
.order-history-number {
    color: var(--muted);
    font-size: 10px;
}

.order-history-number {
    display: flex;
    gap: 9px;
    margin: 0;
}

.order-history-number code {
    color: var(--muted-light);
    overflow-wrap: anywhere;
}

.contact-page-card {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    border-color: var(--line-strong);
    background:
        linear-gradient(145deg, rgba(214, 179, 106, 0.07), transparent),
        rgba(255, 255, 255, 0.025);
}

.contact-page-card h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600;
}

.contact-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 360px;
    margin: 26px auto 18px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.14);
}

.contact-account span {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.12em;
}

.contact-account strong {
    color: var(--gold-light);
    font-size: 20px;
    letter-spacing: 0.08em;
}

.contact-page-card .form-message {
    min-height: 20px;
    margin-bottom: 0;
}

/* Detail page */
.detail-page {
    padding-top: 40px;
    padding-bottom: 100px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 12px;
}

.breadcrumb a {
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--gold-light);
}

.breadcrumb-separator {
    color: #415069;
}

.page-state {
    padding: 110px 24px;
    color: var(--muted);
    text-align: center;
}

.page-state strong {
    display: block;
    margin-bottom: 10px;
    color: var(--text);
    font-size: 20px;
}

.page-state-actions {
    margin-top: 24px;
}

.is-hidden {
    display: none !important;
}

.detail-hero {
    display: grid;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(circle at 90% 15%, rgba(214, 179, 106, 0.13), transparent 22rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 52%),
        var(--panel);
    box-shadow: var(--shadow);
    grid-template-columns: minmax(0, 1fr) 300px;
}

.detail-hero-copy {
    padding: 44px 46px;
}

.detail-title-line {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
}

.detail-id {
    color: var(--muted);
    font-family: Consolas, monospace;
    font-size: 11px;
}

.detail-hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(30px, 4.5vw, 48px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.26;
}

.detail-subtitle {
    max-width: 660px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 30px;
}

.detail-meta-item span {
    display: block;
    margin-bottom: 6px;
    color: #66758a;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.detail-meta-item strong {
    color: var(--muted-light);
    font-size: 13px;
    font-weight: 500;
}

.purchase-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 38px;
    border-left: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.1);
}

.purchase-panel > span {
    color: var(--muted);
    font-size: 11px;
}

.detail-price {
    margin: 9px 0 26px;
    color: var(--gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    font-weight: 600;
}

.purchase-panel .btn {
    width: 100%;
}

.detail-layout {
    display: grid;
    align-items: start;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 300px;
}

.detail-content,
.detail-aside {
    display: grid;
    gap: 24px;
}

.detail-aside {
    position: sticky;
    top: 100px;
}

.content-card {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.section-title h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.section-title span {
    color: #66758a;
    font-family: Consolas, monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
}

.video-shell {
    position: relative;
    display: grid;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background:
        radial-gradient(circle at center, #17263d, #030712 68%);
}

.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-shell.is-missing video {
    opacity: 0;
}

.video-fallback {
    position: absolute;
    display: none;
    max-width: 320px;
    padding: 20px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

.video-shell.is-missing .video-fallback {
    display: block;
}

.video-fallback strong {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 15px;
}

.video-note {
    margin: 13px 0 0;
    color: #66758a;
    font-size: 11px;
}

.description {
    color: var(--muted-light);
    font-size: 14px;
    line-height: 1.95;
}

.description p {
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid rgba(174, 194, 220, 0.08);
}

.description p:first-child {
    padding-top: 0;
}

.description p:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.aside-title {
    margin: 0 0 22px;
    font-size: 16px;
    font-weight: 600;
}

.guarantee-list {
    display: grid;
    gap: 18px;
}

.guarantee-item {
    display: grid;
    align-items: start;
    gap: 13px;
    grid-template-columns: 28px 1fr;
}

.guarantee-icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--gold-light);
    font-family: Georgia, serif;
    font-size: 11px;
}

.guarantee-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--muted-light);
    font-size: 13px;
    font-weight: 600;
}

.guarantee-item span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

@media (max-width: 980px) {
    .main-nav {
        display: none;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 48px;
        padding-top: 70px;
    }

    .hero-copy {
        max-width: 760px;
    }

    .hero-panel {
        width: min(100%, 620px);
    }

    .trust-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-item:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .trust-item:nth-child(4) {
        border-top: 1px solid var(--line);
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .detail-hero {
        grid-template-columns: 1fr;
    }

    .purchase-panel {
        display: grid;
        align-items: center;
        gap: 12px 24px;
        padding: 28px 46px;
        border-top: 1px solid var(--line);
        border-left: 0;
        grid-template-columns: 1fr auto;
    }

    .purchase-panel > span,
    .detail-price {
        grid-column: 1;
    }

    .detail-price {
        margin: 0;
    }

    .purchase-panel .btn {
        min-width: 200px;
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-aside {
        position: static;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(calc(100% - 30px), 1180px);
    }

    .nav-row {
        min-height: 66px;
    }

    .brand-note,
    .header-contact {
        display: none;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .hero {
        gap: 36px;
        padding-top: 52px;
        padding-bottom: 50px;
    }

    .hero h1 {
        font-size: clamp(38px, 12vw, 54px);
    }

    .hero-lead {
        font-size: 15px;
        line-height: 1.8;
    }

    .hero-actions .btn {
        flex: 1;
    }

    .hero-panel {
        padding: 22px;
        border-radius: 17px;
    }

    .quality-item {
        grid-template-columns: 34px 1fr;
    }

    .quality-state {
        display: none;
    }

    .trust-strip {
        margin-bottom: 78px;
    }

    .trust-item {
        padding: 20px 16px;
    }

    .section {
        padding-bottom: 78px;
    }

    .section-heading {
        display: block;
        margin-bottom: 25px;
    }

    .section-heading > p {
        margin-top: 16px;
    }

    .catalog-toolbar {
        display: block;
    }

    .search-shell {
        width: 100%;
    }

    .result-count {
        display: block;
        margin-top: 12px;
    }

    .product-card {
        padding: 22px;
    }

    .product-meta {
        margin-right: -22px;
        margin-left: -22px;
        padding-right: 22px;
        padding-left: 22px;
    }

    .product-footer {
        align-items: center;
    }

    .card-actions {
        align-items: flex-end;
        flex-direction: column-reverse;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .cta {
        display: block;
        margin-bottom: 70px;
        padding: 34px 26px;
    }

    .cta .btn {
        width: 100%;
        margin-top: 25px;
    }

    .footer-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-page {
        padding-top: 24px;
        padding-bottom: 70px;
    }

    .detail-hero-copy {
        padding: 30px 24px;
    }

    .detail-hero h1 {
        font-size: 31px;
    }

    .purchase-panel {
        display: block;
        padding: 26px 24px;
    }

    .detail-price {
        margin: 7px 0 20px;
    }

    .purchase-panel .btn {
        width: 100%;
    }

    .content-card {
        padding: 22px;
    }

    .detail-aside {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .home-intro {
        padding-top: 38px;
        padding-bottom: 28px;
    }

    .product-row {
        gap: 14px;
        grid-template-columns: minmax(0, 1fr) 74px 140px;
    }

    .product-quick-meta {
        display: none;
    }
}

@media (max-width: 560px) {
    .home-intro {
        display: block;
    }

    .home-intro h1 {
        font-size: 34px;
    }

    .home-intro .btn {
        width: 100%;
        margin-top: 20px;
    }

    .product-scroll {
        height: clamp(200px, 36vh, 320px);
    }

    .product-row {
        min-height: 106px;
        gap: 6px 12px;
        padding: 10px 12px;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .product-main {
        grid-column: 1;
    }

    .compact-price {
        align-self: end;
        grid-column: 2;
        grid-row: 1;
    }

    .compact-actions {
        justify-content: space-between;
        padding-top: 6px;
        border-top: 1px solid var(--line);
        grid-column: 1 / -1;
    }

    .compact-actions .btn {
        min-width: 90px;
        min-height: 32px;
    }

    .compact-help {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 1100px) {
    .market-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .version-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .side-nav {
        position: sticky;
        top: 76px;
        left: auto;
        display: flex;
        width: 100%;
        overflow-x: auto;
        gap: 7px;
        padding: 8px 15px;
        border: 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        background: rgba(7, 16, 31, 0.94);
        box-shadow: none;
    }

    .side-nav-link {
        min-width: 118px;
        min-height: 39px;
        flex: 1 0 auto;
    }

    body.has-side-nav > main,
    body.has-side-nav > footer {
        padding-left: 0;
    }

    .upload-layout {
        grid-template-columns: 1fr;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .utility-page {
        padding-top: 30px;
        padding-bottom: 55px;
    }

    .page-heading {
        display: block;
        margin-bottom: 22px;
    }

    .page-count {
        display: block;
        margin-top: 12px;
    }

    .utility-toolbar {
        display: block;
    }

    .utility-toolbar .search-shell {
        width: 100%;
    }

    .filter-chips {
        margin-top: 12px;
    }

    .market-grid {
        grid-template-columns: 1fr;
    }

    .download-card {
        gap: 12px;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .download-meta {
        grid-column: 1;
    }

    .download-action {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .version-card {
        grid-template-columns: 1fr;
    }

    .version-image {
        min-height: 190px;
        max-height: 240px;
    }

    .upload-panel,
    .rules-panel {
        padding: 18px;
    }

    .upload-zone {
        min-height: 180px;
        padding: 22px 16px;
    }

    .result-link-row {
        align-items: stretch;
        flex-direction: column;
    }

    .checkout-card {
        padding: 20px;
    }

    .checkout-product-meta {
        grid-template-columns: 1fr;
    }
}

/* ============ 定制页面移动端适配 ============ */

/* 小屏设备 (手机) */
@media (max-width: 768px) {
    /* 导航栏适配 */
    .site-header .nav-row {
        min-height: 60px;
        gap: 12px;
    }

    .site-header .main-nav {
        display: none;
    }

    .header-right {
        gap: 10px;
    }

    .header-phone {
        padding: 6px 10px;
        font-size: 11px;
    }

    .header-phone .phone-icon {
        width: 20px;
        height: 20px;
    }

    .user-area {
        gap: 6px;
    }

    .btn-login {
        padding: 6px 14px;
        font-size: 13px;
    }

    .user-info {
        font-size: 12px;
        gap: 6px;
    }

    .user-info .username {
        font-size: 13px;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .btn-logout {
        padding: 4px 10px;
        font-size: 11px;
    }

    /* 首页介绍 */
    .home-intro {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 28px 0 20px;
    }

    .home-intro h1 {
        font-size: clamp(26px, 7vw, 36px);
        line-height: 1.2;
    }

    .home-intro p {
        font-size: 13px;
        line-height: 1.7;
    }

    /* 产品类型标题 */
    .catalog-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 12px;
    }

    .catalog-heading h2 {
        font-size: 20px;
    }

    .result-count {
        font-size: 11px;
    }

    /* 筛选栏适配 */
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 12px;
    }

    .filter-buttons {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .search-box input {
        width: 100%;
        padding: 8px 12px;
        font-size: 13px;
    }

    /* 产品表格改为卡片式布局 */
    .product-table-scroll {
        max-height: none;
        overflow: visible;
        border: none;
        background: transparent;
    }

    .product-table {
        min-width: 0;
    }

    .product-table thead {
        display: none;
    }

    .product-table,
    .product-table tbody,
    .product-table tr,
    .product-table td {
        display: block;
    }

    .product-table tr {
        position: relative;
        margin-bottom: 12px;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: var(--panel);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .product-table .product-row {
        cursor: pointer;
        transition: background 0.2s, transform 0.15s;
    }

    .product-table .product-row:hover {
        background: var(--panel) !important;
        transform: translateY(-1px);
    }

    .product-table .product-row:active {
        transform: scale(0.98);
    }

    .product-table td {
        padding: 6px 0;
        border: none;
        max-width: 100%;
        white-space: normal !important;
        overflow: visible;
        text-overflow: clip;
        font-size: 13px;
        color: var(--muted-light);
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    .product-table td::before {
        content: attr(data-label) "：";
        font-weight: 500;
        color: var(--muted);
        font-size: 12px;
        flex-shrink: 0;
    }

    /* 序号作为卡片角标显示 */
    .product-table td:first-child {
        display: flex !important;
        position: absolute;
        top: 10px;
        right: 12px;
        padding: 2px 8px !important;
        font-size: 11px;
        color: var(--muted);
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
    }

    .product-table td:first-child::before {
        display: none;
    }

    /* 规格型号突出显示 */
    .product-table .col-model {
        color: var(--gold-light) !important;
        font-weight: 600 !important;
        font-size: 15px !important;
        border-bottom: 1px solid var(--line);
        padding-bottom: 10px !important;
        padding-right: 48px !important;
        margin-bottom: 4px;
    }

    .product-table .col-model::before {
        display: none;
    }

    .price-discount {
        font-size: 15px;
    }

    /* 空状态 */
    .product-table .empty-state {
        display: block;
        padding: 40px 20px;
    }

    /* 登录弹窗适配 */
    .login-modal-content {
        width: 92%;
        max-width: 360px;
        margin: 20px;
    }

    .login-modal-header {
        padding: 16px 20px;
    }

    .login-modal-header h3 {
        font-size: 16px;
    }

    .login-modal-body {
        padding: 20px;
    }

    .login-field input {
        font-size: 16px;
        padding: 10px 12px;
    }

    .btn-login-submit {
        padding: 12px;
        font-size: 15px;
    }

    /* 详情弹窗适配 */
    .detail-modal {
        padding: 0;
        align-items: flex-end;
    }

    .detail-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
        margin: 0;
    }

    .detail-modal-header {
        padding: 16px 20px;
    }

    .detail-modal-header h3 {
        font-size: 16px;
    }

    .detail-modal-body {
        padding: 20px 16px 30px;
    }

    .detail-image-box {
        min-height: 220px;
        margin-bottom: 16px;
    }

    .detail-image-box img {
        max-height: 280px;
    }

    .detail-meta {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .detail-meta-item {
        padding: 8px 10px;
    }

    .detail-meta-item span {
        font-size: 11px;
    }

    .detail-meta-item strong {
        font-size: 13px;
    }

    .detail-info-row {
        font-size: 13px;
        padding: 8px 0;
    }

    .detail-info-label {
        width: 80px;
        font-size: 12px;
    }

    .price-highlight {
        font-size: 15px;
    }

    .detail-section-title {
        font-size: 14px;
        margin-top: 16px;
    }

    .detail-desc-list li {
        font-size: 13px;
        padding: 8px 0;
    }

    /* 页脚适配 */
    .footer-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    /* 容器宽度优化 */
    .container {
        width: min(100% - 24px, 1180px);
    }
}

/* 小屏幕手机适配 (≤480px) */
@media (max-width: 480px) {
    .container {
        width: min(100% - 20px, 1180px);
    }

    /* 产品卡片进一步优化 */
    .product-table tr {
        padding: 14px;
        margin-bottom: 10px;
    }

    .product-table td {
        font-size: 12px;
        padding: 5px 0;
    }

    .product-table .col-model {
        font-size: 14px !important;
    }

    .price-discount {
        font-size: 14px;
    }

    /* 价格单元格样式 */
    .price-cell {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .price-cell .stock-value {
        font-size: 13px;
        color: #666;
        font-weight: 500;
        white-space: nowrap;
    }

    /* 表头副标题 */
    .th-sub {
        display: block;
        font-size: 11px;
        font-weight: normal;
        color: #999;
        margin-top: 3px;
    }

    /* 详情页库存 */
    .detail-stock {
        margin-left: 8px;
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
    }

    /* 库存颜色状态 */
    .stock-green {
        color: #4CAF50 !important;
    }
    .stock-red {
        color: #f44336 !important;
    }

    /* 筛选按钮更紧凑 */
    .filter-btn {
        padding: 5px 12px;
        font-size: 12px;
    }

    /* 搜索框 */
    .search-box input {
        font-size: 15px; /* 防止iOS自动缩放 */
    }

    /* 详情弹窗图片 */
    .detail-image-box {
        min-height: 180px;
    }

    .detail-image-box img {
        max-height: 240px;
    }

    /* meta信息改为单列 */
    .detail-meta {
        grid-template-columns: 1fr;
    }
}

/* 横屏手机适配 */
@media (max-height: 500px) and (orientation: landscape) {
    .detail-modal-content {
        max-height: 95vh;
    }

    .detail-modal-body {
        padding: 12px 16px;
    }

    .detail-image-box {
        min-height: 140px;
    }

    .detail-image-box img {
        max-height: 160px;
    }
}
