/* 应用市场 · 前台样式
   配色：主色 #2563eb / 成功 #16a34a / 警告 #f59e0b / 危险 #dc2626 */

* { box-sizing: border-box; }

body {
    margin: 0;
    background: #f8fafc;
    color: #0f172a;
    font: 15px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 12px; line-height: 1.35; font-weight: 650; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
p { margin: 0 0 12px; }
img { max-width: 100%; }
code, pre { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
pre { background: #0f172a; color: #e2e8f0; padding: 14px; border-radius: 8px; overflow: auto; }
code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.mt { margin-top: 20px; }
.mb { margin-bottom: 20px; }
.muted { color: #64748b; }
.small { font-size: 13px; }
.center { text-align: center; }
.right { text-align: right; }
.flex { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap-line { flex-wrap: wrap; }

/* ---------- 头部导航 ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 20;
}
.nav { display: flex; align-items: center; gap: 18px; height: 62px; }
.nav-brand { font-size: 18px; font-weight: 700; color: #0f172a; white-space: nowrap; }
.nav-brand:hover { text-decoration: none; color: #2563eb; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 7px 12px; border-radius: 6px; color: #334155; font-size: 14px; }
.nav-links a:hover { background: #f1f5f9; text-decoration: none; color: #2563eb; }
.nav-links a.on { background: #eff6ff; color: #2563eb; font-weight: 600; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-form { display: flex; gap: 6px; }
.search-form input { width: 190px; }
.nav-toggle { display: none; background: none; border: 1px solid #e2e8f0; border-radius: 6px; padding: 6px 10px; cursor: pointer; }

/* 用户下拉 */
.dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; cursor: pointer; color: #334155; }
.dropdown-toggle:hover { background: #f1f5f9; text-decoration: none; }
.dropdown-menu {
    display: none;
    position: absolute; right: 0; top: 110%;
    min-width: 168px; padding: 6px; margin: 0; list-style: none;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 8px 10px; border-radius: 6px; color: #334155; font-size: 14px; }
.dropdown-menu a:hover { background: #f1f5f9; text-decoration: none; color: #2563eb; }
.dropdown-menu .sep { height: 1px; margin: 6px 0; background: #e2e8f0; }
.dropdown-menu form { margin: 0; }
/* 退出登录改成 POST 表单，按钮要跟同级的 <a> 长得一样 */
.dropdown-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; font: inherit; padding: 8px 10px; border-radius: 6px; color: #334155; font-size: 14px; cursor: pointer; }
.dropdown-menu button:hover { background: #f1f5f9; color: #2563eb; }
.linklike { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: #2563eb; cursor: pointer; }
.linklike:hover { text-decoration: underline; }

/* ---------- 首页横幅 ---------- */
.hero { background: linear-gradient(135deg, #1e293b, #2563eb); color: #fff; padding: 52px 0; }
.hero h1 { font-size: 32px; margin-bottom: 10px; }
.hero p { color: #dbeafe; margin-bottom: 22px; max-width: 620px; }
.hero .btn { margin-right: 10px; }
.hero-stats { display: flex; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 22px; }
.hero-stats span { color: #bfdbfe; font-size: 13px; }

/* ---------- 卡片 ---------- */
.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin: -20px -20px 16px; padding: 14px 20px; border-bottom: 1px solid #e2e8f0; }
.card-head h2, .card-head h3 { margin: 0; font-size: 16px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 18px; }

.resource-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    overflow: hidden; transition: box-shadow .15s, transform .15s;
}
.resource-card:hover { box-shadow: 0 6px 20px rgba(15, 23, 42, .1); transform: translateY(-2px); }
.resource-thumb { height: 132px; background: #eef2ff; display: flex; align-items: center; justify-content: center; color: #4f46e5; font-size: 34px; font-weight: 700; overflow: hidden; }
.resource-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* 没配缩略图时的占位：直接写资源名（原来只取首字，一排卡片看过去分不清是哪个插件）。
   名称长短不一，所以按行裁切，最多三行，超出留省略号。 */
.thumb-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3;
    overflow: hidden; padding: 0 14px; font-size: 17px; line-height: 1.45; font-weight: 600;
    text-align: center; overflow-wrap: break-word; word-break: normal; }
.detail-thumb .thumb-text { -webkit-line-clamp: 4; line-clamp: 4; font-size: 15px; }
.resource-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.resource-title { font-size: 16px; font-weight: 650; margin: 0 0 6px; }
.resource-title a { color: #0f172a; }
.resource-title a:hover { color: #2563eb; text-decoration: none; }
.resource-desc { color: #64748b; font-size: 13px; flex: 1; margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.resource-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #94a3b8; }

/* ---------- 徽章 / 标签 ---------- */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; line-height: 18px; font-weight: 600; }
.badge-theme { background: #ede9fe; color: #6d28d9; }
.badge-plugin { background: #dbeafe; color: #1d4ed8; }
.badge-featured { background: #fef3c7; color: #92400e; }
.badge-approved { background: #dcfce7; color: #15803d; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-rejected { background: #fee2e2; color: #b91c1c; }
.badge-active { background: #dcfce7; color: #15803d; }
.badge-inactive { background: #fef3c7; color: #92400e; }
.badge-disabled, .badge-banned, .badge-expired { background: #fee2e2; color: #b91c1c; }
.badge-admin { background: #0f172a; color: #fff; }
.badge-developer { background: #e0e7ff; color: #3730a3; }
.badge-user { background: #f1f5f9; color: #475569; }
.badge-hidden, .badge-draft { background: #f1f5f9; color: #64748b; }
.badge-published { background: #dcfce7; color: #15803d; }
.badge-notice { background: #e0e7ff; color: #3730a3; }
.badge-update { background: #dbeafe; color: #1d4ed8; }
.badge-activity { background: #ffedd5; color: #9a3412; }
.badge-maintain { background: #fce7f3; color: #9d174d; }
.badge-other { background: #f1f5f9; color: #475569; }
.tag { display: inline-block; padding: 3px 10px; margin: 0 6px 6px 0; border: 1px solid #e2e8f0; border-radius: 999px; font-size: 13px; color: #475569; background: #fff; }
.tag:hover { border-color: #2563eb; color: #2563eb; text-decoration: none; }
.tag.on { background: #2563eb; border-color: #2563eb; color: #fff; }

/* ---------- 首页门户 ---------- */
/* 首页按 Discuz 式门户重排：Hero → 公告条 → 主区 + 侧栏。
   统计卡已经收进 Hero，主区第一块是热门分类磁贴；类型是硬约束，分类是软偏好。 */
.mkt {
    --mkt-blue: #2563eb; --mkt-blue-d: #1d4ed8;
    --mkt-ink: #0f172a; --mkt-muted: #64748b; --mkt-line: #e6ebf3;
    color: var(--mkt-ink);
    font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}
.mkt *, .mkt *::before, .mkt *::after { box-sizing: border-box; }
.mkt a { color: inherit; text-decoration: none; }
.mkt h1, .mkt h2, .mkt h3, .mkt h4, .mkt p { margin: 0; }
.mkt svg { display: block; }
.mkt a:focus-visible, .mkt button:focus-visible { outline: 2px solid var(--mkt-blue); outline-offset: 2px; }
.mkt-home { padding-bottom: 36px; }

/* 首屏 */
.mkt-hero {
    position: relative; overflow: hidden; border-radius: 20px;
    background: radial-gradient(1100px 420px at 6% -20%, #1d4ed8 0%, transparent 56%),
                linear-gradient(118deg, #0b1220 0%, #111c3a 52%, #172554 100%);
    color: #fff; padding: 36px 40px 34px;
    display: grid; grid-template-columns: minmax(0, 1fr) 352px; gap: 40px; align-items: center;
}
.mkt-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(620px 320px at 22% 18%, #000, transparent 76%);
    mask-image: radial-gradient(620px 320px at 22% 18%, #000, transparent 76%);
    pointer-events: none;
}
.mkt-hero::after {
    content: ""; position: absolute; width: 440px; height: 440px; right: -130px; top: -170px;
    background: radial-gradient(circle, rgba(59,130,246,.45), transparent 66%); pointer-events: none;
}
.mkt-hero-copy { position: relative; z-index: 1; min-width: 0; }
.mkt-eyebrow {
    display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; letter-spacing: 1.6px;
    color: #93c5fd; background: rgba(59,130,246,.14); border: 1px solid rgba(96,165,250,.25);
    padding: 5px 11px; border-radius: 999px;
}
.mkt-eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: #60a5fa; box-shadow: 0 0 8px #60a5fa; }
.mkt-hero h1 { font-size: 36px; line-height: 1.28; letter-spacing: -.6px; font-weight: 800; margin: 15px 0 9px; }
.mkt-hero h1 em { font-style: normal; background: linear-gradient(90deg,#93c5fd,#c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mkt-hero-sub { font-size: 13.5px; color: #cbd5e1; max-width: 520px; }
.mkt-hero-search {
    margin-top: 20px; display: flex; align-items: center; gap: 6px;
    background: #fff; border-radius: 12px; padding: 5px 5px 5px 14px; max-width: 560px;
    box-shadow: 0 12px 30px rgba(2,6,23,.25);
}
.mkt-hero-search svg { color: #94a3b8; flex-shrink: 0; }
.mkt-hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 13.5px; color: var(--mkt-ink); padding: 8px 2px; }
.mkt-hero-search input::placeholder { color: #94a3b8; }
.mkt-hero-search button {
    border: 0; border-radius: 8px; background: linear-gradient(135deg,#2563eb,#4f46e5); color: #fff;
    font: inherit; font-size: 13px; font-weight: 600; padding: 9px 22px; cursor: pointer;
    box-shadow: 0 4px 10px rgba(37,99,235,.28);
}
.mkt-hot { margin-top: 13px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 11.5px; color: #7c8aa5; }
.mkt-hot a { color: #c7d2e5; padding: 2px 0; }
.mkt-hot a:hover { color: #fff; }
.mkt-hot .sep { color: #3d4b66; }
.mkt-hero-stats { margin-top: 22px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.mkt-stat b { display: block; font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: .3px; }
.mkt-stat span { font-size: 10.5px; color: #8fa0bd; }
.mkt-stat + .mkt-stat { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.12); }

/* 首屏精选卡 */
.mkt-feature {
    position: relative; z-index: 1; background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 10px;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.mkt-hero-slide[hidden] { display: none; }
.mkt-feature-cover {
    position: relative; height: 164px; border-radius: 11px; overflow: hidden;
    background: linear-gradient(135deg,#5b21b6,#3730a3 55%,#1d4ed8);
    display: flex; align-items: center; justify-content: center;
}
.mkt-feature-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(240px 120px at 78% 0%, rgba(167,139,250,.5), transparent 70%); pointer-events: none; }
.mkt-feature-cover img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.mkt-feature-cover .thumb-text {
    position: relative; z-index: 1; display: -webkit-box; -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; line-clamp: 2; width: 100%; max-height: 60px; margin: auto; padding: 0 18px;
    color: #fff; text-align: center; font-size: 20px; line-height: 1.45; font-weight: 700; overflow: hidden;
}
.mkt-feature-chip {
    position: absolute; left: 10px; top: 10px; z-index: 2; font-size: 10px; color: #fff;
    background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25);
    padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(4px);
}
.mkt-feature-body { padding: 11px 8px 5px; }
.mkt-feature-body h3 { font-size: 15.5px; font-weight: 650; letter-spacing: .2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkt-feature-body p { font-size: 11.5px; color: #aebdd6; margin-top: 3px; min-height: 18px; }
.mkt-feature-foot { display: flex; align-items: center; gap: 12px; margin-top: 9px; font-size: 11px; color: #c7d2e5; }
.mkt-feature-price {
    color: #fbbf24; background: rgba(245,158,11,.14); border: 1px solid rgba(251,191,36,.3);
    padding: 1px 7px; border-radius: 5px; font-size: 10.5px;
}
.mkt-feature-price.free { color: #6ee7b7; background: rgba(16,185,129,.14); border-color: rgba(16,185,129,.32); }
.mkt-feature-dots { display: flex; justify-content: flex-end; gap: 5px; padding: 9px 8px 2px; }
.mkt-feature-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.35); cursor: pointer; }
.mkt-feature-dots button.on { width: 16px; background: #fff; }
.mkt-feature-dots button:focus-visible { outline: 2px solid #93c5fd; }
/* 运营位 Banner：图片盖满封面，没图时退回深蓝底 + 标题 */
.mkt-feature-cover.promo { background: linear-gradient(135deg,#0b1220,#1e3a8a 58%,#2563eb); }
.mkt-feature-cover.promo .mkt-feature-chip { background: rgba(15,23,42,.55); border-color: rgba(255,255,255,.28); }

/* 公告条 */
.mkt-notice {
    margin-top: 16px; background: #fff; border: 1px solid var(--mkt-line); border-radius: 12px;
    padding: 11px 16px; display: flex; align-items: center; gap: 10px; font-size: 13px;
}
.mkt-notice-tag {
    background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; font-size: 10.5px;
    font-weight: 600; padding: 2px 8px; border-radius: 6px; flex-shrink: 0; letter-spacing: .5px;
}
.mkt-notice-cat { flex-shrink: 0; font-size: 10.5px; line-height: 17px; }
.mkt-notice a.title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #334155; }
.mkt-notice a.title:hover { color: var(--mkt-blue); }
.mkt-notice time { color: #94a3b8; font-size: 11.5px; flex-shrink: 0; }
.mkt-notice .more { color: var(--mkt-blue); font-size: 12px; flex-shrink: 0; }

/* 主体网格 */
.mkt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 278px; gap: 20px; margin-top: 20px; align-items: start; }
.mkt-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.mkt-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 86px; }
.mkt-panel { background: #fff; border: 1px solid var(--mkt-line); border-radius: 16px; padding: 18px 20px 20px; box-shadow: 0 1px 2px rgba(15,23,42,.02); }
.mkt-panel-head { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; flex-wrap: wrap; }
.mkt-panel-icon { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: #eef2ff; color: #4f46e5; flex-shrink: 0; }
.mkt-panel-icon.teal { background: #ecfdf5; color: #0d9488; }
.mkt-panel-icon.orange { background: #fff7ed; color: #ea580c; }
.mkt-panel-title { font-size: 18px; font-weight: 700; letter-spacing: -.2px; }
.mkt-panel-count { font-size: 10.5px; color: #64748b; background: #f1f5f9; border-radius: 999px; padding: 2px 8px; }
.mkt a.mkt-panel-more { margin-left: auto; font-size: 12.5px; color: var(--mkt-blue); white-space: nowrap; }
.mkt-panel-more:hover { text-decoration: underline; }

/* 分类磁贴 */
.mkt-tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.mkt-tile { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 11px 4px 10px; border-radius: 11px; transition: .15s; min-width: 0; }
.mkt-tile:hover { background: #f8fafc; transform: translateY(-1px); }
.mkt-tile-ico { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.mkt-tile b { font-size: 12.5px; font-weight: 600; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mkt-tile > span:not(.mkt-tile-ico) { font-size: 10.5px; color: #94a3b8; line-height: 1; }
.c1 { background: #eff6ff; color: #2563eb; } .c2 { background: #f5f3ff; color: #7c3aed; }
.c3 { background: #ecfdf5; color: #059669; } .c4 { background: #fff7ed; color: #ea580c; }
.c5 { background: #fdf2f8; color: #db2777; } .c6 { background: #ecfeff; color: #0891b2; }
.c7 { background: #f1f5f9; color: #475569; } .c8 { background: #eef2ff; color: #4f46e5; }
/* 运营位磁贴：上传图当图标；没有图就用星形轮廓 */
.mkt-tile-ico.promo { background: linear-gradient(135deg,#1d4ed8,#4f46e5); color: #fff; overflow: hidden; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.mkt-tile-ico.promo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* 类型分段 */
.mkt-section-body { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
.mkt-rail { display: flex; flex-direction: column; gap: 8px; }
.mkt-rail a {
    writing-mode: vertical-rl; text-orientation: upright; letter-spacing: 3px; font-size: 12.5px; color: #64748b;
    background: #f8fafc; border: 1px solid #eef2f7; border-radius: 9px;
    display: flex; align-items: center; justify-content: center; padding: 9px 0; min-height: 62px; transition: .15s;
}
.mkt-rail a:hover { color: var(--mkt-blue); border-color: #dbeafe; }
.mkt-rail a.on { background: linear-gradient(180deg,#2563eb,#4f46e5); border-color: transparent; color: #fff; box-shadow: 0 6px 14px rgba(37,99,235,.24); font-weight: 600; }
.mkt-lanes { min-width: 0; }
/* .mkt-cards 自带 display:grid，会盖掉 [hidden] 的 UA 样式，必须显式收掉 */
.mkt-lane[hidden] { display: none; }

/* 资源卡 */
.mkt-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.mkt-card { border: 1px solid #edf1f7; border-radius: 12px; overflow: hidden; background: #fff; transition: transform .16s, box-shadow .16s, border-color .16s; min-width: 0; }
.mkt-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,23,42,.09); border-color: #dbeafe; }
.mkt-thumb { position: relative; height: 118px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mkt-thumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(180px 90px at 80% 0%, rgba(255,255,255,.28), transparent 70%); pointer-events: none; }
.mkt-thumb img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.mkt-thumb .thumb-text {
    position: relative; z-index: 1; display: -webkit-box; -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; line-clamp: 2; width: 100%; max-height: 42px; margin: auto; padding: 0 12px;
    color: #fff; text-align: center; font-size: 14px; line-height: 1.45; font-weight: 650; overflow: hidden;
}
.th1 { background: linear-gradient(135deg,#4338ca,#7c3aed); } .th2 { background: linear-gradient(135deg,#0ea5e9,#2563eb); }
.th3 { background: linear-gradient(135deg,#d97706,#f97316); } .th4 { background: linear-gradient(135deg,#0f172a,#334155); }
.th5 { background: linear-gradient(135deg,#ec4899,#8b5cf6); } .th6 { background: linear-gradient(135deg,#10b981,#0d9488); }
.th7 { background: linear-gradient(135deg,#6366f1,#a855f7); } .th8 { background: linear-gradient(135deg,#06b6d4,#0ea5e9); }
.ph1 { background: linear-gradient(135deg,#0f766e,#14b8a6); } .ph2 { background: linear-gradient(135deg,#1d4ed8,#3b82f6); }
.ph3 { background: linear-gradient(135deg,#334155,#0f172a); } .ph4 { background: linear-gradient(135deg,#b45309,#f59e0b); }
.ph5 { background: linear-gradient(135deg,#047857,#10b981); } .ph6 { background: linear-gradient(135deg,#0e7490,#06b6d4); }
.ph7 { background: linear-gradient(135deg,#be123c,#f43f5e); } .ph8 { background: linear-gradient(135deg,#4338ca,#6366f1); }
.mkt-chip {
    position: absolute; left: 9px; top: 9px; z-index: 2; font-size: 10px; color: #fff;
    background: rgba(15,23,42,.34); padding: 2px 7px; border-radius: 5px;
    backdrop-filter: blur(4px); letter-spacing: .3px;
}
.mkt-card-body { padding: 10px 11px 11px; }
.mkt-card-title { font-size: 13.5px; font-weight: 650; line-height: 1.4; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkt-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 3px; font-size: 10.5px; color: #94a3b8; }
.mkt-card-meta .auth { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkt-card-meta .dl { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.mkt-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #eef2f7; }
.mkt-price { font-size: 10.5px; font-weight: 600; color: #c2410c; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 5px; padding: 1px 6px; line-height: 1.6; }
.mkt-price.free { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.mkt-date { font-size: 10.5px; color: #94a3b8; }
.mkt-empty { grid-column: 1 / -1; margin: 0; padding: 24px 8px; color: #94a3b8; font-size: 13px; }
.mkt-empty a { color: var(--mkt-blue); }

/* 下载榜 */
.mkt-rank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.mkt-rank { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px dashed #eef2f7; min-width: 0; }
.mkt-rank:nth-child(n+5) { border-bottom: 0; padding-bottom: 2px; }
.mkt-rank-no { width: 18px; font-size: 13px; font-weight: 700; color: #cbd5e1; text-align: center; flex-shrink: 0; }
.mkt-rank:nth-child(1) .mkt-rank-no { color: #f59e0b; }
.mkt-rank:nth-child(2) .mkt-rank-no { color: #94a3b8; }
.mkt-rank:nth-child(3) .mkt-rank-no { color: #d97706; }
.mkt-rank-title { font-size: 12.5px; font-weight: 550; color: #334155; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkt-rank .type { font-size: 9.5px; color: #64748b; background: #f1f5f9; border-radius: 4px; padding: 1px 5px; flex-shrink: 0; }
.mkt-rank .num { margin-left: auto; font-size: 10.5px; color: #94a3b8; flex-shrink: 0; display: flex; align-items: center; gap: 3px; }

/* 招募 CTA */
.mkt-cta { position: relative; overflow: hidden; border-radius: 16px; background: linear-gradient(118deg,#0b1220,#1e3a8a); color: #fff; padding: 22px 26px; display: flex; align-items: center; gap: 20px; }
.mkt-cta::after { content: ""; position: absolute; right: 90px; top: -90px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(96,165,250,.35), transparent 68%); }
.mkt-cta h3 { font-size: 18px; font-weight: 700; letter-spacing: -.2px; }
.mkt-cta p { font-size: 12px; color: #bfdbfe; margin-top: 4px; }
.mkt-cta a { position: relative; z-index: 1; margin-left: auto; background: #fff; color: #1d4ed8; padding: 9px 18px; border-radius: 9px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }

/* 侧栏 */
.mkt-side-card { background: #fff; border: 1px solid var(--mkt-line); border-radius: 16px; padding: 16px; }
.mkt-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.mkt-side-head h3 { font-size: 14.5px; font-weight: 700; }
.mkt-side-head span { font-size: 10px; color: #c2410c; background: #fff7ed; padding: 2px 7px; border-radius: 999px; border: 1px solid #fed7aa; white-space: nowrap; }
.mkt-side-more { font-size: 11px; color: var(--mkt-blue); }
.mkt-check-row { display: flex; align-items: center; gap: 10px; }
.mkt-check-row form { margin: 0; }
.mkt-coin { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg,#f59e0b,#f97316); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(245,158,11,.28); flex-shrink: 0; }
.mkt-check-row b { display: block; font-size: 14px; line-height: 1.3; }
.mkt-check-row small { display: block; font-size: 10.5px; color: #94a3b8; margin-top: 1px; }
.mkt-check-btn {
    margin-left: auto; background: var(--mkt-blue); color: #fff; border: 0; border-radius: 8px;
    font: inherit; font-size: 12px; font-weight: 600; padding: 7px 14px; cursor: pointer; white-space: nowrap;
}
.mkt-check-btn:hover { background: var(--mkt-blue-d); color: #fff; }
.mkt-check-btn.is-done { background: #f1f5f9; color: #94a3b8; cursor: default; }
.mkt-side-note { font-size: 10.5px; color: #94a3b8; margin-top: 12px; line-height: 1.7; }
.mkt-client { position: relative; overflow: hidden; background: linear-gradient(135deg,#0f172a,#1e3a8a); border-radius: 16px; padding: 18px; color: #fff; border: 1px solid #1e293b; }
.mkt-client > * { position: relative; z-index: 1; }
.mkt-client h3 { font-size: 15px; font-weight: 700; margin-bottom: 7px; }
.mkt-client p { font-size: 11.5px; color: #bfdbfe; line-height: 1.65; max-width: 190px; }
.mkt-client .ver { display: inline-block; font-size: 9.5px; color: #bfdbfe; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 1px 7px; border-radius: 999px; margin-bottom: 8px; letter-spacing: .3px; }
.mkt a.mkt-client-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; background: #fff; color: #1d4ed8; font-size: 12px; font-weight: 650; padding: 7px 13px; border-radius: 8px; box-shadow: 0 4px 12px rgba(2,6,23,.18); }
.mkt-client::after { content: ""; position: absolute; right: -46px; bottom: -66px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(96,165,250,.5), transparent 70%); z-index: 0; }
.mkt-ann { padding: 9px 0; border-bottom: 1px dashed #eef2f7; display: flex; align-items: center; gap: 8px; }
.mkt-ann:last-child { border-bottom: 0; padding-bottom: 0; }
.mkt-ann i { width: 5px; height: 5px; border-radius: 50%; background: #fdba74; flex-shrink: 0; display: block; }
.mkt-ann a { font-size: 11.5px; color: #334155; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkt-ann a:hover { color: var(--mkt-blue); }
.mkt-ann .badge { flex-shrink: 0; font-size: 9px; line-height: 16px; padding: 0 5px; }
.mkt-ann time { font-size: 10px; color: #94a3b8; flex-shrink: 0; }
.mkt-submit { border: 1px dashed #cbd5e1; background: linear-gradient(180deg,#fbfdff,#f6f9ff); border-radius: 16px; padding: 17px; text-align: center; }
.mkt-submit b { font-size: 13.5px; }
.mkt-submit p { font-size: 11px; color: #64748b; margin: 4px 0 9px; line-height: 1.6; }
.mkt-submit a { font-size: 12px; color: var(--mkt-blue); font-weight: 600; }

@media (max-width: 1180px) {
    .mkt-hero { grid-template-columns: minmax(0, 1fr) 316px; gap: 28px; padding: 32px; }
    .mkt-hero h1 { font-size: 32px; }
    .mkt-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mkt-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .mkt-layout { grid-template-columns: 1fr; }
    .mkt-side { position: static; display: grid; grid-template-columns: 1fr 1fr; }
    .mkt-hero { grid-template-columns: 1fr; }
    .mkt-feature { margin-top: 24px; max-width: 430px; }
}
@media (max-width: 680px) {
    .mkt-hero { padding: 24px 20px; }
    .mkt-hero h1 { font-size: 26px; }
    .mkt-hero-search button { padding: 9px 16px; }
    .mkt-hero-stats { gap: 14px; }
    .mkt-stat + .mkt-stat { padding-left: 14px; }
    .mkt-notice { flex-wrap: wrap; gap: 6px 8px; }
    .mkt-notice a.title { flex-basis: 100%; order: 5; white-space: normal; }
    .mkt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mkt-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .mkt-section-body { grid-template-columns: 1fr; }
    .mkt-rail { flex-direction: row; overflow: auto; padding-bottom: 2px; }
    .mkt-rail a { writing-mode: horizontal-tb; text-orientation: mixed; min-height: 0; padding: 6px 14px; letter-spacing: 0; }
    .mkt-side { grid-template-columns: 1fr; }
    .mkt-rank-grid { grid-template-columns: 1fr; }
    .mkt-rank:nth-child(n+5) { border-bottom: 1px dashed #eef2f7; padding-bottom: 9px; }
    .mkt-rank:last-child { border-bottom: 0; }
    .mkt-cta { flex-direction: column; align-items: flex-start; }
    .mkt-cta a { margin-left: 0; }
}

/* ---------- 列表页顶部类型切换条 ---------- */
/* 接替导航里下线的「主题」「插件」：只换 type，分类与排序由链接自己带走，所以是 <a> 不是表单。
   整条按内容收窄（fit-content），别拉满一行——三个小按钮配一条通栏灰底，右边全是空的。 */
.type-switch { display: inline-flex; flex-wrap: wrap; gap: 4px; max-width: 100%; margin: 0 0 16px; padding: 3px; border: 1px solid #e2e8f0; border-radius: 9px; background: #f1f5f9; }
.type-switch a {
    flex: 0 0 auto; padding: 6px 16px; border-radius: 6px;
    font-size: 14px; color: #475569; text-decoration: none; white-space: nowrap;
    transition: background .15s, color .15s, box-shadow .15s;
}
.type-switch a:hover { color: #0f172a; background: #e2e8f0; text-decoration: none; }
.type-switch a:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.type-switch a.on { background: #fff; color: #0f172a; font-weight: 600; box-shadow: 0 1px 2px rgba(15, 23, 42, .1); }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block; padding: 9px 18px; border: 1px solid transparent; border-radius: 7px;
    background: #2563eb; color: #fff; font-size: 14px; line-height: 1.5; cursor: pointer; text-align: center;
    white-space: nowrap;
    transition: background .15s, border-color .15s;
}
.btn:hover { background: #1d4ed8; text-decoration: none; color: #fff; }
.btn-secondary { background: #fff; color: #334155; border-color: #cbd5e1; }
.btn-secondary:hover { background: #f1f5f9; color: #0f172a; border-color: #94a3b8; }
.btn-danger { background: #dc2626; }
.btn-danger:hover { background: #b91c1c; }
.btn-success { background: #16a34a; }
.btn-success:hover { background: #15803d; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- 表单 ---------- */
.form-row { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #334155; }
.form-label .req { color: #dc2626; }
.form-control {
    width: 100%; padding: 9px 12px; font-size: 14px; color: #0f172a;
    background: #fff; border: 1px solid #cbd5e1; border-radius: 7px; font-family: inherit;
}
.form-control:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .13); }
textarea.form-control { min-height: 110px; resize: vertical; }
select.form-control { height: 38px; }
.form-hint { margin-top: 5px; font-size: 12px; color: #94a3b8; }
.thumb-current { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding: 10px; border: 1px dashed #e2e8f0; border-radius: 8px; background: #f8fafc; }
.thumb-current img { width: 120px; height: 68px; object-fit: cover; border-radius: 6px; border: 1px solid #e2e8f0; background: #fff; }
.thumb-current p { margin: 0; }
.form-check { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 400; color: #334155; }
.form-check input { width: auto; }
.form-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* ---------- 登录验证码 ---------- */
.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-input { flex: 0 1 150px; min-width: 0; }
.captcha-box {
    padding: 0; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; cursor: pointer; line-height: 0;
}
.captcha-box:hover, .captcha-box:focus { border-color: #2563eb; outline: none; }
.captcha-box img { display: block; border-radius: 6px; }
.captcha-math {
    padding: 9px 14px; font: 650 15px/1.4 ui-monospace, Consolas, monospace; color: #0f172a;
    background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 7px; white-space: nowrap;
}
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 22px; }
.auth-card { max-width: 420px; margin: 48px auto; }
.auth-card .card { padding: 28px; }
.auth-card h1 { font-size: 22px; text-align: center; margin-bottom: 6px; }
.auth-sub { text-align: center; color: #64748b; font-size: 14px; margin-bottom: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

/* ---------- 提示条 ---------- */
.alert { padding: 11px 16px; border-radius: 7px; margin-bottom: 14px; font-size: 14px; border: 1px solid transparent; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.alert-error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.flashes { margin: 18px auto 0; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: middle; }
.table th { background: #f8fafc; font-weight: 600; color: #475569; font-size: 13px; white-space: nowrap; }
.table tbody tr:nth-child(even) { background: #fcfcfd; }
.table tbody tr:hover { background: #f8fafc; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table td.num, .table th.num { text-align: right; }

/* ---------- 分页 ---------- */
.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 26px 0 10px; flex-wrap: wrap; }
.page-link { display: inline-block; min-width: 36px; padding: 7px 11px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; color: #334155; font-size: 14px; }
.page-link:hover { border-color: #2563eb; color: #2563eb; text-decoration: none; }
.page-link.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.page-link.disabled { color: #cbd5e1; pointer-events: none; }
.page-total { color: #94a3b8; font-size: 13px; margin-left: 8px; }

/* ---------- 统计块 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 18px 20px; }
.stat-card b { display: block; font-size: 27px; line-height: 1.2; color: #0f172a; }
.stat-card span { font-size: 13px; color: #64748b; }

/* ---------- 空状态 / 页脚 ---------- */
.empty { padding: 44px 20px; text-align: center; color: #94a3b8; background: #fff; border: 1px dashed #e2e8f0; border-radius: 10px; }
.empty h3 { color: #64748b; }
.site-footer { margin-top: 44px; padding: 34px 0 22px; background: #0b1220; color: #94a3b8; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 650; font-size: 14px; margin-bottom: 10px; }
.footer-brand:hover { color: #fff; text-decoration: none; }
.footer-logo { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg,#2563eb,#4f46e5); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; flex-shrink: 0; }
.footer-about p { font-size: 11.5px; line-height: 1.85; color: #64748b; max-width: 320px; }
.footer-ver { display: inline-block; margin-top: 12px; font-size: 10.5px; color: #475569; letter-spacing: .3px; }
.footer-col h4 { color: #e2e8f0; font-size: 12.5px; margin: 0 0 11px; font-weight: 600; letter-spacing: .3px; }
.site-footer .footer-col a { display: block; font-size: 11.5px; color: #8b9ab3; padding: 3px 0; }
.site-footer .footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); margin-top: 24px; padding-top: 15px; display: flex; justify-content: space-between; gap: 16px; font-size: 10.5px; color: #475569; flex-wrap: wrap; }
.footer-beian { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-beian a { color: #64748b; }
.footer-beian a:hover { color: #cbd5e1; }

/* ---------- 详情页 ---------- */
.detail-head { display: flex; gap: 20px; align-items: flex-start; }
.detail-thumb { width: 168px; height: 118px; border-radius: 10px; background: #eef2ff; color: #4f46e5;
    display: flex; align-items: center; justify-content: center; font-size: 38px; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { flex: 1; min-width: 0; }
.meta-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.meta-list li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed #e2e8f0; }
.meta-list li:last-child { border-bottom: 0; }
.meta-list span { color: #64748b; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid #e2e8f0; margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 9px 16px; color: #475569; border-radius: 7px 7px 0 0; font-size: 14px; }
.tabs a:hover { background: #f1f5f9; text-decoration: none; }
.tabs a.on { color: #2563eb; font-weight: 600; box-shadow: inset 0 -2px 0 #2563eb; }
.desc-body { white-space: pre-wrap; word-break: break-word; color: #334155; }

/* ---------- 资源留言 ---------- */
.comment-form { margin-bottom: 20px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-item { padding: 16px 0; border-top: 1px solid #eef2f7; }
.comment-item:first-child { border-top: 0; padding-top: 0; }
.comment-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.comment-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px;
    width: 26px; height: 26px; border-radius: 50%; background: #eef2ff; color: #4f46e5; font-size: 13px; font-weight: 600; }
.comment-body { font-size: 14px; }
.comment-tools { margin-top: 8px; gap: 8px; }
.comment-tools form { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.comment-reply { display: inline-flex; flex-direction: column; gap: 8px; }
.comment-reply summary { cursor: pointer; color: #2563eb; font-size: 13px; list-style: none; }
.comment-reply summary::-webkit-details-marker { display: none; }
.comment-reply[open] { padding: 10px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; }
.comment-reply-item { margin: 10px 0 0 34px; padding: 10px 12px; border-left: 2px solid #e2e8f0; background: #f8fafc; border-radius: 0 8px 8px 0; }
.comment-item.is-pending > .comment-body,
.comment-reply-item.is-pending > .comment-body { color: #92400e; }

/* ---------- 公告 ---------- */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-item { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid #eef2f7; }
.post-item:first-child { border-top: 0; padding-top: 0; }
.post-item:last-child { padding-bottom: 0; }
.post-date { flex: 0 0 62px; text-align: center; color: #64748b; padding-top: 2px; }
.post-date b { display: block; font-size: 17px; color: #2563eb; font-variant-numeric: tabular-nums; }
.post-date span { font-size: 12px; }
.post-main { flex: 1; min-width: 0; }
.post-title { font-size: 16px; font-weight: 650; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-title a { color: #0f172a; }
.post-title a:hover { color: #2563eb; text-decoration: none; }
.post-summary { color: #64748b; font-size: 13px; margin: 0 0 8px; }
.post-meta { font-size: 13px; align-items: center; gap: 10px; }
.post-meta .tag { margin: 0; }
.post-article { padding: 26px 28px 22px; }
.post-h1 { font-size: 24px; line-height: 1.35; margin: 0 0 10px; }
.post-lead { margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid #2563eb; background: #f8fafc;
    color: #475569; font-size: 14px; border-radius: 0 7px 7px 0; }
.post-content { margin-top: 18px; font-size: 15px; line-height: 1.8; }
.post-foot { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; padding-top: 16px; border-top: 1px solid #eef2f7; }
.notice-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.notice-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #e2e8f0; flex-wrap: wrap; }
.notice-list li:last-child { border-bottom: 0; }
.notice-title { flex: 1; min-width: 0; color: #0f172a; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-title:hover { color: #2563eb; text-decoration: none; }

/* ---------- 积分与签到 ---------- */
.badge-points { background: #fff7ed; color: #c2410c; }
.badge-level { background: #e0e7ff; color: #3730a3; }
.nav-points { font-size: 12px; color: #64748b; font-weight: 600; white-space: nowrap; }
.nav-unread { font-size: 12px; color: #b91c1c; font-weight: 600; white-space: nowrap; }
.nav-unread b { font-variant-numeric: tabular-nums; }
.points-top { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.points-balance { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center;
    min-width: 108px; padding: 12px 16px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; text-align: center; }
.points-balance b { font-size: 26px; line-height: 1.2; color: #0f172a; font-variant-numeric: tabular-nums; }
.points-balance span { font-size: 12px; color: #64748b; }
.points-level { flex: 1 1 180px; min-width: 0; }
.points-level .badge-level { margin-bottom: 8px; }
.level-progress { height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.level-progress i { display: block; height: 100%; background: linear-gradient(90deg, #6366f1, #2563eb); border-radius: 999px; }
.points-action { flex: 0 0 180px; }
.points-action form { margin: 0; }
.ladder { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; padding: 0; }
.ladder-step { flex: 1 1 74px; min-width: 74px; padding: 8px 6px; text-align: center; border: 1px solid #e2e8f0;
    border-radius: 9px; background: #f8fafc; }
.ladder-step span { display: block; font-size: 12px; color: #64748b; }
.ladder-step b { display: block; font-size: 15px; color: #334155; font-variant-numeric: tabular-nums; }
.ladder-step.done { background: #ecfdf5; border-color: #bbf7d0; }
.ladder-step.done b { color: #15803d; }
.ladder-step.next { background: #eff6ff; border-color: #bfdbfe; box-shadow: 0 0 0 2px rgba(37, 99, 235, .08); }
.ladder-step.next b { color: #1d4ed8; }
.ladder-step.steady { flex: 1 1 96px; min-width: 96px; background: #fff; border-style: dashed; }
.points-delta { font-weight: 650; font-variant-numeric: tabular-nums; }
.points-delta.up { color: #15803d; }
.points-delta.down { color: #b91c1c; }
.rank-no { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px;
    border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-no.rank-top { background: #fef3c7; color: #b45309; }
.table tr.table-me { background: #eff6ff; }
.table tr.table-me:hover { background: #dbeafe; }
.rule-list { margin: 0; padding-left: 20px; font-size: 14px; color: #475569; line-height: 1.9; }
.rule-list b { color: #0f172a; }

/* ---------- 响应式 ---------- */
/* 站内消息：未读那一行靠底色区分，不靠「加粗 + 一个小圆点」这种要用户自己对照的暗示 */
.notif-unread td { background: #fffaeb; }
.notif-unread:hover td { background: #fef3d8; }
.notif-title { font-weight: 600; color: #0f172a; }
.notif-body { margin-top: 4px; color: #64748b; font-size: 13px; }
.notif-act form { margin: 0; }

@media (max-width: 860px) {
    .nav { height: auto; padding: 12px 0; flex-wrap: wrap; }
    /* 品牌与「菜单」同排，搜索与账号入口整行下移，展开的导航排最后 */
    .nav-brand { order: 0; }
    .nav-toggle { display: block; margin-left: auto; order: 1; white-space: nowrap; }
    .nav-right { order: 2; width: 100%; margin-left: 0; flex-wrap: wrap; }
    .nav-links { order: 3; display: none; width: 100%; flex-direction: column; align-items: stretch; }
    .nav-links.open { display: flex; }
    .search-form { flex: 1 1 100%; }
    .search-form input { flex: 1; width: auto; min-width: 0; }
    .search-form .btn { flex: none; }
    .hero { padding: 34px 0; }
    .hero h1 { font-size: 24px; }
    .detail-head { flex-direction: column; }
    .card-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .points-action, .points-balance { flex: 1 1 100%; }
    .points-top { gap: 12px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; }
}
