/*!
 * 七境 · Qijing — 商城外观
 * 七境各有白天/夜晚两套色；正文永远不透明，表单与金额落在更实的面上；
 * 流动背景在最底层（#qj-atmosphere），页面只铺半透明阅读面。
 */

/* ============================================================ 1. 七境色板 */
:root {
    --qj-font-display: "Palatino Linotype", "Book Antiqua", Palatino, "Iowan Old Style", Georgia, "Kaiti SC", "STKaiti", "KaiTi", "BiauKai", serif;
    --qj-font-serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
    --qj-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
    --qj-font-mono: "SF Mono", "Cascadia Mono", Consolas, "Roboto Mono", monospace;
    --qj-radius-xl: 28px;
    --qj-radius-lg: 22px;
    --qj-radius-md: 16px;
    --qj-radius-sm: 11px;
    --qj-ease: cubic-bezier(.22, 1, .36, 1);
    --qj-container: 1240px;
    --qj-header-h: 72px;
    --qj-blur: blur(20px) saturate(135%);
}

/* 白天（默认） */
:root,
:root[data-appearance="light"] {
    --qj-ink: #2a2219; --qj-ink-2: #5f5444; --qj-ink-3: #8a7d68;
    --qj-accent: #9a7434; --qj-accent-rgb: 154, 116, 52;
    --qj-action-a: #8a6428; --qj-action-b: #b48a45; --qj-on-action: #fffaf0;
    --qj-surface: rgba(255, 252, 245, .62); --qj-surface-strong: rgba(255, 253, 249, .86); --qj-surface-soft: rgba(255, 252, 245, .42);
    --qj-field: rgba(255, 255, 255, .9);
    --qj-line: rgba(80, 60, 30, .12); --qj-line-strong: rgba(80, 60, 30, .22); --qj-edge: rgba(255, 255, 255, .7);
    --qj-shadow: 0 24px 60px rgba(48, 38, 22, .10), 0 2px 8px rgba(48, 38, 22, .05);
    --qj-shadow-soft: 0 10px 30px rgba(48, 38, 22, .08);
    --qj-media: radial-gradient(120% 90% at 50% 18%, rgba(255, 255, 255, .92), rgba(246, 239, 226, .72) 58%, rgba(232, 222, 202, .62));
    --qj-good: #2f7a57; --qj-warn: #a86a1f; --qj-bad: #b2423f;
    color-scheme: light;
}
:root[data-appearance="dark"] {
    --qj-ink: #f2e9d8; --qj-ink-2: #c9bba1; --qj-ink-3: #978a73;
    --qj-accent: #d8bd89; --qj-accent-rgb: 216, 189, 137;
    --qj-action-a: #e0c38c; --qj-action-b: #b8955a; --qj-on-action: #1d160c;
    --qj-surface: rgba(26, 22, 17, .54); --qj-surface-strong: rgba(30, 26, 20, .82); --qj-surface-soft: rgba(26, 22, 17, .34);
    --qj-field: rgba(14, 12, 9, .62);
    --qj-line: rgba(232, 214, 176, .12); --qj-line-strong: rgba(232, 214, 176, .22); --qj-edge: rgba(255, 244, 220, .10);
    --qj-shadow: 0 30px 70px rgba(0, 0, 0, .38), 0 2px 10px rgba(0, 0, 0, .22);
    --qj-shadow-soft: 0 14px 34px rgba(0, 0, 0, .28);
    --qj-media: radial-gradient(120% 90% at 50% 15%, rgba(255, 240, 210, .10), rgba(40, 32, 22, .35) 60%, rgba(10, 9, 7, .45));
    --qj-good: #8fd0ad; --qj-warn: #e6bd75; --qj-bad: #f09a96;
    color-scheme: dark;
}

/* 流霞天绫 */
:root[data-realm="silk"][data-appearance="light"] { --qj-ink: #2c1f17; --qj-ink-2: #634c3c; --qj-ink-3: #8f7564; --qj-accent: #a8683f; --qj-accent-rgb: 168, 104, 63; --qj-action-a: #a35f36; --qj-action-b: #c98b5b; --qj-on-action: #fff8f2; --qj-surface: rgba(255, 250, 245, .62); --qj-surface-strong: rgba(255, 251, 247, .86); --qj-line: rgba(110, 60, 30, .12); --qj-line-strong: rgba(110, 60, 30, .22); --qj-media: radial-gradient(120% 90% at 50% 18%, rgba(255, 255, 255, .92), rgba(248, 236, 224, .72) 58%, rgba(234, 214, 196, .62)); }
:root[data-realm="silk"][data-appearance="dark"] { --qj-ink: #f3e6d6; --qj-ink-2: #cdb39b; --qj-ink-3: #9c8470; --qj-accent: #e2b383; --qj-accent-rgb: 226, 179, 131; --qj-action-a: #e8b885; --qj-action-b: #c48a57; --qj-on-action: #22150d; --qj-surface: rgba(34, 24, 18, .54); --qj-surface-strong: rgba(38, 27, 20, .84); --qj-line: rgba(240, 200, 160, .12); --qj-line-strong: rgba(240, 200, 160, .22); --qj-media: radial-gradient(120% 90% at 50% 15%, rgba(255, 220, 180, .10), rgba(48, 32, 22, .35) 60%, rgba(14, 9, 6, .45)); }
/* 月魄玉璧 */
:root[data-realm="porcelain"][data-appearance="light"] { --qj-ink: #17302a; --qj-ink-2: #44625a; --qj-ink-3: #6f8a82; --qj-accent: #3f7a6a; --qj-accent-rgb: 63, 122, 106; --qj-action-a: #2f6f5f; --qj-action-b: #4f9480; --qj-on-action: #f4fffb; --qj-surface: rgba(250, 253, 251, .60); --qj-surface-strong: rgba(252, 255, 253, .86); --qj-line: rgba(30, 80, 66, .12); --qj-line-strong: rgba(30, 80, 66, .22); --qj-media: radial-gradient(120% 90% at 50% 18%, rgba(255, 255, 255, .95), rgba(232, 242, 237, .74) 58%, rgba(212, 228, 220, .62)); }
:root[data-realm="porcelain"][data-appearance="dark"] { --qj-ink: #e3efe8; --qj-ink-2: #b1c6bb; --qj-ink-3: #7f978c; --qj-accent: #b9d3c2; --qj-accent-rgb: 185, 211, 194; --qj-action-a: #b4d6c1; --qj-action-b: #86b39b; --qj-on-action: #0f241d; --qj-surface: rgba(20, 36, 30, .54); --qj-surface-strong: rgba(22, 40, 33, .84); --qj-line: rgba(190, 230, 210, .11); --qj-line-strong: rgba(190, 230, 210, .21); --qj-media: radial-gradient(120% 90% at 50% 15%, rgba(210, 255, 235, .09), rgba(20, 40, 33, .36) 60%, rgba(6, 14, 11, .45)); }
/* 星宿天衡 */
:root[data-realm="orbit"][data-appearance="light"] { --qj-ink: #221d38; --qj-ink-2: #514a70; --qj-ink-3: #7f789c; --qj-accent: #6a55c7; --qj-accent-rgb: 106, 85, 199; --qj-action-a: #5b47c4; --qj-action-b: #7f6ae6; --qj-on-action: #f8f6ff; --qj-surface: rgba(252, 251, 255, .60); --qj-surface-strong: rgba(253, 252, 255, .86); --qj-line: rgba(60, 40, 120, .12); --qj-line-strong: rgba(60, 40, 120, .22); --qj-media: radial-gradient(120% 90% at 50% 18%, rgba(255, 255, 255, .95), rgba(236, 233, 248, .74) 58%, rgba(218, 212, 240, .62)); }
:root[data-realm="orbit"][data-appearance="dark"] { --qj-ink: #eee9fa; --qj-ink-2: #c2b8dc; --qj-ink-3: #8f86a8; --qj-accent: #c4b6ea; --qj-accent-rgb: 196, 182, 234; --qj-action-a: #c2b2f6; --qj-action-b: #8f7ae0; --qj-on-action: #171128; --qj-surface: rgba(24, 20, 40, .54); --qj-surface-strong: rgba(28, 24, 46, .84); --qj-line: rgba(210, 196, 250, .12); --qj-line-strong: rgba(210, 196, 250, .22); --qj-media: radial-gradient(120% 90% at 50% 15%, rgba(220, 205, 255, .10), rgba(30, 24, 52, .36) 60%, rgba(8, 6, 18, .48)); }
/* 辰海天河 */
:root[data-realm="astral"][data-appearance="light"] { --qj-ink: #15233a; --qj-ink-2: #44587a; --qj-ink-3: #6f809e; --qj-accent: #3a66a8; --qj-accent-rgb: 58, 102, 168; --qj-action-a: #2e5aa0; --qj-action-b: #4d7ec7; --qj-on-action: #f5f9ff; --qj-surface: rgba(250, 252, 255, .60); --qj-surface-strong: rgba(252, 253, 255, .86); --qj-line: rgba(30, 60, 110, .12); --qj-line-strong: rgba(30, 60, 110, .22); --qj-media: radial-gradient(120% 90% at 50% 18%, rgba(255, 255, 255, .95), rgba(232, 240, 250, .74) 58%, rgba(208, 222, 240, .62)); }
:root[data-realm="astral"][data-appearance="dark"] { --qj-ink: #e6eef8; --qj-ink-2: #aebfd6; --qj-ink-3: #7a8ba5; --qj-accent: #a9c6ea; --qj-accent-rgb: 169, 198, 234; --qj-action-a: #b0cdf4; --qj-action-b: #7aa1d9; --qj-on-action: #0c1626; --qj-surface: rgba(12, 22, 38, .54); --qj-surface-strong: rgba(14, 26, 44, .84); --qj-line: rgba(180, 210, 250, .11); --qj-line-strong: rgba(180, 210, 250, .21); --qj-media: radial-gradient(120% 90% at 50% 15%, rgba(190, 220, 255, .10), rgba(16, 30, 54, .38) 60%, rgba(4, 8, 18, .5)); }
/* 青玉山海 */
:root[data-realm="verdant"][data-appearance="light"] { --qj-ink: #15291f; --qj-ink-2: #43604f; --qj-ink-3: #6e8a79; --qj-accent: #3d7552; --qj-accent-rgb: 61, 117, 82; --qj-action-a: #2f6a49; --qj-action-b: #4c8c64; --qj-on-action: #f4fff8; --qj-surface: rgba(250, 253, 250, .60); --qj-surface-strong: rgba(252, 255, 252, .86); --qj-line: rgba(30, 80, 50, .12); --qj-line-strong: rgba(30, 80, 50, .22); --qj-media: radial-gradient(120% 90% at 50% 18%, rgba(255, 255, 255, .95), rgba(232, 242, 233, .74) 58%, rgba(210, 228, 213, .62)); }
:root[data-realm="verdant"][data-appearance="dark"] { --qj-ink: #e6eedd; --qj-ink-2: #b0c4b2; --qj-ink-3: #7e937f; --qj-accent: #b4cfa6; --qj-accent-rgb: 180, 207, 166; --qj-action-a: #b3d6a3; --qj-action-b: #82ad72; --qj-on-action: #0e2016; --qj-surface: rgba(14, 32, 24, .54); --qj-surface-strong: rgba(16, 36, 27, .84); --qj-line: rgba(196, 230, 190, .11); --qj-line-strong: rgba(196, 230, 190, .21); --qj-media: radial-gradient(120% 90% at 50% 15%, rgba(210, 255, 210, .09), rgba(18, 40, 30, .36) 60%, rgba(4, 14, 9, .48)); }
/* 曦羽流霞 */
:root[data-realm="dawn"][data-appearance="light"] { --qj-ink: #33201f; --qj-ink-2: #6c4b49; --qj-ink-3: #957471; --qj-accent: #a6605a; --qj-accent-rgb: 166, 96, 90; --qj-action-a: #9d5650; --qj-action-b: #c27d73; --qj-on-action: #fff7f5; --qj-surface: rgba(255, 251, 250, .60); --qj-surface-strong: rgba(255, 252, 251, .86); --qj-line: rgba(120, 50, 50, .12); --qj-line-strong: rgba(120, 50, 50, .22); --qj-media: radial-gradient(120% 90% at 50% 18%, rgba(255, 255, 255, .95), rgba(249, 236, 232, .74) 58%, rgba(238, 214, 208, .62)); }
:root[data-realm="dawn"][data-appearance="dark"] { --qj-ink: #f2e5df; --qj-ink-2: #d1b7b1; --qj-ink-3: #a0857f; --qj-accent: #e2b8ab; --qj-accent-rgb: 226, 184, 171; --qj-action-a: #e8bdb0; --qj-action-b: #c48c80; --qj-on-action: #24151a; --qj-surface: rgba(40, 26, 30, .54); --qj-surface-strong: rgba(44, 29, 33, .84); --qj-line: rgba(250, 210, 200, .11); --qj-line-strong: rgba(250, 210, 200, .21); --qj-media: radial-gradient(120% 90% at 50% 15%, rgba(255, 220, 210, .10), rgba(52, 32, 38, .38) 60%, rgba(16, 8, 11, .5)); }

/* ============================================================ 2. 底层 */
html { background: #0b0d10; -webkit-text-size-adjust: 100%; }
:root[data-appearance="light"] { background: #efe9dc; }
:root[data-realm="silk"][data-appearance="light"] { background: #efe2d4; }
:root[data-realm="porcelain"][data-appearance="light"] { background: #e3ece6; }
:root[data-realm="orbit"][data-appearance="light"] { background: #e6e3f1; }
:root[data-realm="astral"][data-appearance="light"] { background: #e1e9f2; }
:root[data-realm="verdant"][data-appearance="light"] { background: #e3ece4; }
:root[data-realm="dawn"][data-appearance="light"] { background: #f2e4de; }

body.qj-body {
    min-height: 100vh;
    margin: 0;
    background: transparent !important;
    color: var(--qj-ink);
    font-family: var(--qj-font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
.qj-body a { color: inherit; text-decoration: none; }
.qj-body ::selection { background: rgba(var(--qj-accent-rgb), .28); }
.qj-body :focus-visible { outline: 2px solid rgba(var(--qj-accent-rgb), .75); outline-offset: 3px; border-radius: 8px; }

#qj-atmosphere { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
#qj-atmosphere canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#qj-atmosphere .qj-atmo-fx { z-index: 2; }
#qj-atmosphere .qj-atmo-front { z-index: 1; }
#qj-atmosphere::after { /* 极细的纸纹，让大面积渐变不显得廉价 */
    content: ""; position: absolute; inset: 0; z-index: 3; opacity: .05; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
:root[data-appearance="light"] #qj-atmosphere::after { opacity: .035; mix-blend-mode: multiply; }

.qj-container { width: 100%; max-width: var(--qj-container); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .qj-container { padding: 0 16px; } }
.qj-main { position: relative; z-index: 1; padding-top: var(--qj-header-h); }

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

/* ============================================================ 3. 通用部件 */
.qj-glass {
    position: relative;
    background: var(--qj-surface);
    border: 1px solid var(--qj-line);
    border-radius: var(--qj-radius-lg);
    box-shadow: var(--qj-shadow-soft), inset 0 1px 0 var(--qj-edge);
    -webkit-backdrop-filter: var(--qj-blur);
    backdrop-filter: var(--qj-blur);
}
.qj-glass--strong { background: var(--qj-surface-strong); }
.qj-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--qj-accent);
}
.qj-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.qj-eyebrow--plain::before { display: none; }

.qj-btn {
    position: relative; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 24px; border-radius: 999px;
    font: 600 15px/1 var(--qj-font-body); letter-spacing: .02em; white-space: nowrap;
    border: 1px solid transparent; cursor: pointer; user-select: none;
    transition: transform .18s var(--qj-ease), box-shadow .3s var(--qj-ease), background-color .3s, color .3s, border-color .3s;
}
.qj-btn:active { transform: scale(.975); }
.qj-btn--primary {
    color: var(--qj-on-action) !important;
    background: linear-gradient(135deg, var(--qj-action-a), var(--qj-action-b));
    box-shadow: 0 12px 28px rgba(var(--qj-accent-rgb), .30), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.qj-btn--primary::after { /* 一道慢光，只在悬停时走一次 */
    content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .38) 48%, transparent 66%) no-repeat;
    background-size: 220% 100%; background-position: 130% 0;
}
.qj-btn--primary:hover::after { opacity: 1; background-position: -40% 0; transition: background-position .9s var(--qj-ease), opacity .2s; }
.qj-btn--primary:hover { box-shadow: 0 16px 34px rgba(var(--qj-accent-rgb), .38), inset 0 1px 0 rgba(255, 255, 255, .3); }
.qj-btn--ghost {
    color: var(--qj-ink) !important; background: var(--qj-surface); border-color: var(--qj-line-strong);
    -webkit-backdrop-filter: var(--qj-blur); backdrop-filter: var(--qj-blur);
}
.qj-btn--ghost:hover { border-color: rgba(var(--qj-accent-rgb), .55); background: var(--qj-surface-strong); }
.qj-btn--sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
.qj-btn .qj-arrow { transition: transform .3s var(--qj-ease); }
.qj-btn:hover .qj-arrow { transform: translateX(3px); }
.qj-arrow { width: 16px; height: 16px; flex: none; }

.qj-chip {
    display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px;
    border-radius: 999px; border: 1px solid var(--qj-line); background: var(--qj-surface-soft);
    color: var(--qj-ink-2) !important; font-size: 14px; font-weight: 500; cursor: pointer;
    -webkit-backdrop-filter: var(--qj-blur); backdrop-filter: var(--qj-blur);
    transition: color .25s, border-color .25s, background-color .25s;
}
.qj-chip:hover { color: var(--qj-ink) !important; border-color: var(--qj-line-strong); }
.qj-chip.is-primary, .qj-chip[aria-selected="true"] { color: var(--qj-on-action) !important; background: linear-gradient(135deg, var(--qj-action-a), var(--qj-action-b)); border-color: transparent; }
.qj-chip img { width: 18px; height: 18px; border-radius: 5px; object-fit: contain; }

/* 后台标签色（Commodity::TAG_COLORS）：底色淡、字色足，夜间同样可读 */
.qj-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12px; font-weight: 600; letter-spacing: .02em; line-height: 1; white-space: nowrap; border: 1px solid transparent; }
.qj-tag--red { color: #a33a3a; background: rgba(214, 90, 90, .12); border-color: rgba(214, 90, 90, .2); }
.qj-tag--orange { color: #9c5a17; background: rgba(226, 146, 62, .14); border-color: rgba(226, 146, 62, .22); }
.qj-tag--green { color: #2d7148; background: rgba(76, 168, 112, .13); border-color: rgba(76, 168, 112, .22); }
.qj-tag--cyan { color: #23727a; background: rgba(62, 178, 190, .13); border-color: rgba(62, 178, 190, .22); }
.qj-tag--blue { color: #2c5a9e; background: rgba(76, 128, 214, .13); border-color: rgba(76, 128, 214, .22); }
.qj-tag--purple { color: #5d46ad; background: rgba(132, 104, 224, .13); border-color: rgba(132, 104, 224, .22); }
.qj-tag--pink { color: #a23c6b; background: rgba(222, 100, 156, .12); border-color: rgba(222, 100, 156, .2); }
.qj-tag--gray { color: #555c66; background: rgba(120, 128, 140, .12); border-color: rgba(120, 128, 140, .2); }
:root[data-appearance="dark"] .qj-tag--red { color: #f3a7a2; background: rgba(214, 90, 90, .18); }
:root[data-appearance="dark"] .qj-tag--orange { color: #f2c08a; background: rgba(226, 146, 62, .18); }
:root[data-appearance="dark"] .qj-tag--green { color: #9fdab6; background: rgba(76, 168, 112, .18); }
:root[data-appearance="dark"] .qj-tag--cyan { color: #94dbe3; background: rgba(62, 178, 190, .18); }
:root[data-appearance="dark"] .qj-tag--blue { color: #a9c7f4; background: rgba(76, 128, 214, .2); }
:root[data-appearance="dark"] .qj-tag--purple { color: #c9b9f6; background: rgba(132, 104, 224, .2); }
:root[data-appearance="dark"] .qj-tag--pink { color: #f2abcb; background: rgba(222, 100, 156, .18); }
:root[data-appearance="dark"] .qj-tag--gray { color: #c3c8cf; background: rgba(160, 168, 180, .16); }
.qj-tag--state { color: var(--qj-ink-2); background: transparent; border-color: var(--qj-line-strong); font-weight: 500; }
.qj-tag--soldout { color: var(--qj-bad); border-color: currentColor; background: transparent; }

/* ============================================================ 4. 顶栏 */
.qj-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1030; height: var(--qj-header-h); transition: background-color .4s, box-shadow .4s, border-color .4s; border-bottom: 1px solid transparent; }
.qj-header.is-scrolled, .qj-header--solid {
    background: var(--qj-surface-strong); border-bottom-color: var(--qj-line);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    -webkit-backdrop-filter: var(--qj-blur); backdrop-filter: var(--qj-blur);
}
.qj-header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.qj-brand { display: inline-flex; align-items: center; gap: 12px; flex: none; color: var(--qj-ink) !important; }
.qj-brand__logo { width: 36px; height: 36px; border-radius: 11px; object-fit: cover; box-shadow: 0 6px 16px rgba(0, 0, 0, .12), 0 0 0 1px var(--qj-line); }
.qj-brand__name { font: 600 19px/1 var(--qj-font-display); letter-spacing: .01em; }
.qj-seal { display: none; width: 30px; height: 30px; color: var(--qj-accent); flex: none; }
.qj-seal svg { width: 100%; height: 100%; display: block; }
:root[data-realm="atelier"] .qj-seal--atelier, :root[data-realm="silk"] .qj-seal--silk, :root[data-realm="porcelain"] .qj-seal--porcelain,
:root[data-realm="orbit"] .qj-seal--orbit, :root[data-realm="astral"] .qj-seal--astral, :root[data-realm="verdant"] .qj-seal--verdant, :root[data-realm="dawn"] .qj-seal--dawn { display: inline-block; }
.qj-brand__divider { width: 1px; height: 22px; background: var(--qj-line-strong); }

.qj-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.qj-nav a { position: relative; padding: 10px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--qj-ink-2) !important; transition: color .25s, background-color .25s; }
.qj-nav a:hover { color: var(--qj-ink) !important; background: var(--qj-surface-soft); }
.qj-nav a.active, .qj-nav a[aria-current="page"] { color: var(--qj-ink) !important; }
.qj-nav a.active::after, .qj-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 16px; height: 2px; border-radius: 2px; transform: translateX(-50%); background: var(--qj-accent); }

.qj-tools { display: flex; align-items: center; gap: 8px; }
.qj-search { position: relative; display: flex; align-items: center; }
.qj-search svg { position: absolute; left: 13px; z-index: 2; width: 16px; height: 16px; color: var(--qj-ink-3); pointer-events: none; }
/* 系统公共样式 _.css 里有 input,textarea{background-color:transparent!important}，主题输入框的底色都要带 !important */
.qj-search input {
    width: 190px; height: 40px; padding: 0 14px 0 38px; border-radius: 999px;
    border: 1px solid var(--qj-line); background-color: var(--qj-surface-soft) !important; color: var(--qj-ink);
    font-size: 14px; outline: none; transition: width .35s var(--qj-ease), border-color .25s, background-color .25s;
    -webkit-backdrop-filter: var(--qj-blur); backdrop-filter: var(--qj-blur);
}
.qj-search input::placeholder { color: var(--qj-ink-3); }
.qj-search input:focus { width: 240px; border-color: rgba(var(--qj-accent-rgb), .55); background-color: var(--qj-surface-strong) !important; }
.qj-icon-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 40px; padding: 0 11px;
    border-radius: 999px; border: 1px solid var(--qj-line); background: var(--qj-surface-soft); color: var(--qj-ink-2);
    font-size: 13px; font-weight: 600; cursor: pointer; transition: color .25s, border-color .25s, background-color .25s;
    -webkit-backdrop-filter: var(--qj-blur); backdrop-filter: var(--qj-blur);
}
.qj-icon-btn:hover, .qj-icon-btn[aria-expanded="true"] { color: var(--qj-ink); border-color: var(--qj-line-strong); background: var(--qj-surface-strong); }
.qj-icon-btn svg { width: 18px; height: 18px; }
.qj-icon-btn .qj-moon { display: none; }
:root[data-appearance="dark"] .qj-icon-btn .qj-sun { display: none; }
:root[data-appearance="dark"] .qj-icon-btn .qj-moon { display: block; }

.qj-menu.dropdown-menu {
    min-width: 200px; padding: 8px; margin-top: 10px !important; border-radius: 16px;
    border: 1px solid var(--qj-line); background: var(--qj-surface-strong); color: var(--qj-ink);
    box-shadow: var(--qj-shadow); -webkit-backdrop-filter: var(--qj-blur); backdrop-filter: var(--qj-blur);
}
.qj-menu .dropdown-item, .qj-menu__item {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 12px;
    border-radius: 10px; border: 0; background: none; color: var(--qj-ink-2) !important; font-size: 14px; text-align: left; cursor: pointer;
}
.qj-menu .dropdown-item:hover, .qj-menu__item:hover, .qj-menu .dropdown-item:focus { background: rgba(var(--qj-accent-rgb), .1); color: var(--qj-ink) !important; }
.qj-menu .dropdown-item.active, .qj-menu__item.is-active { color: var(--qj-ink) !important; background: rgba(var(--qj-accent-rgb), .14); }
.qj-menu .dropdown-item.active::after, .qj-menu__item.is-active::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--qj-accent); }
.qj-menu__label { padding: 6px 12px 8px; font-size: 12px; letter-spacing: .12em; color: var(--qj-ink-3); }
.qj-menu hr { margin: 6px 4px; border-color: var(--qj-line); opacity: 1; }
.qj-menu .text-danger { color: var(--qj-bad) !important; }

.qj-user { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px 0 4px; border-radius: 999px; border: 1px solid var(--qj-line); background: var(--qj-surface-soft); color: var(--qj-ink) !important; cursor: pointer; }
.qj-user img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--qj-surface-strong); }
.qj-user strong { font-size: 13.5px; font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qj-user small { display: block; font-size: 11.5px; color: var(--qj-ink-3); }
.qj-auth { display: inline-flex; align-items: center; gap: 8px; }
.qj-auth a:first-child { padding: 0 8px; font-size: 14px; color: var(--qj-ink-2) !important; }

.qj-burger { display: none; }
.qj-drawer { display: none; }

.qj-header__inner, .qj-tools, .qj-auth { flex-wrap: nowrap; }
.qj-tools { flex: none; }
.qj-nav { min-width: 0; }
.qj-nav a, .qj-auth a, .qj-user strong { white-space: nowrap; }
/* 其它语言的导航文字更长：收紧间距，导航区可收缩，绝不压到右侧工具区 */
.qj-nav { overflow: hidden; }
html:not([lang^="zh"]) .qj-nav a { padding: 10px 10px; font-size: 14px; }
html:not([lang^="zh"]) .qj-search input { width: 170px; }
html:not([lang^="zh"]) .qj-search input:focus { width: 210px; }
@media (min-width: 961px) and (max-width: 1220px) {
    html:not([lang^="zh"]) .qj-header .qj-search input { width: 40px; padding: 0 0 0 38px; cursor: pointer; }
    html:not([lang^="zh"]) .qj-header .qj-search input::placeholder { color: transparent; }
    html:not([lang^="zh"]) .qj-header .qj-search input:focus { width: 190px; padding-right: 12px; cursor: text; }
    html:not([lang^="zh"]) .qj-header .qj-search input:focus::placeholder { color: var(--qj-ink-3); }
}
@media (min-width: 961px) and (max-width: 1060px) {
    html:not([lang^="zh"]) .qj-nav a { padding: 10px 6px; font-size: 13.5px; }
    html:not([lang^="zh"]) .qj-header__inner { gap: 12px; }
}
html[lang="ja"] .qj-hero h1 { font-size: clamp(34px, 4.1vw, 58px); letter-spacing: 0; }
html[lang="ja"] .qj-pagehead h1, html[lang="ja"] .qj-auth__slogan { letter-spacing: 0; }
@media (max-width: 1340px) {
    .qj-header__inner { gap: 18px; }
    .qj-search input { width: 160px; }
    .qj-search input:focus { width: 200px; }
    .qj-nav a { padding: 10px 11px; }
}
@media (max-width: 1080px) {
    .qj-search input { width: 130px; }
    .qj-search input:focus { width: 170px; }
    .qj-nav a { padding: 10px 8px; font-size: 14px; }
    .qj-brand__divider, .qj-header .qj-brand .qj-seal { display: none !important; }
}
@media (max-width: 960px) {
    .qj-nav, .qj-header .qj-search, .qj-header .qj-auth, .qj-header .qj-user-wrap { display: none !important; }
    .qj-burger { display: inline-flex; }
    .qj-header__inner { gap: 12px; }
    .qj-tools { margin-left: auto; }
    .qj-drawer {
        position: fixed; inset: var(--qj-header-h) 0 auto 0; z-index: 1029; display: block;
        padding: 14px 16px 22px; background: var(--qj-surface-strong); border-bottom: 1px solid var(--qj-line);
        box-shadow: var(--qj-shadow); -webkit-backdrop-filter: var(--qj-blur); backdrop-filter: var(--qj-blur);
        transform: translateY(-10px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--qj-ease), visibility .25s;
    }
    .qj-drawer-open .qj-drawer { transform: none; opacity: 1; visibility: visible; }
    .qj-drawer-open .qj-header { background: var(--qj-surface-strong); border-bottom-color: var(--qj-line); }
    .qj-drawer nav { display: grid; gap: 2px; }
    .qj-drawer nav a { display: flex; align-items: center; justify-content: space-between; padding: 13px 6px; font-size: 16px; color: var(--qj-ink) !important; border-bottom: 1px solid var(--qj-line); }
    .qj-drawer .qj-search { display: flex; margin: 4px 0 12px; }
    .qj-drawer .qj-search input, .qj-drawer .qj-search input:focus { width: 100%; height: 44px; }
    .qj-drawer__auth { display: flex; gap: 10px; margin-top: 14px; }
    .qj-drawer__auth .qj-btn { flex: 1; }
}
@media (max-width: 420px) { .qj-brand__name { font-size: 17px; } .qj-brand__divider, .qj-header .qj-seal { display: none !important; } }

/* ============================================================ 5. 首屏 */
.qj-hero { position: relative; min-height: clamp(560px, calc(100vh - var(--qj-header-h) - 40px), 800px); display: grid; align-items: center; padding: 40px 0 56px; }
.qj-hero__grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 40px; align-items: center; }
.qj-hero__copy { position: relative; z-index: 2; max-width: 600px; }
.qj-hero__realm { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px; padding: 6px 14px 6px 8px; border-radius: 999px; border: 1px solid var(--qj-line); background: var(--qj-surface-soft); color: var(--qj-ink-2); font-size: 13px; letter-spacing: .08em; -webkit-backdrop-filter: var(--qj-blur); backdrop-filter: var(--qj-blur); }
.qj-hero__realm .qj-seal { width: 26px; height: 26px; }
.qj-hero__realm b { color: var(--qj-ink); font-weight: 600; letter-spacing: .14em; }
.qj-hero h1 {
    margin: 0 0 22px; font: 400 clamp(40px, 5.2vw, 70px)/1.12 var(--qj-font-display); letter-spacing: .02em; color: var(--qj-ink);
    text-wrap: balance;
}
.qj-hero h1 .qj-h1-line { display: block; }
.qj-hero h1 .qj-h1-line + .qj-h1-line { color: var(--qj-accent); }
.qj-hero__lead { max-width: 520px; margin: 0 0 34px; font-size: 17px; line-height: 1.75; color: var(--qj-ink-2); }
.qj-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.qj-hero__actions .qj-btn { min-height: 54px; padding: 0 30px; font-size: 16px; }
.qj-models { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; color: var(--qj-ink-3); font-size: 13px; letter-spacing: .06em; }
.qj-models span { display: inline-flex; align-items: center; gap: 8px; }
.qj-models svg { width: 18px; height: 18px; color: var(--qj-accent); opacity: .9; }
.qj-models__label { padding-right: 6px; border-right: 1px solid var(--qj-line-strong); letter-spacing: .14em; }

.qj-hero__stage { position: relative; align-self: stretch; min-height: 460px; }
.qj-feature {
    display: block; /* <a>：窄屏改为相对定位后若是行内元素，内边距会画成一条白边 */
    position: absolute; right: 0; bottom: 4%; width: min(400px, 92%); padding: 16px; border-radius: var(--qj-radius-xl);
    color: var(--qj-ink) !important; transform: translateZ(0);
    transition: transform .5s var(--qj-ease), box-shadow .5s var(--qj-ease);
}
.qj-feature:hover { transform: translateY(-4px); box-shadow: var(--qj-shadow); }
.qj-feature__media { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--qj-media); }
.qj-feature__body { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 16px 6px 4px; }
.qj-feature__kicker { font-size: 12px; letter-spacing: .16em; color: var(--qj-accent); }
.qj-feature__name { margin-top: 6px; font: 400 20px/1.25 var(--qj-font-display); }
.qj-feature__price { text-align: right; white-space: nowrap; }
.qj-feature__price small { display: block; font-size: 12px; color: var(--qj-ink-3); }
.qj-feature__price strong { font: 400 28px/1 var(--qj-font-serif); }
.qj-feature__price strong em { font-style: normal; font-size: 16px; margin-right: 2px; color: var(--qj-ink-2); }

@media (max-width: 960px) {
    .qj-hero { min-height: 0; padding: 34px 0 30px; }
    .qj-hero__grid { grid-template-columns: 1fr; gap: 28px; }
    .qj-hero__stage { min-height: 0; }
    .qj-feature { position: relative; right: auto; bottom: auto; width: 100%; }
}
@media (max-width: 560px) {
    .qj-hero h1 { font-size: 38px; }
    .qj-hero__lead { font-size: 15.5px; margin-bottom: 26px; }
    .qj-hero__actions .qj-btn { flex: 1; min-height: 50px; padding: 0 18px; }
    .qj-hero__realm { margin-bottom: 18px; }
}

/* ============================================================ 6. 段落与目录 */
.qj-section { position: relative; padding: 46px 0; }
.qj-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.qj-section__title { margin: 10px 0 0; font: 400 clamp(28px, 3vw, 38px)/1.2 var(--qj-font-display); color: var(--qj-ink); letter-spacing: .02em; }
.qj-section__copy { margin: 10px 0 0; max-width: 560px; color: var(--qj-ink-2); font-size: 15px; }
.qj-section__link { display: inline-flex; align-items: center; gap: 8px; color: var(--qj-ink-2) !important; font-size: 14px; white-space: nowrap; }
.qj-section__link:hover { color: var(--qj-ink) !important; }

.qj-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.qj-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.qj-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1180px) { .qj-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .qj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 520px) { .qj-grid { grid-template-columns: 1fr; } }
.qj-grid > [hidden] { display: none !important; }

.qj-card {
    --qj-mx: 50%; --qj-my: 0%;
    position: relative; display: flex; flex-direction: column; height: 100%; padding: 12px; border-radius: var(--qj-radius-lg);
    color: var(--qj-ink) !important; overflow: hidden;
    transition: transform .45s var(--qj-ease), box-shadow .45s var(--qj-ease), border-color .3s;
}
.qj-card::before { /* 指针处的一点光 */
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
    background: radial-gradient(420px circle at var(--qj-mx) var(--qj-my), rgba(var(--qj-accent-rgb), .16), transparent 44%);
}
.qj-card:hover { transform: translateY(-5px); box-shadow: var(--qj-shadow); border-color: rgba(var(--qj-accent-rgb), .35); }
.qj-card:hover::before { opacity: 1; }
.qj-card__media { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--qj-media); }
.qj-card__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), inset 0 -40px 60px -40px rgba(var(--qj-accent-rgb), .25); pointer-events: none; }
.qj-card__media .qj-card__state { position: absolute; left: 10px; top: 10px; z-index: 3; color: var(--qj-ink); background: var(--qj-surface-strong); border-color: var(--qj-line); -webkit-backdrop-filter: var(--qj-blur); backdrop-filter: var(--qj-blur); }
.qj-card__media .qj-card__state.qj-tag--soldout { color: var(--qj-bad); }

/* 商品图：后台封面多为方图且自带底色。放进 16:10 / 4:3 画框时，用同图的柔焦做底，
   原图作为一张「画片」居中；横图（≥1.45）直接铺满，图标类封面只做小尺寸点缀。 */
.qj-media { position: relative; isolation: isolate; overflow: hidden; background: var(--qj-media); }
.qj-media__haze { position: absolute; left: -15%; top: -15%; width: 130%; height: 130%; z-index: 0; object-fit: cover; filter: blur(28px) saturate(1.3); opacity: .5; transform: scale(1.04); pointer-events: none; }
:root[data-appearance="dark"] .qj-media__haze { opacity: .38; filter: blur(30px) saturate(1.2) brightness(.72); }
.qj-media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
    background: radial-gradient(90% 70% at 50% 100%, rgba(var(--qj-accent-rgb), .18), transparent 70%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.qj-media__art {
    position: absolute; left: 50%; top: 50%; z-index: 2; height: 76%; width: auto; max-width: 74%; object-fit: contain;
    border-radius: 14px; background: var(--qj-surface-strong); transform: translate(-50%, -50%);
    box-shadow: 0 18px 34px rgba(0, 0, 0, .2), 0 0 0 1px rgba(255, 255, 255, .28);
    transition: transform .8s var(--qj-ease);
}
.qj-media.is-wide .qj-media__art { left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; box-shadow: none; transform: none; }
.qj-media.is-wide .qj-media__haze { display: none; }
.qj-media--icon .qj-media__art { height: 44%; max-width: 40%; border-radius: 0; background: none; box-shadow: none; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .14)); }
.qj-card:hover .qj-media__art, .qj-feature:hover .qj-media__art { transform: translate(-50%, -50%) scale(1.045); }
.qj-card:hover .qj-media.is-wide .qj-media__art, .qj-feature:hover .qj-media.is-wide .qj-media__art { transform: scale(1.035); }
.qj-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 14px 6px 4px; }
.qj-card__family { font-size: 12px; letter-spacing: .14em; color: var(--qj-ink-3); text-transform: uppercase; }
.qj-card__title { margin: 0; font: 400 19px/1.35 var(--qj-font-display); color: var(--qj-ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.7em; }
.qj-card__tags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 24px; }
.qj-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--qj-line); }
.qj-price { display: inline-flex; align-items: baseline; gap: 2px; white-space: nowrap; }
.qj-price em { font-style: normal; font-size: 14px; color: var(--qj-ink-2); }
.qj-price strong { font: 400 26px/1 var(--qj-font-serif); color: var(--qj-ink); letter-spacing: .01em; }
.qj-price small { margin-left: 6px; font-size: 12px; color: var(--qj-ink-3); }
.qj-card__meta { font-size: 12px; color: var(--qj-ink-3); }
.qj-card__go { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--qj-line-strong); color: var(--qj-ink); flex: none; transition: background .3s, color .3s, border-color .3s, transform .3s var(--qj-ease); }
.qj-card__go svg { width: 16px; height: 16px; }
.qj-card:hover .qj-card__go { background: linear-gradient(135deg, var(--qj-action-a), var(--qj-action-b)); color: var(--qj-on-action); border-color: transparent; transform: translateX(2px); }
.qj-card.is-soldout .qj-media img { filter: grayscale(.85) opacity(.55); }
.qj-card.is-soldout .qj-price strong { color: var(--qj-ink-3); }

.qj-empty { grid-column: 1 / -1; padding: 46px 20px; text-align: center; color: var(--qj-ink-2); }
.qj-empty strong { display: block; margin-bottom: 8px; font: 400 22px/1.3 var(--qj-font-display); color: var(--qj-ink); }
.qj-empty a { color: var(--qj-accent) !important; text-decoration: underline; text-underline-offset: 3px; }
/* 关键词筛选提示：搜了什么、剩几款、一键清除 */
.qj-filter-note { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 16px; padding: 10px 10px 10px 16px; border-radius: 14px; border: 1px solid var(--qj-line); background: var(--qj-surface-soft); color: var(--qj-ink-2); font-size: 14px; }
.qj-filter-note[hidden] { display: none; }
.qj-filter-note__text { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 6px; min-width: 0; }
.qj-filter-note__label { color: var(--qj-ink-3); }
.qj-filter-note q { color: var(--qj-ink); font-weight: 600; overflow-wrap: anywhere; }
.qj-filter-note b { color: var(--qj-ink); font-weight: 600; }
.qj-filter-note__clear { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--qj-line-strong); background: transparent; color: var(--qj-ink); font-size: 13px; cursor: pointer; }
.qj-filter-note__clear:hover { border-color: rgba(var(--qj-accent-rgb), .6); color: var(--qj-accent); }
.qj-filter-note__clear svg { width: 14px; height: 14px; }

/* 三步 */
.qj-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 8px; border-radius: var(--qj-radius-xl); }
.qj-step { position: relative; display: flex; gap: 16px; padding: 22px 24px; }
.qj-step + .qj-step::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: var(--qj-line); }
.qj-step__no { font: 400 34px/1 var(--qj-font-serif); color: var(--qj-accent); opacity: .85; min-width: 34px; }
.qj-step h3 { margin: 2px 0 6px; font-size: 16px; font-weight: 600; color: var(--qj-ink); }
.qj-step p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--qj-ink-2); }
@media (max-width: 760px) { .qj-steps { grid-template-columns: 1fr; } .qj-step + .qj-step::before { left: 24px; right: 24px; top: 0; bottom: auto; width: auto; height: 1px; } }

/* 帮助入口：一行一条，安静 */
.qj-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.qj-link { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: var(--qj-radius-md); color: var(--qj-ink) !important; transition: transform .35s var(--qj-ease), border-color .3s; }
.qj-link:hover { transform: translateY(-3px); border-color: rgba(var(--qj-accent-rgb), .35); }
.qj-link strong { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15.5px; font-weight: 600; }
.qj-link strong svg { width: 16px; height: 16px; color: var(--qj-accent); transition: transform .3s var(--qj-ease); }
.qj-link:hover strong svg { transform: translateX(3px); }
.qj-link span { font-size: 13.5px; color: var(--qj-ink-2); }
@media (max-width: 960px) { .qj-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .qj-links { grid-template-columns: 1fr; } }

/* 服务范围提示（站长公告） */
.qj-note { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: var(--qj-radius-md); font-size: 13.5px; line-height: 1.7; color: var(--qj-ink-2); }
.qj-note b { flex: none; color: var(--qj-accent); font-weight: 600; letter-spacing: .08em; }
.qj-note p { margin: 0; }

/* ============================================================ 7. 页尾 */
.qj-footer { position: relative; z-index: 1; padding: 34px 0 30px; margin-top: 30px; }
.qj-footer__panel { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.25fr; gap: 28px; padding: 30px 32px; border-radius: var(--qj-radius-xl); }
.qj-footer__brand p { margin: 14px 0 0; max-width: 300px; font-size: 13.5px; line-height: 1.75; color: var(--qj-ink-2); }
.qj-footer h4 { margin: 4px 0 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .18em; color: var(--qj-ink-3); }
.qj-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.qj-footer li a { font-size: 14px; color: var(--qj-ink-2) !important; }
.qj-footer li a:hover { color: var(--qj-ink) !important; }
.qj-contact { display: grid; gap: 10px; }
.qj-contact a, .qj-contact button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 11px 14px; border-radius: 13px; border: 1px solid var(--qj-line); background: var(--qj-surface-soft); color: var(--qj-ink) !important; font-size: 13.5px; cursor: pointer; text-align: left; }
.qj-contact a:hover, .qj-contact button:hover { border-color: var(--qj-line-strong); background: var(--qj-surface-strong); }
.qj-contact em { font-style: normal; font-size: 12.5px; color: var(--qj-accent); white-space: nowrap; }
.qj-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 18px 8px 0; font-size: 12.5px; color: var(--qj-ink-3); }
.qj-footer__bottom b { font-weight: 500; color: var(--qj-ink-2); }
.qj-footer__bottom .qj-today { display: inline-flex; align-items: center; gap: 8px; }
.qj-footer__bottom .qj-today .qj-seal { width: 18px; height: 18px; }
.qj-footer__scope { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--qj-line); font-size: 12.5px; line-height: 1.75; color: var(--qj-ink-3); }
@media (max-width: 960px) { .qj-footer__panel { grid-template-columns: 1fr 1fr; padding: 24px 22px; } .qj-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .qj-footer__panel { grid-template-columns: 1fr; } }

.qj-help-float {
    position: fixed; right: 20px; bottom: 22px; z-index: 1020; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 14px;
    border-radius: 999px; color: var(--qj-on-action) !important; background: linear-gradient(135deg, var(--qj-action-a), var(--qj-action-b));
    box-shadow: 0 14px 30px rgba(var(--qj-accent-rgb), .32); font-size: 14px; font-weight: 600; transition: transform .3s var(--qj-ease);
}
.qj-help-float:hover { transform: translateY(-2px); }
.qj-help-float svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .qj-help-float { right: 14px; bottom: 14px; height: 44px; padding: 0 14px; } .qj-help-float span { display: none; } }

/* ============================================================ 7½. 首页补充 */
.qj-assure { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; color: var(--qj-ink-3); font-size: 13.5px; letter-spacing: .04em; }
.qj-assure li { display: inline-flex; align-items: center; gap: 9px; }
.qj-assure li::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); border: 1px solid var(--qj-accent); background: rgba(var(--qj-accent-rgb), .25); }
.qj-assure b { color: var(--qj-ink); font-weight: 600; }

.qj-orbit { position: absolute; inset: 0; pointer-events: none; }
.qj-orbit__chip {
    position: absolute; pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px;
    border-radius: 999px; border: 1px solid var(--qj-line); background: var(--qj-surface); color: var(--qj-ink) !important;
    font: 500 14px/1 var(--qj-font-body); letter-spacing: .02em; box-shadow: var(--qj-shadow-soft);
    -webkit-backdrop-filter: var(--qj-blur); backdrop-filter: var(--qj-blur);
    animation: qj-float 9s ease-in-out infinite; transition: border-color .3s, background-color .3s;
}
.qj-orbit__chip svg { width: 18px; height: 18px; color: var(--qj-accent); }
.qj-orbit__chip:hover { border-color: rgba(var(--qj-accent-rgb), .5); background: var(--qj-surface-strong); }
.qj-orbit__chip--a { left: 8%; top: 8%; animation-delay: -1s; }
.qj-orbit__chip--b { right: 4%; top: 2%; animation-delay: -4s; }
.qj-orbit__chip--c { left: 0; top: 44%; animation-delay: -6.5s; }
.qj-orbit__chip--d { left: 12%; bottom: 10%; animation-delay: -2.5s; }
@keyframes qj-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -10px, 0); } }
:root[data-motion="static"] .qj-orbit__chip { animation: none; }

.qj-feature__media, .qj-card__media { display: block; }
.qj-feature__body, .qj-feature__body > span:first-child { min-width: 0; }
.qj-feature__kicker, .qj-feature__name { display: block; }
.qj-feature__ribbon { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 8px; font-size: 12px; letter-spacing: .14em; color: var(--qj-on-action); background: linear-gradient(135deg, var(--qj-action-a), var(--qj-action-b)); }
.qj-card__title, .qj-card__family { display: block; }

.qj-section--tight { padding: 26px 0; }
.qj-steps { margin: 0; list-style: none; }
.qj-step__no { font-family: var(--qj-font-display); font-size: 30px; }

@keyframes qj-enter { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.qj-enter { animation: qj-enter .55s var(--qj-ease) both; }

.qj-ico { width: 16px; height: 16px; flex: none; color: var(--qj-accent); }
.qj-contact span { display: inline-flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qj-footer__brand .qj-footer__hours { margin-top: 8px; font-size: 12.5px; color: var(--qj-ink-3); }

.qj-dock { display: none; }
@media (max-width: 960px) {
    .qj-orbit { position: static; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
    .qj-orbit__chip { position: static; animation: none; height: 36px; font-size: 13px; }
}
/* 1200 以下两栏变窄：平台入口改成主推卡上方的一行，不再浮在卡片周围 */
@media (min-width: 961px) and (max-width: 1200px) {
    .qj-hero__stage { display: flex; flex-direction: column; justify-content: center; gap: 16px; min-height: 0; }
    .qj-orbit { position: static; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
    .qj-orbit__chip { position: static; animation: none; }
    .qj-feature { position: relative; right: auto; bottom: auto; width: 100%; }
}
/* 平板：主推卡改成「缩略图 + 文字」横排 */
@media (min-width: 641px) and (max-width: 960px) {
    .qj-feature { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; align-items: center; padding: 12px; }
    .qj-feature__media { aspect-ratio: 16 / 10; border-radius: 14px; }
    .qj-feature__body { padding: 0 10px 0 0; }
}
/* 手机：主推卡与商品卡改成「缩略图 + 文字」横排，首屏和目录都短一半 */
@media (max-width: 640px) {
    .qj-hero__grid > * { min-width: 0; }
    .qj-orbit { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding: 2px 0 4px; scrollbar-width: none; }
    .qj-orbit::-webkit-scrollbar { display: none; }
    .qj-orbit__chip { flex: none; }
    .qj-feature { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; }
    .qj-feature__media { aspect-ratio: 1; border-radius: 14px; }
    .qj-feature__media .qj-media__art { height: 80%; max-width: 80%; border-radius: 10px; }
    .qj-feature__ribbon { left: 6px; top: 6px; padding: 3px 7px; font-size: 10.5px; letter-spacing: .08em; }
    .qj-feature__body { padding: 0 6px 0 0; }
    .qj-feature__name { font-size: 17px; }
    .qj-feature__price strong { font-size: 24px; }
}
@media (max-width: 560px) {
    .qj-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 10px; align-items: start; }
    .qj-card__media { aspect-ratio: 1; border-radius: 14px; }
    .qj-card__media .qj-media__art { height: 80%; max-width: 80%; border-radius: 10px; }
    .qj-card__media .qj-card__state { left: 6px; top: 6px; height: 20px; padding: 0 6px; font-size: 10.5px; }
    .qj-card__body { padding: 2px 4px 2px 0; gap: 7px; }
    .qj-card__family { font-size: 11px; letter-spacing: .1em; }
    .qj-card__title { font-size: 16px; min-height: 0; }
    .qj-card__tags { min-height: 0; gap: 5px; }
    .qj-card__tags .qj-tag { height: 22px; padding: 0 7px; font-size: 11.5px; }
    .qj-card__foot { padding-top: 9px; }
    .qj-card__go { width: 32px; height: 32px; }
    .qj-price strong { font-size: 22px; }
    .qj-card:hover { transform: none; }
}
@media (max-width: 640px) {
    .qj-dock {
        position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 1025;
        display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 6px; padding: 6px; border-radius: 20px;
        background: var(--qj-surface-strong); border: 1px solid var(--qj-line); box-shadow: var(--qj-shadow);
        -webkit-backdrop-filter: var(--qj-blur); backdrop-filter: var(--qj-blur);
    }
    .qj-dock a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px; border-radius: 15px; font-size: 13.5px; font-weight: 600; color: var(--qj-ink-2) !important; }
    .qj-dock a svg { width: 17px; height: 17px; }
    .qj-dock .qj-dock__primary { color: var(--qj-on-action) !important; background: linear-gradient(135deg, var(--qj-action-a), var(--qj-action-b)); }
    .qj-help-float--dockable { display: none; }
    .qj-store .qj-footer { padding-bottom: 96px; }
}

.qj-toast {
    position: fixed; right: 20px; bottom: 82px; z-index: 1040; width: min(330px, calc(100vw - 24px)); padding: 18px 18px 16px;
    opacity: 0; transform: translateY(12px); transition: opacity .4s var(--qj-ease), transform .4s var(--qj-ease);
}
.qj-toast.is-shown { opacity: 1; transform: none; }
.qj-toast strong { display: block; font: 400 18px/1.3 var(--qj-font-display); color: var(--qj-ink); }
.qj-toast p { margin: 6px 0 14px; font-size: 13.5px; color: var(--qj-ink-2); }
.qj-toast__close { position: absolute; right: 10px; top: 8px; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--qj-ink-3); cursor: pointer; }
@media (max-width: 640px) { .qj-toast { right: 12px; bottom: 84px; } }

/* ============================================================ 7¾. 系统提示与弹层（toastr / layer）
   系统脚本照常调用 message.* / layer.*，这里只换外观，商城、登录与会员中心通用。 */
html body #toast-container.toast-top-right { top: calc(var(--qj-header-h) + 10px); right: 16px; }
html body #toast-container > .toast {
    position: relative; width: min(360px, calc(100vw - 24px)); margin: 0 0 10px; padding: 14px 40px 14px 46px;
    border-radius: 14px; border: 1px solid var(--qj-line); opacity: 1 !important;
    background-color: var(--qj-surface-strong) !important; background-image: none !important;
    color: var(--qj-ink) !important; font-size: 14px; line-height: 1.6;
    box-shadow: var(--qj-shadow) !important; -webkit-backdrop-filter: var(--qj-blur); backdrop-filter: var(--qj-blur);
}
html body #toast-container > .toast::before {
    content: ""; position: absolute; left: 18px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
    background: var(--qj-accent); box-shadow: 0 0 0 4px rgba(var(--qj-accent-rgb), .18);
}
html body #toast-container > .toast-error::before { background: var(--qj-bad); box-shadow: 0 0 0 4px rgba(178, 66, 63, .18); }
html body #toast-container > .toast-success::before { background: var(--qj-good); box-shadow: 0 0 0 4px rgba(47, 122, 87, .18); }
html body #toast-container > .toast-warning::before { background: var(--qj-warn); box-shadow: 0 0 0 4px rgba(168, 106, 31, .18); }
html body #toast-container > .toast .toast-message, html body #toast-container > .toast .toast-title { color: var(--qj-ink) !important; }
html body #toast-container .toast-close-button { position: absolute; right: 12px; top: 10px; color: var(--qj-ink-3); text-shadow: none; opacity: .8; }
html body #toast-container .toast-progress { background: var(--qj-accent); opacity: .35; }

html body .layui-layer.layui-layer-msg, html body .layui-layer.layui-layer-hui {
    min-width: 0; border-radius: 999px; border: 1px solid var(--qj-line);
    background: var(--qj-surface-strong) !important; box-shadow: var(--qj-shadow) !important;
    -webkit-backdrop-filter: var(--qj-blur); backdrop-filter: var(--qj-blur);
}
html body .layui-layer-msg .layui-layer-content, html body .layui-layer-hui .layui-layer-content { padding: 12px 22px; color: var(--qj-ink) !important; font-size: 14px; }
html body .layui-layer.layui-layer-page, html body .layui-layer.layui-layer-dialog:not(.layui-layer-msg):not(.layui-layer-hui) {
    border-radius: 20px; border: 1px solid var(--qj-line); color: var(--qj-ink);
    background: var(--qj-surface-strong) !important; /* _.css 给 .layui-layer-page 写死了白底 !important */
    box-shadow: var(--qj-shadow); -webkit-backdrop-filter: var(--qj-blur); backdrop-filter: var(--qj-blur);
}
html body .layui-layer .layui-layer-title { border-radius: 20px 20px 0 0; }
html body .layui-layer .layui-layer-setwin a { color: var(--qj-ink-2); opacity: .85; }
:root[data-appearance="dark"] .layui-layer .layui-layer-setwin a { filter: invert(.9) hue-rotate(180deg); }
/* layer 3.5+ 的标题栏按钮是 span：最小化 / 最大化由伪元素边框画出，系统写死 #2E2D3C，夜晚几乎看不见 */
html body .layui-layer .layui-layer-setwin .layui-layer-min::before, html body .layui-layer .layui-layer-setwin .layui-layer-min::after,
html body .layui-layer .layui-layer-setwin .layui-layer-max::before, html body .layui-layer .layui-layer-setwin .layui-layer-max::after { border-color: var(--qj-ink-2) !important; }
html body .layui-layer .layui-layer-setwin .layui-layer-close { color: var(--qj-ink-2) !important; }
html body .layui-layer .layui-layer-setwin > span:hover::before, html body .layui-layer .layui-layer-setwin > span:hover::after { border-color: var(--qj-accent) !important; }
html body .layui-layer .layui-layer-setwin .layui-layer-close:hover { color: var(--qj-accent) !important; }
html body .layui-layer .layui-layer-title { color: var(--qj-ink) !important; background: transparent; border-bottom-color: var(--qj-line); font-weight: 600; opacity: 1; }
html body .layui-layer .layui-layer-title * { color: inherit; opacity: 1; }
html body .layui-layer .layui-layer-content { color: var(--qj-ink); }
html body .layui-layer .layui-layer-btn .layui-layer-btn0 { border-color: transparent; color: var(--qj-on-action); background: linear-gradient(135deg, var(--qj-action-a), var(--qj-action-b)); border-radius: 10px; }
html body .layui-layer .layui-layer-btn a:not(.layui-layer-btn0) { border-color: var(--qj-line-strong); color: var(--qj-ink); background: transparent; border-radius: 10px; }
html body .layui-layer-shade { background-color: rgba(10, 12, 10, .55) !important; }
html body .acg-secret__code { color: var(--qj-ink); background: var(--qj-field); border-color: rgba(var(--qj-accent-rgb), .35); }
html body .acg-secret__btn { color: var(--qj-ink); border-color: var(--qj-line-strong); background: var(--qj-surface-soft); }
html body .acg-secret__btn:hover { border-color: rgba(var(--qj-accent-rgb), .6); }
/* component.js 给每个表单弹层右上角挂一张二次元立绘（ks.webp）；系统自己的新外壳（Cartoon 商城 / 会员外壳）已把它隐藏，
   七境同样隐藏——弹层贴近页顶时它会压住顶栏 */
html body.qj-body .component-popup .component-popup-acg { display: none !important; }
/* 系统表格与徽章用 Bootstrap 的 text-success / -warning / -danger（!important 的饱和绿红）；接到七境的语义色，白天夜晚各一套 */
html body.qj-body .text-success { color: var(--qj-good) !important; }
html body.qj-body .text-warning { color: var(--qj-warn) !important; }
html body.qj-body .text-danger { color: var(--qj-bad) !important; }
/* format.money() 输出 <span style="color: green|red|#447cf3"> 的金额（账单、订单、推广收益），行内色只能用属性选择器接管 */
html body.qj-body span[style*="color: green"] { color: var(--qj-good) !important; }
html body.qj-body span[style*="color: red"] { color: var(--qj-bad) !important; }
html body.qj-body span[style*="color: #447cf3"] { color: var(--qj-accent) !important; }
/* 系统徽章（发货状态、支付方式等）原色是纯红 / 荧光绿，换成七境语义色 */
html body.qj-body .a-badge-success { color: var(--qj-good); background-color: color-mix(in srgb, var(--qj-good) 14%, transparent); }
html body.qj-body .a-badge-danger { color: var(--qj-bad); background-color: color-mix(in srgb, var(--qj-bad) 14%, transparent); }
html body.qj-body .a-badge-warning { color: var(--qj-warn); background-color: color-mix(in srgb, var(--qj-warn) 16%, transparent); }
html body.qj-body .a-badge-primary { color: var(--qj-accent); background-color: rgba(var(--qj-accent-rgb), .12); }

@media (max-width: 640px) { .qj-feature__ribbon { display: none; } }

/* ============================================================ 8. 动效 */
[data-qj-reveal].is-armed { opacity: 0; transform: translateY(16px); }
[data-qj-reveal].is-armed.is-revealed { opacity: 1; transform: none; transition: opacity .9s var(--qj-ease) var(--qj-delay, 0ms), transform .9s var(--qj-ease) var(--qj-delay, 0ms); }
.qj-decor-ping { animation: qj-ping .9s var(--qj-ease); }
@keyframes qj-ping { 0% { filter: none; } 30% { filter: brightness(1.04); } 100% { filter: none; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
:root[data-motion="static"] [data-qj-reveal].is-armed { opacity: 1; transform: none; }
