/* ==========================================================
 * WangMall 官网 / 插件市场 前台样式（PC + 移动端自适应）
 * ========================================================== */
:root {
    --fx-primary: #ff4544;
    --fx-primary-2: #ff7a45;
    --fx-primary-soft: #fff1ef;
    --fx-ink: #141a2e;
    --fx-ink-2: #1f2742;
    --fx-text: #2b3045;
    --fx-text-2: #5d6377;
    --fx-text-3: #9aa0b1;
    --fx-line: #ebedf3;
    --fx-bg: #f6f7fb;
    --fx-card: #ffffff;
    --fx-green: #07c160;
    --fx-blue: #1677ff;
    --fx-radius: 14px;
    --fx-shadow: 0 6px 24px rgba(20, 26, 46, .06);
    --fx-shadow-hover: 0 14px 36px rgba(20, 26, 46, .12);
    --fx-gradient: linear-gradient(135deg, #ff4544 0%, #ff7a45 100%);
}
[v-cloak] { display: none !important; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px; line-height: 1.6; color: var(--fx-text); background: var(--fx-bg);
    -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--fx-ink); line-height: 1.3; }
p { margin: 0; }

.fx-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.fx-main { min-height: calc(100vh - 64px - 260px); }

/* ---------- 按钮 ---------- */
.fx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 44px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
    font-size: 15px; font-weight: 600; cursor: pointer; transition: all .2s; white-space: nowrap; user-select: none;
}
.fx-btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.fx-btn-lg { height: 52px; padding: 0 34px; font-size: 16px; }
.fx-btn-block { display: flex; width: 100%; }
.fx-btn-primary { background: var(--fx-gradient); color: #fff; box-shadow: 0 6px 18px rgba(255, 69, 68, .3); }
.fx-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255, 69, 68, .38); }
.fx-btn-ghost { background: #fff; color: var(--fx-text); border-color: var(--fx-line); }
.fx-btn-ghost:hover { border-color: var(--fx-primary); color: var(--fx-primary); }
.fx-btn-light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .3); }
.fx-btn-light:hover { background: rgba(255, 255, 255, .24); }
.fx-btn[disabled], .fx-btn.disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none; }
.fx-link { color: var(--fx-text-2); font-weight: 500; }
.fx-link:hover { color: var(--fx-primary); }

/* ---------- 头部 ---------- */
.fx-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid rgba(235, 237, 243, .8); }
.fx-header-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.fx-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--fx-ink); }
.fx-brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.fx-brand.light { color: #fff; }
.fx-nav { display: flex; align-items: center; gap: 30px; }
.fx-nav > a { color: var(--fx-text-2); font-weight: 500; position: relative; padding: 6px 0; }
.fx-nav > a:hover, .fx-nav > a.active { color: var(--fx-ink); }
.fx-nav > a.active::after { content: ''; position: absolute; left: 50%; bottom: -2px; width: 18px; height: 3px; margin-left: -9px; border-radius: 3px; background: var(--fx-gradient); }
.fx-nav-user { display: flex; align-items: center; gap: 16px; margin-left: 12px; }
.fx-avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--fx-gradient); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.fx-burger { display: none; width: 40px; height: 40px; border: 0; background: transparent; padding: 10px 8px; cursor: pointer; }
.fx-burger i { display: block; height: 2px; margin: 4px 0; background: var(--fx-ink); border-radius: 2px; transition: .2s; }

/* ---------- 首页 Hero ---------- */
.fx-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, rgba(255, 122, 69, .45), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(255, 69, 68, .35), transparent 60%), var(--fx-ink); }
.fx-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.fx-hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 96px 24px 110px; }
.fx-hero-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: 13px; color: #ffd9cf; margin-bottom: 22px; }
.fx-hero-tag b { width: 6px; height: 6px; border-radius: 50%; background: #ffb199; box-shadow: 0 0 0 4px rgba(255, 177, 153, .25); }
.fx-hero h1 { color: #fff; font-size: 50px; font-weight: 800; letter-spacing: 1px; }
.fx-hero h1 em { font-style: normal; background: linear-gradient(90deg, #ffb199, #ff7a45); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-hero-desc { margin: 22px 0 36px; font-size: 18px; color: rgba(255, 255, 255, .72); max-width: 560px; }
.fx-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.fx-hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.fx-hero-stats div b { display: block; font-size: 28px; font-weight: 800; color: #fff; }
.fx-hero-stats div span { font-size: 13px; color: rgba(255, 255, 255, .6); }
.fx-hero-visual { position: relative; height: 420px; }
.fx-phone { position: absolute; right: 70px; top: 0; width: 230px; height: 420px; border-radius: 34px; background: #0e1322; border: 8px solid #262f4d; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: hidden; }
.fx-phone-screen { position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column; }
.fx-phone-top { height: 120px; background: var(--fx-gradient); padding: 26px 14px 0; color: #fff; font-size: 13px; font-weight: 600; }
.fx-phone-top .search { margin-top: 12px; height: 26px; border-radius: 13px; background: rgba(255, 255, 255, .25); }
.fx-phone-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px; }
.fx-phone-grid i { height: 34px; border-radius: 10px; background: #f3f4f8; }
.fx-phone-grid i:nth-child(3n+1) { background: #ffe9e4; }
.fx-phone-goods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; }
.fx-phone-goods i { height: 110px; border-radius: 10px; background: #f3f4f8; }
.fx-float-card { position: absolute; background: #fff; color: var(--fx-text); border-radius: 14px; padding: 14px 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); display: flex; align-items: center; gap: 12px; font-size: 13px; animation: fxFloat 5s ease-in-out infinite; }
.fx-float-card .ico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.fx-float-card b { display: block; color: var(--fx-ink); font-size: 14px; }
.fx-float-card.c1 { left: 0; top: 60px; }
.fx-float-card.c2 { right: 0; bottom: 70px; animation-delay: -2.5s; }
.fx-float-card.c3 { left: 30px; bottom: 0; animation-delay: -1.2s; }
@keyframes fxFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- 通用区块 ---------- */
.fx-section { padding: 90px 0; }
.fx-section.white { background: #fff; }
.fx-section-head { text-align: center; margin-bottom: 52px; }
.fx-section-head .eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--fx-primary); background: var(--fx-primary-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.fx-section-head h2 { font-size: 34px; font-weight: 800; }
.fx-section-head p { margin-top: 12px; color: var(--fx-text-2); font-size: 16px; }

.fx-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fx-feature { background: var(--fx-card); border: 1px solid var(--fx-line); border-radius: var(--fx-radius); padding: 30px 26px; transition: all .25s; }
.fx-feature:hover { transform: translateY(-4px); box-shadow: var(--fx-shadow-hover); border-color: transparent; }
.fx-feature .ico { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; background: var(--fx-primary-soft); color: var(--fx-primary); }
.fx-feature .ico svg { width: 26px; height: 26px; }
.fx-feature h3 { font-size: 19px; margin-bottom: 8px; }
.fx-feature p { color: var(--fx-text-2); font-size: 14px; }

.fx-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.fx-step { position: relative; padding: 28px 24px; background: #fff; border-radius: var(--fx-radius); box-shadow: var(--fx-shadow); }
.fx-step::before { counter-increment: step; content: '0' counter(step); display: block; font-size: 34px; font-weight: 800; background: var(--fx-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.fx-step h3 { font-size: 17px; margin-bottom: 6px; }
.fx-step p { color: var(--fx-text-2); font-size: 14px; }

.fx-cta { border-radius: 22px; padding: 56px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; background: radial-gradient(600px 300px at 100% 0, rgba(255, 255, 255, .18), transparent 60%), var(--fx-gradient); box-shadow: 0 24px 60px rgba(255, 69, 68, .3); }
.fx-cta h2 { color: #fff; font-size: 30px; }
.fx-cta p { color: rgba(255, 255, 255, .85); margin-top: 8px; }
.fx-cta .fx-btn { background: #fff; color: var(--fx-primary); }

/* ---------- 插件卡片 ---------- */
.fx-plugin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fx-plugin-card { position: relative; display: flex; flex-direction: column; background: var(--fx-card); border-radius: var(--fx-radius); border: 1px solid var(--fx-line); padding: 22px; transition: all .25s; cursor: pointer; min-height: 220px; }
.fx-plugin-card:hover { transform: translateY(-4px); box-shadow: var(--fx-shadow-hover); border-color: transparent; }
.fx-plugin-card .head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.fx-plugin-card .icon { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; background: #f3f4f8; flex-shrink: 0; }
.fx-plugin-card h3 { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-plugin-card .cat { margin-top: 4px; font-size: 12px; color: var(--fx-text-3); }
.fx-plugin-card .summary { flex: 1; color: var(--fx-text-2); font-size: 13px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fx-plugin-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--fx-line); }
.fx-plugin-card .sales { font-size: 12px; color: var(--fx-text-3); }
.fx-plugin-card .badge { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--fx-primary-soft); color: var(--fx-primary); }
.fx-price { color: var(--fx-primary); font-weight: 800; font-size: 20px; }
.fx-price small { font-size: 13px; font-weight: 700; margin-right: 1px; }
.fx-price .unit { font-size: 12px; font-weight: 500; color: var(--fx-text-3); margin-left: 2px; }
.fx-price.free { color: var(--fx-green); font-size: 17px; }
.fx-price-origin { color: var(--fx-text-3); text-decoration: line-through; font-size: 13px; margin-left: 6px; }

/* ---------- 市场页 ---------- */
.fx-market-hero { background: radial-gradient(800px 300px at 90% 0, rgba(255, 122, 69, .35), transparent 60%), var(--fx-ink); color: #fff; padding: 56px 0 90px; }
.fx-market-hero h1 { color: #fff; font-size: 36px; font-weight: 800; }
.fx-market-hero p { color: rgba(255, 255, 255, .7); margin-top: 10px; }
.fx-search { margin-top: 28px; display: flex; max-width: 560px; background: #fff; border-radius: 999px; padding: 6px; box-shadow: 0 14px 40px rgba(0, 0, 0, .25); }
.fx-search input { flex: 1; border: 0; outline: none; padding: 0 18px; font-size: 15px; background: transparent; color: var(--fx-text); min-width: 0; }
.fx-market-body { margin-top: -50px; position: relative; padding-bottom: 80px; }
.fx-filter { background: #fff; border-radius: var(--fx-radius); box-shadow: var(--fx-shadow); padding: 18px 22px; margin-bottom: 22px; }
.fx-filter-row { display: flex; align-items: flex-start; gap: 14px; }
.fx-filter-row + .fx-filter-row { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--fx-line); }
.fx-filter-label { flex-shrink: 0; width: 44px; color: var(--fx-text-3); font-size: 14px; line-height: 32px; }
.fx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-chip { height: 32px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; background: #f4f5f9; color: var(--fx-text-2); font-size: 14px; cursor: pointer; transition: .2s; display: inline-flex; align-items: center; }
.fx-chip:hover { color: var(--fx-primary); }
.fx-chip.active { background: var(--fx-primary-soft); color: var(--fx-primary); border-color: rgba(255, 69, 68, .35); font-weight: 600; }
.fx-result-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; color: var(--fx-text-3); font-size: 14px; }
.fx-empty { text-align: center; color: var(--fx-text-3); padding: 70px 0; background: #fff; border-radius: var(--fx-radius); }
.fx-empty svg { width: 90px; height: 90px; opacity: .5; margin-bottom: 10px; }
.fx-loading { text-align: center; color: var(--fx-text-3); padding: 30px 0; }
.fx-more { text-align: center; margin-top: 28px; }
.fx-skeleton { background: linear-gradient(90deg, #f1f2f6 25%, #e8eaf0 37%, #f1f2f6 63%); background-size: 400% 100%; animation: fxSk 1.4s ease infinite; border-radius: var(--fx-radius); min-height: 220px; }
@keyframes fxSk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- 详情页 ---------- */
.fx-crumb { padding: 20px 0; font-size: 13px; color: var(--fx-text-3); }
.fx-crumb a:hover { color: var(--fx-primary); }
.fx-crumb span { margin: 0 6px; }
.fx-detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; padding-bottom: 80px; }
.fx-panel { background: #fff; border-radius: var(--fx-radius); box-shadow: var(--fx-shadow); padding: 28px; }
.fx-panel + .fx-panel { margin-top: 20px; }
.fx-panel-title { font-size: 18px; font-weight: 700; color: var(--fx-ink); margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.fx-panel-title::before { content: ''; width: 4px; height: 18px; border-radius: 2px; background: var(--fx-gradient); }
.fx-detail-head { display: flex; gap: 22px; align-items: center; }
.fx-detail-head .icon { width: 96px; height: 96px; border-radius: 24px; object-fit: cover; box-shadow: 0 10px 24px rgba(20, 26, 46, .12); background: #f3f4f8; flex-shrink: 0; }
.fx-detail-head h1 { font-size: 28px; font-weight: 800; }
.fx-detail-head .summary { margin-top: 8px; color: var(--fx-text-2); }
.fx-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; font-size: 13px; color: var(--fx-text-3); }
.fx-meta b { color: var(--fx-text); font-weight: 600; }
.fx-gallery { margin-top: 24px; display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.fx-gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; scroll-snap-align: start; background: #f3f4f8; }
.fx-rich { color: var(--fx-text); line-height: 1.9; word-break: break-word; }
.fx-rich img { max-width: 100%; height: auto !important; border-radius: 8px; }
.fx-rich p { margin: 0 0 12px; }

.fx-buy { position: sticky; top: 84px; }
.fx-buy-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 18px; }
.fx-buy-price .fx-price { font-size: 34px; }
.fx-field { margin-bottom: 18px; }
.fx-field-label { font-size: 14px; color: var(--fx-text-2); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.fx-field-label a { color: var(--fx-primary); font-size: 13px; }
.fx-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.fx-spec { position: relative; border: 1.5px solid var(--fx-line); border-radius: 12px; padding: 12px; cursor: pointer; transition: .2s; text-align: center; }
.fx-spec:hover { border-color: rgba(255, 69, 68, .5); }
.fx-spec.active { border-color: var(--fx-primary); background: var(--fx-primary-soft); }
.fx-spec.active::after { content: '✓'; position: absolute; right: 0; bottom: 0; width: 22px; height: 20px; border-radius: 10px 0 10px 0; background: var(--fx-primary); color: #fff; font-size: 12px; line-height: 20px; }
.fx-spec .name { font-weight: 600; color: var(--fx-ink); }
.fx-spec .price { color: var(--fx-primary); font-weight: 700; margin-top: 2px; }
.fx-select { width: 100%; height: 46px; border: 1.5px solid var(--fx-line); border-radius: 12px; padding: 0 14px; font-size: 15px; color: var(--fx-text); background: #fff; outline: none; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa0b1' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.fx-select:focus { border-color: var(--fx-primary); }
.fx-mall-tip { font-size: 12px; margin-top: 6px; color: var(--fx-text-3); }
.fx-mall-tip.ok { color: var(--fx-green); }
.fx-mall-tip.warn { color: #e6a23c; }
.fx-pays { display: flex; flex-direction: column; gap: 10px; }
.fx-pay { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--fx-line); border-radius: 12px; cursor: pointer; transition: .2s; }
.fx-pay:hover { border-color: rgba(255, 69, 68, .5); }
.fx-pay.active { border-color: var(--fx-primary); background: var(--fx-primary-soft); }
.fx-pay .logo { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.fx-pay .logo svg { width: 20px; height: 20px; }
.fx-pay .logo.alipay { background: var(--fx-blue); }
.fx-pay .logo.wechat { background: var(--fx-green); }
.fx-pay .logo.balance { background: #f5a623; }
.fx-pay .txt { flex: 1; }
.fx-pay .txt b { display: block; font-size: 14px; color: var(--fx-ink); }
.fx-pay .txt span { font-size: 12px; color: var(--fx-text-3); }
.fx-pay .radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #c9cdd8; position: relative; }
.fx-pay.active .radio { border-color: var(--fx-primary); }
.fx-pay.active .radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--fx-primary); }
.fx-pay.disabled { opacity: .5; cursor: not-allowed; }
.fx-total { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 1px dashed var(--fx-line); margin-top: 6px; }
.fx-total span { color: var(--fx-text-2); }
.fx-guarantee { display: flex; justify-content: space-around; margin-top: 18px; font-size: 12px; color: var(--fx-text-3); }
.fx-guarantee span::before { content: '✓ '; color: var(--fx-green); }
.fx-related { display: flex; flex-direction: column; gap: 12px; }
.fx-related a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; transition: .2s; }
.fx-related a:hover { background: #f6f7fb; }
.fx-related img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: #f3f4f8; }
.fx-related .t { flex: 1; min-width: 0; }
.fx-related .t b { display: block; font-size: 14px; color: var(--fx-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-related .t span { font-size: 12px; color: var(--fx-primary); font-weight: 700; }

/* 移动端底部购买栏 */
.fx-mbar { display: none; }

/* ---------- 收银台 / 结果页 ---------- */
.fx-cashier { max-width: 760px; margin: 40px auto 80px; }
.fx-order-box { display: flex; align-items: center; gap: 16px; }
.fx-order-box img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; background: #f3f4f8; }
.fx-order-box .t { flex: 1; min-width: 0; }
.fx-order-box .t b { font-size: 17px; color: var(--fx-ink); }
.fx-order-box .t p { font-size: 13px; color: var(--fx-text-3); margin-top: 4px; }
.fx-kv { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; font-size: 14px; }
.fx-kv div { display: flex; justify-content: space-between; color: var(--fx-text-2); }
.fx-kv b { color: var(--fx-ink); font-weight: 600; }
.fx-qr-wrap { display: flex; gap: 36px; align-items: center; justify-content: center; padding: 10px 0; }
.fx-qr { width: 236px; height: 236px; padding: 12px; border-radius: 16px; border: 1px solid var(--fx-line); background: #fff; position: relative; }
.fx-qr img { width: 100%; height: 100%; display: block; }
.fx-qr .mask { position: absolute; inset: 0; border-radius: 16px; background: rgba(255, 255, 255, .94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--fx-green); font-weight: 700; }
.fx-qr-tip { max-width: 260px; }
.fx-qr-tip h3 { font-size: 20px; margin-bottom: 8px; }
.fx-qr-tip .amount { font-size: 30px; font-weight: 800; color: var(--fx-primary); margin: 8px 0 14px; }
.fx-qr-tip p { color: var(--fx-text-2); font-size: 14px; }
.fx-scan { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: #effbf4; color: #0a8f4a; font-size: 13px; }
.fx-scan svg { width: 22px; height: 22px; flex-shrink: 0; }
.fx-countdown { margin-top: 12px; font-size: 13px; color: var(--fx-text-3); }
.fx-result { text-align: center; padding: 56px 28px; }
.fx-result .ring { width: 86px; height: 86px; border-radius: 50%; margin: 0 auto 22px; display: flex; align-items: center; justify-content: center; }
.fx-result .ring svg { width: 46px; height: 46px; }
.fx-result .ring.success { background: #e9f9f0; color: var(--fx-green); }
.fx-result .ring.error { background: #fff1ef; color: var(--fx-primary); }
.fx-result .ring.wait { background: #fff7e6; color: #e6a23c; }
.fx-result h2 { font-size: 24px; }
.fx-result p { color: var(--fx-text-2); margin-top: 10px; }
.fx-result .actions { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Toast / Dialog ---------- */
.fx-toast { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 999; background: rgba(20, 26, 46, .88); color: #fff; padding: 12px 22px; border-radius: 12px; font-size: 14px; max-width: 80vw; text-align: center; animation: fxFade .2s; }
@keyframes fxFade { from { opacity: 0; transform: translate(-50%, -40%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.fx-mask { position: fixed; inset: 0; z-index: 200; background: rgba(20, 26, 46, .5); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fxFadeIn .2s; }
@keyframes fxFadeIn { from { opacity: 0; } to { opacity: 1; } }
.fx-dialog { width: 100%; max-width: 420px; background: #fff; border-radius: 18px; padding: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.fx-dialog h3 { font-size: 18px; margin-bottom: 10px; }
.fx-dialog p { color: var(--fx-text-2); font-size: 14px; }
.fx-dialog .actions { display: flex; gap: 12px; margin-top: 24px; }
.fx-dialog .actions .fx-btn { flex: 1; }

/* ---------- 底部 ---------- */
.fx-footer { background: var(--fx-ink); color: rgba(255, 255, 255, .6); padding: 56px 0 26px; font-size: 14px; }
.fx-footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.fx-footer-brand p { margin-top: 14px; max-width: 420px; line-height: 1.8; }
.fx-footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.fx-footer-col a, .fx-footer-col span { display: block; margin-bottom: 10px; }
.fx-footer-col a:hover { color: #fff; }
.fx-footer-bottom { padding-top: 22px; display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; font-size: 13px; }
.fx-footer-bottom a:hover { color: #fff; }

/* ==========================================================
 * 响应式
 * ========================================================== */
@media (max-width: 1100px) {
    .fx-plugin-grid { grid-template-columns: repeat(3, 1fr); }
    .fx-hero h1 { font-size: 42px; }
}
@media (max-width: 900px) {
    .fx-hero-inner { grid-template-columns: 1fr; padding: 64px 24px 80px; }
    .fx-hero-visual { display: none; }
    .fx-features { grid-template-columns: repeat(2, 1fr); }
    .fx-steps { grid-template-columns: repeat(2, 1fr); }
    .fx-detail { grid-template-columns: 1fr; }
    .fx-buy { position: static; }
    .fx-cta { flex-direction: column; text-align: center; padding: 40px 28px; }
}
@media (max-width: 768px) {
    body { font-size: 14px; }
    .fx-container { padding: 0 16px; }
    .fx-header-inner { height: 56px; }
    .fx-brand { font-size: 16px; }
    .fx-brand img { width: 30px; height: 30px; }
    .fx-burger { display: block; }
    .fx-nav { position: absolute; left: 0; right: 0; top: 56px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--fx-line); box-shadow: 0 12px 24px rgba(20, 26, 46, .08); padding: 8px 16px 16px; display: none; }
    .fx-header.open .fx-nav { display: flex; }
    .fx-header.open .fx-burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .fx-header.open .fx-burger i:nth-child(2) { opacity: 0; }
    .fx-header.open .fx-burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .fx-nav > a { padding: 14px 4px; border-bottom: 1px solid var(--fx-line); }
    .fx-nav > a.active::after { display: none; }
    .fx-nav-user { margin: 14px 0 0; justify-content: space-between; }
    .fx-main { min-height: 60vh; }

    .fx-hero-inner { padding: 48px 16px 64px; }
    .fx-hero h1 { font-size: 32px; }
    .fx-hero-desc { font-size: 15px; margin: 16px 0 26px; }
    .fx-hero-stats { gap: 24px; margin-top: 34px; }
    .fx-hero-stats div b { font-size: 22px; }
    .fx-section { padding: 56px 0; }
    .fx-section-head { margin-bottom: 30px; }
    .fx-section-head h2 { font-size: 24px; }
    .fx-section-head p { font-size: 14px; }
    .fx-features { grid-template-columns: 1fr; gap: 14px; }
    .fx-feature { padding: 22px; display: grid; grid-template-columns: 48px 1fr; gap: 4px 14px; }
    .fx-feature .ico { grid-row: span 2; margin: 0; width: 48px; height: 48px; }
    .fx-steps { grid-template-columns: 1fr 1fr; gap: 12px; }
    .fx-step { padding: 18px; }
    .fx-step::before { font-size: 26px; }
    .fx-cta h2 { font-size: 22px; }

    .fx-plugin-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .fx-plugin-card { padding: 16px; min-height: 0; }
    .fx-plugin-card .head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
    .fx-plugin-card .icon { width: 46px; height: 46px; border-radius: 12px; }
    .fx-plugin-card h3 { font-size: 15px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
    .fx-plugin-card .summary { font-size: 12px; }
    .fx-plugin-card .foot { flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 10px; padding-top: 10px; }
    .fx-price { font-size: 17px; }

    .fx-market-hero { padding: 36px 0 70px; }
    .fx-market-hero h1 { font-size: 26px; }
    .fx-search { margin-top: 20px; }
    .fx-filter { padding: 14px; }
    .fx-filter-row { flex-direction: column; gap: 8px; }
    .fx-filter-label { line-height: 1; }
    .fx-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
    .fx-chip { flex-shrink: 0; height: 30px; padding: 0 14px; font-size: 13px; }

    .fx-crumb { padding: 14px 0; }
    .fx-panel { padding: 20px 16px; border-radius: 12px; }
    .fx-detail { padding-bottom: 110px; gap: 16px; }
    .fx-detail-head { align-items: flex-start; gap: 14px; }
    .fx-detail-head .icon { width: 68px; height: 68px; border-radius: 18px; }
    .fx-detail-head h1 { font-size: 21px; }
    .fx-gallery { grid-auto-columns: 88%; }
    .fx-buy .fx-buy-submit { display: none; }
    .fx-mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; box-shadow: 0 -6px 20px rgba(20, 26, 46, .08); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); align-items: center; gap: 12px; }
    .fx-mbar .p { flex: 1; }
    .fx-mbar .p span { font-size: 12px; color: var(--fx-text-3); display: block; }
    .fx-mbar .fx-btn { flex: 0 0 52%; }

    .fx-cashier { margin: 16px auto 60px; }
    .fx-kv { grid-template-columns: 1fr; }
    .fx-qr-wrap { flex-direction: column; gap: 18px; text-align: center; }
    .fx-qr-tip { max-width: none; }
    .fx-footer { padding: 40px 0 20px; }
    .fx-footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
    .fx-footer-brand { grid-column: span 2; }
}
