/* ============================================================
   AI 项目平台 · 商业化设计系统
   在 style.css 之后加载：重定义令牌 + 升级共用组件
   语言：Modern Tool / Builder SaaS（浅色商业版）
   ============================================================ */

:root {
  /* 基底：暖白纸感 */
  --ground: #FBFAF9;
  --surface: #FFFFFF;
  --surface-2: #F4F3F1;
  --surface-3: #EAE8E4;

  /* 线：hairline 统一中性黑，不染主色 */
  --hairline: rgba(17, 17, 17, .09);
  --hairline-strong: rgba(17, 17, 17, .17);

  /* 墨色阶梯 */
  --ink: #16171A;
  --ink-2: #6B7280;
  --ink-3: #9CA3AF;

  /* 签名色：唯一强调色，占屏 < 5% */
  --accent: #1E3FFF;
  --accent-ink: #1A34D6;
  --accent-soft: rgba(30, 63, 255, .07);

  /* 兼容旧变量（未改版页面继续可用，视觉向新体系收敛） */
  --primary: #1A34D6;
  --primary-dark: #16171A;
  --primary-light: #EAE8E4;
  --bg: #FBFAF9;
  --card: #FFFFFF;
  --border: rgba(17, 17, 17, .09);
  --text: #16171A;
  --text-sub: #6B7280;
  --placeholder: #9CA3AF;
  --gradient: #16171A;
  --radius-s: 6px;
  --radius: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-pop: 0 12px 32px rgba(0, 0, 0, .11);

  /* 形状：三档，不超 16 */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;

  /* 阴影：中性，不发光 */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-2: 0 6px 20px rgba(0, 0, 0, .07);

  /* 动效 */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-fast: 150ms;
  --t-mid: 380ms;

  /* 节奏 */
  --gap: 22px;
  --card-pad: 18px;
  --sec-pad: 56px;
}

* { box-sizing: border-box; }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

/* 图标：统一 24 网格 / 1.5 描边 / round 端点 */
svg.i, .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i[data-fill="1"], .ico-fill { fill: currentColor; stroke: none; }
svg.i[data-fill="1"][data-stroke="1"] { fill: currentColor; stroke: currentColor; }

/* 品牌标识：确保外方/菱形描边、中心实心 */
.brand-mark use { color: inherit; }
.symbol-mark rect:first-child, .symbol-mark path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.symbol-mark rect[data-core] { fill: currentColor; stroke: none; }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, "Roboto Mono", monospace; font-variant-numeric: tabular-nums; }

/* ============================================================
   导航
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 70;
  background: rgba(251, 250, 249, .84);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 64px; }

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark { width: 27px; height: 27px; color: var(--accent); flex: none; }
.symbol-mark rect:first-child, .symbol-mark path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.symbol-mark rect[data-core] { fill: currentColor; stroke: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-cn { font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.brand-en { font-size: 8.5px; font-weight: 500; letter-spacing: .15em; color: var(--ink-3); margin-top: 4px; font-family: ui-monospace, monospace; }

.nav { position: relative; display: flex; gap: 4px; margin-left: 6px; }
.nav a {
  padding: 8px 16px; font-size: 15px; font-weight: 500; color: var(--ink-2);
  border-radius: 999px;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a.active { color: #fff; background: var(--ink); font-weight: 600; box-shadow: 0 3px 10px rgba(22, 23, 26, .16); }
.nav-underline {
  position: absolute; bottom: -1px; height: 2px; background: var(--accent);
  transition: transform var(--t-mid) var(--ease), width var(--t-mid) var(--ease);
  pointer-events: none;
}

.header-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* 搜索：聚焦时图标与描边转强调色 + 3px 环 */
.search {
  position: relative; display: flex; align-items: center;
  border: 1px solid var(--hairline); background: var(--surface); border-radius: 999px;
  padding: 0 14px 0 36px; height: 38px; width: 260px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), width var(--t-fast) var(--ease);
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); width: 300px; }
.search > svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--ink-3); transition: color var(--t-fast) var(--ease); }
.search:focus-within > svg { color: var(--accent); }
.search input { border: none; outline: none; background: none; width: 100%; font: inherit; font-size: 14px; color: var(--ink); }
.search input::placeholder { color: var(--ink-3); opacity: 1; }

/* 按钮：无渐变、无彩阴 */
.btn {
  padding: 0 14px; height: 36px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform 100ms var(--ease);
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn:active { transform: scale(.977); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); box-shadow: 0 4px 14px rgba(30, 63, 255, .26); }
.btn-outline { border: 1px solid var(--hairline-strong); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; box-shadow: var(--shadow-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.notif-dot {
  position: absolute; top: 3px; right: 3px; min-width: 15px; height: 15px; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: 10px; line-height: 15px; padding: 0 4px; text-align: center;
}

/* ============================================================
   通用排版
   ============================================================ */
.kicker {
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-ink); display: flex; align-items: center; gap: 8px;
}
.kicker::before { content: ""; width: 16px; height: 1px; background: currentColor; }

.section-head { align-items: flex-end; gap: 14px; margin-bottom: 20px; }
.section-title {
  font-size: 23px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; color: var(--ink);
  display: flex; align-items: center; gap: 0;
}
.section-title::before { display: none; }
.section-more { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 5px; transition: color var(--t-fast) var(--ease); }
.section-more svg { width: 13px; height: 13px; transition: transform var(--t-fast) var(--ease); }
.section-more:hover { color: var(--accent-ink); }
.section-more:hover svg { transform: translateX(3px); }

.sec-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 20px; padding-top: 6px; }
.sec-num { font-family: ui-monospace, monospace; font-size: 12px; color: var(--ink-3); padding-bottom: 6px; }
.sec-title { font-size: 23px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.sec-sub { font-size: 13.5px; color: var(--ink-2); padding-bottom: 5px; }
.sec-more { margin-left: auto; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 5px; padding-bottom: 5px; transition: color var(--t-fast) var(--ease); }
.sec-more svg { width: 13px; height: 13px; transition: transform var(--t-fast) var(--ease); }
.sec-more:hover { color: var(--accent-ink); }
.sec-more:hover svg { transform: translateX(3px); }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 62px 0 0; }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 58px); font-weight: 600; letter-spacing: -.032em;
  line-height: 1.06; max-width: 15em; margin: 18px 0 16px;
}
.hero-dek { font-size: 16.5px; color: var(--ink-2); max-width: 42em; line-height: 1.58; }
.hero-actions { display: flex; gap: 10px; margin-top: 28px; }
.hero-facts { display: flex; align-items: center; gap: 0; margin-top: 26px; }
.hero-fact { display: flex; flex-direction: column; padding-right: 26px; }
.hero-fact + .hero-fact { padding-left: 26px; border-left: 1px solid var(--hairline); }
.hero-fact b { font-family: ui-monospace, monospace; font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.hero-fact span { font-size: 12px; color: var(--ink-3); margin-top: 3px; }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 44px; }
.mode {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 18px; cursor: default;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-mid) var(--ease);
}
.mode:hover { border-color: var(--hairline-strong); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.mode-ico { width: 30px; height: 30px; border-radius: var(--r-xs); background: var(--surface-2); display: grid; place-items: center; color: var(--ink); margin-bottom: 13px; }
.mode-ico svg { width: 16px; height: 16px; }
.mode h4 { font-size: 14.5px; font-weight: 600; margin-bottom: 4px; letter-spacing: -.005em; }
.mode p { font-size: 13px; color: var(--ink-2); line-height: 1.55; }

/* ============================================================
   焦点位（原 Banner 重做）
   ============================================================ */
.banner {
  position: relative; height: 300px; border-radius: var(--r-lg); overflow: hidden;
  margin: 40px 0 0; border: 1px solid var(--hairline); background: var(--surface-3);
  box-shadow: none;
}
.banner-track { display: flex; height: 100%; transition: transform 620ms var(--ease); }
.banner-slide { min-width: 100%; height: 100%; position: relative; background: var(--surface-3); }
.banner-slide::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(var(--hairline-strong) 1px, transparent 1px), linear-gradient(90deg, var(--hairline-strong) 1px, transparent 1px);
  background-size: 30px 30px; opacity: .55;
}
.banner-slide img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.banner-slide::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(90deg, rgba(16, 17, 20, .74) 0%, rgba(16, 17, 20, .34) 46%, rgba(16, 17, 20, .06) 78%);
}
.banner-text { position: absolute; left: 40px; bottom: 38px; z-index: 3; color: #fff; max-width: 46%; }
.banner-eyebrow { font-family: ui-monospace, monospace; font-size: 10.5px; letter-spacing: .14em; opacity: .74; margin-bottom: 9px; }
.banner-text h2 { font-size: 27px; font-weight: 600; letter-spacing: -.02em; line-height: 1.22; margin-bottom: 6px; }
.banner-text p { font-size: 14.5px; opacity: .82; }
.banner-cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; height: 34px; padding: 0 13px;
  background: #fff; color: var(--ink); border-radius: var(--r-sm); font-size: 13.5px; font-weight: 500;
  transition: transform var(--t-fast) var(--ease);
}
.banner-cta:hover { transform: translateX(2px); }
.banner-cta svg { width: 13px; height: 13px; }
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .92);
  display: grid; place-items: center; color: var(--ink); font-size: 17px;
  opacity: 0; transition: opacity var(--t-fast) var(--ease); border: none; cursor: pointer;
}
.banner:hover .banner-arrow { opacity: 1; }
.banner-arrow.prev { left: 14px; }
.banner-arrow.next { right: 14px; }
.banner-dots { position: absolute; right: 20px; bottom: 18px; z-index: 3; display: flex; gap: 6px; }
.banner-dots span {
  width: 22px; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .42);
  cursor: pointer; transition: background var(--t-fast) var(--ease);
}
.banner-dots span.active { background: #fff; }

/* ============================================================
   公告条
   ============================================================ */
.notice-bar {
  display: flex; align-items: center; gap: 12px; background: transparent;
  border: none; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  border-radius: 0; padding: 0; margin: 30px 0 0; box-shadow: none; height: 46px;
}
.notice-tag {
  display: inline-flex; align-items: center; gap: 6px; background: none; color: var(--ink);
  font-size: 12.5px; font-weight: 600; padding: 0; flex: none; letter-spacing: .01em;
}
.notice-tag svg { width: 14px; height: 14px; color: var(--accent-ink); }
.notice-list { flex: 1; overflow: hidden; height: 22px; position: relative; min-width: 0; }
.notice-item { height: 22px; line-height: 22px; font-size: 13.5px; color: var(--ink-2); transition: transform .4s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-item b { color: var(--ink); margin-right: 8px; font-weight: 500; }
.notice-new { display: inline-block; background: var(--accent); color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 3px; margin-left: 7px; vertical-align: 1px; font-weight: 600; letter-spacing: .04em; }

/* ============================================================
   类目 rail
   ============================================================ */
.rail { display: flex; gap: 8px; padding: 22px 0 2px; overflow-x: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; flex: none;
  border: 1px solid var(--hairline); border-radius: 999px; background: var(--surface);
  font-size: 13.5px; color: var(--ink-2); cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.chip svg { width: 14px; height: 14px; transition: transform var(--t-fast) var(--ease); }
.chip:hover { border-color: var(--hairline-strong); color: var(--ink); }
.chip:hover svg { transform: rotate(-6deg); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500; }

/* ============================================================
   项目卡片
   ============================================================ */
.projects, .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(266px, 1fr)); gap: var(--gap); }
.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md);
  overflow: hidden; display: flex; flex-direction: column; cursor: pointer; position: relative;
  box-shadow: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.card:hover { border-color: var(--hairline-strong); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.card-cover { position: relative; aspect-ratio: 16 / 10; background: var(--surface-3); overflow: hidden; border-bottom: 1px solid var(--hairline); }
.card-cover::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(var(--hairline) 1px, transparent 1px), linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 24px 24px; opacity: .8;
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 620ms var(--ease); position: relative; z-index: 1; }
.card:hover .card-cover img { transform: scale(1.035); }
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: var(--r-xs); letter-spacing: .01em;
  display: inline-flex; align-items: center; gap: 4px;
}
.badge svg { width: 12px; height: 12px; }
.badge-free { background: rgba(255, 255, 255, .94); color: var(--accent-ink); }
.badge-paid { background: var(--ink); color: #fff; }
.badge-group { background: var(--surface-2); color: var(--ink-2); top: 10px; right: 10px; left: auto; font-weight: 500; }
.card-body { padding: var(--card-pad); display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-top { display: flex; align-items: flex-start; gap: 10px; }
.card-logo { width: 30px; height: 30px; border-radius: var(--r-xs); background: var(--surface-2) url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2032%2032%27%3E%3Cpath%20d%3D%27M12%207a3%203%200%20016%200v2h7a2%202%200%20012%202v7h2a3%203%200%20010%206h-2v7a2%202%200%2001-2%202h-7v-2a3%203%200%2000-6%200v2H9a2%202%200%2001-2-2v-7H5a3%203%200%20010-6h2V9a2%202%200%20012-2h7z%27%20fill%3D%27%239CA3AF%27%2F%3E%3C%2Fsvg%3E") no-repeat center/52%; flex: none; overflow: hidden; border: 1px solid var(--hairline); }
.card-logo img { width: 100%; height: 100%; object-fit: cover; }
.card-name { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-cat { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.card-tagline {
  font-size: 13px; color: var(--ink-2); line-height: 1.55; height: 40px; overflow: hidden; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.card-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--hairline); display: flex; align-items: center; gap: 7px; }
.card-foot .tag { margin-right: auto; }
.card-meta { font-family: ui-monospace, monospace; font-size: 11.5px; color: var(--ink-3); letter-spacing: -.01em; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px;
  border-radius: var(--r-xs); background: var(--surface-2); font-size: 11.5px; color: var(--ink-2);
}
.tag svg { width: 12px; height: 12px; }
.tag[data-kind="accent"] { background: var(--accent-soft); color: var(--accent-ink); }
.tag[data-kind="ink"] { background: var(--ink); color: #fff; }
.star { color: var(--accent); }

/* ============================================================
   榜单
   ============================================================ */
.rank-list {
  display: block; border: 1px solid var(--hairline); border-radius: var(--r-md);
  background: var(--surface); overflow: hidden; gap: 0;
}
.rank-item {
  display: flex; align-items: center; gap: 15px; padding: 13px 18px; background: none;
  border: none; border-bottom: 1px solid var(--hairline); border-radius: 0; cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.rank-item:hover { background: var(--surface-2); transform: none; box-shadow: none; }
.rank-no {
  font-family: ui-monospace, monospace; font-size: 13px; color: var(--ink-3); width: 20px; flex: none;
  background: none; height: auto; border-radius: 0; text-align: left;
}
.rank-no.top1, .rank-no.top2, .rank-no.top3 { color: var(--accent-ink); background: none; font-weight: 600; }
.rank-thumb { width: 34px; height: 34px; border-radius: var(--r-xs); background: var(--surface-2) url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2032%2032%27%3E%3Cpath%20d%3D%27M12%207a3%203%200%20016%200v2h7a2%202%200%20012%202v7h2a3%203%200%20010%206h-2v7a2%202%200%2001-2%202h-7v-2a3%203%200%2000-6%200v2H9a2%202%200%2001-2-2v-7H5a3%203%200%20010-6h2V9a2%202%200%20012-2h7z%27%20fill%3D%27%239CA3AF%27%2F%3E%3C%2Fsvg%3E") no-repeat center/54%; flex: none; overflow: hidden; border: 1px solid var(--hairline); }
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-info { flex: 1; min-width: 0; }
.rank-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-meta { font-size: 12px; color: var(--ink-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-bar { width: 108px; height: 3px; background: var(--surface-3); border-radius: 999px; overflow: hidden; flex: none; }
.rank-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width 700ms var(--ease); }
.rank-score { font-family: ui-monospace, monospace; font-size: 12.5px; color: var(--ink-2); flex: none; min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; }
.rank-delta { font-family: ui-monospace, monospace; font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 3px; min-width: 42px; justify-content: flex-end; flex: none; }
.rank-delta svg { width: 12px; height: 12px; }
.rank-delta[data-dir="up"] { color: var(--accent-ink); }
.rank-delta[data-dir="flat"] { color: var(--ink-3); }

/* ============================================================
   开发者 band
   ============================================================ */
.band {
  background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 36px 34px; display: flex; align-items: center; gap: 40px; margin-top: var(--sec-pad);
}
.band h3 { font-size: 24px; font-weight: 600; letter-spacing: -.022em; line-height: 1.28; }
.band p { font-size: 14px; color: var(--ink-2); margin-top: 8px; max-width: 40em; line-height: 1.6; }
.band-act { margin-left: auto; flex: none; display: flex; gap: 9px; }

/* ============================================================
   页脚
   ============================================================ */
.site-foot { border-top: 1px solid var(--hairline); margin-top: var(--sec-pad); padding: 40px 0 34px; background: transparent; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.foot-brand .brand-mark { width: 22px; height: 22px; }
.foot-brand b { font-size: 14px; font-weight: 600; }
.foot-note { font-size: 12.5px; color: var(--ink-3); line-height: 1.65; max-width: 30em; }
.foot-col h6 { font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.foot-col a { display: block; font-size: 13.5px; color: var(--ink-2); padding: 4px 0; transition: color var(--t-fast) var(--ease); }
.foot-col a:hover { color: var(--ink); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--hairline); font-size: 12.5px; color: var(--ink-3); }

/* ============================================================
   空状态 / 骨架 / Toast / Modal
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, #F1F0EE 25%, #E7E5E1 37%, #F1F0EE 63%);
  background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--r-md);
}
.sk-card { height: 288px; border-radius: var(--r-md); }

.empty { color: var(--ink-3); padding: 64px 20px; }
.empty-icon { display: none; }
.empty-svg { width: 38px; height: 38px; margin: 0 auto 14px; color: var(--ink-3); border-radius: var(--r-sm); background: var(--surface-2); display: grid; place-items: center; }
.empty-svg svg { width: 18px; height: 18px; }

.toast {
  top: 74px; background: var(--ink); color: #fff; padding: 9px 16px; border-radius: var(--r-sm);
  font-size: 13.5px; box-shadow: var(--shadow-pop); border: none;
  transform: translateX(-50%) translateY(-10px); transition: opacity var(--t-fast) var(--ease), transform var(--t-mid) var(--ease);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { background: #C0392B; }

.modal {
  background: var(--surface); border-radius: var(--r-lg); padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .16); border: 1px solid var(--hairline);
  animation: popIn var(--t-mid) var(--ease);
}
.modal h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.modal-mask { background: rgba(22, 23, 26, .38); backdrop-filter: blur(2px); }
@keyframes popIn { from { opacity: 0; transform: scale(.97) translateY(8px); } to { opacity: 1; transform: none; } }

/* 页面切换 */
.page-in { animation: rise var(--t-mid) var(--ease) both; }
.page-in:nth-child(2) { animation-delay: 80ms; }
.page-in:nth-child(3) { animation-delay: 160ms; }
.page-in:nth-child(4) { animation-delay: 240ms; }
.page-in:nth-child(5) { animation-delay: 320ms; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ============================================================
   底部 Tabbar（H5）
   ============================================================ */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .projects, .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero { padding-top: 34px; }
  .hero-facts { margin-top: 20px; }
  .hero-fact { padding-right: 18px; }
  .hero-fact + .hero-fact { padding-left: 18px; }
  .hero-fact b { font-size: 16px; }
  .modes { grid-template-columns: 1fr; gap: 10px; margin-top: 26px; }
  .mode { padding: 14px; }
  .banner { height: 186px; margin-top: 24px; }
  .banner-text { left: 18px; bottom: 20px; max-width: 74%; }
  .banner-text h2 { font-size: 19px; margin-bottom: 3px; }
  .banner-cta { display: none; }
  .notice-bar { height: 42px; margin-top: 20px; }
  .rank-bar { display: none; }
  .rank-delta { display: none; }
  .band { flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 20px; margin-top: 40px; }
  .band-act { margin-left: 0; width: 100%; }
  .band-act .btn { flex: 1; justify-content: center; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .search { display: none; }
  .header-inner { height: 54px; gap: 12px; }

  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px);
    border-top: 1px solid var(--hairline); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 8px; font-size: 10.5px; color: var(--ink-3); }
  .tabbar a.active { color: var(--ink); font-weight: 600; }
  .tabbar-icon { display: grid; place-items: center; }
  .tabbar-icon svg { width: 19px; height: 19px; }
}
@media (min-width: 769px) {
  .tabbar { display: none !important; }
}

/* ============================================================
   旧类重映射：让未改版页面与后台向新设计语言收敛
   ============================================================ */

/* 基础 */
.projects, .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Section */
.section { margin-bottom: 46px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.section-title { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.section-title::before { display: none; }
.section-more { font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; transition: color var(--t-fast) var(--ease); }
.section-more:hover { color: var(--accent); }

/* Tabs */
.tabs {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--hairline);
}
.tab {
  padding: 6px 14px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-1); }

/* Chips / tags */
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.chip {
  padding: 6px 13px; font-size: 13px; color: var(--ink-2); cursor: pointer;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 999px;
  transition: all var(--t-fast) var(--ease);
}
.chip:hover { border-color: var(--hairline-strong); color: var(--ink); background: var(--surface-2); }
.chip.active { background: var(--accent-soft); border-color: rgba(30, 63, 255, .18); color: var(--accent-ink); font-weight: 600; }
.tag {
  font-size: 11.5px; padding: 3px 9px; border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--hairline);
}

/* Buttons */
.btn {
  padding: 7px 14px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  white-space: nowrap; transition: all var(--t-fast) var(--ease);
  border: 1px solid transparent;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); transform: translateY(-1px); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--hairline-strong); }
.btn-outline:hover { background: var(--surface-2); border-color: var(--ink-3); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: #C0392B; color: #fff; border-color: #C0392B; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  overflow: hidden; transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
  cursor: pointer; position: relative; box-shadow: var(--shadow-1);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--hairline-strong); }
.card-cover { position: relative; aspect-ratio: 16 / 10; background: var(--surface-3); overflow: hidden; border-bottom: 1px solid var(--hairline); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 620ms var(--ease); }
.card:hover .card-cover img { transform: scale(1.035); }
.card-cover::after { display: none; }
.card-body { padding: 15px; }
.card-title { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 3px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-tagline { font-size: 13px; color: var(--ink-2); line-height: 1.55; height: 40px; overflow: hidden; margin: 0 0 10px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.card-stats { display: flex; gap: 12px; align-items: center; }
.card-stats svg { width: 13px; height: 13px; }
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 10.5px; font-weight: 600;
  padding: 3px 8px; border-radius: var(--r-sm); letter-spacing: .01em;
}
.badge-paid { background: var(--ink); color: #fff; }
.badge-free { background: var(--accent); color: #fff; }
.badge-group { background: var(--surface); color: var(--ink); border: 1px solid var(--hairline); top: 10px; right: 10px; left: auto; }
.price { color: var(--ink); font-weight: 700; font-family: ui-monospace, monospace; }
.price.free { color: var(--accent); }
.star { color: var(--ink-3); }
.star svg { color: #E1A820; width: 12px; height: 12px; }

/* 榜单 */
.rank-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.rank-item {
  display: flex; align-items: center; gap: 12px; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 11px 14px;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  cursor: pointer;
}
.rank-item:hover { transform: translateX(2px); box-shadow: var(--shadow-1); border-color: var(--hairline-strong); }
.rank-no {
  width: 24px; height: 24px; border-radius: var(--r-xs); display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); flex-shrink: 0; font-family: ui-monospace, monospace;
}
.rank-no.top1 { background: #111; color: #fff; }
.rank-no.top2 { background: var(--ink-2); color: #fff; }
.rank-no.top3 { background: var(--ink-3); color: #fff; }
.rank-thumb { width: 34px; height: 34px; border-radius: var(--r-xs); background: var(--surface-2) url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2032%2032%27%3E%3Cpath%20d%3D%27M12%207a3%203%200%20016%200v2h7a2%202%200%20012%202v7h2a3%203%200%20010%206h-2v7a2%202%200%2001-2%202h-7v-2a3%203%200%2000-6%200v2H9a2%202%200%2001-2-2v-7H5a3%203%200%20010-6h2V9a2%202%200%20012-2h7z%27%20fill%3D%27%239CA3AF%27%2F%3E%3C%2Fsvg%3E") no-repeat center/54%; flex: none; overflow: hidden; border: 1px solid var(--hairline); }
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-info { flex: 1; min-width: 0; }
.rank-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.rank-meta { font-size: 12px; color: var(--ink-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-score { font-size: 12.5px; font-weight: 600; color: var(--accent); flex-shrink: 0; font-family: ui-monospace, monospace; }
.rank-bar { width: 108px; height: 3px; background: var(--surface-3); border-radius: 999px; overflow: hidden; flex: none; }
.rank-fill { height: 100%; background: var(--accent); border-radius: inherit; }

/* 公告 */
.notice-bar {
  display: flex; align-items: center; gap: 12px; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 10px 14px; margin-bottom: 28px;
}
.notice-tag { background: var(--accent-soft); color: var(--accent-ink); font-size: 11.5px; padding: 2px 9px; border-radius: var(--r-sm); font-weight: 600; flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; }
.notice-tag svg { width: 12px; height: 12px; }
.notice-new { background: #C0392B; color: #fff; }

/* 详情页 */
.detail-head { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hairline); margin-bottom: 24px; }
.detail-cover { height: 280px; object-fit: cover; width: 100%; display: block; }
.detail-info { padding: 22px; display: flex; gap: 20px; }
.detail-logo { width: 84px; height: 84px; border-radius: var(--r-md); border: 1px solid var(--hairline); margin-top: -58px; flex-shrink: 0; background: var(--surface); box-shadow: var(--shadow-2); }
.detail-main { flex: 1; min-width: 0; }
.detail-title { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 4px; color: var(--ink); }
.detail-tagline { color: var(--ink-2); margin-bottom: 12px; font-size: 14.5px; }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.detail-stats { display: flex; gap: 18px; font-size: 13px; color: var(--ink-2); }
.detail-stats svg { width: 13px; height: 13px; }
.detail-actions { display: flex; flex-direction: column; gap: 8px; width: 152px; flex-shrink: 0; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.shot { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; cursor: zoom-in; border-radius: var(--r-md); border: 1px solid var(--hairline); transition: transform var(--t-fast) var(--ease); }
.shot:hover { transform: scale(1.015); box-shadow: var(--shadow-1); }

/* 模式/价格 */
.mode-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--hairline); margin-bottom: 16px; }
.mode-tab { padding: 10px 14px; font-size: 14px; color: var(--ink-2); border-bottom: 1.5px solid transparent; margin-bottom: -1px; transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); font-weight: 500; }
.mode-tab.active { color: var(--ink); border-color: var(--accent); font-weight: 600; }
.mode-panel { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 20px; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.price-big { font-size: 28px; font-weight: 700; color: var(--ink); font-family: ui-monospace, monospace; }
.price-big.free { color: var(--accent); }
.price-old { text-decoration: line-through; color: var(--ink-3); font-size: 14px; }

/* Markdown */
.markdown { line-height: 1.75; color: var(--ink-2); }
.markdown h2 { font-size: 17px; margin: 24px 0 10px; padding-left: 10px; border-left: 2px solid var(--accent); color: var(--ink); font-weight: 600; }
.markdown h3 { font-size: 15px; margin: 16px 0 6px; color: var(--ink); font-weight: 600; }
.markdown ul { padding-left: 20px; margin: 10px 0; }
.markdown li { margin: 4px 0; }
.markdown blockquote { border-left: 2px solid var(--hairline-strong); background: var(--surface-2); padding: 10px 14px; margin: 12px 0; border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-2); }
.markdown code { background: var(--surface-2); padding: 2px 6px; border-radius: var(--r-sm); font-size: 12.5px; font-family: ui-monospace, monospace; }

/* 分享 */
.share-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); transition: all var(--t-fast) var(--ease); border: 1px solid var(--hairline); }
.share-btn:hover { background: var(--ink); color: #fff; transform: scale(1.06); }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.share-item { text-align: center; font-size: 12px; color: var(--ink-2); cursor: pointer; transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.share-item:hover { color: var(--ink); transform: translateY(-2px); }
.share-icon { width: 44px; height: 44px; border-radius: var(--r-md); margin: 0 auto 6px; display: grid; place-items: center; font-size: 20px; background: var(--surface-2); border: 1px solid var(--hairline); transition: all var(--t-fast) var(--ease); }
.share-item:hover .share-icon { background: var(--surface); border-color: var(--hairline-strong); }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; padding: 8px 12px; border: 1px solid var(--hairline); border-radius: var(--r-sm); font-size: 13px; color: var(--ink-2); background: var(--surface-2); }

/* 搜索/表单 */
.search-input {
  flex: 1; min-width: 220px; padding: 9px 14px; font-size: 14px;
  border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--surface);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); color: var(--ink);
}
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30, 63, 255, .08); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.form-label .req { color: #C0392B; margin-left: 2px; }
.form-group { margin-bottom: 18px; }
input[type="text"], input[type="search"], input[type="email"], input[type="number"], input[type="url"], input[type="password"], select, textarea {
  width: 100%; padding: 9px 12px; font-size: 14px; color: var(--ink);
  border: 1px solid var(--hairline); border-radius: var(--r-sm); background: var(--surface);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30, 63, 255, .07); }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--ink-3); }
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }

/* 进度条 */
.progress-box { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 14px; margin: 14px 0; }
.progress-title { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.progress-bar { height: 5px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: inherit; transition: width .6s var(--ease); }

/* 个人中心 */
.me-head { display: flex; align-items: center; gap: 16px; padding: 22px 0 28px; border-bottom: 1px solid var(--hairline); margin-bottom: 28px; }
.me-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--surface-2); object-fit: cover; border: 1px solid var(--hairline); }
.me-name { font-size: 18px; font-weight: 600; color: var(--ink); }
.me-role { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.me-tabs { display: flex; gap: 2px; margin-bottom: 22px; }
.me-tab { padding: 7px 14px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: all var(--t-fast) var(--ease); }
.me-tab:hover { color: var(--ink); background: var(--surface-2); }
.me-tab.active { background: var(--accent); color: #fff; }
.me-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.me-quick-item { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 14px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink); transition: all var(--t-fast) var(--ease); }
.me-quick-item:hover { background: var(--surface-2); border-color: var(--hairline-strong); }
.me-quick-item svg { width: 18px; height: 18px; color: var(--ink-3); }
.me-list { display: flex; flex-direction: column; gap: 10px; }
.me-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 12px 14px; transition: all var(--t-fast) var(--ease); }
.me-row:hover { background: var(--surface-2); }
.me-row-logo { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--surface-2); object-fit: cover; flex: none; border: 1px solid var(--hairline); }

/* 社区 / 群组 */
.group-hero { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 28px; margin-bottom: 24px; text-align: center; }
.group-hero h2 { font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.group-hero p { color: var(--ink-2); font-size: 14px; }
.group-boards { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.group-board { padding: 6px 12px; border-radius: var(--r-sm); font-size: 13px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--hairline); cursor: pointer; transition: all var(--t-fast) var(--ease); }
.group-board.active, .group-board:hover { background: var(--accent-soft); color: var(--accent-ink); border-color: rgba(30, 63, 255, .18); font-weight: 500; }
.post-item { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 14px; margin-bottom: 10px; transition: all var(--t-fast) var(--ease); }
.post-item:hover { background: var(--surface-2); }
.post-meta { font-size: 12px; color: var(--ink-3); margin-top: 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.post-meta svg { width: 12px; height: 12px; }

/* 积分 / 配额 / 分账 / 收入 */
.points-cards, .quota-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.points-card, .quota-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 18px; }
.points-card b, .quota-card b { font-size: 22px; font-weight: 600; color: var(--ink); display: block; margin-bottom: 4px; font-family: ui-monospace, monospace; }
.points-card span, .quota-card span { font-size: 12.5px; color: var(--ink-2); }
.points-card svg, .quota-card svg { width: 18px; height: 18px; color: var(--ink-3); margin-bottom: 10px; }
.income-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.income-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 18px; }
.income-card b { font-size: 22px; font-weight: 600; color: var(--ink); display: block; margin-bottom: 4px; font-family: ui-monospace, monospace; }
.income-card span { font-size: 12.5px; color: var(--ink-2); }

/* 公告页 */
.notice-list-page { display: flex; flex-direction: column; gap: 10px; }
.notice-row { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 14px 16px; display: flex; align-items: center; gap: 12px; transition: all var(--t-fast) var(--ease); }
.notice-row:hover { background: var(--surface-2); }
.notice-row .date { font-size: 12px; color: var(--ink-3); width: 72px; flex: none; font-family: ui-monospace, monospace; }
.notice-row .title { font-size: 14.5px; font-weight: 500; color: var(--ink); }

/* 表格 */
.table-wrap { border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--hairline); }
.table th { background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: 12.5px; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--surface-2); }

/* 后台收敛 */
.admin-body { background: var(--ground); color: var(--ink); font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif; }
.admin-gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--ground); }
.admin-gate-card { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--hairline); padding: 36px 32px; width: 420px; max-width: 100%; text-align: center; box-shadow: var(--shadow-2); }
.admin-gate-logo { margin-bottom: 16px; display: grid; place-items: center; }
.admin-gate-logo .brand-mark { width: 48px; height: 48px; color: var(--ink); }
.demo-login { border-top: 1px solid var(--hairline); padding-top: 18px; }
.demo-login-title { font-size: 13px; font-weight: 600; margin-bottom: 12px; color: var(--ink-2); }
.demo-login-row { display: flex; gap: 10px; margin-bottom: 10px; }
.demo-login-row .btn { flex: 1; justify-content: center; }
.demo-login-tip { font-size: 12px; color: var(--ink-3); margin-top: 6px; line-height: 1.6; }
.admin-gate-back { display: inline-block; margin-top: 18px; font-size: 13px; color: var(--ink-2); }
.admin-gate-back:hover { color: var(--accent); }
.admin-layout { display: grid; grid-template-columns: 216px 1fr; min-height: 100vh; background: var(--ground); }
.admin-side { background: var(--surface); border-right: 1px solid var(--hairline); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; font-size: 15px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--hairline); }
.admin-brand .brand-mark { width: 22px; height: 22px; }
.admin-menu { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.admin-menu a { padding: 9px 12px; border-radius: var(--r-sm); font-size: 13.5px; color: var(--ink-2); text-decoration: none; transition: all var(--t-fast) var(--ease); display: flex; align-items: center; gap: 8px; }
.admin-menu a:hover { background: var(--surface-2); color: var(--ink); }
.admin-menu a.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.admin-menu a svg { width: 15px; height: 15px; }
.admin-side-foot { padding: 14px 20px; border-top: 1px solid var(--hairline); font-size: 13px; }
.admin-content { background: var(--ground); }
.admin-topbar { height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--hairline); background: var(--surface); }
.admin-topbar-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.admin-topbar-right { display: flex; align-items: center; gap: 12px; }
.admin-user { font-size: 13.5px; color: var(--ink-2); }
.admin-page { padding: 24px; }
.admin-panel { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 20px; margin-bottom: 20px; }
.admin-empty { padding: 48px 20px; text-align: center; color: var(--ink-3); font-size: 14px; }

/* 状态徽章 */
.status-pill { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: var(--r-sm); font-size: 11.5px; font-weight: 600; }
.status-pill.st-PENDING { background: #FFF8E6; color: #8A6D1A; }
.status-pill.st-APPROVED, .status-pill.st-PAID, .status-pill.st-SUCCESS { background: rgba(30, 63, 255, .08); color: var(--accent-ink); }
.status-pill.st-REJECTED, .status-pill.st-REFUSED, .status-pill.st-FAILED { background: rgba(192, 57, 43, .08); color: #A0261A; }
.status-pill.st-DRAFT { background: var(--surface-2); color: var(--ink-2); }

/* ══════════════════════════════════════════════════════════
   用户下拉菜单（导航右侧）
   ══════════════════════════════════════════════════════════ */
.user-menu { position: relative; }
.user-trigger {
  display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 8px 0 6px;
  background: transparent; border: 1px solid transparent; border-radius: var(--r-sm);
  color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.user-trigger:hover, .user-menu.open .user-trigger { background: var(--surface-2); border-color: var(--hairline); }
.user-avatar {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 600; letter-spacing: 0;
}
.user-name { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-trigger .chev { width: 13px; height: 13px; color: var(--ink-3); transition: transform var(--t-fast) var(--ease); }
.user-menu.open .user-trigger .chev { transform: rotate(180deg); }

.user-drop {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60;
  min-width: 216px; padding: 6px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-md); box-shadow: var(--shadow-pop);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility var(--t-fast);
}
/* hover 与 click 双通道；::before 填补间隙避免鼠标移入时菜单消失 */
.user-drop::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.user-menu:hover .user-drop, .user-menu.open .user-drop { opacity: 1; visibility: visible; transform: none; }
.ud-head { padding: 10px 10px 9px; border-bottom: 1px solid var(--hairline); margin-bottom: 5px; }
.ud-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ud-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ud-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 10px; border: 0; background: transparent; border-radius: var(--r-xs);
  color: var(--ink-2); font: inherit; font-size: 13.5px; text-align: left; text-decoration: none;
  cursor: pointer; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.ud-item svg { width: 15px; height: 15px; flex: none; }
.ud-item:hover { background: var(--surface-2); color: var(--ink); }
.ud-sep { height: 1px; background: var(--hairline); margin: 5px 4px; }
.ud-danger { color: #A0261A; }
.ud-danger:hover { background: rgba(192, 57, 43, .07); color: #A0261A; }

/* 通知铃铛 */
.btn-icon { position: relative; }
.notif-dot {
  position: absolute; top: 4px; right: 4px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #C0392B; box-shadow: 0 0 0 2px var(--surface);
}

/* ══════════════════════════════════════════════════════════
   右侧悬浮工具条
   ══════════════════════════════════════════════════════════ */
.float-bar {
  position: fixed; right: 24px; bottom: 96px; z-index: 70;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.float-btn {
  position: relative; width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--hairline); border-radius: 50%;
  box-shadow: var(--shadow-2); cursor: pointer;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.float-btn svg { width: 19px; height: 19px; }
.float-btn:hover { color: var(--accent); border-color: var(--hairline-strong); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .12); }
.float-btn:active { transform: translateY(0) scale(.96); }
#float-top { opacity: 0; visibility: hidden; transform: translateY(8px); }
#float-top.show { opacity: 1; visibility: visible; transform: none; }
.float-tip {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%) translateX(4px);
  padding: 5px 9px; border-radius: var(--r-xs); white-space: nowrap;
  background: var(--ink); color: #fff; font-size: 12px; line-height: 1;
  opacity: 0; pointer-events: none; transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.float-btn:hover .float-tip { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 768px) {
  .float-bar { right: 14px; bottom: 78px; }
  .float-btn { width: 40px; height: 40px; }
  .float-btn svg { width: 17px; height: 17px; }
}

/* ══════════════════════════════════════════════════════════
   主播推广 /promo
   ══════════════════════════════════════════════════════════ */
#promo-mine { margin-bottom: 34px; }
.promo-mine { padding-top: 8px; }
.hero + .promo-mine { margin-top: -12px; }
#promo-mine + .sec { padding-top: 6px; }
.sec + .sec { margin-top: 42px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .btn { height: 42px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 600; }
.hero-actions .btn svg { width: 18px; height: 18px; }
.hero-actions .btn-outline { border-color: var(--hairline-strong); background: var(--surface); }
.hero-actions .btn-outline:hover { border-color: var(--ink-3); background: var(--surface-2); }
.promo-mine-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 16px;
}
.pmc-head { display: flex; align-items: center; gap: 12px; }
.pmc-avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; background: var(--surface-3); }
.pmc-id { flex: 1; min-width: 0; }
.pmc-left { flex: 1; min-width: 0; }
.pmc-title { font-size: 15.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.pmc-plat {
  font-size: 11.5px; font-weight: 500; color: var(--accent-ink);
  background: var(--accent-soft); border-radius: var(--r-xs); padding: 2px 7px;
}
.pmc-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.pmc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pmc-stat {
  background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r-sm);
  padding: 12px 14px;
}
.pmc-stat b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pmc-stat span { font-size: 12px; color: var(--ink-3); }
.pmc-applies { display: grid; gap: 6px; }
.pmc-codes { gap: 14px; }
.code-list { display: grid; gap: 8px; }
.code-loading, .code-empty { font-size: 13px; color: var(--ink-3); padding: 8px 0; }
.code-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--hairline); border-radius: var(--r-sm);
  background: var(--surface); transition: background var(--t-fast) var(--ease);
}
.code-row:hover { background: var(--surface-2); }
.code-project { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink); }
.code-project img { width: 24px; height: 24px; border-radius: var(--r-xs); object-fit: cover; background: var(--surface-3); border: 1px solid var(--hairline); }
.code-detail { font-size: 12px; color: var(--ink-3); margin-top: 3px; font-family: ui-monospace, monospace; }
.promo-mine-guest { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; }
.promo-mine-guest .pmc-guest-text { flex: 1; min-width: 0; }
.promo-mine-guest .pmc-title { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.promo-mine-guest .pmc-title svg { width: 18px; height: 18px; color: var(--accent); }
.promo-mine-guest .btn { height: 38px; padding: 0 20px; border-radius: 999px; font-weight: 600; }
.promo-mine-guest .btn svg { width: 16px; height: 16px; }
.pmc-apply {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border: 1px solid var(--hairline); border-radius: var(--r-sm); font-size: 13px;
}
.pmc-apply-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.pmc-apply-gmv { font-size: 12px; color: var(--ink-3); white-space: nowrap; }

/* 推广任务卡 */
.promo-tasks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1080px) { .promo-tasks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .promo-tasks { grid-template-columns: 1fr; } }
.promo-task {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 18px; display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow var(--t-mid) var(--ease), transform var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.promo-task:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--hairline-strong); }
.pt-top { display: flex; align-items: flex-start; gap: 11px; }
.pt-logo { width: 36px; height: 36px; border-radius: var(--r-xs); flex: none; object-fit: cover; background: var(--surface-3); border: 1px solid var(--hairline); }
.pt-head { flex: 1; min-width: 0; }
.pt-proj { font-size: 11.5px; color: var(--ink-3); letter-spacing: .01em; }
.pt-title { font-size: 14.5px; font-weight: 600; color: var(--ink); margin-top: 2px; line-height: 1.4; }
.pt-budget { text-align: right; flex: none; }
.pt-budget b { display: block; font-size: 14.5px; font-weight: 600; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.pt-budget span { font-size: 11px; color: var(--ink-3); }
.pt-sum {
  font-size: 13px; color: var(--ink-2); line-height: 1.65; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pt-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-tag {
  font-size: 11.5px; color: var(--ink-2); background: var(--surface-2);
  border: 1px solid var(--hairline); border-radius: var(--r-xs); padding: 2px 8px;
}
.pt-tag.accent { color: var(--accent-ink); background: var(--accent-soft); border-color: transparent; }
.pt-tag.full { color: #A0261A; background: rgba(192, 57, 43, .07); border-color: transparent; }
.pt-actions { display: flex; gap: 8px; margin-top: auto; }

/* 博主榜单 */
.promo-rank { display: grid; gap: 8px; }
.pr-row {
  display: grid; grid-template-columns: 30px 34px minmax(120px, 1.1fr) minmax(80px, 1.4fr) 96px 132px;
  align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-sm);
  padding: 11px 16px; transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.pr-row:hover { border-color: var(--hairline-strong); background: var(--surface-2); }
.pr-no { font-size: 13px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; text-align: center; }
.pr-no.top { color: var(--accent-ink); }
.pr-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.pr-info { min-width: 0; }
.pr-name { font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-meta { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.pr-bar { height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.pr-bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width var(--t-mid) var(--ease); }
.pr-vals { text-align: right; }
.pr-vals b { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.pr-vals span { font-size: 11px; color: var(--ink-3); }
.pr-rate { font-size: 12px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .pr-row { grid-template-columns: 26px 30px 1fr 90px; }
  .pr-bar, .pr-rate { display: none; }
}

/* 热门推广视频 */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.promo-videos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1080px) { .promo-videos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .promo-videos { grid-template-columns: 1fr; } }
.promo-video {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md);
  overflow: hidden; cursor: pointer;
  transition: box-shadow var(--t-mid) var(--ease), transform var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.promo-video:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--hairline-strong); }
.pv-cover { position: relative; aspect-ratio: 16 / 9; background: var(--surface-3); overflow: hidden; }
.pv-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 620ms var(--ease); }
.promo-video:hover .pv-cover img { transform: scale(1.04); }
.pv-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,17,20,0) 42%, rgba(16,17,20,.42) 100%); }
.pv-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  display: grid; place-items: center; transition: transform var(--t-fast) var(--ease);
}
.pv-play svg { width: 20px; height: 20px; }
.promo-video:hover .pv-play { transform: translate(-50%, -50%) scale(1.07); }
.pv-views {
  position: absolute; left: 10px; bottom: 9px; z-index: 2;
  font-size: 11.5px; color: #fff; font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
.pv-body { padding: 12px 14px 14px; }
.pv-title {
  font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px;
}
.pv-meta { display: flex; align-items: center; gap: 6px; margin-top: 9px; }
.pv-logo { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; background: var(--surface-3); flex: none; }
.pv-proj { font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hairline);
  font-size: 11.5px; color: var(--ink-3);
}
.pv-stat { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pv-stat svg { width: 12px; height: 12px; }
.pv-author { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 分段控件 / 表单控件补缺 */
.seg { display: inline-flex; gap: 2px; padding: 2px; background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r-sm); }
.seg-btn {
  border: 0; background: transparent; border-radius: 5px; padding: 5px 12px;
  font: inherit; font-size: 12.5px; color: var(--ink-2); cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.seg-btn:hover { color: var(--ink); }
.seg-btn.active { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-1); }
.input {
  width: 100%; padding: 9px 12px; font: inherit; font-size: 13.5px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: var(--r-xs);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { resize: vertical; line-height: 1.6; }
.form-item { display: flex; flex-direction: column; gap: 6px; }
.form-item.span2 { grid-column: 1 / -1; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hairline); }

/* 联系我们弹窗 */
.contact-list { display: grid; gap: 8px; }
.contact-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; background: var(--surface-2);
  border: 1px solid var(--hairline); border-radius: var(--r-sm);
}
.contact-k { font-size: 12px; color: var(--ink-3); width: 76px; flex: none; }
.contact-v { font-size: 13.5px; font-weight: 500; color: var(--ink); flex: 1; min-width: 0; word-break: break-all; }
.contact-row .btn-sm { height: 28px; padding: 0 9px; }
.contact-row .btn-sm svg { width: 13px; height: 13px; }



