:root {
    color-scheme: light;
    --page: #f6f8fc;
    --surface: #fff;
    --ink: #192c45;
    --muted: #637187;
    --border: #e5ebf3;
    --soft: #f1f5fa;
    --accent-soft: rgba(var(--primary-rgb), .075);
    --accent-text: color-mix(in srgb, var(--primary) 35%, #10253f);
    --success: #167047;
    --success-soft: #edf8f1;
    --warning: #865419;
    --warning-soft: #fff6e6;
    --error: #b52d40;
    --error-soft: #fff2f3;
    --focus: #174b80;
    --radius: 22px;
    --shadow: 0 4px 22px rgba(25, 44, 69, .035);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; scrollbar-gutter: stable; }
body {
    margin: 0;
    min-width: 0;
    background: var(--page);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button, input, select, textarea { max-width: 100%; }
button { border: 0; background: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.4; overflow-wrap: anywhere; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; }
button:disabled { opacity: .55; }
::selection { background: rgba(var(--primary-rgb), .18); color: var(--ink); }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}
[v-cloak] { display: none !important; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.ql-icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 1600; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.booting { min-height: 65vh; display: grid; place-items: center; padding: 24px; color: var(--muted); }
.noscript-message { margin: 32px auto; width: min(640px, calc(100% - 32px)); padding: 20px; border: 1px solid #edd5b2; border-radius: 16px; background: var(--warning-soft); color: var(--warning); }
#qinglan-app { display: flex; flex-direction: column; min-height: 100dvh; }
.wrap { width: min(1320px, calc(100% - 64px)); margin-inline: auto; }
.page-main { flex: 1; padding-bottom: 56px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

.button, .icon-button, .text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.button { padding: 11px 20px; border: 1px solid transparent; }
.button.primary, .hero-button { background: var(--primary); color: var(--on-primary); box-shadow: 0 4px 12px rgba(var(--primary-rgb), .12); }
.button.secondary { background: var(--surface); border-color: var(--border); color: var(--ink); }
.button.compact { padding: 9px 13px; font-size: 13px; }
.icon-button { padding: 11px; background: var(--soft); }
.text-button { padding: 8px 6px; background: transparent; color: var(--accent-text); font-size: 13px; }
.text-button .ql-icon { width: 16px; height: 16px; }
.button .ql-icon { width: 18px; height: 18px; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 112px; padding-block: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; min-height: 44px; font-size: 22px; font-weight: 750; letter-spacing: -.025em; }
.brand > img, .brand-mark { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; }
.brand > img { object-fit: contain; }
.brand-mark { display: grid; place-items: center; color: var(--on-primary); background: var(--primary); box-shadow: 0 5px 14px rgba(var(--primary-rgb), .15); }
.brand-mark .ql-icon { width: 25px; height: 25px; }
.brand-name { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desktop-nav { display: flex; align-items: center; gap: 4px; padding: 5px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.desktop-nav > a, .desktop-nav > button { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background-color .18s ease, color .18s ease; }
.desktop-nav > .active { background: var(--primary); color: var(--on-primary); }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-search { background: transparent; border: 1px solid var(--border); }
.header-account { border-radius: 999px; padding-inline: 18px; }
.mobile-nav, .mobile-notice { display: none; }

.hero-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr) 226px; align-items: stretch; gap: 20px; }
.hero-layout > *, .catalog-heading > *, .results-heading > *, .product-dialog-body > * { min-width: 0; }
.announcement-card { display: flex; flex-direction: column; padding: 18px 20px 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.panel-heading h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.small-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); }
.small-icon .ql-icon { width: 17px; height: 17px; }
.notice-preview { max-height: 177px; overflow: auto; padding-right: 3px; scrollbar-width: thin; }
.notice-placeholder { padding-top: 8px; font-size: 14px; }
.notice-placeholder p { margin-bottom: 9px; font-weight: 650; }
.notice-placeholder > span { display: block; color: var(--muted); font-size: 13px; line-height: 1.9; }
.notice-placeholder > a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; color: var(--accent-text); font-size: 13px; font-weight: 600; }
.notice-placeholder > a .ql-icon { width: 16px; height: 16px; }
.notice-foot { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-block: 13px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.status-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--success); }
.hero-banner { position: relative; display: flex; align-items: center; min-height: 310px; overflow: hidden; isolation: isolate; border: 1px solid rgba(var(--primary-rgb), .08); border-radius: var(--radius); background: linear-gradient(120deg, #edf5ff, rgba(var(--primary-rgb), .12)); }
.hero-banner::before { content: ""; position: absolute; z-index: -1; top: -180px; right: -160px; width: 450px; height: 450px; border: 56px solid rgba(255, 255, 255, .32); border-radius: 50%; }
.hero-copy { position: relative; z-index: 2; width: 67%; padding: 30px 0 32px 32px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-size: 12px; font-weight: 650; letter-spacing: .03em; }
.hero-eyebrow .ql-icon { width: 15px; height: 15px; }
.hero-copy h1 { margin-top: 13px; font-size: clamp(26px, 2.3vw, 34px); line-height: 1.45; font-weight: 750; letter-spacing: -.035em; text-wrap: balance; }
.hero-copy p { margin-top: 12px; max-width: 300px; color: #52677f; font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.hero-button { margin-top: 22px; padding-inline: 18px; }
.hero-art { position: absolute; z-index: 1; top: 50%; right: 12px; width: 192px; height: 236px; transform: translateY(-50%); pointer-events: none; }
.orbit { position: absolute; border: 1px solid rgba(var(--primary-rgb), .13); border-radius: 50%; }
.orbit-one { width: 224px; height: 224px; left: -9px; top: 9px; }
.orbit-two { width: 171px; height: 171px; top: 36px; left: 19px; border-style: dashed; }
.art-card { position: absolute; width: 125px; height: 168px; border-radius: 20px; }
.art-card-back { top: 44px; left: 24px; transform: rotate(-16deg); background: rgba(var(--primary-rgb), .2); border: 1px solid rgba(255, 255, 255, .5); }
.art-card-front { top: 33px; left: 48px; padding: 24px 20px; transform: rotate(10deg); border: 1px solid #fff; background: linear-gradient(145deg, #fff, #f6faff); box-shadow: 0 17px 28px rgba(var(--primary-rgb), .17); }
.art-card-front > .ql-icon { width: 45px; height: 45px; color: var(--primary); stroke-width: 1.5; }
.art-card-front > i { display: block; height: 5px; margin-top: 15px; border-radius: 4px; background: rgba(var(--primary-rgb), .13); }
.art-card-front > i + i { width: 66%; margin-top: 8px; }
.art-card-front > span { position: absolute; display: grid; place-items: center; right: -14px; bottom: 18px; width: 39px; height: 39px; border: 3px solid #fff; border-radius: 50%; background: var(--primary); color: var(--on-primary); }
.art-card-front > span .ql-icon { width: 19px; height: 19px; }
.art-star { position: absolute; display: grid; place-items: center; top: 22px; left: 8px; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--primary); transform: rotate(-12deg); box-shadow: 0 7px 20px rgba(var(--primary-rgb), .1); }
.art-star .ql-icon { width: 22px; height: 22px; }
.hero-banner.has-image { padding: 0; background: var(--soft); }
.has-image::before { display: none; }
.banner-image-link, .banner-image { position: absolute; inset: 0; width: 100%; height: 100%; }
.banner-image-link > img, .banner-image { width: 100%; height: 100%; object-fit: cover; }
.banner-image-link:focus-visible { outline-offset: -6px; }
.banner-controls { position: absolute; z-index: 3; bottom: 8px; left: 50%; display: flex; flex-wrap: wrap; justify-content: center; width: max-content; max-width: calc(100% - 16px); transform: translateX(-50%); }
.banner-controls > button { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0; border-radius: 12px; }
.banner-controls > button::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .65); box-shadow: 0 1px 5px rgba(25, 44, 69, .25); }
.banner-controls > button.active::before { width: 22px; background: #fff; }
.welcome-card { display: flex; flex-direction: column; align-items: center; padding: 25px 20px 16px; text-align: center; }
.welcome-avatar { position: relative; display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 14px; border: 1px solid rgba(var(--primary-rgb), .08); border-radius: 50%; color: var(--accent-text); background: var(--accent-soft); }
.welcome-avatar > .ql-icon { width: 28px; height: 28px; }
.welcome-avatar > span { position: absolute; bottom: 1px; right: 1px; width: 14px; height: 14px; border: 3px solid #fff; border-radius: 50%; background: var(--primary); }
.welcome-card h2 { max-width: 100%; font-size: 17px; font-weight: 700; }
.welcome-card > p { margin: 7px 0 17px; color: var(--muted); font-size: 12px; }
.welcome-login { width: 100%; }
.welcome-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin-top: 19px; padding-top: 13px; border-top: 1px solid var(--border); }
.welcome-links > :is(a, button) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.welcome-links > :is(a, button) + :is(a, button) { border-left: 1px solid var(--border); }
.welcome-links .ql-icon { width: 19px; height: 19px; color: #596f8a; }

.catalog-section { margin-top: 38px; scroll-margin-top: 24px; }
.catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.eyebrow { display: block; margin-bottom: 6px; color: var(--accent-text); font-size: 12px; font-weight: 650; letter-spacing: .1em; }
.catalog-heading h2, .results-heading h2 { display: flex; align-items: center; gap: 10px; font-size: 25px; font-weight: 750; letter-spacing: -.025em; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; min-height: 24px; padding: 2px 8px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 650; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.search-box { display: flex; align-items: center; gap: 10px; width: min(420px, 48%); padding: 5px 5px 5px 16px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); }
.search-box > .ql-icon { width: 18px; height: 18px; color: var(--muted); }
.search-box input { min-width: 0; flex: 1; width: 100%; height: 44px; padding: 5px 0; border: 0; background: transparent; color: var(--ink); font-size: 14px; }
.search-box input:focus-visible { outline-offset: 2px; border-radius: 4px; }
.search-box .button { flex-shrink: 0; min-width: 72px; }
.category-panel { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; margin-bottom: 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.category-chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; max-width: 100%; padding: 10px 16px; border: 1px solid transparent; border-radius: 11px; color: var(--muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; transition: background-color .18s ease, color .18s ease; }
.category-chip .ql-icon { width: 17px; height: 17px; }
.category-chip.active { border-color: rgba(var(--primary-rgb), .12); background: var(--accent-soft); color: var(--accent-text); font-weight: 650; }
.catalog-context { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin: -7px 0 14px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.catalog-content { min-width: 0; min-height: 260px; }
.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.catalog-content[aria-busy="true"] .product-grid:not(.skeleton-grid) { opacity: .65; }
.product-card { display: flex; flex-direction: column; min-width: 0; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: 0 2px 10px rgba(25, 44, 69, .025); text-align: left; transition: transform .18s ease, border-color .18s ease, box-shadow .2s ease; }
.product-cover { position: relative; width: 100%; aspect-ratio: 1.35; overflow: hidden; isolation: isolate; border-bottom: 1px solid rgba(25, 44, 69, .025); background: var(--soft); }
.product-cover > img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.cover-placeholder { background: linear-gradient(130deg, #f1f6ff, rgba(var(--primary-rgb), .09)); }
.product-card:nth-child(3n + 2) .cover-placeholder { background: linear-gradient(130deg, #f2f7fb, #e7f0f9); }
.product-card:nth-child(3n) .cover-placeholder { background: linear-gradient(130deg, #f5f7ff, #e9eefb); }
.cover-pattern { position: absolute; inset: 0; background-image: linear-gradient(rgba(var(--primary-rgb), .035) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--primary-rgb), .035) 1px, transparent 1px); background-size: 24px 24px; }
.cover-pattern::before, .cover-pattern::after { content: ""; position: absolute; width: 124px; height: 124px; border: 22px solid rgba(var(--primary-rgb), .035); border-radius: 50%; }
.cover-pattern::before { top: -42px; right: -34px; }
.cover-pattern::after { bottom: -70px; left: -30px; }
.cover-symbol { position: absolute; top: 47%; left: 50%; display: grid; place-items: center; width: 65px; height: 65px; border: 1px solid #fff; border-radius: 19px; transform: translate(-50%, -50%) rotate(-8deg); background: rgba(255, 255, 255, .93); color: var(--primary); box-shadow: 0 9px 20px rgba(var(--primary-rgb), .1); }
.cover-symbol .ql-icon { width: 34px; height: 34px; stroke-width: 1.5; }
.product-card:nth-child(even) .cover-symbol { transform: translate(-50%, -50%) rotate(7deg); }
.cover-category { position: absolute; bottom: 12px; left: 50%; max-width: calc(100% - 32px); transform: translateX(-50%); overflow: hidden; color: #566a84; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.product-kind { position: absolute; top: 11px; left: 11px; max-width: calc(100% - 22px); padding: 3px 8px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .65); border-radius: 7px; background: rgba(255, 255, 255, .9); color: #51657f; font-size: 12px; font-weight: 500; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.product-info { display: flex; flex-direction: column; flex: 1; width: 100%; padding: 16px; }
.product-info h3 { display: -webkit-box; min-height: 3.1em; overflow: hidden; color: var(--ink); font-size: 15px; line-height: 1.55; font-weight: 650; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 17px; }
.product-price { min-width: 0; color: var(--accent-text); font-size: 23px; line-height: 1.4; font-weight: 750; letter-spacing: -.035em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.product-price > small { margin-right: 3px; font-size: 13px; font-weight: 650; }
.product-price > span { margin-left: 5px; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; white-space: nowrap; }
.product-go { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid var(--border); border-radius: 50%; color: #61738a; }
.product-go .ql-icon { width: 16px; height: 16px; }
.load-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 30px; }
.load-more > .button { min-width: 180px; }
.load-more > span { color: var(--muted); font-size: 12px; }
.skeleton-card { min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.skeleton-card > div, .skeleton-card > span, .skeleton-card > i { display: block; border-radius: 8px; background: linear-gradient(100deg, #eef2f8 25%, #f7f9fc 40%, #eef2f8 60%); background-size: 250% 100%; animation: ql-shimmer 1.8s ease-in-out infinite; }
.skeleton-card > div { aspect-ratio: 1.35; border-radius: 12px; }
.skeleton-card > span { width: 84%; height: 16px; margin-top: 18px; }
.skeleton-card > i { width: 46%; height: 23px; margin: 20px 0 5px; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 330px; padding: 42px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-align: center; }
.empty-icon { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 2px; border-radius: 22px; background: var(--accent-soft); color: var(--accent-text); }
.empty-icon .ql-icon { width: 29px; height: 29px; }
.empty-state h3 { font-size: 20px; font-weight: 650; }
.empty-state p { max-width: 430px; color: var(--muted); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.empty-state .button { margin-top: 7px; }
.spinner { display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ql-spin .75s linear infinite; }

.query-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 186px; margin-bottom: 24px; padding: 32px 40px; overflow: hidden; border: 1px solid rgba(var(--primary-rgb), .09); border-radius: var(--radius); background: linear-gradient(115deg, #edf5ff, #f6f9ff); }
.query-hero-copy { min-width: 0; }
.query-hero h1 { margin-top: 10px; font-size: 32px; font-weight: 750; letter-spacing: -.03em; }
.query-hero p { margin-top: 12px; color: var(--muted); font-size: 14px; }
.query-hero-icon { display: grid; place-items: center; width: 112px; height: 112px; flex: 0 0 112px; border: 14px solid rgba(var(--primary-rgb), .035); border-radius: 32px; background: rgba(255, 255, 255, .65); color: var(--primary); transform: rotate(8deg); }
.query-hero-icon .ql-icon { width: 47px; height: 47px; stroke-width: 1.5; }
.query-panel { padding: 26px 30px; }
.query-form > label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 650; }
.query-input-row { display: flex; align-items: stretch; gap: 12px; }
.query-input { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; padding: 0 15px; border: 1px solid #d8e1ed; border-radius: 12px; background: var(--surface); }
.query-input > .ql-icon { color: #79879a; }
.query-input > input { min-width: 0; width: 100%; min-height: 50px; padding: 12px 0; border: 0; background: transparent; color: var(--ink); font-size: 16px; }
.query-input-row > .primary { min-width: 140px; }
.query-notice { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.query-form > .field-hint { margin-top: 11px; }
.order-results { margin-top: 32px; }
.results-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 20px; }
.results-heading h2 { font-size: 23px; }
.results-heading p { margin-top: 7px; color: var(--muted); font-size: 13px; }
.query-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 240px; padding: 40px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--muted); font-size: 14px; }
.order-empty { min-height: 300px; }
.order-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.order-card { min-width: 0; padding: 24px; }
.order-card-heading { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.order-card-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-text); }
.order-platform { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.order-card-heading h3 { margin-top: 3px; font-size: 17px; font-weight: 650; }
.order-status { align-self: start; max-width: 112px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--soft); color: var(--muted); font-size: 12px; line-height: 1.6; font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.order-status.success { color: var(--success); border-color: #d4ecde; background: var(--success-soft); }
.order-status.warning { color: var(--warning); border-color: #f0dfbf; background: var(--warning-soft); }
.order-status.error { color: var(--error); border-color: #f2d8dd; background: var(--error-soft); }
.order-status.neutral { color: var(--muted); border-color: var(--border); background: var(--soft); }
.order-progress { margin-top: 24px; }
.order-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; font-size: 13px; }
.order-progress > div:first-child > span { color: var(--muted); }
.order-progress strong { color: var(--accent-text); font-variant-numeric: tabular-nums; }
.progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: #e9eef5; }
.progress-track > span { display: block; height: 100%; max-width: 100%; border-radius: inherit; background: var(--primary); }
.order-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0 0; }
.order-meta dt { color: var(--muted); font-size: 12px; }
.order-meta dd { margin: 5px 0 0; font-size: 13px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.order-remarks { margin-top: 16px; padding: 11px 13px; border-radius: 11px; background: var(--soft); color: #556880; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.order-card-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--border); }
.order-card-actions > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.order-card-actions .button { font-size: 12px; }

.site-footer { border-top: 1px solid var(--border); background: #f2f5fa; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 30px 24px; }
.footer-main > div { min-width: 0; }
.footer-brand { font-size: 18px; }
.footer-brand > span:last-child { overflow-wrap: anywhere; }
.footer-brand .brand-mark { width: 35px; height: 35px; flex-basis: 35px; border-radius: 11px; box-shadow: none; }
.footer-brand .ql-icon { width: 21px; height: 21px; }
.footer-main p { max-width: 520px; margin-top: 10px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 4px 20px; }
.footer-links > a, .footer-links > button { display: inline-flex; align-items: center; min-height: 44px; padding: 5px 0; color: var(--muted); font-size: 13px; }
.footer-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; min-height: 64px; padding-block: 13px; border-top: 1px solid #e1e8f1; color: #69788e; font-size: 12px; overflow-wrap: anywhere; }
.footer-bottom > a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-note { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.footer-note .ql-icon { width: 14px; height: 14px; }
.support-fab { position: fixed; right: 24px; bottom: 28px; z-index: 30; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(var(--primary-rgb), .13); border-radius: 17px; background: var(--surface); color: var(--accent-text); box-shadow: 0 7px 26px rgba(25, 44, 69, .12); }
.support-fab .ql-icon { width: 24px; height: 24px; }

.dialog-backdrop { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(17, 33, 55, .45); backdrop-filter: blur(4px); overscroll-behavior: contain; }
.dialog { width: min(600px, 100%); max-height: calc(100dvh - 48px); overflow: auto; border: 1px solid rgba(255, 255, 255, .8); border-radius: 24px; background: var(--surface); box-shadow: 0 24px 90px rgba(12, 30, 52, .22); overscroll-behavior: contain; scrollbar-width: thin; animation: ql-dialog-in .18s ease-out; }
.dialog.product-dialog { width: min(1060px, 100%); }
.dialog-header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 21px 26px; border-bottom: 1px solid var(--border); background: var(--surface); }
.dialog-header > div { min-width: 0; }
.dialog-header h2 { font-size: 21px; font-weight: 700; }
.dialog-header .eyebrow { margin-bottom: 4px; font-size: 12px; }
.dialog-header > .icon-button { flex-shrink: 0; border-radius: 50%; }
.dialog-content { padding: 26px; overflow-wrap: anywhere; }
.dialog-content > p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.product-dialog-body { display: grid; grid-template-columns: 310px minmax(0, 1fr); }
.product-detail-side { padding: 26px; border-right: 1px solid var(--border); background: #f7f9fc; }
.detail-visual { width: 100%; aspect-ratio: 1.35; margin-bottom: 20px; overflow: hidden; border: 1px solid rgba(var(--primary-rgb), .055); border-radius: 17px; background: linear-gradient(130deg, #edf4ff, #e4edf9); }
.detail-visual > img { width: 100%; height: 100%; object-fit: cover; }
.detail-visual > span { display: grid; place-items: center; width: 100%; height: 100%; color: var(--primary); }
.detail-visual .ql-icon { width: 62px; height: 62px; stroke-width: 1.3; }
.detail-category { display: inline-block; max-width: 100%; padding: 4px 8px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; overflow-wrap: anywhere; }
.product-detail-side > h3 { margin-top: 12px; font-size: 21px; font-weight: 700; }
.detail-price { margin-top: 14px; color: var(--accent-text); font-size: 30px; line-height: 1.5; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.detail-price > small { margin-right: 3px; font-size: 16px; }
.detail-price > span { margin-left: 6px; color: var(--muted); font-size: 12px; font-weight: 400; }
.product-description { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.course-notice { margin-top: 18px; padding: 13px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.rich-text { max-width: 100%; color: #52657e; font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.rich-text p + p, .rich-text ul, .rich-text ol { margin-top: .7em; }
.rich-text ul, .rich-text ol { padding-left: 1.5em; }
.rich-text > :first-child { margin-top: 0; }
.rich-text > :last-child { margin-bottom: 0; }
.rich-text img, .rich-text video { max-width: 100%; height: auto; border-radius: 8px; }
.rich-text a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.rich-text pre { max-width: 100%; overflow: auto; padding: 12px; border-radius: 9px; background: var(--soft); white-space: pre-wrap; }
.rich-text table { width: 100% !important; max-width: 100%; table-layout: fixed; border-collapse: collapse; }
.rich-text th, .rich-text td { padding: 7px; border: 1px solid var(--border); overflow-wrap: anywhere; }
.rich-text h1, .rich-text h2, .rich-text h3 { margin-block: .8em .4em; color: var(--ink); font-size: 1.15em; }
.purchase-form { display: flex; flex-direction: column; gap: 19px; padding: 26px 30px; }
.form-section-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.form-section-title > span { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.form-section-title > h3 { font-size: 16px; font-weight: 650; }
.field { min-width: 0; }
.field > label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.required { margin-left: 5px; color: var(--error); }
.field > input, .field > select, .field > textarea { width: 100%; min-width: 0; min-height: 48px; padding: 11px 13px; border: 1px solid #d9e2ee; border-radius: 11px; background: var(--surface); color: var(--ink); font-size: 16px; line-height: 1.5; accent-color: var(--primary); }
input::placeholder, textarea::placeholder { color: #79869a; opacity: 1; }
.field > input[readonly], .field > input:disabled, .field > select:disabled, .field > textarea:disabled { background: var(--soft); color: var(--muted); }
.field > [aria-invalid="true"] { border-color: var(--error); background: #fffafb; }
.field-error { margin-top: 7px; color: var(--error); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.field-hint { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.order-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 5px; border-radius: 13px; background: var(--soft); }
.order-mode > .button { min-width: 0; border-color: transparent; background: transparent; color: var(--muted); }
.order-mode > .button.active { border-color: var(--border); background: var(--surface); color: var(--accent-text); }
.batch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#batch-accounts { min-height: 168px; resize: vertical; }
.batch-results { display: grid; gap: 12px; min-width: 0; }
.batch-progress { display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
.batch-progress > progress { width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 8px; accent-color: var(--primary); }
.batch-account { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 13px; }
.batch-account > summary { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; list-style: none; cursor: pointer; }
.batch-account > summary::-webkit-details-marker { display: none; }
.batch-account > summary:focus-visible { outline-offset: -3px; }
.batch-account > summary::after { content: ''; width: 8px; height: 8px; flex: 0 0 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.batch-account[open] > summary::after { transform: rotate(225deg); }
.batch-account-name { display: grid; flex: 1; min-width: 0; gap: 3px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.batch-account-name > small { color: var(--muted); font-size: 12px; font-weight: 400; }
.batch-account-state { color: var(--accent-text); font-size: 12px; }
.batch-account-body { padding: 0 14px 14px; }
.batch-account-body > .course-list { max-height: 240px; margin: 0; padding: 0; }
.course-selection, .payment-section { padding-top: 20px; border-top: 1px solid var(--border); }
.course-selection-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.course-selection-heading > .button { flex-shrink: 0; }
.course-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 114px; padding: 22px 16px; border: 1px dashed #d9e2ee; border-radius: 13px; background: #fafbfd; color: var(--muted); font-size: 13px; text-align: center; }
.course-empty > .ql-icon { width: 27px; height: 27px; color: #8193aa; }
.course-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.checkbox-label { display: inline-flex; align-items: center; gap: 8px; min-width: 44px; min-height: 44px; color: var(--ink); font-size: 13px; cursor: pointer; }
.checkbox-label > input, .course-choice > input, .payment-choice > input { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.course-list { display: grid; gap: 8px; max-height: 285px; padding: 4px; margin: -4px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.course-choice { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 48px; padding: 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); font-size: 13px; cursor: pointer; }
.course-choice > span { overflow-wrap: anywhere; }
.course-choice > .ql-icon { width: 17px; height: 17px; }
.course-choice.selected, .payment-choice.selected { border-color: rgba(var(--primary-rgb), .45); background: var(--accent-soft); color: var(--accent-text); }
.payment-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 15px; }
.payment-choice { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 48px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); font-size: 13px; font-weight: 600; cursor: pointer; }
.payment-choice > span { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.payment-choice > input + .ql-icon { display: none; }
.payment-choice > .ql-icon { width: 16px; height: 16px; }
.payment-choice:has(input:disabled), .course-choice:has(input:disabled) { cursor: not-allowed; opacity: .65; }
.token-field { margin-top: 17px; }
.inline-alert { display: flex; align-items: flex-start; gap: 10px; margin-block: 12px; padding: 13px 15px; border: 1px solid #f0d6dc; border-radius: 12px; background: var(--error-soft); color: var(--error); font-size: 13px; line-height: 1.8; }
.inline-alert > .ql-icon { width: 19px; height: 19px; margin-top: 2px; }
.inline-alert > span { min-width: 0; overflow-wrap: anywhere; }
.purchase-form > .inline-alert { margin: 0; }
.checkout-summary { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-top: 1px; padding-top: 20px; border-top: 1px solid var(--border); }
.checkout-summary > div { min-width: 0; }
.checkout-summary > div > span { color: var(--muted); font-size: 13px; }
.checkout-summary > div > span > small { font-size: 12px; }
.checkout-summary strong { display: block; margin-top: 4px; color: var(--accent-text); font-size: 29px; line-height: 1.4; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.checkout-summary strong > small { margin-right: 3px; font-size: 16px; }
.checkout-summary p { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.checkout-button { min-width: 145px; min-height: 50px; flex-shrink: 0; border-radius: 13px; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.dialog-actions > .button { min-width: 108px; }
.support-content, .success-content { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 30px; text-align: center; }
.support-qr { width: min(220px, 100%); aspect-ratio: 1; object-fit: contain; padding: 10px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.support-content > p, .success-content > p { max-width: 420px; overflow-wrap: anywhere; }
.success-icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--success-soft); color: var(--success); }
.success-icon .ql-icon { width: 31px; height: 31px; }
.success-content h3 { font-size: 22px; font-weight: 700; }
.success-content .text-button { margin-top: -8px; }
.gap-hint { margin-top: 16px; }
.order-detail-list { margin: 0; }
.order-detail-list > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.order-detail-list > div:first-child { padding-top: 0; }
.order-detail-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.order-detail-list dt { color: var(--muted); font-size: 13px; }
.order-detail-list dd { margin: 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.dialog-content > .action-course { margin-bottom: 16px; padding: 12px 14px; border-radius: 11px; background: var(--soft); color: var(--ink); font-size: 15px; font-weight: 600; }
.dialog-content > .field { margin-top: 18px; }
.toast { position: fixed; top: 24px; left: 50%; z-index: 1300; display: flex; align-items: flex-start; gap: 10px; width: max-content; max-width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 14px 18px; overflow: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 10px 40px rgba(17, 33, 55, .15); font-size: 14px; line-height: 1.7; transform: translateX(-50%); pointer-events: none; }
.toast > span { min-width: 0; overflow-wrap: anywhere; }
.toast > .ql-icon { width: 19px; height: 19px; margin-top: 3px; }
.toast.success > .ql-icon { color: var(--success); }
.toast.error > .ql-icon { color: var(--error); }

@media (hover: hover) and (pointer: fine) {
    .button.primary:not(:disabled):hover, .hero-button:hover { box-shadow: 0 6px 18px rgba(var(--primary-rgb), .25); }
    .button.secondary:not(:disabled):hover, .icon-button:not(:disabled):hover { border-color: #cbd8e8; background: #f7f9fc; }
    .desktop-nav > :not(.active):hover, .category-chip:not(.active):hover { background: var(--soft); color: var(--ink); }
    .text-button:not(:disabled):hover, .welcome-links > :is(a, button):hover, .footer-links > :hover, .footer-bottom > a:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; }
    .product-card:hover { border-color: rgba(var(--primary-rgb), .22); box-shadow: 0 10px 28px rgba(25, 44, 69, .08); transform: translateY(-4px); }
    .product-card:hover .product-cover > img { transform: scale(1.035); }
    .product-card:hover .product-go { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
    .course-choice:not(:has(input:disabled)):hover, .payment-choice:not(:has(input:disabled)):hover { border-color: rgba(var(--primary-rgb), .4); }
}

@media (max-width: 1199px) {
    .hero-layout { grid-template-columns: 210px minmax(0, 1fr) 204px; gap: 16px; }
    .announcement-card { padding-inline: 16px; }
    .welcome-card { padding-inline: 16px; }
    .hero-copy { width: 68%; padding-left: 25px; }
    .hero-copy h1 { font-size: 28px; }
    .hero-art { right: -10px; transform: translateY(-50%) scale(.85); transform-origin: center right; }
    .desktop-nav > a, .desktop-nav > button { padding-inline: 14px; }
    .site-header { gap: 16px; }
    .brand-name { max-width: 190px; }
    .product-grid { gap: 16px; }
    .product-info { padding: 14px; }
    .product-price { font-size: 21px; }
}

@media (max-width: 1079px) {
    .hero-layout { grid-template-columns: minmax(0, 1fr) 230px; }
    .announcement-card { display: none; }
    .mobile-notice { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 46px; margin-bottom: 16px; padding: 10px 14px; border: 1px solid rgba(var(--primary-rgb), .1); border-radius: 13px; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; text-align: left; }
    .mobile-notice > .ql-icon { width: 17px; height: 17px; }
    .mobile-notice-copy { min-width: 0; flex: 1; color: #5b6e86; font-size: 12px; overflow-wrap: anywhere; }
    .hero-art { right: 5px; transform: translateY(-50%); }
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .desktop-nav > a, .desktop-nav > button { padding-inline: 12px; font-size: 13px; }
    .header-search { display: none; }
    .header-account { padding-inline: 14px; font-size: 13px; }
    .brand { gap: 9px; font-size: 20px; }
    .brand-name { max-width: 175px; }
    .order-grid { grid-template-columns: minmax(0, 1fr); }
    .product-dialog-body { grid-template-columns: 275px minmax(0, 1fr); }
    .product-detail-side { padding: 22px; }
    .purchase-form { padding: 24px; }
    .checkout-summary { flex-wrap: wrap; }
    .checkout-button { flex-grow: 1; }
}

@media (max-width: 899px) {
    .wrap { width: calc(100% - 40px); }
    .site-header { min-height: 96px; padding-block: 20px; }
    .desktop-nav { gap: 0; padding: 4px; }
    .desktop-nav > a, .desktop-nav > button { padding-inline: 10px; }
    .brand-name { max-width: 155px; }
    .header-account > span { display: none; }
    .header-account { width: 44px; padding-inline: 10px; }
    .hero-copy { width: 65%; }
    .hero-copy h1 { font-size: 26px; }
    .hero-art { right: -13px; transform: translateY(-50%) scale(.85); }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-main { gap: 20px; }
    .footer-links { gap: 4px 14px; }
    .footer-note { width: 100%; margin-left: 0; }
    .product-dialog-body { grid-template-columns: 230px minmax(0, 1fr); }
    .product-detail-side { padding: 20px; }
    .product-detail-side > h3 { font-size: 18px; }
    .purchase-form { padding: 22px; }
}

@media (max-width: 759px) {
    html { scroll-padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
    #qinglan-app { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    .wrap { width: calc(100% - 32px); }
    .site-header { min-height: 86px; padding-block: max(18px, env(safe-area-inset-top)) 18px; gap: 12px; }
    .brand { font-size: 20px; }
    .brand-name { max-width: min(230px, calc(100vw - 145px)); }
    .brand > img, .brand-mark { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; }
    .brand-mark .ql-icon { width: 23px; height: 23px; }
    .desktop-nav { display: none; }
    .header-account > span { display: inline; }
    .header-account { width: auto; padding-inline: 14px; }
    .header-actions { gap: 0; }
    .page-main { padding-bottom: 34px; }
    .hero-layout { display: block; }
    .welcome-card { display: none; }
    .hero-banner { min-height: 266px; border-radius: 19px; }
    .hero-copy { width: 65%; padding: 26px 0 26px 24px; }
    .hero-copy h1 { font-size: 28px; }
    .hero-copy p { max-width: 290px; font-size: 13px; }
    .hero-art { right: 5px; transform: translateY(-50%) scale(.94); }
    .hero-button { margin-top: 18px; }
    .mobile-notice { margin-bottom: 12px; }
    .catalog-section { margin-top: 28px; }
    .catalog-heading { flex-direction: column; align-items: stretch; gap: 16px; margin-bottom: 16px; }
    .catalog-heading h2 { font-size: 24px; }
    .search-box { width: 100%; }
    .search-box input { font-size: 16px; }
    .eyebrow { font-size: 11px; }
    .category-panel { flex-wrap: nowrap; gap: 5px; padding: 8px; margin-bottom: 17px; border-radius: 15px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
    .category-chip { flex-shrink: 0; padding-inline: 12px; font-size: 13px; white-space: nowrap; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .product-cover { aspect-ratio: 1.3; }
    .product-info { padding: 13px; }
    .product-info h3 { font-size: 14px; }
    .product-price { font-size: 21px; }
    .product-bottom { margin-top: 13px; gap: 5px; }
    .cover-symbol { width: 61px; height: 61px; border-radius: 17px; }
    .cover-symbol .ql-icon { width: 31px; height: 31px; }
    .empty-state { min-height: 290px; padding: 34px 20px; }
    .empty-state h3 { font-size: 18px; }
    .query-hero { min-height: 167px; gap: 15px; margin-bottom: 18px; padding: 25px; border-radius: 19px; }
    .query-hero h1 { font-size: 27px; }
    .query-hero p { font-size: 13px; }
    .query-hero-icon { width: 78px; height: 78px; flex-basis: 78px; border-width: 9px; border-radius: 24px; }
    .query-hero-icon .ql-icon { width: 34px; height: 34px; }
    .query-panel { padding: 21px; border-radius: 18px; }
    .query-input-row { flex-wrap: wrap; gap: 10px; }
    .query-input { flex: 1 0 100%; }
    .query-input-row > .primary { flex: 1; }
    .order-results { margin-top: 25px; }
    .results-heading h2 { font-size: 21px; }
    .order-card { padding: 20px; border-radius: 18px; }
    .order-card-heading { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; }
    .order-card-icon { width: 38px; height: 38px; border-radius: 11px; }
    .order-card-heading h3 { font-size: 16px; }
    .order-status { max-width: 86px; padding-inline: 8px; }
    .order-meta { gap: 12px; }
    .order-card-actions { gap: 5px; }
    .order-card-actions > div { gap: 6px; }
    .order-card-actions .button { padding-inline: 10px; }
    .footer-main { align-items: flex-start; flex-direction: column; gap: 15px; padding-block: 24px 15px; }
    .footer-links { justify-content: flex-start; gap: 5px 20px; }
    .footer-bottom { gap: 3px 14px; padding-block: 15px 22px; }
    .footer-note { margin-top: 4px; }
    .mobile-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 50; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 7px 12px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: rgba(255, 255, 255, .97); box-shadow: 0 -4px 22px rgba(25, 44, 69, .035); }
    .mobile-nav > a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 54px; border-radius: 12px; color: #6a7890; font-size: 11px; font-weight: 500; }
    .mobile-nav > a .ql-icon { width: 21px; height: 21px; }
    .mobile-nav > a.active { background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }
    .support-fab { right: 17px; bottom: calc(88px + env(safe-area-inset-bottom)); width: 47px; height: 47px; border-radius: 15px; }
    .support-fab .ql-icon { width: 22px; height: 22px; }
    .dialog-backdrop { padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
    .dialog { max-height: calc(100dvh - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom))); border-radius: 19px; }
    .dialog-header { padding: 16px 18px; gap: 12px; }
    .dialog-header h2 { font-size: 19px; }
    .dialog-content { padding: 21px; }
    .product-dialog-body { grid-template-columns: minmax(0, 1fr); }
    .product-detail-side { padding: 20px; border-right: 0; border-bottom: 1px solid var(--border); }
    .detail-visual { float: left; width: 100px; margin: 0 16px 12px 0; border-radius: 12px; }
    .detail-visual .ql-icon { width: 38px; height: 38px; }
    .product-detail-side > h3 { margin-top: 8px; font-size: 18px; }
    .detail-price { margin-top: 7px; font-size: 25px; }
    .product-description, .course-notice { clear: both; }
    .product-description { margin-top: 17px; padding-top: 15px; }
    .purchase-form { padding: 22px 20px; gap: 18px; }
    .checkout-summary { flex-wrap: nowrap; align-items: stretch; flex-direction: column; gap: 17px; }
    .checkout-button { width: 100%; }
    .dialog-actions > .button { flex: 1; min-width: 0; }
    .order-detail-list > div { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
    .support-content, .success-content { padding: 28px 22px; }
    .toast { top: max(12px, env(safe-area-inset-top)); padding: 12px 15px; font-size: 13px; }
}

@media (max-width: 429px) {
    .header-account > span { display: none; }
    .header-account { width: 44px; padding-inline: 10px; }
    .hero-banner { min-height: 252px; }
    .hero-copy { width: 69%; padding: 23px 0 25px 20px; }
    .hero-copy h1 { max-width: 7.4em; font-size: 25px; text-wrap: wrap; }
    .hero-copy p { max-width: 220px; font-size: 12px; line-height: 1.85; }
    .hero-eyebrow { font-size: 11px; gap: 4px; }
    .hero-art { right: -24px; transform: translateY(-50%) scale(.66); }
    .hero-button { margin-top: 17px; font-size: 13px; }
    .product-grid { gap: 11px; }
    .product-card { border-radius: 14px; }
    .product-info { padding: 11px; }
    .product-info h3 { font-size: 13px; }
    .product-price { font-size: 19px; }
    .product-price > small { font-size: 12px; margin-right: 2px; }
    .product-price > span { margin-left: 3px; }
    .product-go { width: 25px; height: 25px; flex-basis: 25px; }
    .product-go .ql-icon { width: 14px; height: 14px; }
    .product-kind { top: 8px; left: 8px; padding: 2px 6px; font-size: 11px; }
    .cover-category { bottom: 9px; font-size: 11px; }
    .cover-symbol { width: 49px; height: 49px; border-radius: 14px; }
    .cover-symbol .ql-icon { width: 28px; height: 28px; }
    .category-chip { padding-inline: 10px; font-size: 12px; }
    .query-hero { padding: 23px 20px; }
    .query-hero h1 { font-size: 25px; }
    .query-hero-icon { display: none; }
    .query-panel { padding: 18px; }
    .order-card { padding: 17px; }
    .order-card-heading { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
    .order-card-icon { width: 34px; height: 34px; }
    .order-status { grid-column: 2; justify-self: start; max-width: 100%; }
    .order-meta { grid-template-columns: minmax(0, 1fr); }
    .order-card-actions > div { width: 100%; }
    .order-card-actions .button { flex: 1; padding-inline: 7px; }
    .dialog-header { padding-inline: 16px; }
    .dialog-content, .product-detail-side { padding: 18px; }
    .purchase-form { padding: 20px 16px; }
    .detail-visual { width: 85px; margin-right: 13px; }
    .form-section-title > h3 { font-size: 14px; }
    .course-selection-heading > .button { padding-inline: 10px; font-size: 12px; }
    .payment-options { gap: 8px; }
    .payment-choice { gap: 6px; padding-inline: 9px; font-size: 12px; }
    .payment-choice > .ql-icon { width: 14px; height: 14px; }
}

@keyframes ql-spin { to { transform: rotate(360deg); } }
@keyframes ql-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes ql-dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
    .button, .product-card, .category-chip, .payment-choice, .course-choice, .mobile-nav > a { border: 1px solid ButtonText; }
    .active, .selected { outline: 2px solid Highlight; outline-offset: -3px; }
    .progress-track { border: 1px solid CanvasText; }
    .progress-track > span { background: Highlight; }
}
