/* ============================================================
   绿茵手记 PitchNote - 足球主题博客 · 前台样式
   设计语言：球场绿主色 + 战术红强调 + 卡片式信息流
   ============================================================ */

/* ---------- 1. 设计令牌 Design Tokens ---------- */
:root {
  --brand: #0e8a5f;
  --brand-2: #14b87c;
  --brand-soft: rgba(14, 138, 95, .10);
  --accent: #e2483d;
  --accent-soft: rgba(226, 72, 61, .10);
  --gold: #e6a33c;
  --blue: #3b7ddd;

  --bg: #f5f8f6;
  --bg-2: #eef3f0;
  --surface: #ffffff;
  --surface-2: #fafcfb;
  --text: #16211c;
  --text-2: #46574f;
  --muted: #7a8b83;
  --border: #e5ebe8;
  --border-2: #d5dedb;

  --shadow-sm: 0 1px 2px rgba(16, 40, 30, .05), 0 1px 3px rgba(16, 40, 30, .04);
  --shadow: 0 2px 6px rgba(16, 40, 30, .05), 0 12px 28px -12px rgba(16, 40, 30, .12);
  --shadow-lg: 0 8px 20px rgba(16, 40, 30, .08), 0 30px 60px -24px rgba(16, 40, 30, .22);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;

  --maxw: 1220px;
  --gap: 26px;
  --header-h: 62px;

  --font: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Hiragino Sans GB",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

html[data-theme="dark"] {
  --brand: #21b581;
  --brand-2: #2ee0a0;
  --brand-soft: rgba(33, 181, 129, .14);
  --accent: #ff6b5e;
  --accent-soft: rgba(255, 107, 94, .14);
  --gold: #f5bc5c;
  --blue: #6aa3f5;

  --bg: #0b1310;
  --bg-2: #0f1a16;
  --surface: #121e19;
  --surface-2: #16241e;
  --text: #e7f0ec;
  --text-2: #b3c4bc;
  --muted: #7d928a;
  --border: #1f2f28;
  --border-2: #2a3d35;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 12px 28px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, .4), 0 30px 60px -24px rgba(0, 0, 0, .75);
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  transition: background .3s var(--ease), color .3s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--brand); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

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

/* ---------- 3. 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  height: var(--header-h);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 20px; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(140deg, var(--brand-2), var(--brand));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 4px 12px -3px color-mix(in srgb, var(--brand) 60%, transparent);
}
.logo-mark svg { width: 19px; height: 19px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b { font-size: 16px; letter-spacing: -.02em; }
.logo-text span { font-size: 10px; color: var(--muted); letter-spacing: .16em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: 6px; }
.nav a {
  padding: 7px 13px; border-radius: 9px; font-size: 14px; font-weight: 500;
  color: var(--text-2); transition: .18s var(--ease);
}
.nav a:hover { background: var(--bg-2); color: var(--text); }
.nav a.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }

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

.search-box { position: relative; }
.search-box input {
  width: 200px; height: 36px; padding: 0 12px 0 34px;
  border: 1px solid var(--border); border-radius: 99px;
  background: var(--bg-2); font-size: 13.5px; outline: none;
  transition: .22s var(--ease);
}
.search-box input:focus {
  width: 250px; background: var(--surface); border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.search-box svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); pointer-events: none; }

.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  color: var(--text-2); border: 1px solid transparent; transition: .18s var(--ease);
}
.icon-btn:hover { background: var(--bg-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }

.btn-admin {
  height: 36px; padding: 0 16px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  background: linear-gradient(140deg, var(--brand-2), var(--brand)); color: #fff;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--brand) 70%, transparent);
  transition: .18s var(--ease);
}
.btn-admin:hover { transform: translateY(-1px); box-shadow: 0 7px 18px -5px color-mix(in srgb, var(--brand) 75%, transparent); }
.btn-admin svg { width: 15px; height: 15px; }

.burger { display: none; }

/* 移动端抽屉 */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(6, 16, 12, .5); z-index: 300;
  opacity: 0; pointer-events: none; transition: .25s var(--ease);
  backdrop-filter: blur(2px);
}
.drawer-mask.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 270px; z-index: 301;
  background: var(--surface); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .3s var(--ease);
  display: flex; flex-direction: column; padding: 18px;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer nav { display: flex; flex-direction: column; gap: 4px; }
.drawer nav a { padding: 11px 14px; border-radius: 10px; font-weight: 500; color: var(--text-2); }
.drawer nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

/* ---------- 4. Hero 区 ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 380px at 12% -10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 62%),
    radial-gradient(760px 340px at 92% 0%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 60%),
    var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--brand) 10%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--brand) 10%, transparent) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(70% 100% at 50% 0%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 100% at 50% 0%, #000, transparent 78%);
}
.hero-inner { position: relative; z-index: 1; padding: 52px 20px 44px; }

.hero h1 {
  margin: 18px 0 12px; font-size: clamp(28px, 4.6vw, 46px); letter-spacing: -.035em; line-height: 1.18;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand-2), var(--brand) 45%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { max-width: 620px; color: var(--text-2); font-size: 15.5px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.nav a.btn-admin { color: #fff; }
.nav a.btn-admin:hover { background: var(--brand); color: #fff; }
.stat-pill {
  display: flex; align-items: center; gap: 11px; padding: 11px 18px 11px 14px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}
.stat-pill .ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.stat-pill .ico svg { width: 16px; height: 16px; }
.stat-pill b { display: block; font-size: 19px; line-height: 1.2; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-pill small { font-size: 11.5px; color: var(--muted); }

/* ---------- 5. 主体布局 ---------- */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 318px; gap: var(--gap);
  padding: 26px 20px 60px; align-items: start;
}

/* ---------- 6. 筛选工具条 ---------- */
.toolbar {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 8px 10px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 8px); z-index: 60;
}
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; scroll-margin-top: calc(var(--header-h) + 12px); }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 7px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 500; white-space: nowrap;
  color: var(--text-2); transition: .18s var(--ease);
}
.tab:hover { background: var(--bg-2); }
.tab.active { background: var(--text); color: var(--bg); font-weight: 600; }
.toolbar-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.sort-select {
  height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-2); font-size: 13px; outline: none; cursor: pointer;
}
.view-switch { display: flex; background: var(--bg-2); border-radius: 9px; padding: 3px; gap: 2px; }
.view-switch button { width: 30px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); }
.view-switch button.active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }
.view-switch svg { width: 15px; height: 15px; }

/* ---------- 7. 文章卡片 ---------- */
.post-list { display: flex; flex-direction: column; gap: 14px; }
.post-list.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  animation: cardIn .45s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-2); }

/* 列表模式 */
.post-list:not(.grid) .card { display: grid; grid-template-columns: 216px minmax(0, 1fr); }
.post-list:not(.grid) .card-cover { height: 100%; min-height: 148px; }
.post-list:not(.grid) .card.no-cover { grid-template-columns: 1fr; }

.card-cover { position: relative; overflow: hidden; background: var(--bg-2); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-cover img { transform: scale(1.055); }
.post-list.grid .card-cover { aspect-ratio: 16 / 9; }
.cover-tag {
  position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 7px;
  font-size: 11.5px; font-weight: 700; color: #fff; backdrop-filter: blur(6px);
  background: rgba(12, 28, 21, .62); letter-spacing: .02em;
}
.cover-tag.hot { background: linear-gradient(135deg, #ff7043, var(--accent)); }

.card-body { padding: 16px 18px; display: flex; flex-direction: column; min-width: 0; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.chip {
  font-size: 11.5px; font-weight: 600; padding: 2.5px 9px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand);
}
.chip.red { background: var(--accent-soft); color: var(--accent); }
.chip.gold { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.chip.blue { background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.chip.gray { background: var(--bg-2); color: var(--muted); }

.card-title {
  font-size: 17.5px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 7px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .18s var(--ease);
}
.card:hover .card-title { color: var(--brand); }
.card-excerpt {
  font-size: 13.5px; color: var(--muted); line-height: 1.68;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 13px;
}
.card-meta {
  margin-top: auto; display: flex; align-items: center; gap: 14px;
  font-size: 12.5px; color: var(--muted); padding-top: 11px; border-top: 1px dashed var(--border);
}
.card-meta .author { display: flex; align-items: center; gap: 7px; color: var(--text-2); font-weight: 500; }
.card-meta .avatar {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(140deg, var(--brand-2), var(--brand)); color: #fff;
  display: grid; place-items: center; font-size: 10px; font-weight: 700;
}
.metric { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.metric svg { width: 14px; height: 14px; opacity: .75; }
.metric.live { color: var(--accent); font-weight: 600; }
.metric .num.bump { animation: bump .5s var(--ease); }
@keyframes bump { 0%{transform:translateY(0)} 35%{transform:translateY(-4px); color:var(--accent)} 100%{transform:translateY(0)} }
.metric .num { display: inline-block; }
.card-meta .spacer { margin-left: auto; }

/* 置顶卡片 */
.card.pinned { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.card.pinned::before {
  content: ""; position: absolute;
}

/* 空状态 */
.empty {
  text-align: center; padding: 70px 20px; color: var(--muted);
  background: var(--surface); border: 1px dashed var(--border-2); border-radius: var(--r-lg);
}
.empty svg { width: 46px; height: 46px; opacity: .35; margin-bottom: 12px; }
.empty b { display: block; color: var(--text-2); font-size: 15px; margin-bottom: 4px; }

/* 骨架屏 */
.skeleton { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; display: grid; grid-template-columns: 216px 1fr; gap: 16px; }
.sk { background: linear-gradient(90deg, var(--bg-2) 25%, var(--border) 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- 8. 分页 ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pager button {
  min-width: 36px; height: 36px; padding: 0 11px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2); transition: .18s var(--ease);
}
.pager button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.pager button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- 9. 侧边栏 ---------- */
.sidebar { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--header-h) + 14px); }
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 17px; box-shadow: var(--shadow-sm); }
.widget-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin-bottom: 13px; }
.widget-title::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: linear-gradient(var(--brand-2), var(--brand)); }
.widget-title .more { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 400; }

.profile { text-align: center; padding-top: 22px; }
.profile .avatar-lg {
  width: 66px; height: 66px; border-radius: 20px; margin: 0 auto 12px;
  background: linear-gradient(140deg, var(--brand-2), var(--brand)); color: #fff;
  display: grid; place-items: center; font-size: 25px; font-weight: 800;
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--brand) 80%, transparent);
}
.profile h3 { font-size: 16.5px; }
.profile .bio { font-size: 12.8px; color: var(--muted); margin: 7px 0 15px; line-height: 1.65; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-top: 14px; border-top: 1px solid var(--border); }
.profile-stats div b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.profile-stats div small { font-size: 11px; color: var(--muted); }

.live-board { display: flex; flex-direction: column; gap: 9px; }
.live-row { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.live-row .k { color: var(--muted); }
.live-row .v { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.live-bar { height: 5px; border-radius: 3px; background: var(--bg-2); overflow: hidden; margin-top: 2px; }
.live-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--brand-2), var(--brand)); transition: width .6s var(--ease); }

.rank-list { display: flex; flex-direction: column; gap: 3px; }
.rank-item { display: flex; gap: 10px; padding: 8px 8px; border-radius: 10px; transition: .18s var(--ease); }
.rank-item:hover { background: var(--bg-2); }
.rank-no {
  width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; background: var(--bg-2); color: var(--muted); margin-top: 2px;
}
.rank-item:nth-child(1) .rank-no { background: linear-gradient(135deg, #ff8a4c, var(--accent)); color: #fff; }
.rank-item:nth-child(2) .rank-no { background: linear-gradient(135deg, #ffb44c, var(--gold)); color: #fff; }
.rank-item:nth-child(3) .rank-no { background: linear-gradient(135deg, #7fd6b0, var(--brand)); color: #fff; }
.rank-item .t { font-size: 13.2px; font-weight: 500; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rank-item .m { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud button {
  font-size: 12.5px; padding: 5px 11px; border-radius: 8px; background: var(--bg-2);
  color: var(--text-2); border: 1px solid transparent; transition: .18s var(--ease);
}
.tag-cloud button:hover, .tag-cloud button.active { background: var(--brand-soft); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.tag-cloud button i { font-style: normal; opacity: .5; font-size: 11px; margin-left: 3px; }

.match-item {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 7px;
}
.match-item:last-child { margin-bottom: 0; }
.match-item .lg { font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 5px; background: var(--brand-soft); color: var(--brand); flex-shrink: 0; }
.match-item .tm { flex: 1; min-width: 0; font-size: 12.8px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-item .tmv { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }

.notice-card {
  background: linear-gradient(140deg, color-mix(in srgb, var(--brand) 92%, #000), var(--brand-2));
  color: #fff; border: none;
}
.notice-card .widget-title { color: #fff; }
.notice-card .widget-title::before { background: rgba(255, 255, 255, .8); }
.notice-card p { font-size: 12.8px; line-height: 1.7; opacity: .93; }

/* ---------- 10. 页脚 ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 34px 0 26px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { font-size: 13px; margin-bottom: 12px; }
.footer-grid a, .footer-grid li { font-size: 13px; color: var(--muted); line-height: 2; }
.footer-grid a:hover { color: var(--brand); }
.footer-brand p { font-size: 13px; color: var(--muted); margin-top: 10px; max-width: 320px; line-height: 1.75; }
.risk-note {
  margin-top: 14px; padding: 10px 13px; border-radius: 10px; font-size: 12.2px; line-height: 1.65;
  background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.footer-beian {
  margin-top: 14px;
  text-align: center;
  font-size: 12.2px; color: var(--muted);
  line-height: 1.7;
}
.footer-beian > span { display: inline-block; margin: 0 8px; white-space: nowrap; }
.footer-beian a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.footer-beian a:hover { color: var(--brand); }
.footer-beian a img { width: 14px; height: 14px; flex: 0 0 14px; }

/* ---------- 11. 文章详情页 ---------- */
.read-progress { position: fixed; left: 0; top: 0; height: 3px; z-index: 500; background: linear-gradient(90deg, var(--brand-2), var(--gold), var(--accent)); width: 0; transition: width .1s linear; }

.article-head { padding: 34px 0 22px; }
.breadcrumb { font-size: 12.8px; color: var(--muted); margin-bottom: 16px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--brand); }
.article-head h1 { font-size: clamp(24px, 3.6vw, 36px); letter-spacing: -.035em; line-height: 1.28; margin-bottom: 16px; }
.article-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.article-meta .avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(140deg, var(--brand-2), var(--brand)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.article-meta .who b { display: block; color: var(--text); font-size: 13.5px; }
.article-meta .views { color: var(--muted); }
.article-meta .views.bump { animation: bump .52s var(--ease); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 262px; gap: 30px; padding-bottom: 60px; align-items: start; }
.article-main { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px 34px; box-shadow: var(--shadow-sm); }

/* 正文排版 */
.prose { font-size: 15.5px; line-height: 1.92; color: var(--text-2); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 {
  font-size: 21px; color: var(--text); margin-top: 1.9em; padding-left: 13px; position: relative; scroll-margin-top: 90px;
}
.prose h2::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 4px; border-radius: 2px; background: linear-gradient(var(--brand-2), var(--brand)); }
.prose h3 { font-size: 17.5px; color: var(--text); margin-top: 1.6em; scroll-margin-top: 90px; }
.prose h4 { font-size: 15.5px; color: var(--text); margin-top: 1.4em; }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--brand); border-bottom: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); }
.prose a:hover { background: var(--brand-soft); }
.prose ul { list-style: disc; padding-left: 1.35em; }
.prose ol { list-style: decimal; padding-left: 1.45em; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--brand); }
.prose blockquote {
  border-left: 3px solid var(--brand); background: var(--brand-soft);
  padding: 12px 16px; border-radius: 0 10px 10px 0; color: var(--text-2); font-size: 14.8px;
}
.prose blockquote p + p { margin-top: .6em; }
.prose img { border-radius: var(--r); margin: 1.4em auto; box-shadow: var(--shadow-sm); }
.prose figure { margin: 1.5em 0; }
.prose figcaption { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.prose hr { border: none; height: 1px; background: var(--border); margin: 2.2em 0; }
.prose code {
  font-family: var(--font-mono); font-size: .87em; padding: 2px 6px; border-radius: 5px;
  background: var(--accent-soft); color: var(--accent);
}
.prose pre {
  background: #0d1b16; color: #dbe9e2; padding: 16px 18px; border-radius: var(--r);
  overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.65;
}
.prose pre code { background: none; color: inherit; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 13.8px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.prose th { background: var(--bg-2); font-weight: 700; color: var(--text); }
.prose tbody tr:nth-child(even) { background: var(--surface-2); }
.prose video, .prose iframe {
  width: 100%; aspect-ratio: 16 / 9; height: auto; border: none; border-radius: var(--r);
  background: #000; display: block; margin: 1.5em 0; box-shadow: var(--shadow-sm);
}

/* 足球赛事推荐卡（编辑器可插入组件） */
.match-card {
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  margin: 1.6em 0; background: var(--surface-2); box-shadow: var(--shadow-sm);
}
.match-card .mc-head {
  display: flex; align-items: center; gap: 9px; padding: 9px 14px;
  background: linear-gradient(100deg, var(--brand), var(--brand-2)); color: #fff; font-size: 12.5px; font-weight: 600;
}
.match-card .mc-head .mc-lg { background: rgba(255,255,255,.22); padding: 2px 8px; border-radius: 6px; font-weight: 700; }
.match-card .mc-head .mc-time { margin-left: auto; opacity: .9; font-variant-numeric: tabular-nums; }
.match-card .mc-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 18px 14px; gap: 10px; }
.match-card .mc-team { text-align: center; font-weight: 700; font-size: 15px; color: var(--text); }
.match-card .mc-vs { font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: .1em; }
.match-card .mc-odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 14px 14px; }
.match-card .mc-odd { text-align: center; padding: 8px 4px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); }
.match-card .mc-odd small { display: block; font-size: 11px; color: var(--muted); }
.match-card .mc-odd b { font-size: 15px; font-variant-numeric: tabular-nums; color: var(--text); }
.match-card .mc-odd.pick { border-color: var(--accent); background: var(--accent-soft); }
.match-card .mc-odd.pick b { color: var(--accent); }
.match-card .mc-tip { padding: 10px 14px; border-top: 1px dashed var(--border); font-size: 13px; color: var(--text-2); }
.match-card .mc-tip b { color: var(--accent); }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }

.article-actions { display: flex; align-items: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.act-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px;
  border-radius: 99px; border: 1px solid var(--border); background: var(--surface);
  font-size: 13.5px; font-weight: 600; color: var(--text-2); transition: .18s var(--ease);
}
.act-btn:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.act-btn svg { width: 16px; height: 16px; }
.act-btn.liked { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.act-btn.primary { background: linear-gradient(140deg, var(--brand-2), var(--brand)); color: #fff; border: none; }

/* 分享面板 */
.share-panel { margin-top: 20px; padding: 16px; border: 1px dashed var(--border-2); border-radius: var(--r-lg); background: var(--surface-2); }
.share-title { font-size: 13.5px; font-weight: 700; margin-bottom: 11px; display: flex; align-items: center; gap: 7px; }
.share-link { display: flex; gap: 8px; }
.share-link input {
  flex: 1; min-width: 0; height: 38px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); font-size: 12.8px; outline: none;
  font-family: var(--font-mono); color: var(--text-2);
}
.share-link button { height: 38px; padding: 0 16px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.share-link button:hover { background: var(--brand-2); }
.share-channels { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.share-ch { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); transition: .18s var(--ease); }
.share-ch:hover { transform: translateY(-2px); color: #fff; }
.share-ch.wechat:hover { background: #07c160; border-color: #07c160; }
.share-ch.weibo:hover { background: #e6162d; border-color: #e6162d; }
.share-ch.qq:hover { background: #12b7f5; border-color: #12b7f5; }
.share-ch.x:hover { background: #111; border-color: #111; }
.share-ch svg { width: 17px; height: 17px; }
.qr-box { margin-top: 12px; display: none; padding: 12px; background: #fff; border-radius: var(--r); width: fit-content; }
.qr-box.show { display: block; }

/* 目录 TOC */
.toc { position: sticky; top: calc(var(--header-h) + 14px); }
.toc-list { display: flex; flex-direction: column; gap: 1px; max-height: 55vh; overflow-y: auto; }
.toc-list a {
  font-size: 13px; color: var(--muted); padding: 6px 10px; border-radius: 8px; line-height: 1.5;
  border-left: 2px solid transparent; transition: .18s var(--ease);
}
.toc-list a.lv3 { padding-left: 22px; font-size: 12.5px; }
.toc-list a:hover { color: var(--text); background: var(--bg-2); }
.toc-list a.active { color: var(--brand); border-left-color: var(--brand); background: var(--brand-soft); font-weight: 600; }

/* 评论 */
.comments { margin-top: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px 26px; box-shadow: var(--shadow-sm); }
.comment-form textarea {
  width: 100%; min-height: 84px; padding: 12px 14px; border-radius: var(--r);
  border: 1px solid var(--border); background: var(--bg-2); resize: vertical; outline: none; font-size: 14px;
}
.comment-form textarea:focus { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 3px var(--brand-soft); }
.comment-form .row { display: flex; gap: 10px; margin-top: 10px; align-items: center; }
.comment-form input {
  height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-2); outline: none; font-size: 13.5px; max-width: 180px;
}
.comment-list { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.comment { display: flex; gap: 12px; }
.comment .avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; }
.comment .cbody { flex: 1; min-width: 0; }
.comment .cname { font-size: 13.5px; font-weight: 700; }
.comment .ctime { font-size: 11.5px; color: var(--muted); margin-left: 8px; font-weight: 400; }
.comment .ctext { font-size: 14px; color: var(--text-2); margin-top: 4px; }

/* 上一篇/下一篇 */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.post-nav a {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 14px 18px; box-shadow: var(--shadow-sm); transition: .2s var(--ease);
}
.post-nav a:hover { border-color: var(--brand); transform: translateY(-2px); }
.post-nav small { font-size: 11.5px; color: var(--muted); }
.post-nav b { display: block; font-size: 14px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.post-nav a.next { text-align: right; }

/* ---------- 12. Toast ---------- */
.toast-wrap { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 900; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  padding: 10px 18px; border-radius: 99px; font-size: 13.5px; font-weight: 500;
  background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg);
  animation: toastIn .3s var(--ease);
  display: flex; align-items: center; gap: 8px;
}
.toast.ok { background: var(--brand); color: #fff; }
.toast.err { background: var(--accent); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.94); } }

/* 回到顶部 */
.to-top {
  position: fixed; right: 22px; bottom: 26px; width: 42px; height: 42px; border-radius: 13px; z-index: 150;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  display: grid; place-items: center; color: var(--text-2);
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: .25s var(--ease);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { color: var(--brand); border-color: var(--brand); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr) 290px; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 230px; }
}

@media (max-width: 940px) {
  :root { --gap: 20px; }
  .layout, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .sidebar .widget.hide-sm { display: none; }
  .article-side { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
}

@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .nav, .search-box, .btn-admin span { display: none; }
  .burger { display: grid; }
  .hero-inner { padding: 34px 20px 30px; }
  .hero-stats { gap: 8px; }
  .stat-pill { padding: 9px 13px 9px 10px; flex: 1 1 calc(50% - 4px); }
  .stat-pill b { font-size: 16px; }
  .post-list:not(.grid) .card { grid-template-columns: 1fr; }
  .post-list:not(.grid) .card-cover { aspect-ratio: 16 / 9; min-height: 0; }
  .post-list.grid { grid-template-columns: 1fr; }
  .card-body { padding: 14px 15px; }
  .card-title { font-size: 16px; }
  .toolbar { padding: 7px 8px; gap: 8px; }
  .sort-select { display: none; }
  .article-main { padding: 20px 17px; border-radius: var(--r); }
  .article-head { padding: 22px 0 16px; }
  .prose { font-size: 15px; }
  .prose h2 { font-size: 19px; }
  .comments { padding: 18px 16px; }
  .post-nav { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .match-card .mc-body { padding: 14px 10px; }
  .to-top { right: 14px; bottom: 16px; }
}

@media (max-width: 400px) {
  .stat-pill { flex: 1 1 100%; }
}

/* 打印 */
@media print {
  .site-header, .sidebar, .site-footer, .article-actions, .share-panel, .comments, .to-top, .read-progress { display: none !important; }
  .article-main { border: none; box-shadow: none; padding: 0; }
}
