/* ============================================================
   开源替代 — 样式表
   主色：暖橙红 #f97316  | 中性暖灰基底 | 深色模式石板灰
   字体：Sora(标题) + Plus Jakarta Sans(正文) + JetBrains Mono(数字)
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
    --accent: #f97316;
    --accent-2: #fb923c;
    --accent-ink: #ffffff;
    --green: #10b981;

    --bg: #faf8f5;
    --bg-soft: #ffffff;
    --surface: #ffffff;
    --surface-2: #fbf9f6;
    --border: #ebe5dc;
    --border-strong: #ddd4c7;

    --ink: #1c1917;
    --ink-2: #44403c;
    --ink-3: #78716c;
    --ink-4: #a8a29e;

    --shadow-sm: 0 1px 2px rgba(28,25,23,.05), 0 1px 3px rgba(28,25,23,.06);
    --shadow-md: 0 4px 16px rgba(28,25,23,.07), 0 2px 6px rgba(28,25,23,.05);
    --shadow-lg: 0 18px 50px -12px rgba(28,25,23,.18);

    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 22px;

    --maxw: 1180px;
    --header-h: 66px;

    --font-display: 'Sora', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

[data-theme="dark"] {
    --bg: #0d0f14;
    --bg-soft: #14171e;
    --surface: #171a21;
    --surface-2: #1c2029;
    --border: #262b35;
    --border-strong: #333a47;

    --ink: #f5f5f4;
    --ink-2: #d6d3d1;
    --ink-3: #a8a29e;
    --ink-4: #78716c;

    --accent: #fb923c;
    --accent-2: #f97316;
    --green: #34d399;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    --shadow-md: 0 6px 20px rgba(0,0,0,.4);
    --shadow-lg: 0 22px 60px -16px rgba(0,0,0,.65);
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background .3s ease, color .3s ease;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
@media (max-width: 720px) { .section { padding: 40px 0; } }

/* ---------- 背景氛围 ---------- */
.bg-grid {
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 46px 46px;
    opacity: .35;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
[data-theme="dark"] .bg-grid { opacity: .22; }
.bg-glow {
    position: fixed; top: -260px; left: 50%; transform: translateX(-50%);
    width: 1100px; height: 700px; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, rgba(249,115,22,.20), transparent 70%);
    filter: blur(20px);
}
[data-theme="dark"] .bg-glow { background: radial-gradient(closest-side, rgba(251,146,60,.16), transparent 70%); }

/* ---------- 头部导航 ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    border-bottom: 1px solid transparent;
    transition: border-color .25s, background .25s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner {
    height: var(--header-h);
    display: flex; align-items: center; gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-family: var(--font-display); font-size: 18px; letter-spacing: -.02em; flex-shrink: 0; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 10px;
    display: grid; place-items: center;
    background: linear-gradient(140deg, var(--accent), var(--accent-2));
    color: var(--accent-ink); box-shadow: 0 4px 12px rgba(249,115,22,.4);
}
.brand-mark.sm { width: 30px; height: 30px; border-radius: 8px; }
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a {
    padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px;
    color: var(--ink-2); transition: .2s;
}
.main-nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav-search {
    margin-left: auto; position: relative; width: 340px; max-width: 38vw;
}
.nav-search .search-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.nav-search input {
    width: 100%; height: 40px; padding: 0 70px 0 40px;
    border-radius: 999px; border: 1px solid var(--border);
    background: var(--surface); color: var(--ink); outline: none;
    transition: .2s; font-size: 14px;
}
.nav-search input::placeholder { color: var(--ink-4); }
.nav-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(249,115,22,.14); }
.kbd {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    font-family: var(--font-mono); font-size: 12px; color: var(--ink-3);
    border: 1px solid var(--border-strong); border-radius: 6px; padding: 1px 7px; background: var(--bg-soft);
}
.header-actions { display: flex; gap: 6px; align-items: center; }
.icon-btn {
    width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
    color: var(--ink-2); border: 1px solid transparent; transition: .2s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border); color: var(--ink); }
.theme-toggle .ico-moon { display: none; }
[data-theme="dark"] .theme-toggle .ico-sun { display: none; }
[data-theme="dark"] .theme-toggle .ico-moon { display: block; }
.menu-toggle { display: none; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 14px;
    background: var(--accent); color: var(--accent-ink);
    transition: transform .15s, box-shadow .2s, background .2s;
    box-shadow: 0 4px 14px rgba(249,115,22,.32);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(249,115,22,.42); }
.btn-sm { padding: 8px 14px; font-size: 13px; box-shadow: none; }
.btn-ghost { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--border); box-shadow: none; }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); box-shadow: none; }

/* ---------- Hero ---------- */
.hero { padding: 78px 0 40px; text-align: center; position: relative; }
.hero-badges { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 26px; }
.pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
    background: var(--surface); border: 1px solid var(--border); color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.pill-live { color: var(--accent); border-color: rgba(249,115,22,.3); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.pill-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(249,115,22,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(249,115,22,.5);} 70%{box-shadow:0 0 0 8px rgba(249,115,22,0);} 100%{box-shadow:0 0 0 0 rgba(249,115,22,0);} }

.hero-title {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(40px, 6vw, 72px); line-height: 1.04; letter-spacing: -.035em;
    margin-bottom: 22px;
}
.hero-title .grad {
    background: linear-gradient(120deg, var(--accent) 10%, #f43f5e 90%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
    font-size: clamp(16px, 2vw, 19px); color: var(--ink-3); max-width: 620px; margin: 0 auto 34px;
}
.hero-search {
    max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 8px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
    padding: 8px 8px 8px 22px; box-shadow: var(--shadow-md); transition: .2s;
}
.hero-search:focus-within { border-color: var(--accent); box-shadow: var(--shadow-md), 0 0 0 4px rgba(249,115,22,.14); }
.hero-search svg { color: var(--ink-3); flex-shrink: 0; }
.hero-search input { flex: 1; border: none; outline: none; background: transparent; color: var(--ink); font-size: 16px; height: 40px; }
.hero-search input::placeholder { color: var(--ink-4); }
.hero-search button { flex-shrink: 0; }
.hero-suggest { margin-top: 18px; font-size: 13px; color: var(--ink-3); display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-suggest a { color: var(--accent); font-weight: 600; }
.hero-suggest a:hover { text-decoration: underline; }

.hero-stats {
    margin: 56px auto 0; max-width: 560px; display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.stat { text-align: center; flex: 1; }
.stat b { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.stat span { font-size: 13px; color: var(--ink-3); }
.stat-sep { width: 1px; align-self: stretch; background: var(--border); margin: 4px 0; }

/* ---------- 区块标题 ---------- */
.section-head { text-align: center; margin-bottom: 32px; }
.section-head.left { text-align: left; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -.025em; }
.section-head p { color: var(--ink-3); margin-top: 8px; font-size: 15px; }

/* ---------- 分类卡片 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.cat-card {
    position: relative; padding: 20px; border-radius: var(--radius); background: var(--surface);
    border: 1px solid var(--border); transition: .22s; overflow: hidden;
}
.cat-card::before { content:""; position:absolute; inset:0; background: linear-gradient(135deg, rgba(249,115,22,.07), transparent 60%); opacity:0; transition:.22s; }
.cat-card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.cat-card:hover::before { opacity: 1; }
.cat-count { position: absolute; top: 16px; right: 16px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink-4); }
.cat-name { display: block; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.cat-desc { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.5; }

/* 禁用态分类卡片 */
.cat-card.is-disabled { opacity: .55; border-style: dashed; }
.cat-badge-off {
    display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px;
    font-size: 11px; font-weight: 600; line-height: 1.5;
    background: color-mix(in srgb, var(--ink-4) 18%, transparent); color: var(--ink-3);
}

/* ---------- 筛选栏 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: center; margin-bottom: 24px; }
.filter-bar-inline { justify-content: flex-start; }
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-group label { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.filter-group select {
    padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--ink); font-size: 14px; cursor: pointer; transition: border-color .2s;
    min-width: 120px;
}
.filter-group select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249,115,22,.1); }

.empty-hint { color: var(--ink-3); font-size: 14px; padding: 24px 0; }

/* ---------- 分类页导航标签 ---------- */
.cat-nav { margin-bottom: 32px; }
.cat-nav-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cat-nav-tag {
    padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
    background: var(--bg-soft); color: var(--ink-2); border: 1px solid transparent; transition: .18s;
}
.cat-nav-tag:hover { background: var(--surface); border-color: var(--border-strong); }
.cat-nav-tag.active { background: var(--accent); color: var(--accent-ink); }
.cat-nav-tag.is-off { opacity: .55; }

/* ---------- 字母索引 ---------- */
.alpha-index {
    position: sticky; top: calc(var(--header-h) + 8px); z-index: 20;
    display: flex; flex-wrap: wrap; gap: 3px; justify-content: center;
    padding: 8px; margin-bottom: 28px; border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    backdrop-filter: blur(10px); border: 1px solid var(--border); width: fit-content; margin-left: auto; margin-right: auto;
}
.alpha-index a {
    width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px;
    font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--ink-3); transition: .15s;
}
.alpha-index a:hover { background: var(--accent); color: var(--accent-ink); }

/* ---------- 目录列表 ---------- */
.directory { display: grid; grid-template-columns: 1fr; gap: 18px; }
.letter-block { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; scroll-margin-top: 130px; }
.letter-sticky {
    position: sticky; top: 140px;
    font-family: var(--font-display); font-weight: 800; font-size: 38px;
    color: var(--accent); letter-spacing: -.04em; opacity: .9;
}
.software-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }

/* ---------- 商业软件卡片 ---------- */
.software-card {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border);
    transition: .18s; position: relative; overflow: hidden;
}
.software-card::after {
    content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background: var(--brand); transform: scaleY(0); transform-origin:center; transition:.18s;
}
.software-card:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow-md); }
.software-card:hover::after { transform: scaleY(1); }
.sc-body { display: flex; flex-direction: column; min-width: 0; }
.sc-name { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-count { font-size: 12px; color: var(--ink-3); font-family: var(--font-mono); }

/* ---------- 头像 ---------- */
.avatar {
    flex-shrink: 0; border-radius: 9px; display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 700; width: 38px; height: 38px; font-size: 17px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.avatar.lg { width: 52px; height: 52px; font-size: 22px; border-radius: 12px; }
.avatar.xl { width: 84px; height: 84px; font-size: 36px; border-radius: 18px; }

/* ---------- 工具卡片 ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.tool-card {
    padding: 22px; border-radius: var(--radius); background: var(--surface);
    border: 1px solid var(--border); transition: .22s; position: relative; overflow: hidden;
    display: flex; flex-direction: column; gap: 14px;
}
.tool-card::before { content:""; position:absolute; top:-40%; right:-30%; width:200px; height:200px; border-radius:50%; background: var(--brand); opacity:.05; filter: blur(20px); transition:.3s; }
.tool-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.tool-card:hover::before { opacity: .1; }
.tc-head { display: flex; gap: 14px; align-items: center; }
.tc-title h3 { font-size: 17px; font-weight: 700; font-family: var(--font-display); letter-spacing: -.01em; }
.tc-title h3 a:hover { color: var(--accent); }
.tc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.tc-desc { color: var(--ink-3); font-size: 14px; flex: 1; }
.tc-foot { display: flex; gap: 8px; margin-top: auto; }

.chip {
    display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 7px;
    font-size: 11.5px; font-weight: 600; background: var(--bg-soft); color: var(--ink-3);
    border: 1px solid var(--border);
}
.chip-lang { font-family: var(--font-mono); color: var(--accent); border-color: rgba(249,115,22,.25); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.chip-star { color: #d97706; background: color-mix(in srgb, #f59e0b 12%, transparent); border-color: rgba(245,158,11,.25); }
[data-theme="dark"] .chip-star { color: #fbbf24; }
.chip-star svg { color: #f59e0b; }

/* ---------- 详情页 ---------- */
.detail-hero { padding: 40px 0 30px; border-bottom: 1px solid var(--border); background:
    radial-gradient(ellipse 60% 100% at 0% 0%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 60%),
    radial-gradient(ellipse 60% 100% at 100% 0%, color-mix(in srgb, var(--brand) 7%, transparent), transparent 60%); }
.detail-hero-inner { scroll-margin-top: 90px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); margin-bottom: 26px; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--ink-4); }
.crumbs .current { color: var(--ink-2); font-weight: 600; }
.detail-head { display: flex; gap: 26px; align-items: flex-start; }
.detail-name { font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.detail-tag { color: var(--accent); font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.detail-desc { color: var(--ink-3); max-width: 640px; margin-top: 10px; font-size: 15px; }
.tool-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.detail-meta .chip { font-size: 12px; padding: 4px 10px; }
.detail-actions { display: flex; gap: 10px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.count-badge { font-size: 13px; color: var(--ink-3); font-weight: 600; padding-left: 4px; }

/* ---------- 通用页面头 ---------- */
.page-head { padding-top: 50px; }
.page-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.page-sub { color: var(--ink-3); margin-top: 10px; font-size: 16px; }
.count-pill { display: inline-block; margin-top: 16px; }
.hero-search.inline { max-width: none; margin-top: 24px; }

/* ---------- 关于页 ---------- */
.prose { max-width: 880px; }
.about-grid { display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: start; }
.about-text h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 28px 0 12px; }
.about-text h2:first-child { margin-top: 0; }
.about-text p { color: var(--ink-2); margin-bottom: 14px; }
.about-text ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.about-text li { padding-left: 26px; position: relative; color: var(--ink-2); }
.about-text li::before { content:""; position:absolute; left:0; top:9px; width:14px; height:14px; border-radius:5px; background: color-mix(in srgb, var(--accent) 15%, transparent); border: 2px solid var(--accent); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: sticky; top: 90px; }
.about-stat { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-align: center; }
.about-stat b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--accent); }
.about-stat span { font-size: 12px; color: var(--ink-3); }

/* ---------- 空状态 / 404 ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.notfound { text-align: center; padding: 100px 20px; }
.nf-code { font-family: var(--font-display); font-size: 120px; font-weight: 800; color: var(--accent); letter-spacing: -.05em; line-height: 1; }
.notfound h1 { font-family: var(--font-display); font-size: 26px; margin: 14px 0 8px; }
.notfound p { color: var(--ink-3); margin-bottom: 22px; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding: 56px 24px 40px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand strong { font-family: var(--font-display); font-size: 16px; }
.footer-brand p { color: var(--ink-3); font-size: 13.5px; margin-top: 6px; max-width: 320px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 12px; font-weight: 700; }
.footer-col a { display: block; color: var(--ink-2); font-size: 14px; padding: 4px 0; transition: .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 20px 24px; border-top: 1px solid var(--border); color: var(--ink-3); font-size: 13px; }

/* ---------- 入场动画 ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-badges { animation: rise .6s both; }
.hero-title { animation: rise .6s .06s both; }
.hero-sub { animation: rise .6s .12s both; }
.hero-search { animation: rise .6s .18s both; }
.hero-suggest { animation: rise .6s .24s both; }
.hero-stats { animation: rise .6s .3s both; }
.software-card, .tool-card, .cat-card { animation: rise .5s both; }
.tool-card:nth-child(2){animation-delay:.04s}.tool-card:nth-child(3){animation-delay:.08s}
.tool-card:nth-child(4){animation-delay:.12s}.tool-card:nth-child(5){animation-delay:.16s}
.tool-card:nth-child(6){animation-delay:.2s}.tool-card:nth-child(7){animation-delay:.24s}
.tool-card:nth-child(8){animation-delay:.28s}

/* ---------- 响应式 ---------- */
@media (max-width: 920px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-stats { position: static; grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 用户评价冒泡 ---------- */
.rb-container {
    position: fixed; bottom: 20px; left: 20px; z-index: 9998;
    display: flex; flex-direction: column-reverse; gap: 8px;
    max-width: 360px; pointer-events: none;
}
.rb-item {
    pointer-events: auto;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    padding: 12px 14px; box-shadow: 0 6px 24px rgba(0,0,0,.1);
    opacity: 0; transform: translateY(40px);
    transition: opacity .5s ease, transform .5s ease;
    width: 280px; box-sizing: border-box;
}
.rb-item.rb-show { opacity: 1; transform: translateY(0); }
.rb-item.rb-leave { opacity: 0; transform: translateX(60px); }
.rb-item:hover { box-shadow: 0 8px 32px rgba(249,115,22,.15); border-color: var(--accent); }
.rb-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rb-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rb-avatar-fallback { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent), #fb923c); color: #fff; font-weight: 700; font-size: 12px; }
.rb-name { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-score { font-size: 13px; font-weight: 700; color: var(--accent); flex-shrink: 0; }
.rb-nps { margin-left: auto; flex-shrink: 0; }
.rb-nps-text { font-size: 13px; font-weight: 600; white-space: nowrap; }
.rb-nps-pos { color: var(--green, #10b981); }
.rb-nps-neg { color: var(--red, #ef4444); }
.rb-text { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.rb-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.rb-tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.rb-tag-pos { background: #d1fae5; color: #065f46; }
.rb-tag-neg { background: #fee2e2; color: #991b1b; }
[data-theme="dark"] .rb-tag-pos { background: #064e3b; color: #6ee7b7; }
[data-theme="dark"] .rb-tag-neg { background: #7f1d1d; color: #fca5a5; }
.rb-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.rb-product { font-size: 11px; color: var(--ink-4); }
.rb-date { font-size: 11px; color: var(--ink-4); margin-left: auto; }
@media (max-width: 768px) {
    .rb-container { display: none; }
}

/* ---------- 用户建议弹窗 + Tips ---------- */
.global-tips {
    position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-20px);
    padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 500; z-index: 10000;
    opacity: 0; transition: opacity .3s ease, transform .3s ease; pointer-events: none;
}
.global-tips.tips-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.global-tips.tips-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.global-tips.tips-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.modal-box { background: var(--surface); border-radius: 16px; width: 480px; max-width: 92vw; max-height: 90vh; overflow-y: auto; box-shadow: 0 12px 48px rgba(0,0,0,.2); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; font-size: 16px; font-weight: 700; border-bottom: 1px solid var(--border); }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--ink-3); padding: 0; line-height: 1; }
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 20px 24px; }
.modal-body .form-group { margin-bottom: 16px; }
.modal-body .form-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.modal-body .form-input { width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 8px; font-size: 14px; box-sizing: border-box; font-family: inherit; }
.modal-body .form-input:focus { outline: none; border-color: var(--accent); }
.modal-footer { display: flex; gap: 12px; justify-content: flex-end; padding: 16px 24px; border-top: 1px solid var(--border); }
.btn-modal-primary { background: var(--accent); color: #fff; border: none; padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-modal-primary:hover { opacity: .9; }
.btn-modal-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-modal-secondary { background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--border-strong); padding: 10px 24px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.btn-modal-secondary:hover { background: var(--border); }

/* ---------- 用户建议冒泡 ---------- */
.sug-pop { position: relative; height: 50px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-top: 16px; }
.sug-pop-item {
    position: absolute; inset: 0; display: flex; align-items: center; gap: 8px; padding: 0 16px;
    transform: translateY(-100%); opacity: 0; transition: transform 1s ease, opacity 1s ease;
}
.sug-pop-item.active { transform: translateY(0); opacity: 1; }
.sug-pop-avatar { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent), #fb923c); color: #fff; font-weight: 700; font-size: 11px; flex-shrink: 0; }
.sug-pop-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sug-pop-name { font-size: 13px; font-weight: 600; color: var(--accent); flex-shrink: 0; }
.sug-pop-date { font-size: 11px; color: var(--ink-4); flex-shrink: 0; }
.sug-pop-title { font-size: 13px; font-weight: 600; color: var(--ink); flex-shrink: 0; }
.sug-pop-body { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug-pop-bar { position: absolute; bottom: 0; left: 0; height: 3px; background: var(--accent); border-radius: 0 2px 2px 0; width: 0; }
@media (max-width: 860px) {
    .nav-search { width: auto; flex: 1; max-width: none; }
    .detail-head { flex-direction: column; gap: 18px; }
    .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .main-nav { display: flex; gap: 4px; margin-left: 4px; }
    .menu-toggle { display: none; }
    .nav-home { display: none; }
    .nav-products { display: block; }
    .nav-search { display: none; }
    .auth-link.register { display: none; }
    .theme-toggle { order: 3; }
    .hero { padding: 50px 0 30px; }
    .hero-stats { flex-direction: column; gap: 6px; }
    .stat-sep { display: none; }
    .letter-block { grid-template-columns: 1fr; gap: 8px; }
    .letter-sticky { position: static; font-size: 28px; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .kbd { display: none; }
    .footer-bottom { flex-direction: column; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .page-head { padding-top: 50px; }
    .section { padding-top: 40px; }
    .footer-inner { padding: 36px 20px 28px; }
    .footer-bottom { padding: 16px 20px; }
    .hero-search { padding: 6px; }
    .hero-search button span { display: none; }
}

/* ===== 用户登录/注册入口 ===== */
.auth-links { display: flex; align-items: center; gap: 6px; }
.auth-link {
    padding: 7px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
    text-decoration: none; transition: .2s; white-space: nowrap;
}
.auth-link.login { color: var(--ink-2); }
.auth-link.login:hover { color: var(--accent); background: var(--bg-soft); }
.auth-link.register { background: var(--accent); color: #fff; }
.auth-link.register:hover { background: #ea580c; }

/* ===== 已登录用户菜单 ===== */
.user-menu { position: relative; display: flex; align-items: center; }
.user-trigger {
    display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px;
    border-radius: var(--radius-sm); text-decoration: none; cursor: pointer;
    transition: background .15s;
}
.user-trigger:hover { background: var(--bg-soft); }
.user-avatar {
    width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.user-name {
    font-size: 14px; font-weight: 600; color: var(--ink-2); max-width: 100px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-dropdown {
    position: absolute; top: 100%; right: 0; margin-top: 6px; min-width: 150px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px; z-index: 100;
    opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .2s;
}
.user-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown a {
    display: block; padding: 9px 14px; font-size: 14px; color: var(--ink-2);
    text-decoration: none; border-radius: 6px; transition: .15s;
}
.user-dropdown a:hover { background: var(--bg-soft); color: var(--accent); }

@media (max-width: 860px) {
    .user-name { display: none; }
}

/* ===== 首页热门软件类型卡片 ===== */
.type-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.type-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    padding: 28px 16px; border: 1.5px solid var(--border); border-radius: 14px;
    background: var(--surface); text-decoration: none; transition: .2s ease; text-align: center;
    position: relative; overflow: hidden;
}
.type-card::before {
    content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(249,115,22,.06), transparent);
    opacity: 0; transition: .2s;
}
.type-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(249,115,22,.12); }
.type-card:hover::before { opacity: 1; }
.type-card-name { font-size: 17px; font-weight: 700; color: var(--ink); font-family: 'Sora', sans-serif; position: relative; }
.type-card:hover .type-card-name { color: var(--accent); }
.type-card-count {
    font-size: 12px; color: var(--ink-3); position: relative;
    background: var(--bg-soft); padding: 2px 10px; border-radius: 10px;
}

/* ===== 产品列表页 ===== */
.type-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.type-tag {
    display: inline-flex; align-items: center; padding: 7px 16px;
    border: 1.5px solid var(--border); border-radius: 20px; font-size: 14px; font-weight: 500;
    color: var(--ink-2); text-decoration: none; background: var(--surface); transition: .15s; cursor: pointer;
}
.type-tag:hover { border-color: var(--accent); color: var(--accent); }
.type-tag.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.product-search-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.product-search-input {
    flex: 1; padding: 10px 16px; border: 1.5px solid var(--border); border-radius: 10px;
    font-size: 14px; background: var(--surface); color: var(--ink); outline: none; transition: .15s;
}
.product-search-input:focus { border-color: var(--accent); }
.product-search-btn {
    padding: 10px 24px; background: var(--accent); color: #fff; border: none; border-radius: 10px;
    font-size: 14px; font-weight: 600; cursor: pointer; transition: .15s; white-space: nowrap;
}
.product-search-btn:hover { background: #ea580c; }
.product-search-reset { font-size: 13px; color: var(--ink-3); text-decoration: none; white-space: nowrap; }
.product-search-reset:hover { color: var(--accent); }

/* ---------- 高级搜索页 ---------- */
.explore-filter { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-bottom: 24px; }
.explore-search-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.explore-search-input {
    flex: 1; padding: 10px 16px; border: 1.5px solid var(--border); border-radius: 10px;
    font-size: 14px; background: var(--bg-soft); color: var(--ink); outline: none; transition: .15s;
}
.explore-search-input:focus { border-color: var(--accent); background: var(--surface); }
.explore-search-btn {
    padding: 10px 24px; background: var(--accent); color: #fff; border: none; border-radius: 10px;
    font-size: 14px; font-weight: 600; cursor: pointer; transition: .15s; white-space: nowrap;
}
.explore-search-btn:hover { background: #ea580c; }
.explore-reset { font-size: 13px; color: var(--ink-3); text-decoration: none; white-space: nowrap; }
.explore-reset:hover { color: var(--accent); }
.explore-advanced-toggle { font-size: 13px; color: var(--ink-3); text-decoration: none; white-space: nowrap; margin-left: auto; cursor: pointer; }
.explore-advanced-toggle:hover { color: var(--accent); }

.explore-filter-groups { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.explore-filter-group { display: flex; align-items: flex-start; gap: 12px; }
.explore-filter-label {
    font-size: 13px; font-weight: 700; color: var(--ink-3); flex-shrink: 0;
    width: 40px; line-height: 28px; text-align: right;
}
.explore-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.explore-tag {
    padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 500;
    background: var(--bg-soft); color: var(--ink-2); border: 1px solid transparent; transition: .15s;
    text-decoration: none; line-height: 20px;
}
.explore-tag:hover { background: var(--surface); border-color: var(--border-strong); }
.explore-tag.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.explore-sort-row { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.explore-sort-label { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.explore-sort-select {
    padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: 8px;
    background: var(--bg-soft); color: var(--ink); font-size: 13px; cursor: pointer; transition: .15s;
}
.explore-sort-select:focus { outline: none; border-color: var(--accent); }

/* 搜索结果卡片网格 */
.explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.explore-card {
    display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--border);
    border-radius: 14px; background: var(--surface); transition: .15s; text-decoration: none; color: inherit;
}
.explore-card:hover { border-color: var(--accent); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.explore-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.explore-card-logo {
    width: 48px; height: 48px; flex-shrink: 0; border-radius: 10px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700; color: var(--accent);
}
.explore-card-logo img { max-width: 100%; max-height: 100%; object-fit: cover; }
.explore-card-type {
    font-size: 12px; font-weight: 600; color: var(--ink-3); background: var(--bg-soft);
    padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.explore-card-name { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.explore-card-desc { font-size: 13px; color: var(--ink-3); line-height: 1.5; margin: 0; flex: 1; }
.explore-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.explore-card-supplier { font-size: 12px; color: var(--ink-3); }
.explore-card-score { font-size: 13px; font-weight: 700; color: var(--accent); font-family: var(--mono); }

@media (max-width: 900px) { .explore-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .explore-grid { grid-template-columns: 1fr; } }

.product-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 1024px) { .product-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .product-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .product-list { grid-template-columns: 1fr; } }
.product-card {
    display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--border);
    border-radius: 12px; background: var(--surface); transition: .15s; height: 100%; box-sizing: border-box;
}
.product-card:hover { border-color: var(--accent); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.product-card-logo {
    width: 100%; height: 80px; border-radius: 12px; overflow: hidden;
    background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
}
.product-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.product-logo-fallback {
    font-size: 28px; font-weight: 700; color: var(--accent); width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.product-card-body { flex: 1; min-width: 0; }
.product-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.product-card-name { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0; font-family: 'Sora', sans-serif; }
.product-card-type {
    display: inline-block; padding: 2px 10px; background: rgba(249,115,22,.1);
    color: var(--accent); border-radius: 6px; font-size: 12px; font-weight: 600;
}
.product-card-desc { font-size: 14px; color: var(--ink-3); margin: 0 0 8px; line-height: 1.5;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--ink-3); }
.meta-sep { color: var(--ink-4); }
.meta-score { color: #f59e0b; font-weight: 600; }

/* 供应商列表页 */
.supplier-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1024px) { .supplier-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .supplier-list { grid-template-columns: 1fr; } }
.supplier-card {
    display: flex; gap: 16px; padding: 20px; border: 1px solid var(--border);
    border-radius: 12px; background: var(--surface); transition: .15s; text-decoration: none;
}
.supplier-card:hover { border-color: var(--accent); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.supplier-card-logo {
    width: 64px; height: 64px; flex-shrink: 0; overflow: hidden;
    background: #fff; display: flex; align-items: center; justify-content: center;
}
.supplier-card-logo img { width: 100%; height: 100%; object-fit: contain; }
.supplier-card-body { flex: 1; min-width: 0; }
.supplier-card-name { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 4px; font-family: 'Sora', sans-serif; }
.supplier-card-fullname { font-size: 13px; color: var(--ink-3); margin: 0 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.supplier-card-desc { font-size: 13px; color: var(--ink-3); margin: 0 0 8px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.supplier-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--ink-3); }

/* 前台分页 */
.pagination-front { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 32px; flex-wrap: wrap; }
.pagination-front a, .pagination-front span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 14px; border-radius: 8px; font-size: 14px;
    border: 1.5px solid transparent; white-space: nowrap;
}
.pagination-front a { background: var(--surface); border-color: var(--border); color: var(--ink-2); text-decoration: none; transition: .15s; }
.pagination-front a:hover { border-color: var(--accent); color: var(--accent); }
.pagination-front span.active { background: var(--accent); color: #fff; font-weight: 600; }
.pagination-front span.ellipsis { color: var(--ink-3); border: none; background: none; cursor: default; }

/* ===== 产品详情页 ===== */
.product-card-link { text-decoration: none; cursor: pointer; }

.pd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; padding: 0 !important; }
@media (max-width: 900px) { .pd-layout { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .pd-layout { padding: 0 16px !important; } }

/* 产品头部 */
.pd-header { display: flex; gap: 20px; padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); margin-bottom: 20px; }
.pd-logo { width: 96px; height: 96px; flex-shrink: 0; border-radius: 16px; overflow: hidden; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; }
.pd-logo img { max-width: 100%; max-height: 100%; object-fit: cover; }
.pd-header-info { flex: 1; min-width: 0; }
.pd-name { font-size: 26px; font-weight: 800; color: var(--ink); margin: 0 0 8px; font-family: 'Sora', sans-serif; line-height: 1.2; }
.pd-tagline { font-size: 14px; color: var(--ink-3); line-height: 1.6; margin: 0 0 12px; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-tag { display: inline-block; padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; background: rgba(249,115,22,.1); color: var(--accent); text-decoration: none; transition: .15s; }
.pd-tag:hover { background: var(--accent); color: #fff; }
.pd-tag-plain { background: var(--bg-soft); color: var(--ink-3); cursor: default; }
.pd-tag-plain:hover { background: var(--bg-soft); color: var(--ink-3); }

/* 评分盒子 */
.pd-score-box { flex-shrink: 0; text-align: center; padding-left: 20px; border-left: 1px solid var(--border); }
.pd-score-num { font-size: 36px; font-weight: 800; color: #f59e0b; font-family: 'JetBrains Mono', monospace; line-height: 1; }
.pd-score-stars { color: #f59e0b; font-size: 14px; letter-spacing: 2px; margin: 4px 0; }
.pd-score-count { font-size: 12px; color: var(--ink-3); }

/* 产品头部：手机端纵向堆叠 */
@media (max-width: 720px) {
    .pd-header { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; }
    .pd-logo { width: 72px; height: 72px; border-radius: 12px; }
    .pd-name { font-size: 22px; }
    .pd-score-box { padding-left: 0; border-left: none; border-top: 1px solid var(--border); padding-top: 14px; display: flex; align-items: baseline; justify-content: center; gap: 10px; }
    .pd-score-count { margin-top: 2px; }
}

/* 详情区块 */
.pd-section { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-bottom: 16px; }
.pd-section-title { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }

/* 属性网格 */
.pd-attrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.pd-attr { display: flex; flex-direction: column; gap: 4px; }
.pd-attr-label { font-size: 12px; color: var(--ink-3); }
.pd-attr-value { font-size: 15px; color: var(--ink); font-weight: 500; }
.pd-attr-value a { color: var(--accent); text-decoration: none; }
.pd-attr-value a:hover { text-decoration: underline; }

/* 截图 */
.pd-screenshots { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.pd-screenshot { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.pd-screenshot img { width: 100%; aspect-ratio: 16/9; object-fit: cover; cursor: zoom-in; transition: .2s; display: block; background: var(--bg-soft); }
.pd-screenshot img.enlarged { position: fixed; inset: 5vh 5vw; z-index: 9999; object-fit: contain; aspect-ratio: auto; border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,.3); cursor: zoom-out; }
.pd-screenshot-title { padding: 10px 14px 4px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pd-screenshot-desc { padding: 0 14px 12px; font-size: 13px; color: var(--ink-3); }

/* 占位区块 */
.pd-section-placeholder .pd-placeholder-box { padding: 48px 20px; text-align: center; background: var(--bg-soft); border-radius: 12px; color: var(--ink-3); font-size: 14px; }

/* ===== 核心功能 ===== */
.pd-features { display: flex; flex-direction: column; gap: 28px; }
.pd-feature { padding: 0; }
.pd-feature-title { font-size: 17px; font-weight: 700; color: var(--ink-1); margin: 0 0 12px; padding-left: 12px; border-left: 3px solid var(--accent); line-height: 1.4; }
.pd-feature-img { margin-bottom: 14px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.pd-feature-img img { width: 100%; display: block; background: var(--bg-soft); cursor: zoom-in; transition: .2s; }
.pd-feature-img img:hover { opacity: .92; }
.pd-feature-img img.enlarged { position: fixed; inset: 5vh 5vw; z-index: 9999; object-fit: contain; border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,.3); cursor: zoom-out; }
.pd-feature-desc { font-size: 14px; line-height: 1.8; color: var(--ink-3); margin: 0; }

/* ===== 个人主页 - 用户卡片 ===== */
.pf-hero { padding: 24px 0; }
.pf-card { background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.08); border: 1px solid var(--border); }
.pf-cover { height: 270px; position: relative; overflow: hidden; }
.pf-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-body { display: flex; align-items: flex-start; padding: 0 28px 24px; position: relative; }
.pf-avatar { width: 120px; height: 120px; border-radius: 12px; margin-top: -50px; margin-right: 24px; flex-shrink: 0; overflow: hidden; border: 4px solid var(--card); box-shadow: 0 2px 12px rgba(0,0,0,0.12); background: var(--bg-soft); display: flex; align-items: center; justify-content: center; }
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pf-avatar-fallback { font-size: 48px; font-weight: 800; color: var(--accent); }
.pf-info { flex: 1; padding-top: 12px; }
.pf-name { font-size: 24px; font-weight: 800; color: var(--ink-1); margin: 0 0 6px; line-height: 1.3; }
.pf-signature { font-size: 14px; color: var(--ink-3); margin: 0 0 16px; line-height: 1.6; }
.pf-meta-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.pf-meta-list li { display: flex; align-items: center; font-size: 14px; color: var(--ink-3); }
.pf-meta-icon { width: 16px; height: 16px; margin-right: 6px; color: var(--ink-4); flex-shrink: 0; }
.pf-actions { padding-top: 12px; flex-shrink: 0; }
.pf-edit-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--accent); border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; transition: all 0.2s; background: transparent; }
.pf-edit-btn:hover { background: rgba(249,115,22,0.08); }
@media (max-width: 768px) {
    .pf-body { flex-direction: column; align-items: center; text-align: center; padding: 0 16px 20px; }
    .pf-avatar { margin-right: 0; margin-top: -50px; }
    .pf-info { text-align: center; }
    .pf-meta-list { justify-content: center; }
    .pf-cover { height: 120px; }
    .pf-avatar { width: 100px; height: 100px; }
}

/* ===== 供应商详情页 ===== */
/* Hero 区 */
.sp-hero { width: 100%; margin: 0; padding: 0; overflow: hidden; background: var(--card);  position: relative; }
.sp-hero::before { display: none; }
.sp-hero-inner { width: 1180px; max-width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 32px 24px; position: relative; z-index: 1; }
.sp-hero-left { display: flex; align-items: center; gap: 20px; }
.sp-hero-logo { width: 80px; height: 80px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sp-hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.sp-hero-logo .product-logo-fallback { font-weight: 800; color: var(--accent); }
.sp-hero-info { flex: 1; }
.sp-hero-name { font-size: 28px; font-weight: 800; color: var(--ink-1); margin: 0 0 4px; line-height: 1.3; }
.sp-hero-fullname { font-size: 14px; color: var(--ink-3); margin: 0 0 8px; }
.sp-hero-data { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.sp-hero-data .sep { color: var(--ink-4); }
.sp-hero-score { text-align: center; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 16px; padding: 20px 28px; flex-shrink: 0; }
.sp-hero-score-num { font-size: 42px; font-weight: 800; color: var(--accent); line-height: 1; }
.sp-hero-score-stars { font-size: 16px; color: var(--accent); letter-spacing: 2px; margin: 4px 0; }
.sp-hero-score-count { font-size: 12px; color: var(--ink-3); }

/* 产品矩阵 */
.sp-product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sp-product-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; text-decoration: none; color: inherit; transition: .2s; }
.sp-product-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(0,0,0,.06); transform: translateY(-2px); }
.sp-pc-header { display: flex; align-items: center; gap: 12px; }
.sp-pc-logo { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sp-pc-logo img { width: 100%; height: 100%; object-fit: cover; }
.sp-pc-logo .product-logo-fallback { font-weight: 700; color: var(--accent); }
.sp-pc-name { flex: 1; font-size: 16px; font-weight: 700; color: var(--ink-1); }
.sp-pc-score { font-size: 14px; font-weight: 700; color: var(--accent); flex-shrink: 0; }
.sp-pc-desc { font-size: 13px; color: var(--ink-3); line-height: 1.6; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sp-pc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.spc-tag { font-size: 12px; padding: 3px 10px; border-radius: 6px; background: var(--bg-soft); color: var(--ink-3); }

/* 评价筛选标签 */
.sp-rev-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.sp-rev-tag { font-size: 13px; padding: 5px 14px; border-radius: 20px; background: var(--bg-soft); color: var(--ink-3); text-decoration: none; transition: .15s; }
.sp-rev-tag:hover { background: var(--border); }
.sp-rev-tag.active { background: var(--accent); color: #fff; font-weight: 600; }

/* 资质与能力 */
.sp-cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sp-cert-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 12px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; text-align: center; transition: .2s; }
.sp-cert-item.active { border-color: var(--green); background: rgba(16,185,129,.04); }
.sp-cert-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; background: var(--bg-soft); color: var(--ink-4); }
.sp-cert-item.active .sp-cert-icon { background: var(--green); color: #fff; }
.sp-cert-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.sp-cert-value { font-size: 12px; color: var(--ink-3); }

/* 侧边栏 - 档案 */
.sp-profile { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.sp-profile-logo { flex-shrink: 0; }
.sp-profile-logo .product-logo-fallback { display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--accent); }
.sp-profile-name { font-size: 16px; font-weight: 700; color: var(--ink-1); }

/* 认领按钮 */
.sp-claim-btn { display: block; text-align: center; padding: 10px 20px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; transition: .15s; }
.sp-claim-btn:hover { background: var(--accent-dark, #ea580c); transform: translateY(-1px); }

.pd-side-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.pd-side-title { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 14px; display: flex; align-items: center; justify-content: space-between; }
.pd-side-action { font-size: 12px; font-weight: 400; color: var(--ink-3); text-decoration: none; cursor: pointer; }
.pd-side-action:hover { color: var(--accent); }
.side-info-list { list-style: none; padding: 0; margin: 14px 0 0; }
.side-info-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.side-info-list li:last-child { border-bottom: none; }
.side-info-list li span { color: var(--ink-4); }
.side-info-list li strong { color: var(--ink-1); font-weight: 600; }
.side-info-list li strong.cert-on { color: var(--green); }
.side-info-list li strong.cert-off { color: var(--ink-4); }

/* 供应商评价-产品链接 */
.pd-review-product { font-size: 13px; color: var(--ink-4); margin: 6px 0; }
.pd-review-product-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.pd-review-product-link:hover { text-decoration: underline; }

/* 响应式 */
@media (max-width: 768px) {
    .sp-hero-inner { flex-direction: column; gap: 16px; padding: 24px 16px; align-items: stretch; }
    .sp-hero-left { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
    .sp-hero-data { justify-content: center; }
    .sp-hero-score { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 20px; }
    .sp-hero-score-num { font-size: 32px; }
    .sp-hero-score-stars { margin: 0; }
    .sp-product-grid { grid-template-columns: 1fr; }
    .sp-cert-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 评价区 ===== */
.pd-review-tab-count { font-size: 13px; font-weight: 400; color: var(--ink-3); margin-left: 8px; }
.pd-review-summary { display: flex; gap: 32px; align-items: center; padding: 24px; background: var(--bg-soft); border-radius: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.pd-review-overall { text-align: center; min-width: 120px; }
.pd-review-score { display: block; font-family: 'JetBrains Mono', monospace; font-size: 42px; font-weight: 700; color: var(--accent); line-height: 1; }
.pd-review-stars { display: block; color: #f59e0b; font-size: 16px; letter-spacing: 2px; margin: 6px 0; }
.pd-review-basedon { font-size: 12px; color: var(--ink-3); }
.pd-review-nps-dist { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 8px; }
.pd-review-nps-row { display: flex; align-items: center; gap: 10px; }
.pd-review-nps-label { width: 100px; font-size: 13px; color: var(--ink-2); flex-shrink: 0; text-align: right; }
.pd-review-nps-bar { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.pd-review-nps-fill { height: 100%; border-radius: 4px; transition: width .3s; }
.pd-review-nps-fill.nps-pos { background: var(--green, #10b981); }
.pd-review-nps-fill.nps-neg { background: #ef4444; }
.pd-review-nps-count { width: 80px; font-size: 12px; color: var(--ink-3); flex-shrink: 0; font-family: 'JetBrains Mono', monospace; }

.pd-review-list { display: flex; flex-direction: column; gap: 20px; }
.pd-review-item { display: flex; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.pd-review-item:last-child { border-bottom: none; padding-bottom: 0; }
.pd-review-body { flex: 1; }
.pd-review-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.pd-review-author { font-weight: 600; font-size: 14px; color: var(--ink); }
.pd-review-verified { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: #d1fae5; color: #065f46; }
[data-theme="dark"] .pd-review-verified { background: #064e3b; color: #6ee7b7; }
.pd-review-date { font-size: 12px; color: var(--ink-3); }
.pd-review-score-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.pd-review-item-score { font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 700; color: #f59e0b; }
.pd-review-sub-score { font-size: 12px; color: var(--ink-3); }
.pd-review-nps-text { font-size: 14px; font-weight: 600; }
.pd-review-nps-text.nps-positive { color: var(--green, #10b981); }
.pd-review-nps-text.nps-negative { color: var(--red, #ef4444); }
.pd-review-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pd-review-tag { font-size: 12px; padding: 2px 10px; border-radius: 20px; }
.pd-tag-pos { background: #d1fae5; color: #065f46; }
.pd-tag-neg { background: #fee2e2; color: #991b1b; }
[data-theme="dark"] .pd-tag-pos { background: #064e3b; color: #6ee7b7; }
[data-theme="dark"] .pd-tag-neg { background: #7f1d1d; color: #fca5a5; }
.pd-review-text { font-size: 14px; line-height: 1.7; color: var(--ink-2); }

/* 侧边栏 */
.pd-sidebar, .pd-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 80px; }
.pd-supplier-info { display: flex; flex-direction: column; gap: 15px; }
.pd-supplier-logo-row { display: block; }
.pd-supplier-logo { width: auto; max-width: 120px; max-height: 40px; border-radius: 8px; object-fit: contain; background: #fff; }
.pd-supplier-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-decoration: none; color: inherit; }
.pd-supplier-arrow { font-size: 22px; color: var(--ink-4); flex-shrink: 0; line-height: 1; }
.pd-supplier-link:hover .pd-supplier-arrow { color: var(--accent); }
.pd-supplier-name { font-size: 16px; font-weight: 700; color: var(--ink); }
.pd-supplier-full { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.pd-contact-list { display: flex; flex-direction: column; gap: 6px; }
.pd-contact-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.pd-contact-label { font-size: 13px; color: var(--ink-4); flex-shrink: 0; }
.pd-contact-link { font-size: 14px; color: var(--accent); text-decoration: none; word-break: break-all; transition: .15s; }
.pd-contact-link:hover { text-decoration: underline; }
.pd-contact-text { font-size: 14px; color: var(--ink-2); word-break: break-all; }
.pd-placeholder-sm { font-size: 13px; color: var(--ink-3); line-height: 1.6; }

/* ===== 相关产品卡片网格 ===== */
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1024px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }
.related-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; text-decoration: none; background: #ffffff; border: 1px solid var(--border); border-radius: 14px; transition: .15s; }
.related-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); }
.related-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.related-card-logo { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center;  color: var(--accent); font-size: 18px; font-weight: 700; flex-shrink: 0; }
.related-card-logo img { max-width: 100%; max-height: 100%; object-fit: cover; }
.related-card-score { font-size: 13px; font-weight: 600; color: #f59e0b; font-family: 'JetBrains Mono', monospace; }
.related-card-name { font-size: 15px; font-weight: 600; color: var(--ink-1); margin: 0; line-height: 1.3; }
.related-card-desc { font-size: 12px; color: var(--ink-3); line-height: 1.5; margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.related-card-supplier { font-size: 12px; color: var(--ink-4); }

/* ===== 评价表单 ===== */
.pd-review-cta { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 32px 20px; text-align: center; background: var(--card); border-radius: 14px; border: 1px solid var(--border); }
.pd-review-tip { font-size: 14px; color: var(--ink-3); line-height: 1.6; max-width: 500px; margin: 0; }
.pd-review-btn { display: inline-block; padding: 10px 36px; border: none; border-radius: 10px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; transition: .15s; }
.pd-review-btn:hover { opacity: .9; transform: translateY(-1px); }

/* 展开式表单 */
.pd-review-collapse { display: none; margin-top: 16px; }
.pd-review-collapse.active { display: block; animation: pdCollapseIn .25s ease; }
@keyframes pdCollapseIn { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.pd-review-collapse-inner { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.pd-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pd-form-btns { display: flex; gap: 10px; }
.pd-form-cancel { padding: 8px 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--ink-2); font-size: 14px; cursor: pointer; transition: .15s; }
.pd-form-cancel:hover { border-color: var(--ink-3); }

.pd-review-form { display: flex; flex-direction: column; gap: 20px; }
.pd-form-dim { display: flex; flex-direction: column; gap: 8px; }
.pd-form-dim-title { font-size: 14px; font-weight: 600; color: var(--ink-1); }
.pd-form-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-form-tag { cursor: pointer; user-select: none; display: inline-flex; align-items: center; gap: 4px; }
.pd-form-tag input { display: none; }
.pd-form-tag span { font-size: 12px; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--border); transition: .15s; }
.pd-form-tag.pd-tag-pos span { color: var(--ink-2); }
.pd-form-tag.pd-tag-neg span { color: var(--ink-2); }
.pd-form-tag input:checked + span { font-weight: 600; }
.pd-form-tag.pd-tag-pos input:checked + span { background: #d1fae5; border-color: #6ee7b7; color: #065f46; }
.pd-form-tag.pd-tag-neg input:checked + span { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
[data-theme="dark"] .pd-form-tag.pd-tag-pos input:checked + span { background: #064e3b; border-color: #166534; color: #6ee7b7; }
[data-theme="dark"] .pd-form-tag.pd-tag-neg input:checked + span { background: #7f1d1d; border-color: #991b1b; color: #fca5a5; }

.pd-form-nps { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-form-nps-opt { cursor: pointer; user-select: none; display: inline-flex; align-items: center; gap: 4px; }
.pd-form-nps-opt input { display: none; }
.pd-form-nps-opt span { font-size: 13px; padding: 6px 16px; border-radius: 8px; border: 1px solid var(--border); transition: .15s; }
.pd-form-nps-opt input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 600; }

.pd-form-textarea { width: 100%; min-height: 100px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; font-family: inherit; background: var(--bg); color: var(--ink-1); resize: vertical; box-sizing: border-box; }
.pd-form-textarea:focus { outline: none; border-color: var(--accent); }
.pd-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pd-form-msg { font-size: 13px; color: var(--ink-3); }
.pd-form-submit { padding: 8px 28px; border: none; border-radius: 10px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: .15s; }
.pd-form-submit:hover { opacity: .9; transform: translateY(-1px); }
.pd-form-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.pd-review-login-hint { text-align: center; padding: 30px; font-size: 15px; }
.pd-login-link { color: var(--accent); font-weight: 600; }

/* ===== 首页精选软件网格（1行3列） ===== */
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 768px) { .featured-grid { grid-template-columns: 1fr; } }

.featured-card {
    display: flex; flex-direction: column; gap: 10px;
    padding: 20px; border: 1px solid var(--border); border-radius: 14px;
    background: var(--surface); text-decoration: none; transition: .2s;
}
.featured-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(249,115,22,.1); }

.featured-card-top { display: flex; align-items: center; justify-content: space-between; }
.featured-card-logo {
    width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.featured-card-logo img { max-width: 100%; max-height: 100%; object-fit: cover; }
.featured-score {
    font-size: 14px; font-weight: 700; color: #f59e0b; white-space: nowrap;
    background: rgba(245,158,11,.1); padding: 3px 10px; border-radius: 8px;
}
.featured-card-name { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0; font-family: 'Sora', sans-serif; }
.featured-card:hover .featured-card-name { color: var(--accent); }
.featured-card-desc {
    font-size: 13px; color: var(--ink-3); line-height: 1.6; margin: 0;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.featured-card-supplier { font-size: 12px; color: var(--ink-4); }
.featured-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.featured-nps { font-size: 12px; font-weight: 600; color: #15803d; white-space: nowrap; }
.featured-review-count { font-size: 11px; color: var(--ink-4); white-space: nowrap; }
[data-theme="dark"] .featured-nps { color: #6ee7b7; }

/* ===== 数据纠错弹窗 ===== */
.de-modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.de-modal { width: 480px; max-width: 92vw; max-height: 80vh; background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.2); border: 1px solid var(--border); }
.de-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.de-modal-header h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink-1); }
.de-modal-close { background: none; border: none; font-size: 24px; color: var(--ink-3); cursor: pointer; line-height: 1; padding: 0; }
.de-modal-close:hover { color: var(--ink-1); }
.de-modal-body { padding: 16px 20px; overflow-y: auto; }
.de-modal-tip { font-size: 13px; color: var(--ink-3); margin: 0 0 14px; line-height: 1.5; }
.de-fields { display: flex; flex-direction: column; gap: 8px; }
.de-field-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: .15s; }
.de-field-item:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.de-field-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }
.de-field-value { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.de-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.de-btn-submit { padding: 10px 24px; border: none; border-radius: 10px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: .15s; }
.de-btn-submit:hover { opacity: .9; }
.de-btn-submit:disabled { opacity: .5; cursor: not-allowed; }
.de-btn-cancel { padding: 10px 24px; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; color: var(--ink-2); font-size: 14px; cursor: pointer; transition: .15s; }
.de-btn-cancel:hover { background: var(--bg-soft); }

/* ===== 数据纠错 Toast ===== */
.de-toast { position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-20px); padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 500; z-index: 10000; opacity: 0; transition: all .3s ease; pointer-events: none; }
.de-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.de-toast-ok { background: #dcfce7; color: #16a34a; border: 1px solid #bbf7d0; }
.de-toast-err { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
[data-theme="dark"] .de-toast-ok { background: #052e16; color: #6ee7b7; border-color: #14532d; }
[data-theme="dark"] .de-toast-err { background: #450a0a; color: #fca5a5; border-color: #7f1d1d; }
