/* ============================================================
   软件商店 · 活力彩色现代主题（方案 B / 亮色）
   统一前台皮肤：首页 / 软件列表 / 详情 / 下单 / 订单查询 / 单页面
   全部页面共用 store/header + store/footer 引入本表
   —— 原深色主题已备份为 store.dark-backup.css，可随时回退
   ============================================================ */

:root {
    /* 底色：明亮偏紫的白 */
    --bg:            #fbfaff;
    --bg-soft:       #f3f0ff;
    --surface:       #ffffff;
    --surface-2:     #f6f4fe;
    --surface-3:     #efeaff;
    --line:          #ece8fb;
    --line-strong:   #ddd6f7;

    /* 文字（深紫黑，亮底可读） */
    --text:          #1b1738;
    --text-soft:     #5f5980;
    --text-dim:      #938cb0;

    /* 品牌色：紫 → 品红渐变体系 */
    --brand:         #6d3bf5;
    --brand-2:       #a855f7;
    --cyan:          #22c6e8;
    --accent:        #12c98b;   /* 价格/成功用的绿，亮底更清晰 */
    --gold:          #f59e0b;
    --danger:        #ef4444;

    --grad-brand:    linear-gradient(135deg, #6d3bf5 0%, #a855f7 100%);
    --grad-hero:     linear-gradient(115deg, #6d3bf5 0%, #a855f7 40%, #ff5da2 100%);
    --grad-accent:   linear-gradient(135deg, #12c98b 0%, #22c6e8 100%);

    --radius:        24px;
    --radius-sm:     16px;
    --shadow:        0 24px 60px rgba(109, 59, 245, .18);
    --shadow-soft:   0 14px 40px rgba(109, 59, 245, .12);
    --glow:          0 10px 28px rgba(109, 59, 245, .35);
    --maxw:          1200px;
    --ease:          cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
::selection { background: rgba(109, 59, 245, .18); color: var(--brand); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(109, 59, 245, .22); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(109, 59, 245, .38); background-clip: content-box; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===================== 背景装饰 ===================== */
.bg-glow {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(760px 460px at 10% -8%,  rgba(109,59,245,.14), transparent 60%),
        radial-gradient(720px 440px at 92% 2%,   rgba(255,93,162,.12), transparent 58%),
        radial-gradient(1000px 560px at 50% 112%, rgba(34,198,232,.10), transparent 64%);
}
.bg-glow::after {
    /* 缓慢漂移的柔光带 */
    content: ''; position: absolute; inset: -20% -10%; opacity: .6;
    background: radial-gradient(520px 320px at 30% 20%, rgba(168,85,247,.10), transparent 60%);
    animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(6%, 4%, 0) scale(1.12); }
}
.bg-grid {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
    background-image:
        linear-gradient(rgba(109,59,245,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(109,59,245,.05) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 74%);
    -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 74%);
}
.store-body > *:not(.bg-glow):not(.bg-grid):not(.nav):not(.float-kf) { position: relative; z-index: 1; }

/* ===================== 顶部导航 ===================== */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251, 250, 255, .72);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--line);
    transition: background .3s, box-shadow .3s, border-color .3s;
}
.nav.scrolled { background: rgba(251, 250, 255, .92); box-shadow: 0 8px 26px rgba(109,59,245,.10); }
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 70px;
}
.logo { display: flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 700; letter-spacing: .3px; }
.logo-mark {
    width: 36px; height: 36px; flex: none; border-radius: 11px;
    background: var(--grad-brand);
    display: grid; place-items: center;
    font-size: 18px; box-shadow: var(--glow);
    position: relative; overflow: hidden;
}
.logo-mark::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.4), transparent 55%);
}
.logo-text { background: var(--grad-hero); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-img {
    height: 36px; width: auto; max-width: 160px;
    object-fit: contain; display: block; border-radius: 8px;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    position: relative;
    padding: 8px 15px; border-radius: 10px; font-size: 14.5px; color: var(--text-soft);
    transition: color .2s, background .2s;
}
.nav-links a:not(.nav-cta)::after {
    content: ''; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 2px;
    border-radius: 2px; background: var(--grad-hero);
    transform: scaleX(0); transform-origin: center; transition: transform .25s var(--ease);
}
.nav-links a:not(.nav-cta):hover { color: var(--text); }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
    padding: 9px 20px !important; border-radius: 999px !important;
    background: var(--grad-brand); color: #fff !important; font-weight: 600;
    box-shadow: 0 8px 22px rgba(109,59,245,.35);
    transition: transform .18s var(--ease), box-shadow .2s, filter .2s;
}
.nav-cta:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(109,59,245,.5); }

.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }

/* ===================== Hero ===================== */
.hero { position: relative; padding: 104px 0 84px; text-align: center; }
.hero::before {
    /* 中央光束 */
    content: ''; position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
    width: 620px; height: 620px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(168,85,247,.14), transparent 62%);
    filter: blur(20px);
}
.badge {
    position: relative;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line-strong);
    font-size: 13px; font-weight: 600; color: var(--brand); margin-bottom: 28px;
    box-shadow: 0 4px 14px rgba(109,59,245,.08);
    animation: fadeUp .7s var(--ease) both;
}
.badge i {
    width: 7px; height: 7px; border-radius: 50%; background: #ff5da2;
    box-shadow: 0 0 12px #ff5da2; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }

.hero h1 {
    font-size: clamp(36px, 5.4vw, 64px); line-height: 1.14; font-weight: 800;
    letter-spacing: -1px; margin-bottom: 22px;
    animation: fadeUp .7s var(--ease) .08s both;
}
.hero h1 .grad {
    background: var(--grad-hero); -webkit-background-clip: text; background-clip: text; color: transparent;
    position: relative;
}
.hero p { font-size: clamp(15px, 1.6vw, 18.5px); color: var(--text-soft); max-width: 660px; margin: 0 auto 36px; animation: fadeUp .7s var(--ease) .16s both; }

.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: fadeUp .7s var(--ease) .24s both; }

/* ===================== 首页横幅广告位（区块 home_banner） ===================== */
.home-banner {
    display: block; width: 100%; overflow: hidden;
    border-radius: var(--radius); border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    transition: transform .28s var(--ease), box-shadow .28s;
}
.home-banner + .home-banner { margin-top: 16px; }
.home-banner img { width: 100%; height: auto; display: block; }
a.home-banner:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ===================== 按钮 ===================== */
.btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 28px; border-radius: 999px; font-size: 15px; font-weight: 600;
    border: 1px solid transparent; cursor: pointer;
    transition: transform .18s var(--ease), box-shadow .2s, filter .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 12px 30px rgba(109,59,245,.4); }
.btn-primary::after {
    content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-18deg); transition: left .6s var(--ease);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 16px 40px rgba(109,59,245,.55); }
.btn-primary:hover::after { left: 130%; }
.btn-ghost { border-color: var(--line-strong); color: var(--brand); background: #fff; }
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--brand); }
.btn-lg { padding: 16px 40px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; border-radius: 999px; }

/* 统计条 */
.hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    max-width: 620px; margin: 56px auto 0;
    padding: 26px; border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    animation: fadeUp .7s var(--ease) .32s both;
}
.hero-stats .stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-size: 28px; font-weight: 800; background: var(--grad-hero); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 13px; color: var(--text-dim); }

/* ===================== 区块通用 ===================== */
.section { padding: 84px 0; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 { font-size: clamp(26px, 3.1vw, 38px); font-weight: 800; margin-bottom: 13px; letter-spacing: -.5px; }
.section-head p { color: var(--text-soft); font-size: 15.5px; max-width: 560px; margin: 0 auto; }
.eyebrow {
    display: inline-block; font-size: 12.5px; letter-spacing: 3px; text-transform: uppercase;
    color: var(--cyan); font-weight: 700; margin-bottom: 14px;
    position: relative; padding: 0 2px;
}

/* 滚动进入动画 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===================== 软件卡片 ===================== */
.soft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }

.soft-card {
    position: relative; display: flex; flex-direction: column;
    padding: 28px; border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 4px 16px rgba(109,59,245,.05);
    transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
    overflow: hidden;
}
.soft-card::before {
    content: ''; position: absolute; inset: 0; border-radius: var(--radius); padding: 1px;
    background: linear-gradient(135deg, rgba(109,59,245,.7), rgba(168,85,247,.28), transparent 55%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .3s; pointer-events: none;
}
.soft-card::after {
    /* 顶部高光 */
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 120px; pointer-events: none;
    background: radial-gradient(120% 100% at 50% 0%, rgba(109,59,245,.10), transparent 70%);
    opacity: 0; transition: opacity .3s;
}
.soft-card:hover { transform: translateY(-8px); border-color: transparent; box-shadow: var(--shadow); }
.soft-card:hover::before { opacity: 1; }
.soft-card:hover::after { opacity: 1; }

.soft-top { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.soft-icon {
    width: 56px; height: 56px; flex: none; border-radius: 15px;
    background: var(--grad-brand); display: grid; place-items: center;
    font-size: 26px; box-shadow: var(--glow); position: relative; overflow: hidden;
    transition: transform .3s var(--ease);
}
.soft-icon::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.35), transparent 55%); }
.soft-card:hover .soft-icon { transform: scale(1.06) rotate(-3deg); }
.soft-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; position: relative; z-index: 1; }
.soft-title { font-size: 19px; font-weight: 700; margin-bottom: 6px; letter-spacing: -.2px; }
.soft-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
    padding: 3px 10px; border-radius: 7px; font-size: 11.5px; font-weight: 600;
    background: var(--surface-2); border: 1px solid var(--line); color: var(--text-soft);
}
.tag-hot { background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.28); color: #e23b3b; }
.tag-new { background: rgba(18,201,139,.12); border-color: rgba(18,201,139,.3); color: #0ea672; }

.soft-desc { color: var(--text-soft); font-size: 14px; margin-bottom: 20px; flex: 1; }

.soft-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.price-now { font-size: 26px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.price-now small { font-size: 14px; font-weight: 600; }
.price-old { font-size: 13px; color: var(--text-dim); text-decoration: line-through; margin-left: 6px; }
.price-unit { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* ===================== 特性区 ===================== */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feat {
    padding: 30px 26px; border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 4px 16px rgba(109,59,245,.05);
    transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.feat:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.feat-ico {
    width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
    font-size: 24px; margin-bottom: 17px;
    background: rgba(109,59,245,.10); border: 1px solid rgba(109,59,245,.22);
    box-shadow: inset 0 0 20px rgba(109,59,245,.10);
}
.feat h3 { font-size: 17px; font-weight: 700; margin-bottom: 9px; }
.feat p { color: var(--text-soft); font-size: 14px; }

/* ===================== 购买流程 ===================== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; position: relative; }
.step { position: relative; padding: 32px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(109,59,245,.05); text-align: center; }
.step-no {
    width: 50px; height: 50px; margin: 0 auto 18px; border-radius: 50%;
    background: var(--grad-brand); display: grid; place-items: center;
    font-size: 19px; font-weight: 800; color: #fff; box-shadow: var(--glow);
}
.step h4 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: 13.5px; }

/* ===================== 详情页 / 通用面板 ===================== */
.detail-head { padding: 60px 0 46px; }
.crumb { font-size: 13.5px; color: var(--text-dim); margin-bottom: 24px; }
.crumb a { transition: color .2s; }
.crumb a:hover { color: var(--cyan); }

.detail-main { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
/* Grid 子项默认 min-width:auto 会被内容 min-content 撑爆，导致 1fr 无法收缩；
   设为 0 后宽表格/大图才能被 overflow-x:auto 裁切而非撑破页面 */
.detail-main > * { min-width: 0; }
.rich { min-width: 0; }

.panel {
    position: relative;
    padding: 32px; border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}
.panel + .panel { margin-top: 22px; }
.panel-title { display: flex; align-items: center; gap: 11px; font-size: 18.5px; font-weight: 700; margin-bottom: 22px; }
.panel-title::before { content: ''; width: 4px; height: 19px; border-radius: 2px; background: var(--grad-brand); box-shadow: 0 0 10px rgba(109,59,245,.5); }

.detail-hero { display: flex; gap: 24px; align-items: center; margin-bottom: 28px; }
.detail-icon {
    width: 92px; height: 92px; flex: none; border-radius: 22px;
    background: var(--grad-brand); display: grid; place-items: center; font-size: 42px;
    box-shadow: var(--glow); position: relative; overflow: hidden;
}
.detail-icon::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.35), transparent 55%); }
.detail-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; position: relative; z-index: 1; }
.detail-h1 { font-size: clamp(27px, 3.4vw, 37px); font-weight: 800; letter-spacing: -.5px; margin-bottom: 11px; }
.detail-sub { color: var(--text-soft); font-size: 15.5px; }
.detail-cover { margin-bottom: 28px; border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.detail-cover img { display: block; width: 100%; height: auto; }

/* 亮点列表 */
.highlights { display: grid; gap: 12px; }
.highlights li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); font-size: 14.5px; }
.highlights li::before {
    content: '✓'; flex: none; width: 22px; height: 22px; margin-top: 1px;
    border-radius: 50%; background: rgba(18,201,139,.14); color: var(--accent);
    display: grid; place-items: center; font-size: 12px; font-weight: 800;
    box-shadow: inset 0 0 12px rgba(18,201,139,.16);
}

/* 富文本详情 */
.rich { color: var(--text-soft); font-size: 15px; line-height: 1.9; }
.rich p { margin-bottom: 14px; }
.rich h2, .rich h3 { color: var(--text); margin: 24px 0 12px; font-size: 18px; }
.rich img { border-radius: var(--radius-sm); margin: 16px 0; }
.rich a { color: var(--cyan); text-decoration: underline; }
.rich ul, .rich ol { padding-left: 22px; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.rich li { margin-bottom: 7px; }

/* 下载区 */
.dl-list { display: grid; gap: 12px; }
.dl-item {
    display: flex; align-items: center; gap: 15px; padding: 17px 19px;
    border-radius: var(--radius-sm); background: var(--surface-2);
    border: 1px solid var(--line); transition: border-color .2s, background .2s, transform .2s;
}
.dl-item:hover { border-color: rgba(109,59,245,.4); background: rgba(109,59,245,.06); transform: translateX(3px); }
.dl-ico { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; font-size: 20px; background: rgba(109,59,245,.12); border: 1px solid rgba(109,59,245,.2); }
.dl-info { flex: 1; min-width: 0; }
.dl-name { font-weight: 600; font-size: 15px; margin-bottom: 3px; }
.dl-pwd { font-size: 13px; color: var(--text-dim); display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.dl-pwd b { color: var(--accent); font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 1px; }
.dl-btn { flex: none; padding: 10px 22px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: var(--grad-brand); color: #fff; box-shadow: 0 8px 20px rgba(109,59,245,.32); transition: filter .2s, transform .18s; }
.dl-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

.copy-btn {
    flex: none; padding: 6px 12px; border-radius: 8px; font-size: 12.5px; cursor: pointer;
    background: var(--surface); border: 1px solid var(--line-strong); color: var(--text-soft);
    transition: color .2s, border-color .2s;
}
.copy-btn:hover { color: var(--text); border-color: var(--cyan); }

/* 套餐卡 */
.plans { display: grid; gap: 14px; }
.plan {
    position: relative; padding: 20px; border-radius: var(--radius-sm); cursor: pointer;
    background: var(--surface-2); border: 1.5px solid var(--line);
    transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}
.plan:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.plan.active { border-color: var(--brand); background: rgba(109,59,245,.08); box-shadow: 0 0 0 3px rgba(109,59,245,.12), var(--shadow-soft); }
.plan.active::before {
    content: '✓'; position: absolute; top: 16px; right: 16px; width: 22px; height: 22px;
    border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center;
    font-size: 12px; font-weight: 800;
}
.plan-recommend {
    position: absolute; top: -10px; right: 16px; padding: 3px 12px;
    border-radius: 999px; font-size: 11px; font-weight: 700;
    background: var(--grad-accent); color: #fff;
    box-shadow: 0 6px 16px rgba(18,201,139,.35);
}
.plan-cycle {
    display: inline-block; margin-bottom: 8px; padding: 2px 10px;
    border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .5px;
    color: var(--brand); background: rgba(109,59,245,.10);
    border: 1px solid rgba(109,59,245,.24);
}
.plan-name { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.plan-price { font-size: 28px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.plan-price small { font-size: 14px; font-weight: 600; }
.plan-old { font-size: 13px; color: var(--text-dim); text-decoration: line-through; margin-left: 6px; }
.plan-note { font-size: 12.5px; color: var(--text-dim); margin-top: 5px; }

.side-card { position: sticky; top: 90px; }

/* 表单 */
.field { margin-bottom: 17px; }
.field label { display: block; font-size: 13.5px; color: var(--text-soft); margin-bottom: 9px; font-weight: 600; }
.input {
    width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
    background: var(--surface-2); border: 1px solid var(--line);
    color: var(--text); font-size: 14.5px; outline: none; transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(109,59,245,.14); }
.input::placeholder { color: var(--text-dim); }

.notice {
    padding: 14px 17px; border-radius: var(--radius-sm); font-size: 13.5px; margin-bottom: 18px;
    background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.26); color: #d63535;
}
.notice-ok { background: rgba(18,201,139,.09); border-color: rgba(18,201,139,.3); color: #0ea672; }

/* 空状态 */
.empty { text-align: center; padding: 84px 24px; }
.empty-ico { font-size: 58px; opacity: .45; margin-bottom: 18px; }
.empty h3 { font-size: 20px; margin-bottom: 11px; }
.empty p { color: var(--text-soft); margin-bottom: 26px; }

/* 激活码展示 */
.code-box {
    position: relative; overflow: hidden;
    padding: 26px; border-radius: var(--radius-sm); text-align: center; margin-bottom: 18px;
    background: rgba(18,201,139,.06); border: 1px dashed rgba(18,201,139,.4);
}
.code-box::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(300px 120px at 50% 0%, rgba(18,201,139,.12), transparent 70%);
}
.code-label { font-size: 12.5px; color: var(--text-dim); margin-bottom: 12px; }
.code-value {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: clamp(19px, 3.4vw, 28px); font-weight: 800; letter-spacing: 2.5px;
    color: var(--accent); word-break: break-all; line-height: 1.4;
}

.kv { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.kv:last-child { border-bottom: none; }
.kv span { color: var(--text-dim); }
.kv b { font-weight: 600; text-align: right; }

code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }

/* ===================== 单页面（关于本站等） ===================== */
.page-hero { padding: 80px 0 40px; text-align: center; }
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.6px; }
.page-hero h1 .grad { background: var(--grad-hero); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-body { padding-bottom: 80px; }
.page-body .wrap { max-width: 860px; }

/* ===================== CTA ===================== */
.cta {
    position: relative; overflow: hidden;
    padding: 76px 0; text-align: center; margin-top: 20px;
    border-top: 1px solid var(--line);
    background: radial-gradient(760px 320px at 50% 0%, rgba(109,59,245,.12), transparent 70%);
}
.cta h2 { font-size: clamp(25px, 3.2vw, 38px); font-weight: 800; margin-bottom: 15px; letter-spacing: -.4px; }
.cta p { color: var(--text-soft); margin-bottom: 32px; font-size: 16px; }

/* ===================== 页脚 ===================== */
.footer { border-top: 1px solid var(--line); padding: 52px 0 32px; margin-top: 44px; background: var(--surface-2); }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 34px; margin-bottom: 36px; }
.footer h5 { font-size: 14.5px; font-weight: 700; margin-bottom: 15px; }
.footer li { margin-bottom: 10px; }
.footer li a { color: var(--text-soft); font-size: 14px; transition: color .2s; }
.footer li a:hover { color: var(--cyan); }
.footer-brand p { color: var(--text-dim); font-size: 13.5px; margin-top: 14px; max-width: 340px; }
.footer-bottom {
    padding-top: 24px; border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    font-size: 13px; color: var(--text-dim);
}

/* 备案号：页脚底部居中，点击跳转工信部备案查询 */
.footer-icp {
    margin-top: 10px; text-align: center;
    font-size: 13px; color: var(--text-dim);
}
.footer-icp a { color: var(--text-dim); text-decoration: none; transition: color .2s; }
.footer-icp a:hover { color: var(--brand); }

/* ===================== 响应式 ===================== */
@media (max-width: 960px) {
    .detail-main { grid-template-columns: 1fr; }
    .side-card { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .nav-links {
        display: none; position: absolute; top: 70px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 4px; padding: 14px;
        background: rgba(10, 15, 30, .97); border-bottom: 1px solid var(--line-strong);
        box-shadow: 0 16px 40px rgba(0,0,0,.5);
        backdrop-filter: blur(20px);
        z-index: 60;
    }
    .nav-links.open { display: flex; }
    .nav-links a:not(.nav-cta)::after { display: none; }
    .nav-links a.active { background: var(--surface-2); }
    .nav-cta {
        text-align: center; padding: 8px 16px !important;
        font-size: 14.5px; border-radius: 10px !important;
        box-shadow: none; margin-top: 4px;
    }
    .nav-toggle { display: block; }
    .hero { padding: 70px 0 54px; }
    .section { padding: 56px 0; }
    .soft-grid { grid-template-columns: 1fr; }
    .detail-hero { flex-direction: column; text-align: center; }
    .hero-stats { grid-template-columns: 1fr; gap: 0; }
    .hero-stats .stat { padding: 14px 0; }
    .hero-stats .stat + .stat { border-left: none; border-top: 1px solid var(--line); }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .footer-bottom { flex-direction: column; }
    .panel { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   账号 / 个人中心（登录 · 注册 · 会员中心）
   ============================================================ */

/* 通用错误提示（补齐，配合已有 .notice / .notice-ok） */
.notice-err {
    background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.28); color: #d63535;
}

/* 导航栏登录态 */
.nav-user { display: inline-flex; align-items: center; gap: 8px; }
.nav-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff;
    background: var(--grad-brand); box-shadow: 0 4px 14px rgba(109,59,245,.4);
}
.nav-user-name { font-weight: 600; }

/* ---------- 登录 / 注册 ---------- */
.auth-wrap { padding: 90px 0 80px; display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 440px; padding: 40px 36px; }
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-logo {
    width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px;
    display: grid; place-items: center; font-size: 26px;
    background: var(--grad-brand); box-shadow: var(--glow);
}
.auth-head h1 { font-size: 25px; font-weight: 800; letter-spacing: -.4px; }
.auth-head p { color: var(--text-soft); font-size: 14px; margin-top: 6px; }
.auth-foot { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-soft); }
.auth-foot a { color: var(--brand); font-weight: 600; }
.auth-foot a:hover { color: var(--cyan); }
.auth-sep { margin: 0 10px; color: var(--text-dim); }
.auth-tip {
    margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line);
    font-size: 12.5px; color: var(--text-dim); text-align: center; line-height: 1.7;
}

/* 登录/注册页两栏布局：默认仅卡片居中；含广告(.has-ad)时卡片与广告并排 */
.auth-layout { display: flex; justify-content: center; }
.auth-layout.has-ad { align-items: flex-start; gap: 32px; }
.auth-layout .auth-card { flex: 0 0 440px; }
.auth-ads { flex: 1 1 320px; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }

/* 侧栏广告图：详情页侧栏 + 登录/注册右侧通用（圆角卡片、自适应不裁切、hover 微升） */
.side-ad {
    display: block; width: 100%; overflow: hidden; margin-top: 20px;
    border-radius: var(--radius-sm); border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    transition: transform .28s var(--ease), box-shadow .28s;
}
.auth-ads .side-ad { margin-top: 0; }
.side-ad img { width: 100%; height: auto; display: block; }
a.side-ad:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* 窄屏收起登录/注册右侧广告：竖屏并排不美观，直接隐藏 */
@media (max-width: 860px) {
    .auth-layout.has-ad { flex-direction: column; align-items: center; }
    .auth-layout .auth-card { flex: 1 1 auto; }
    .auth-ads { display: none; }
}

/* ---------- 个人中心布局 ---------- */
.member-wrap { padding: 46px 0 80px; }
.member-layout { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; }

.member-side {
    position: sticky; top: 90px;
    background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.member-profile { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.member-avatar {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center; font-size: 20px; font-weight: 800; color: #fff;
    background: var(--grad-brand); box-shadow: 0 6px 18px rgba(109,59,245,.4);
}
.member-meta { min-width: 0; }
.member-name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-id { color: var(--text-dim); font-size: 12.5px; }
.member-menu { display: flex; flex-direction: column; gap: 4px; }
.member-menu a {
    display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px;
    color: var(--text-soft); font-size: 14.5px; font-weight: 600; transition: background .2s, color .2s;
}
.member-menu a span { width: 20px; text-align: center; }
.member-menu a:hover { background: var(--surface-2); color: var(--text); }
.member-menu a.active { background: rgba(109,59,245,.10); color: var(--brand); }
.member-logout { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 14px !important; color: var(--text-dim) !important; }
.member-logout:hover { color: var(--danger) !important; background: rgba(239,68,68,.08) !important; }

.member-main { min-width: 0; }
.member-head { margin-bottom: 22px; }
.member-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.4px; }
.member-head p { color: var(--text-soft); font-size: 14.5px; margin-top: 6px; }

/* 统计卡片 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat-card {
    padding: 22px; border-radius: var(--radius-sm); text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 4px 16px rgba(109,59,245,.05);
}
.stat-num { font-size: 30px; font-weight: 800; background: var(--grad-hero); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat-label { color: var(--text-soft); font-size: 13px; margin-top: 6px; }

/* 激活码列表（概览用） */
.lic-list { display: flex; flex-direction: column; gap: 12px; }
.lic-item {
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
    padding: 16px 18px; border-radius: var(--radius-sm);
    background: var(--surface-2); border: 1px solid var(--line);
}
.lic-info { min-width: 0; }
.lic-soft { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.lic-code { font-family: ui-monospace, Menlo, Consolas, monospace; color: #0891b2; font-size: 14px; margin-top: 4px; letter-spacing: .5px; }
.lic-side { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* 激活码状态徽章 */
.lic-state { padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.lic-ok { color: var(--accent); background: rgba(18,201,139,.10); border: 1px solid rgba(18,201,139,.3); }
.lic-wait { color: #d98200; background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.3); }
.lic-expired { color: var(--danger); background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.28); }

/* 激活码卡片网格（我的激活码页） */
.lic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.lic-card {
    padding: 20px; border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(109,59,245,.05); transition: border-color .2s, transform .2s;
}
.lic-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.lic-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.lic-card-soft { font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.lic-card-code {
    font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; letter-spacing: 1px;
    color: #0891b2; background: rgba(34,198,232,.08); border: 1px dashed rgba(34,198,232,.35);
    border-radius: 10px; padding: 10px 12px; text-align: center; word-break: break-all; margin-bottom: 14px;
}
.lic-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lic-expire { color: var(--text-dim); font-size: 12.5px; }

/* 数据表格（订单列表） */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table th { color: var(--text-dim); font-weight: 600; font-size: 13px; }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table code { color: var(--text-soft); }
.td-price { color: var(--accent); font-weight: 700; }
.td-dim { color: var(--text-dim); }

/* 认领订单 */
.claim-row { display: flex; gap: 12px; }
.claim-row .input { flex: 1; }

@media (max-width: 860px) {
    .member-layout { grid-template-columns: 1fr; }
    .member-side { position: static; }
    .member-menu { flex-direction: row; flex-wrap: wrap; }
    .member-menu a { flex: 1; justify-content: center; min-width: 120px; }
    .member-logout { border-top: none; padding-top: 11px !important; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .claim-row { flex-direction: column; }
    .lic-item { flex-direction: column; align-items: flex-start; }
    .lic-side { width: 100%; justify-content: space-between; }
}

/* ============================================================
   富文本补充样式：Markdown 导入后的表格 / 代码块 / 引用
   ============================================================ */
.rich { overflow-x: auto; }
.rich h1 { color: var(--text); font-size: 22px; margin: 24px 0 12px; }
.rich h4 { color: var(--text); font-size: 16px; margin: 20px 0 10px; }
.rich img { max-width: 100%; height: auto; }          /* 防止后台插入的固定尺寸图片变形/溢出 */
.rich iframe, .rich video { max-width: 100%; }        /* 嵌入视频响应式 */
.rich table {
    width: 100%; border-collapse: collapse; margin: 16px 0;
    font-size: 14px; line-height: 1.7;
    display: block; overflow-x: auto;                 /* 列多时横向滚动，不撑破页面 */
    -webkit-overflow-scrolling: touch;
}
.rich table th, .rich table td {
    border: 1px solid var(--line-strong);
    padding: 9px 14px; text-align: left; vertical-align: top;
    word-break: break-word; white-space: normal;       /* 允许单元格换行，避免撑宽 */
}
.rich table th { background: var(--surface-2); color: var(--text); font-weight: 600; }
.rich table td { color: var(--text-soft); }
.rich table tr:nth-child(2n) td { background: var(--surface); }
.rich pre {
    background: var(--surface-2); border: 1px solid var(--line);
    border-radius: 10px; padding: 14px 16px; margin: 14px 0;
    overflow-x: auto; font-size: 13px; line-height: 1.7;
}
.rich code { font-family: Consolas, Menlo, Monaco, 'Courier New', monospace; }
.rich p code, .rich li code, .rich td code {
    background: var(--surface-2); border: 1px solid var(--line);
    border-radius: 4px; padding: 1px 6px; font-size: 13px; color: var(--cyan);
}
.rich blockquote {
    margin: 14px 0; padding: 10px 16px;
    border-left: 3px solid var(--brand); background: var(--surface);
    color: var(--text-soft); border-radius: 0 8px 8px 0;
}

/* ============================================================
   问题反馈（轻论坛）样式 fb-*
   ============================================================ */
.fb-crumb { font-size: 14px; color: var(--text-dim); margin-bottom: 14px; }
.fb-crumb a { color: var(--brand); text-decoration: none; }
.fb-crumb span { margin: 0 8px; }

/* 主题卡片网格 */
.fb-topic-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.fb-topic-card {
    display: flex; align-items: center; gap: 16px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 20px;
    text-decoration: none; color: var(--text);
    box-shadow: var(--shadow-soft); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.fb-topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.fb-topic-ico {
    width: 56px; height: 56px; flex: 0 0 56px; display: grid; place-items: center;
    font-size: 28px; border-radius: 16px;
    background: var(--surface-3); border: 1px solid var(--line);
}
.fb-topic-info { flex: 1; min-width: 0; }
.fb-topic-info h3 { font-size: 17px; margin-bottom: 4px; }
.fb-topic-info p { font-size: 13px; color: var(--text-soft); line-height: 1.5; }
.fb-topic-count { text-align: center; flex: 0 0 52px; }
.fb-topic-count b { display: block; font-size: 22px; color: var(--brand); line-height: 1.1; }
.fb-topic-count span { font-size: 12px; color: var(--text-dim); }

/* 帖子列表（panel 内条目） */
.fb-post-list { padding: 6px 22px; }
.fb-post-item {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 4px; border-bottom: 1px solid var(--line);
    text-decoration: none; color: var(--text);
}
.fb-post-item:last-child { border-bottom: none; }
.fb-post-item:hover .fb-post-title { color: var(--brand); }
.fb-post-avatar {
    width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 700; font-size: 18px;
    color: #fff; background: var(--grad-brand);
}
.fb-post-main { flex: 1; min-width: 0; }
.fb-post-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; transition: color .2s; }
.fb-post-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--text-dim); }
.fb-topic-chip {
    background: var(--surface-3); color: var(--brand);
    border-radius: 999px; padding: 1px 10px; font-size: 12px;
}
.fb-post-stats { flex: 0 0 auto; display: flex; gap: 14px; font-size: 13px; color: var(--text-soft); }

/* 分页 */
.fb-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.fb-page-info { font-size: 14px; color: var(--text-soft); }

/* 帖子详情 */
.fb-thread { padding: 30px 32px; }
.fb-thread-title { font-size: 26px; line-height: 1.4; margin-bottom: 18px; }
.fb-thread-meta { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.fb-thread-meta b { font-size: 15px; }
.fb-thread-content { font-size: 16px; line-height: 1.9; color: var(--text); white-space: normal; word-break: break-word; }

/* 回复 */
.fb-reply { padding: 20px 26px; margin-bottom: 14px; }
.fb-reply-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.fb-reply-head .fb-post-avatar { width: 38px; height: 38px; flex-basis: 38px; font-size: 15px; }
.fb-reply-floor { color: var(--text-dim); font-size: 13px; margin-left: 6px; }
.fb-reply-content { font-size: 15px; line-height: 1.85; color: var(--text); padding-left: 50px; word-break: break-word; }
.fb-reply-box { padding: 24px 28px; }
.fb-textarea { resize: vertical; line-height: 1.7; min-height: 90px; }

/* 发帖表单 */
.fb-form { max-width: 760px; margin: 0 auto; padding: 30px 34px; }
.fb-field { margin-bottom: 22px; }
.fb-field label { display: block; font-weight: 600; margin-bottom: 8px; }
.fb-field label em { color: var(--danger); font-style: normal; }
.fb-form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }

@media (max-width: 640px) {
    .fb-post-stats { display: none; }
    .fb-thread, .fb-form { padding: 20px; }
    .fb-reply-content { padding-left: 0; }
    .fb-thread-title { font-size: 21px; }
}

/* ============================================================
   悬浮客服 kf-*（固定在右侧垂直居中，悬停弹出客服信息）
   ============================================================ */
.float-kf {
    position: fixed; right: 0; top: 50%;
    transform: translateY(-50%);
    z-index: 9000;
    display: flex; align-items: stretch;
}
.kf-trigger {
    writing-mode: vertical-rl;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    background: linear-gradient(180deg, #7b5bff, #5b34e0);
    color: #fff; cursor: pointer; user-select: none;
    border-radius: 12px 0 0 12px;
    padding: 16px 8px;
    box-shadow: -4px 4px 18px rgba(80, 40, 200, .35);
    transition: background .2s;
}
.kf-trigger:hover { background: linear-gradient(180deg, #8a6cff, #6a44ee); }
.kf-trigger-text { font-size: 14px; letter-spacing: 3px; }
.kf-trigger-ico { display: flex; }

/* 客服面板：默认隐藏在触发条左侧，悬停（或移动端点击 .kf-open）时滑出 */
.kf-panel {
    position: absolute; right: calc(100% + 12px); top: 50%;
    transform: translateY(-50%) translateX(24px);
    opacity: 0; visibility: hidden;
    transition: transform .3s ease, opacity .3s ease, visibility .3s;
    display: flex; flex-direction: column; gap: 8px;
    background: #fff; border-radius: 14px; padding: 10px;
    box-shadow: 0 12px 38px rgba(60, 30, 140, .22);
}
.float-kf:hover .kf-panel,
.float-kf.kf-open .kf-panel {
    opacity: 1; visibility: visible;
    transform: translateY(-50%) translateX(0);
}
.kf-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; width: 64px; padding: 10px 0;
    border-radius: 10px; color: #555; text-decoration: none;
    transition: background .2s, color .2s;
}
.kf-item:hover { background: #f3f0ff; color: #5b34e0; }
.kf-ico {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; color: #fff;
}
.kf-ico-qq  { background: #12b7f5; }
.kf-ico-wx  { background: #09bb07; }
.kf-ico-tel { background: #ff8a00; }
.kf-ico-svc { background: #7b5bff; }
/* 自定义 PNG 图标：去掉彩色圆底，图片保持原样 */
.kf-ico-img { background: none; }
.kf-ico-img img { width: 40px; height: 40px; object-fit: contain; display: block; }
.kf-name { font-size: 12px; }

/* 微信二维码：悬停微信项时向左弹出 */
.kf-item-wechat { position: relative; }
.kf-wechat-pop {
    position: absolute; right: calc(100% + 14px); top: 50%;
    transform: translateY(-50%) translateX(10px);
    opacity: 0; visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s;
    background: #fff; padding: 12px; border-radius: 12px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .18);
    width: 168px; text-align: center;
}
.kf-item-wechat:hover .kf-wechat-pop {
    opacity: 1; visibility: visible;
    transform: translateY(-50%) translateX(0);
}
.kf-wechat-desc { font-size: 13px; margin-bottom: 8px; color: #222; font-weight: 600; }
.kf-wechat-pop img { width: 144px; height: 144px; object-fit: contain; border-radius: 6px; }

@media (max-width: 768px) {
    .kf-panel { right: calc(100% + 8px); padding: 8px; }
    .kf-item { width: 54px; }
    .kf-trigger { padding: 14px 7px; }
}

