/* ==========================================================================
   QuarkROM 镜像页设计系统（lists / details 共用）
   视觉语言与用户中心 uc.css 对齐：暖金强调色 + 纸感浅色 / 深墨色双主题
   命名空间：qr- ；主题切换：html[data-theme="dark"]
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. 设计令牌
   -------------------------------------------------------------------------- */

:root {
    --qr-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --qr-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

    --qr-maxw: 1180px;

    --qr-accent: #eba744;
    --qr-accent-deep: #8f5c0d;
    --qr-accent-soft: rgba(235, 167, 68, 0.16);
    --qr-accent-line: rgba(235, 167, 68, 0.38);

    --qr-bg: #f4f1ea;
    --qr-bg-glow: rgba(235, 167, 68, 0.16);
    --qr-paper: #ffffff;
    --qr-paper-2: #fbfaf6;
    --qr-paper-3: #f3efe6;
    --qr-line: #e7e2d8;
    --qr-line-strong: #d8d1c3;

    --qr-ink: #23252f;
    --qr-ink-soft: #4a4d5c;
    --qr-muted: #6e6b7a;
    --qr-faint: #938e9c;

    --qr-danger: #cf4a4a;
    --qr-success: #2f9268;
    --qr-info: #3b61dd;

    --qr-radius: 20px;
    --qr-radius-sm: 12px;
    --qr-shadow: 0 26px 60px -44px rgba(28, 30, 43, 0.5), 0 2px 6px rgba(28, 30, 43, 0.04);
    --qr-shadow-soft: 0 10px 30px -24px rgba(28, 30, 43, 0.4);

    --qr-header-bg: rgba(244, 241, 234, 0.82);
    --qr-header-line: rgba(35, 37, 47, 0.08);

    --qr-hero: linear-gradient(148deg, #272a3b 0%, #1d1f2c 52%, #16171f 100%);
    --qr-hero-line: rgba(255, 255, 255, 0.1);
    --qr-hero-text: #f7f4ec;
    --qr-hero-muted: #b9b6c6;
}

html[data-theme="dark"] {
    --qr-accent: #f0b45c;
    --qr-accent-deep: #f6cd8d;
    --qr-accent-soft: rgba(240, 180, 92, 0.16);
    --qr-accent-line: rgba(240, 180, 92, 0.34);

    --qr-bg: #101117;
    --qr-bg-glow: rgba(240, 180, 92, 0.1);
    --qr-paper: #1a1c25;
    --qr-paper-2: #20222e;
    --qr-paper-3: #262936;
    --qr-line: #2b2e3c;
    --qr-line-strong: #3b3f52;

    --qr-ink: #f4f1e9;
    --qr-ink-soft: #cfccd8;
    --qr-muted: #a6a1b1;
    --qr-faint: #847f91;

    --qr-danger: #f07b7b;
    --qr-success: #59c295;
    --qr-info: #8aa6ff;

    --qr-shadow: 0 26px 60px -40px rgba(0, 0, 0, 0.85), 0 2px 8px rgba(0, 0, 0, 0.3);
    --qr-shadow-soft: 0 10px 30px -22px rgba(0, 0, 0, 0.8);

    --qr-header-bg: rgba(16, 17, 23, 0.82);
    --qr-header-line: rgba(255, 255, 255, 0.08);

    --qr-hero: linear-gradient(148deg, #242838 0%, #1a1c27 55%, #14151d 100%);
    --qr-hero-line: rgba(255, 255, 255, 0.09);
}

/* --------------------------------------------------------------------------
   02. 基础
   -------------------------------------------------------------------------- */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

body.qr-page {
    margin: 0;
    min-height: 100vh;
    color: var(--qr-ink);
    background:
        radial-gradient(900px 520px at 4% -8%, var(--qr-bg-glow), transparent 62%),
        radial-gradient(760px 460px at 100% 0%, rgba(59, 97, 221, 0.05), transparent 58%),
        var(--qr-bg);
    font-size: 15px;
    line-height: 1.6;
    font-family: var(--qr-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color .35s ease, color .35s ease;
}

body.qr-page *,
body.qr-page *::before,
body.qr-page *::after { box-sizing: border-box; }

body.qr-page a {
    color: var(--qr-accent-deep);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

body.qr-page a:hover { color: var(--qr-accent); }

body.qr-page img { max-width: 100%; }

.qr-container {
    width: 100%;
    max-width: var(--qr-maxw);
    margin: 0 auto;
    padding: 0 20px;
}

.qr-section { padding: 44px 0; scroll-margin-top: 84px; }
.qr-section--alt { background: var(--qr-paper-2); border-top: 1px solid var(--qr-line); border-bottom: 1px solid var(--qr-line); }

.qr-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--qr-accent-deep);
}

.qr-eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--qr-accent);
}

.qr-section-head { max-width: 640px; margin-bottom: 26px; }

.qr-section-head h2 {
    margin: 0 0 8px;
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -.01em;
}

.qr-section-head p { margin: 0; color: var(--qr-muted); }

/* --------------------------------------------------------------------------
   03. 头部
   -------------------------------------------------------------------------- */

.qr-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--qr-header-bg);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid var(--qr-header-line);
    transition: box-shadow .3s ease, background-color .35s ease;
}

.qr-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(28, 30, 43, .25); }

.qr-header__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 64px;
}

.qr-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.qr-logo img {
    display: block;
    height: 34px;
    width: auto;
    max-width: 128px;
    transition: filter .35s ease;
}

html[data-theme="dark"] .qr-logo img { filter: brightness(0) invert(1); }

.qr-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.qr-nav::-webkit-scrollbar { display: none; }

.qr-nav a {
    position: relative;
    padding: 8px 13px;
    font-size: 14px;
    font-weight: 600;
    color: var(--qr-ink-soft);
    white-space: nowrap;
    border-radius: 10px;
    transition: color .2s ease, background-color .2s ease;
}

.qr-nav a:hover {
    color: var(--qr-accent-deep);
    background: var(--qr-accent-soft);
}

.qr-header__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

/* 登录 / 会员信息 */
.qr-auth { display: flex; align-items: center; gap: 10px; min-width: 0; }

.qr-auth__guest { display: flex; align-items: center; gap: 8px; }

.qr-auth__member { display: flex; align-items: center; gap: 10px; min-width: 0; }

.qr-auth__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--qr-accent-line);
    background: var(--qr-paper-3);
}

.qr-auth__name {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
    font-size: 14px;
}

.qr-auth__group {
    font-size: 12px;
    color: var(--qr-muted);
    white-space: nowrap;
}

/* 语言 / 主题切换（与全站 fiime-prefs 同名同构） */
.fiime-prefs {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--qr-line);
    border-radius: 999px;
    background: var(--qr-paper);
    box-shadow: var(--qr-shadow-soft);
}

.fiime-pref {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    color: var(--qr-muted);
    background: transparent;
    font-family: var(--qr-font);
    font-size: 12px;
    font-weight: 700;
    transition: color .2s ease, background-color .2s ease, transform .15s ease;
    -webkit-tap-highlight-color: transparent;
}

.fiime-pref:hover { color: var(--qr-accent-deep); background: var(--qr-accent-soft); }
.fiime-pref:active { transform: scale(.94); }
.fiime-pref:focus-visible { outline: 2px solid var(--qr-accent); outline-offset: 2px; }

.fiime-lang-toggle { width: 54px; }

.fiime-lang-toggle span { transition: color .2s ease, opacity .2s ease; }

html[data-lang="zh"] .fiime-lang-toggle .fiime-lang-zh,
html[data-lang="en"] .fiime-lang-toggle .fiime-lang-en {
    color: var(--qr-accent-deep);
}

html[data-lang="zh"] .fiime-lang-toggle .fiime-lang-en,
html[data-lang="en"] .fiime-lang-toggle .fiime-lang-zh { opacity: .45; }

.fiime-theme-toggle { width: 34px; }

.fiime-theme-toggle svg { width: 16px; height: 16px; display: block; }

.fiime-theme-toggle .fiime-moon { display: none; }

html[data-theme="dark"] .fiime-theme-toggle .fiime-sun { display: none; }
html[data-theme="dark"] .fiime-theme-toggle .fiime-moon { display: block; }

/* --------------------------------------------------------------------------
   04. Hero
   -------------------------------------------------------------------------- */

.qr-hero {
    position: relative;
    overflow: hidden;
    color: var(--qr-hero-text);
    background: var(--qr-hero);
}

.qr-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(640px 320px at 12% 0%, rgba(235, 167, 68, .22), transparent 62%),
        radial-gradient(520px 300px at 92% 18%, rgba(59, 97, 221, .2), transparent 60%);
    pointer-events: none;
}

.qr-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--qr-hero-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--qr-hero-line) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(720px 380px at 30% 20%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(720px 380px at 30% 20%, #000 0%, transparent 78%);
    opacity: .5;
    pointer-events: none;
}

.qr-hero__inner {
    position: relative;
    z-index: 1;
    padding: clamp(48px, 8vw, 84px) 20px clamp(40px, 6vw, 64px);
}

.qr-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--qr-accent);
}

.qr-hero__eyebrow .qr-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--qr-accent);
    box-shadow: 0 0 0 4px rgba(235, 167, 68, .18);
    animation: qr-pulse 2.4s ease-out infinite;
}

.qr-hero__title {
    margin: 0 0 12px;
    font-size: clamp(28px, 4.6vw, 44px);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -.02em;
}

.qr-hero__title em {
    font-style: normal;
    background: linear-gradient(120deg, #f6cd8d, #eba744 55%, #f6cd8d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.qr-hero__desc {
    max-width: 620px;
    margin: 0 0 30px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--qr-hero-muted);
}

/* 统计数字 */
.qr-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 640px;
    margin-bottom: 18px;
}

.qr-stat {
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--qr-radius-sm);
    background: rgba(255, 255, 255, .05);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.qr-stat__num {
    display: block;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
    color: #fff;
}

.qr-stat__num b { font-weight: 800; }

.qr-stat__label {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--qr-hero-muted);
}

/* 进度条 */
.qr-progress {
    max-width: 640px;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .1);
}

.qr-progress__bar {
    position: relative;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #b97f1e, var(--qr-accent) 60%, #f6cd8d);
    transition: width 1.4s cubic-bezier(.22, .9, .32, 1);
}

.qr-progress__bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%);
    transform: translateX(-100%);
    animation: qr-shimmer 2.6s ease-in-out infinite;
}

.qr-progress__text {
    max-width: 640px;
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--qr-hero-muted);
}

.qr-progress__text b { color: var(--qr-accent); font-variant-numeric: tabular-nums; }

/* 漂浮装饰 */
.qr-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
    animation: qr-float 9s ease-in-out infinite;
}

.qr-orb--1 {
    top: 18%;
    right: 6%;
    width: 130px;
    height: 130px;
    background: radial-gradient(circle at 32% 30%, rgba(240, 180, 92, .5), rgba(240, 180, 92, 0) 68%);
}

.qr-orb--2 {
    right: 16%;
    bottom: 12%;
    width: 86px;
    height: 86px;
    background: radial-gradient(circle at 32% 30%, rgba(91, 134, 255, .42), rgba(91, 134, 255, 0) 68%);
    animation-delay: -3.2s;
}

.qr-orb--3 {
    top: 12%;
    right: 30%;
    width: 54px;
    height: 54px;
    background: radial-gradient(circle at 32% 30%, rgba(246, 205, 141, .55), rgba(246, 205, 141, 0) 70%);
    animation-delay: -5.6s;
}

/* 详情页 hero（紧凑版） */
.qr-hero--detail .qr-hero__inner { padding-top: clamp(36px, 6vw, 60px); padding-bottom: clamp(32px, 5vw, 52px); }

.qr-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.qr-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .07);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--qr-hero-text);
}

.qr-badge svg { width: 13px; height: 13px; }

.qr-badge--gold {
    border-color: var(--qr-accent-line);
    background: rgba(235, 167, 68, .16);
    color: #f6cd8d;
}

html[data-theme="light"] .qr-badge--gold { color: #8f5c0d; }

.qr-hero__subtitle {
    margin: 0 0 22px;
    font-size: 14px;
    color: var(--qr-hero-muted);
    word-break: break-all;
}

.qr-hero__subtitle code {
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
    font-family: var(--qr-mono);
    font-size: 12.5px;
    color: #f6cd8d;
}

/* --------------------------------------------------------------------------
   05. 卡片通用
   -------------------------------------------------------------------------- */

.qr-card {
    position: relative;
    min-width: 0;
    padding: 26px;
    border: 1px solid var(--qr-line);
    border-radius: var(--qr-radius);
    background: var(--qr-paper);
    box-shadow: var(--qr-shadow-soft);
    transition: transform .3s cubic-bezier(.22, .9, .32, 1), box-shadow .3s ease, border-color .3s ease, background-color .35s ease;
}

.qr-card:hover {
    transform: translateY(-3px);
    border-color: var(--qr-accent-line);
    box-shadow: var(--qr-shadow);
}

/* --------------------------------------------------------------------------
   06. 搜索
   -------------------------------------------------------------------------- */

.qr-search { max-width: none; margin: 0; }

/* 搜索区双栏：左搜索卡 + 右侧贴士卡（PC 端避免搜索框孤立居中） */
.qr-search-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, .75fr);
    gap: 14px;
    align-items: stretch;
}

.qr-search-layout > * { min-width: 0; }

.qr-search-side { display: flex; flex-direction: column; }

.qr-side-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    padding: 24px;
    border: 1px solid var(--qr-line);
    border-radius: var(--qr-radius);
    background:
        radial-gradient(320px 160px at 100% 0%, var(--qr-accent-soft), transparent 70%),
        var(--qr-paper);
    box-shadow: var(--qr-shadow-soft);
}

.qr-side-card h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.qr-side-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qr-side-list li {
    position: relative;
    padding-left: 22px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--qr-muted);
}

.qr-side-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .5em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--qr-accent);
    box-shadow: 0 0 0 4px var(--qr-accent-soft);
}

.qr-side-card .qr-btn { margin-top: auto; align-self: flex-start; }

.qr-search h2 { margin: 0 0 6px; font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; letter-spacing: -.01em; }

.qr-search__desc { margin: 0 0 20px; color: var(--qr-muted); font-size: 14px; }

.qr-search__form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    min-width: 0;
    max-width: 100%;
}

/* 筛选表单：下拉两行布局 */
.qr-search__form--filters {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.qr-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.qr-select {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.qr-select > span {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--qr-ink-soft);
}

.qr-select select {
    width: 100%;
    height: 50px;
    padding: 0 38px 0 14px;
    border: 1.5px solid var(--qr-line-strong);
    border-radius: var(--qr-radius-sm);
    background-color: var(--qr-paper-2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23938e9c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    color: var(--qr-ink);
    font-family: var(--qr-font);
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .35s ease;
}

.qr-select select:focus {
    outline: none;
    border-color: var(--qr-accent);
    background-color: var(--qr-paper);
    box-shadow: 0 0 0 4px var(--qr-accent-soft);
}

html[data-theme="dark"] .qr-select select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23847f91' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.qr-kw-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    width: 100%;
}

.qr-kw-row .qr-field { flex: 1 1 auto; min-width: 0; }

.qr-kw-row .qr-search__btn { flex: 0 0 auto; }

.qr-select--type { flex: 0 0 auto; }

.qr-select--type .qr-type {
    height: 50px;
    box-sizing: border-box;
}

.qr-field { flex: 1 1 auto; min-width: 0; }

.qr-field > span {
    display: block;
    margin-bottom: 7px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--qr-ink-soft);
}

.qr-field input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1.5px solid var(--qr-line-strong);
    border-radius: var(--qr-radius-sm);
    background: var(--qr-paper-2);
    color: var(--qr-ink);
    font-family: var(--qr-font);
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .35s ease;
}

.qr-field input::placeholder { color: var(--qr-faint); }

.qr-field input:focus {
    outline: none;
    border-color: var(--qr-accent);
    background: var(--qr-paper);
    box-shadow: 0 0 0 4px var(--qr-accent-soft);
}

.qr-search__btn {
    position: relative;
    flex: 0 0 auto;
    height: 50px;
    min-width: 132px;
    padding: 0 24px;
    border: 0;
    border-radius: var(--qr-radius-sm);
    cursor: pointer;
    font-family: var(--qr-font);
    font-size: 15px;
    font-weight: 700;
    color: #231a06;
    background: linear-gradient(135deg, #f6cd8d, var(--qr-accent) 55%, #d99a2b);
    box-shadow: 0 12px 26px -12px rgba(235, 167, 68, .65), inset 0 1px 0 rgba(255, 255, 255, .5);
    transition: transform .18s ease, box-shadow .25s ease, filter .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.qr-search__btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 32px -12px rgba(235, 167, 68, .75); }
.qr-search__btn:active:not(:disabled) { transform: translateY(0); }
.qr-search__btn:disabled { cursor: not-allowed; filter: grayscale(.4) opacity(.75); }
.qr-search__btn:focus-visible { outline: 2px solid var(--qr-accent); outline-offset: 3px; }

.qr-search__btn.is-found {
    color: #fff;
    background: linear-gradient(135deg, #3fae7e, var(--qr-success));
    box-shadow: 0 12px 26px -12px rgba(47, 146, 104, .65);
}

.qr-search__hint {
    margin: 12px 0 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--qr-faint);
    overflow-wrap: anywhere;
}

.qr-search__hint code {
    display: inline;
    padding: 1px 6px;
    border-radius: 5px;
    background: var(--qr-paper-3);
    font-family: var(--qr-mono);
    font-size: 11.5px;
    color: var(--qr-accent-deep);
    word-break: break-all;
    overflow-wrap: anywhere;
}

/* 刷机类型分段按钮 */
.qr-type {
    display: inline-flex;
    flex-shrink: 0;
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--qr-line);
    border-radius: 12px;
    background: var(--qr-paper-2);
}

.qr-type__btn {
    height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--qr-muted);
    font-family: var(--qr-font);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.qr-type__btn:hover { color: var(--qr-accent-deep); background: var(--qr-accent-soft); }

.qr-type__btn.is-active {
    color: #231a06;
    background: var(--qr-accent);
    box-shadow: 0 6px 14px -8px rgba(235, 167, 68, .7);
}

.qr-type__btn:focus-visible { outline: 2px solid var(--qr-accent); outline-offset: 2px; }

/* 筛选结果列表 */
.qr-results {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--qr-line);
}

.qr-results__head {
    margin-bottom: 10px;
    font-size: 12.5px;
    color: var(--qr-muted);
}

.qr-results__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 440px;
    overflow-y: auto;
    padding-right: 4px;
}

.qr-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid var(--qr-line);
    border-radius: 12px;
    background: var(--qr-paper-2);
    transition: border-color .2s ease, background-color .2s ease, transform .18s ease;
}

.qr-result:hover {
    border-color: var(--qr-accent-line);
    background: var(--qr-accent-soft);
    transform: translateY(-1px);
}

.qr-result__main { min-width: 0; }

.qr-result__device {
    font-size: 14px;
    font-weight: 700;
    color: var(--qr-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qr-result__meta {
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--qr-muted);
    font-family: var(--qr-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qr-result__tags { display: flex; flex-wrap: wrap; gap: 6px; }

.qr-result__tag {
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--qr-line);
    background: var(--qr-paper-3);
    font-size: 11px;
    font-weight: 600;
    color: var(--qr-ink-soft);
    white-space: nowrap;
}

.qr-result__tag--type {
    border-color: var(--qr-accent-line);
    background: var(--qr-accent-soft);
    color: var(--qr-accent-deep);
}

.qr-result__go {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--qr-accent-deep);
    white-space: nowrap;
}

.qr-results__more { display: flex; justify-content: center; margin-top: 12px; }

.qr-results__more[hidden] { display: none; }

.qr-search__status {
    min-height: 22px;
    margin: 14px 0 0;
    font-size: 13.5px;
    color: var(--qr-muted);
    overflow-wrap: anywhere;
}

.qr-search__status.is-error { color: var(--qr-danger); }
.qr-search__status.is-ok { color: var(--qr-success); font-weight: 600; }

.qr-search__status.is-shake { animation: qr-shake .45s cubic-bezier(.36, .07, .19, .97); }

.qr-search__result {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    padding: 14px 16px;
    border: 1px solid var(--qr-accent-line);
    border-radius: var(--qr-radius-sm);
    background: var(--qr-accent-soft);
    animation: qr-pop .4s cubic-bezier(.22, .9, .32, 1);
}

.qr-search__result[hidden] { display: none; }

.qr-search__result-text { flex: 1 1 200px; min-width: 0; font-size: 13.5px; color: var(--qr-ink-soft); word-break: break-all; }

.qr-search__result-text b { color: var(--qr-accent-deep); }

/* 按钮内 loading  spinner */
.qr-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 7px;
    vertical-align: -2px;
    border-radius: 50%;
    border: 2px solid rgba(35, 26, 6, .25);
    border-top-color: #231a06;
    animation: qr-spin .7s linear infinite;
}

.qr-search__btn.is-found .qr-spinner { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }

/* --------------------------------------------------------------------------
   07. 使用指南（步骤卡片）
   -------------------------------------------------------------------------- */

.qr-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
    gap: 14px;
    align-items: stretch;
}

.qr-step {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 168px;
    padding: 22px 18px 20px;
    border: 1px solid var(--qr-line);
    border-radius: var(--qr-radius);
    background: var(--qr-paper);
    overflow: hidden;
    transition: transform .3s cubic-bezier(.22, .9, .32, 1), box-shadow .3s ease, border-color .3s ease;
}

.qr-step p { flex: 1 1 auto; }

.qr-step:hover {
    transform: translateY(-4px);
    border-color: var(--qr-accent-line);
    box-shadow: var(--qr-shadow);
}

.qr-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 800;
    color: var(--qr-accent-deep);
    background: var(--qr-accent-soft);
    border: 1px solid var(--qr-accent-line);
}

.qr-step h3 { margin: 0 0 7px; font-size: 15px; font-weight: 700; }

.qr-step p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--qr-muted); word-break: break-word; }

.qr-step code {
    padding: 1px 5px;
    border-radius: 5px;
    background: var(--qr-paper-3);
    font-family: var(--qr-mono);
    font-size: 11.5px;
    color: var(--qr-accent-deep);
    word-break: break-all;
}

.qr-step a { font-weight: 600; }

/* --------------------------------------------------------------------------
   08. 提交镜像
   -------------------------------------------------------------------------- */

.qr-submit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
    gap: 14px;
    align-items: stretch;
    width: 100%;
}

.qr-submit-grid > * { min-width: 0; }

.qr-submit {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px;
    border-radius: var(--qr-radius);
    background:
        linear-gradient(var(--qr-paper), var(--qr-paper)) padding-box,
        linear-gradient(135deg, var(--qr-accent-line), transparent 45%, var(--qr-accent-line)) border-box;
    border: 1.5px solid transparent;
    box-shadow: var(--qr-shadow-soft);
}

.qr-submit__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.qr-submit__head h2 { margin: 0; font-size: clamp(19px, 2.4vw, 24px); font-weight: 800; }

.qr-submit__desc { margin: 0; font-size: 14px; color: var(--qr-muted); }

.qr-submit__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 0;
    font-size: 13px;
    color: var(--qr-ink-soft);
}

.qr-submit__meta b { color: var(--qr-accent-deep); }

.qr-submit__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; }

.qr-points {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--qr-accent-soft);
    border: 1px solid var(--qr-accent-line);
}

.qr-points__num {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    color: var(--qr-accent-deep);
    font-variant-numeric: tabular-nums;
}

.qr-points__label { font-size: 12px; color: var(--qr-ink-soft); }

/* --------------------------------------------------------------------------
   09. 按钮
   -------------------------------------------------------------------------- */

.qr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    border-radius: var(--qr-radius-sm);
    border: 1.5px solid transparent;
    font-family: var(--qr-font);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .25s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.qr-btn:focus-visible { outline: 2px solid var(--qr-accent); outline-offset: 3px; }
.qr-btn:active { transform: translateY(1px) scale(.99); }

.qr-btn--gold {
    color: #231a06;
    background: linear-gradient(135deg, #f6cd8d, var(--qr-accent) 55%, #d99a2b);
    box-shadow: 0 12px 26px -12px rgba(235, 167, 68, .65), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.qr-btn--gold:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -12px rgba(235, 167, 68, .75); color: #231a06; }

.qr-btn--ghost {
    color: var(--qr-ink-soft);
    background: var(--qr-paper);
    border-color: var(--qr-line-strong);
}

.qr-btn--ghost:hover { color: var(--qr-accent-deep); border-color: var(--qr-accent-line); background: var(--qr-accent-soft); }

.qr-btn--lg { height: 52px; padding: 0 30px; font-size: 16px; border-radius: 14px; }

.qr-btn--sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }

.qr-btn svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   10. 最新表格 + 分页
   -------------------------------------------------------------------------- */

.qr-table-card {
    padding: 8px;
    border: 1px solid var(--qr-line);
    border-radius: var(--qr-radius);
    background: var(--qr-paper);
    box-shadow: var(--qr-shadow-soft);
    overflow: hidden;
}

.qr-table-wrap { overflow-x: auto; }

.qr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.qr-table th,
.qr-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--qr-line);
    white-space: nowrap;
}

.qr-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--qr-muted);
    background: var(--qr-paper-2);
    border-bottom: 1px solid var(--qr-line-strong);
}

.qr-table tbody tr { transition: background-color .18s ease; }

.qr-table tbody tr:hover { background: var(--qr-accent-soft); }

.qr-table tbody tr:last-child td { border-bottom: 0; }

.qr-table td { color: var(--qr-ink-soft); font-variant-numeric: tabular-nums; }

.qr-table td:first-child { color: var(--qr-faint); font-weight: 600; }

.qr-table__device { font-weight: 600; color: var(--qr-ink); }

.qr-table__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--qr-accent-deep);
    background: var(--qr-accent-soft);
    border: 1px solid var(--qr-accent-line);
    transition: transform .18s ease, background-color .2s ease, color .2s ease;
}

.qr-table__link:hover {
    transform: translateY(-1px);
    color: #231a06;
    background: var(--qr-accent);
}

.qr-table__link svg { width: 12px; height: 12px; }

/* 移动端卡片化（JS 增强后启用，仅窄屏生效） */
@media (max-width: 768px) {
    .qr-table--cards { display: block; }

    .qr-table--cards thead { display: none; }

    .qr-table--cards tbody { display: block; }

    .qr-table--cards tr {
        display: block;
        margin: 12px;
        padding: 14px 16px;
        border: 1px solid var(--qr-line);
        border-radius: var(--qr-radius-sm);
        background: var(--qr-paper-2);
    }

    .qr-table--cards td {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 16px;
        padding: 7px 0;
        border-bottom: 1px dashed var(--qr-line);
        white-space: normal;
        text-align: right;
    }

    .qr-table--cards td:last-child { border-bottom: 0; }

    .qr-table--cards td::before {
        content: attr(data-label);
        flex-shrink: 0;
        font-size: 12px;
        font-weight: 700;
        color: var(--qr-faint);
    }

    .qr-table--cards .qr-table__link { margin-left: auto; }
}

/* 分页 */
.qr-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 12px;
    border-top: 1px solid var(--qr-line);
}

.qr-table-count {
    margin-right: auto;
    font-size: 13px;
    color: var(--qr-muted);
}

.qr-table-count b {
    color: var(--qr-accent-deep);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
    .qr-table-count { margin: 0 auto; }
}

.qr-pagination .pagination,
.qr-pagination ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qr-pagination li a,
.qr-pagination li a:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--qr-line);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--qr-ink-soft);
    background: var(--qr-paper);
    transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .15s ease;
}

.qr-pagination li a:hover {
    border-color: var(--qr-accent-line);
    background: var(--qr-accent-soft);
    color: var(--qr-accent-deep);
    transform: translateY(-1px);
}

.qr-pagination li.active a {
    border-color: var(--qr-accent);
    color: #231a06;
    background: var(--qr-accent);
    cursor: default;
}

.qr-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--qr-faint);
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   11. 详情页
   -------------------------------------------------------------------------- */

.qr-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 18px 0 0;
    font-size: 13px;
    color: var(--qr-muted);
}

.qr-breadcrumb a { color: var(--qr-muted); }
.qr-breadcrumb a:hover { color: var(--qr-accent-deep); }

.qr-breadcrumb .qr-sep { color: var(--qr-faint); }

.qr-breadcrumb [aria-current] { color: var(--qr-ink); font-weight: 600; }

.qr-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.qr-info {
    padding: 18px;
    border: 1px solid var(--qr-line);
    border-radius: var(--qr-radius-sm);
    background: var(--qr-paper);
    transition: transform .3s cubic-bezier(.22, .9, .32, 1), box-shadow .3s ease, border-color .3s ease;
}

.qr-info:hover {
    transform: translateY(-3px);
    border-color: var(--qr-accent-line);
    box-shadow: var(--qr-shadow-soft);
}

.qr-info--wide { grid-column: 1 / -1; }

.qr-info__label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--qr-faint);
}

.qr-info__label svg { width: 14px; height: 14px; color: var(--qr-accent); }

.qr-info__value {
    margin: 0;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--qr-ink);
    word-break: break-all;
}

.qr-info__value--mono {
    font-family: var(--qr-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .01em;
}

.qr-info__value small { font-size: 12px; font-weight: 400; color: var(--qr-muted); }

/* MD5 复制行 */
.qr-md5row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qr-md5row .qr-info__value { flex: 1 1 auto; min-width: 0; }

.qr-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    height: 34px;
    padding: 0 13px;
    border: 1px solid var(--qr-line-strong);
    border-radius: 9px;
    background: var(--qr-paper-2);
    color: var(--qr-ink-soft);
    font-family: var(--qr-font);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .15s ease;
    -webkit-tap-highlight-color: transparent;
}

.qr-copy:hover { color: var(--qr-accent-deep); border-color: var(--qr-accent-line); background: var(--qr-accent-soft); }
.qr-copy:active { transform: scale(.96); }
.qr-copy:focus-visible { outline: 2px solid var(--qr-accent); outline-offset: 2px; }

.qr-copy svg { width: 13px; height: 13px; }

.qr-copy.is-copied {
    color: var(--qr-success);
    border-color: var(--qr-success);
    background: rgba(47, 146, 104, .1);
}

/* 分享者 */
.qr-sharer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qr-sharer__avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--qr-accent-line);
    background: var(--qr-paper-3);
}

.qr-sharer__meta { min-width: 0; }

.qr-sharer__name { font-weight: 700; font-size: 14.5px; color: var(--qr-ink); word-break: break-all; }

.qr-sharer__sub { font-size: 12px; color: var(--qr-muted); }

/* 下载 CTA */
.qr-download {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 14px;
    padding: 24px;
    border-radius: var(--qr-radius);
    border: 1px solid var(--qr-line);
    background:
        radial-gradient(420px 200px at 8% 0%, var(--qr-accent-soft), transparent 70%),
        var(--qr-paper);
}

.qr-download__text { flex: 1 1 260px; min-width: 0; }

.qr-download__text h2 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }

.qr-download__text p { margin: 0; font-size: 13.5px; color: var(--qr-muted); }

.qr-download__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.qr-notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid var(--qr-accent-line);
    border-radius: var(--qr-radius-sm);
    background: var(--qr-accent-soft);
    font-size: 13px;
    line-height: 1.7;
    color: var(--qr-ink-soft);
}

.qr-notice svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--qr-accent-deep); }

.qr-notice b { color: var(--qr-accent-deep); }

/* 号卡推广（qdd 包含） */
.qr-promo { margin-top: 24px; }

.qr-promo:empty { display: none; }

/* 小程序码 */
.qr-mp {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding: 18px;
    border: 1px solid var(--qr-line);
    border-radius: var(--qr-radius-sm);
    background: var(--qr-paper);
}

.qr-mp img {
    width: 92px;
    height: 92px;
    flex-shrink: 0;
    border: 1px solid var(--qr-line);
    border-radius: 12px;
    background: #fff;
    padding: 6px;
}

.qr-mp__text { min-width: 0; }

.qr-mp__text h3 { margin: 0 0 4px; font-size: 14.5px; font-weight: 700; }

.qr-mp__text p { margin: 0; font-size: 12.5px; color: var(--qr-muted); }

.qr-mp__text b { color: var(--qr-accent-deep); }

/* 列布局变体（提交区右侧，填充高度避免大面积留白） */
.qr-mp--col {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 14px;
}

.qr-mp__row { display: flex; align-items: center; gap: 16px; }

.qr-mp__foot {
    margin: 0;
    padding-top: 12px;
    border-top: 1px dashed var(--qr-line);
    font-size: 12px;
    line-height: 1.6;
    color: var(--qr-muted);
}

.qr-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 26px;
    font-size: 14px;
    font-weight: 700;
}

.qr-back svg { width: 15px; height: 15px; transition: transform .2s ease; }

.qr-back:hover svg { transform: translateX(-4px); }

/* --------------------------------------------------------------------------
   12. 页脚 / Toast
   -------------------------------------------------------------------------- */

.qr-footer {
    margin-top: 30px;
    padding: 30px 0 90px;
    border-top: 1px solid var(--qr-line);
    text-align: center;
}

.qr-footer p { margin: 0 0 6px; font-size: 13px; color: var(--qr-muted); }

.qr-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-bottom: 10px; }

.qr-footer__links a { font-size: 13px; color: var(--qr-muted); }
.qr-footer__links a:hover { color: var(--qr-accent-deep); }

.qr-footer__safe { font-size: 12.5px; color: var(--qr-faint); }

.qr-toast {
    position: fixed;
    left: 50%;
    bottom: 34px;
    z-index: 12000;
    max-width: min(92vw, 420px);
    padding: 12px 20px;
    border-radius: 12px;
    background: rgba(24, 25, 33, .94);
    color: #f4f1e9;
    font-size: 13.5px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .45);
    opacity: 0;
    transform: translate(-50%, 16px);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s cubic-bezier(.22, .9, .32, 1);
}

html[data-theme="dark"] .qr-toast { background: rgba(244, 241, 233, .96); color: #23252f; }

.qr-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

.qr-toast--ok { box-shadow: 0 0 0 1px rgba(47, 146, 104, .4), 0 18px 40px -14px rgba(0, 0, 0, .45); }

.qr-toast--error { box-shadow: 0 0 0 1px rgba(207, 74, 74, .45), 0 18px 40px -14px rgba(0, 0, 0, .45); }

/* --------------------------------------------------------------------------
   13. 滚动显现动画
   -------------------------------------------------------------------------- */

/* 仅在 JS 就绪后启用隐藏动画，避免脚本失败时内容不可见 */
html.qr-motion .qr-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease, transform .5s cubic-bezier(.22, .9, .32, 1);
    will-change: opacity, transform;
}

html.qr-motion .qr-reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   14. 关键帧
   -------------------------------------------------------------------------- */

@keyframes qr-fade-up {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}

@keyframes qr-shimmer {
    0% { transform: translateX(-100%); }
    60%, 100% { transform: translateX(220%); }
}

@keyframes qr-pulse {
    0% { box-shadow: 0 0 0 0 rgba(235, 167, 68, .45); }
    70% { box-shadow: 0 0 0 9px rgba(235, 167, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(235, 167, 68, 0); }
}

@keyframes qr-float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-16px) translateX(8px); }
}

@keyframes qr-spin { to { transform: rotate(360deg); } }

@keyframes qr-pop {
    from { opacity: 0; transform: scale(.96) translateY(6px); }
    to { opacity: 1; transform: none; }
}

@keyframes qr-shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

/* Hero 内容入场 */
html.qr-motion .qr-hero .qr-reveal { opacity: 0; transform: translateY(16px); }

html.qr-motion .qr-hero .qr-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity .6s ease, transform .6s cubic-bezier(.22, .9, .32, 1);
}

/* --------------------------------------------------------------------------
   15. 包含组件的主题适配（room 聊天室 / qdd 号卡）
   -------------------------------------------------------------------------- */

html[data-theme="dark"] .fiime-chat__panel { background: var(--qr-paper); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }

html[data-theme="dark"] .fiime-chat__body { background: var(--qr-paper-2); }

html[data-theme="dark"] .fiime-chat__loading { color: var(--qr-muted); background: var(--qr-paper-2); }

html[data-theme="dark"] .fiime-fab__dot { border-color: var(--qr-paper); }

html[data-theme="dark"] .knsl-blog-card {
    border: 1px solid var(--qr-line);
    border-radius: var(--qr-radius-sm);
    background: var(--qr-paper);
    padding: 10px;
    margin-bottom: 14px;
}

html[data-theme="dark"] .knsl-blog-card-text h3 { color: var(--qr-ink); }

html[data-theme="dark"] .knsl-blog-card-text h3 font[color="red"] { color: var(--qr-accent) !important; }

html[data-theme="dark"] .knsl-blog-card-text h3 font[color="green"] { color: var(--qr-success) !important; }

html[data-theme="dark"] .knsl-blog-card-text h3 font[color="blue"] { color: var(--qr-info) !important; }

html[data-theme="dark"] .knsl-blog-card-image img { border-radius: 8px; }

/* --------------------------------------------------------------------------
   16. 响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .qr-detail-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .qr-submit-grid { grid-template-columns: 1fr; }

    .qr-search-layout { grid-template-columns: 1fr; }

    .qr-search-side { display: none; }

    .qr-mp { flex-direction: row; }
}

@media (max-width: 768px) {
    .qr-section { padding: 34px 0; }

    .qr-header__inner { flex-wrap: wrap; gap: 8px; min-height: 58px; padding: 8px 20px; }

    .qr-logo img { height: 28px; max-width: 108px; }

    .qr-header__right { gap: 8px; }

    .qr-auth__name { max-width: 64px; font-size: 13px; }

    .qr-nav {
        order: 3;
        flex-basis: 100%;
        margin-top: 2px;
        justify-content: space-between;
        gap: 0;
    }

    .qr-nav a { padding: 7px 6px; font-size: 12px; }

    .qr-auth__group { display: none; }

    .qr-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

    .qr-stat { padding: 12px 10px; }

    .qr-search__form { flex-direction: column; align-items: stretch; }

    .qr-search__btn { width: 100%; }

    .qr-filter-grid { grid-template-columns: 1fr; }

    .qr-kw-row { flex-direction: column; align-items: stretch; }

    .qr-kw-row .qr-search__btn { width: 100%; }

    .qr-type { width: 100%; }

    .qr-type__btn { flex: 1; padding: 0 8px; }

    .qr-card { padding: 20px 16px; }

    .qr-result { grid-template-columns: 1fr; gap: 6px; }

    .qr-result__tags { order: 2; }

    .qr-result__go { order: 3; justify-self: end; }

    .qr-detail-grid { grid-template-columns: 1fr; }

    .qr-info { padding: 16px; }

    .qr-breadcrumb { padding: 12px 0 4px; font-size: 12.5px; gap: 6px; }

    .qr-hero__badges { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

    .qr-badge { justify-content: center; }

    .qr-download { padding: 18px; }

    .qr-mp { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
    .qr-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }

    .qr-stat { padding: 10px 8px; }

    .qr-stat__num { font-size: 18px; }

    .qr-stat__label { font-size: 11px; }

    .qr-hero__inner { padding-left: 16px; padding-right: 16px; }

    .qr-auth__name { max-width: 56px; }

    .fiime-lang-toggle { width: 50px; }
}

/* --------------------------------------------------------------------------
   17. 减少动态偏好
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    body.qr-page,
    body.qr-page *,
    body.qr-page *::before,
    body.qr-page *::after {
        animation-duration: .001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001s !important;
    }

    html.qr-motion .qr-reveal { opacity: 1 !important; transform: none !important; }

    .qr-progress__bar { width: var(--qr-progress, 0) !important; }
}
