/* TechLin · 设计令牌与全局样式（依据 design.md.txt） */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: #e4edf8;
  --card: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --accent: #10b981;
  --accent-hover: #059669;
  --border: #c5d7ef;
  --tag-bg: #dbeafe;
  --tag-text: #1e3a5f;
  --subscribe-bg: #d7e6fa;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius-card: 16px;
  --radius-btn: 8px;
  --radius-pill: 20px;
  --radius-tag: 16px;
  --container: 1200px;
  --pad-x: 20px;
  --pad-x-mobile: 16px;
  --gap: 24px;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --transition: 0.2s ease;
  --header-h: 64px;
}

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070d18;
  --card: #0f1a2d;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --brand: #60a5fa;
  --brand-hover: #3b82f6;
  --accent: #34d399;
  --accent-hover: #10b981;
  --border: #1a2d4a;
  --tag-bg: #152642;
  --tag-text: #cbd5e1;
  --subscribe-bg: #0c1628;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #070d18;
    --card: #0f1a2d;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --brand: #60a5fa;
    --brand-hover: #3b82f6;
    --accent: #34d399;
    --accent-hover: #10b981;
    --border: #1a2d4a;
    --tag-bg: #152642;
    --tag-text: #cbd5e1;
    --subscribe-bg: #0c1628;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.35);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(1100px 560px at 50% -8%, color-mix(in srgb, var(--brand) 24%, transparent), transparent 56%);
  background-repeat: no-repeat;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--brand-hover);
}

.container {
  width: min(var(--container), 100% - var(--pad-x) * 2);
  margin-inline: auto;
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), 100% - var(--pad-x-mobile) * 2);
  }
}

/* —— 顶栏 —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #6366f1);
  flex-shrink: 0;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-desktop a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  position: relative;
}

.nav-desktop a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--brand) 8%, transparent);
}

.nav-desktop a[aria-current="page"] {
  color: var(--brand);
}

@media (min-width: 901px) {
  .nav-desktop a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
  }

  .nav-desktop a:hover::after,
  .nav-desktop a[aria-current="page"]::after {
    transform: scaleX(1);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.icon-btn:hover {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--text);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.menu-toggle {
  display: none;
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }
}

/* 移动抽屉 */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nav-drawer.is-open {
  pointer-events: auto;
  opacity: 1;
}

.nav-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.nav-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: var(--card);
  border-left: 1px solid var(--border);
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.nav-drawer.is-open .nav-drawer-panel {
  transform: translateX(0);
}

.nav-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 32px;
}

.nav-drawer a {
  display: block;
  padding: 14px 12px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 500;
}

.nav-drawer a:hover,
.nav-drawer a[aria-current="page"] {
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
}

/* —— 按钮 —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}

.btn-outline:hover {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}

.btn-affiliate {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.btn-affiliate:hover {
  background: var(--accent-hover);
}

@media (hover: hover) {
  .btn-primary:hover,
  .btn-outline:hover,
  .btn-affiliate:hover {
    transform: translateY(-1px);
  }

  .card-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
  }
}

@media (hover: none) {
  .btn-primary:active,
  .btn-outline:active,
  .btn-affiliate:active {
    transform: scale(0.98);
  }
}

/* —— 标签 —— */
.tag {
  display: inline-block;
  font-size: 12px;
  line-height: 1.5;
  padding: 4px 10px;
  border-radius: var(--radius-tag);
  background: var(--tag-bg);
  color: var(--tag-text);
  font-weight: 400;
}

/* —— 卡片 —— */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.card-body {
  padding: 18px 20px 20px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.card-title a {
  color: inherit;
}

.card-title a:hover {
  color: var(--brand);
}

.card-excerpt {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.cover {
  aspect-ratio: 16 / 9;
  background: color-mix(in srgb, var(--border) 60%, var(--card));
  overflow: hidden;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— Hero —— */
.hero {
  padding: 40px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--gap);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-tagline {
  margin: 0 0 12px;
  font-size: clamp(28px, 4.5vw, 36px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 20px;
  font-size: clamp(15px, 2vw, 16px);
  color: var(--text-muted);
  max-width: 52ch;
}

.author-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}

.author-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid color-mix(in srgb, var(--brand) 35%, transparent);
}

.author-card p {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* —— 区块标题 —— */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.section-title {
  margin: 0;
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 600;
  line-height: 1.3;
}

.section-sub {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

/* —— 文章网格 —— */
.article-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .article-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* —— 工具横向滚动 —— */
.tools-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.tools-strip::-webkit-scrollbar {
  height: 6px;
}

.tools-strip::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.tool-mini {
  flex: 0 0 min(280px, 85vw);
  scroll-snap-align: start;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.tool-mini-icon {
  font-size: 28px;
  line-height: 1;
}

.tool-mini h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 500;
}

.tool-mini p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* —— 订阅条 —— */
.subscribe-bar {
  margin: 48px 0;
  padding: 28px 24px;
  border-radius: var(--radius-card);
  background: var(--subscribe-bg);
  border: 1px solid var(--border);
  text-align: center;
}

.subscribe-bar h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
}

.subscribe-bar p {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--text-muted);
}

.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 520px;
  margin-inline: auto;
}

.subscribe-form input[type="email"] {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-family: inherit;
  background: var(--card);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.subscribe-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}

/* —— 页脚 —— */
.site-footer {
  margin-top: 56px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--brand);
}

/* —— 文章详情布局 —— */
.layout-article {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
  padding: 32px 0 48px;
}

@media (max-width: 1024px) {
  .layout-article {
    grid-template-columns: 1fr;
  }
}

.article-main {
  min-width: 0;
}

.prose {
  max-width: 720px;
  margin-inline: auto;
}

.prose h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.2;
  font-weight: 700;
}

.prose .article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.prose .content {
  font-size: clamp(15px, 1.6vw, 16px);
  line-height: 1.65;
}

.prose .content p {
  margin: 0 0 1em;
}

.prose .content h2 {
  margin: 1.6em 0 0.6em;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
}

.prose .content h3 {
  margin: 1.4em 0 0.5em;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
}

.prose .content blockquote {
  margin: 1.25em 0;
  padding: 12px 16px 12px 18px;
  border-left: 4px solid var(--border);
  background: color-mix(in srgb, var(--tag-bg) 50%, transparent);
  color: var(--text-muted);
  border-radius: 0 8px 8px 0;
}

.prose .content pre {
  padding: 16px;
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.5;
}

.prose .content img {
  border-radius: 12px;
  margin: 1.25em 0;
}

.affiliate-note {
  margin-top: 28px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.affiliate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 1024px) {
  .sidebar {
    position: static;
  }
}

.widget {
  padding: 18px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}

.widget h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}

.toc {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.toc li {
  margin-bottom: 8px;
}

.toc a {
  color: var(--text-muted);
}

.toc a:hover {
  color: var(--brand);
}

.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-list li {
  margin-bottom: 12px;
  font-size: 14px;
}

.related-list a {
  color: var(--text);
  font-weight: 500;
}

/* —— 列表页 / 分页 —— */
.list-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.list-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 720px) {
  .list-row {
    grid-template-columns: 1fr;
  }

  .list-row .cover {
    max-height: 200px;
  }
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}

.pagination a,
.pagination span {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
}

.pagination a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.pagination span[aria-current="page"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* —— 工具库 —— */
.filter-tabs,
.review-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .filter-tabs,
  .review-filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
}

.filter-tab,
.review-filter-tab {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.filter-tab:hover,
.review-filter-tab:hover {
  color: var(--text);
  border-color: var(--brand);
}

.filter-tab.is-active,
.review-filter-tab.is-active {
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand);
  border-color: var(--brand);
}

.tool-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
}

@media (max-width: 720px) {
  .tool-row {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .tool-row .btn-affiliate {
    justify-self: start;
  }
}

.tool-row-icon {
  font-size: 32px;
}

.tool-row h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 500;
}

.tool-row p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

/* —— 快评卡片 —— */
.quick-card {
  padding: 20px 22px;
}

.quick-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.quick-card p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}

.quick-date {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* —— 关于页 —— */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding: 32px 0 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  padding: 22px;
}

.contact-card dl {
  margin: 0;
  font-size: 15px;
}

.contact-card dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-top: 14px;
}

.contact-card dt:first-child {
  margin-top: 0;
}

.contact-card dd {
  margin: 4px 0 0;
}

/* —— 搜索 —— */
.search-hero {
  padding: 36px 0 24px;
  text-align: center;
}

.search-box {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 560px;
  margin: 20px auto 0;
}

.search-box input {
  flex: 1 1 240px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-family: inherit;
  background: var(--card);
  color: var(--text);
}

.search-box input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}

.search-results {
  max-width: 720px;
  margin: 0 auto 48px;
}

.search-hit {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.search-hit h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.search-hit p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* —— 弹窗订阅 —— */
.modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: min(440px, 100%);
  padding: 28px 24px;
  border-radius: var(--radius-card);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-hover);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.modal-card h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.modal-card p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.page-intro {
  padding: 24px 0 8px;
}

.page-intro h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 700;
}

.page-intro p {
  margin: 0;
  color: var(--text-muted);
  max-width: 60ch;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— 首页：数据带 + 无图文章列表 —— */
.home-data-band {
  padding: 8px 0 32px;
}

.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: stretch;
}

@media (max-width: 900px) {
  .data-grid {
    grid-template-columns: 1fr;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-tile {
  padding: 16px 14px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}

.stat-value {
  margin: 0;
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

.stat-label {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.stat-delta {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.stat-delta.is-soft {
  color: var(--text-muted);
  font-weight: 500;
}

.goals-panel {
  padding: 20px 22px;
}

.goals-panel h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.goals-note {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.goal-meter + .goal-meter {
  margin-top: 14px;
}

.goal-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 6px;
}

.goal-head span:first-child {
  color: var(--text);
  font-weight: 500;
}

.goal-head span:last-child {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  font-size: 12px;
}

.goal-track {
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border) 85%, transparent);
  overflow: hidden;
}

.goal-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 0.35s ease;
}

.mini-table-wrap {
  margin-top: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.mini-table th,
.mini-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.mini-table th {
  background: color-mix(in srgb, var(--tag-bg) 65%, var(--card));
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}

.mini-table tr:last-child td {
  border-bottom: none;
}

.mini-table td.num {
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--text);
  font-weight: 600;
}

.avatar-initial {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  background: linear-gradient(145deg, var(--brand), #6366f1);
  border: 3px solid color-mix(in srgb, var(--brand) 35%, transparent);
  flex-shrink: 0;
}

.article-compact {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px 18px;
  align-items: start;
  padding: 18px 20px;
}

@media (max-width: 520px) {
  .article-compact {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.article-compact-date {
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.article-compact-date time {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.article-compact-date .ac-year {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.article-compact .card-title {
  font-size: 17px;
  margin-bottom: 6px;
}

.article-compact-excerpt {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.article-compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.article-compact-meta .tag {
  font-size: 11px;
}

/* —— 评测列表页（丰富布局） —— */
.reviews-page {
  padding-bottom: 48px;
}

.reviews-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
  margin: 20px 0 28px;
  padding: 26px 26px 24px;
  border-radius: calc(var(--radius-card) + 4px);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--border));
  background: linear-gradient(135deg, color-mix(in srgb, var(--card) 88%, var(--brand)), var(--card));
  box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--brand) 12%, transparent);
}

@media (max-width: 900px) {
  .reviews-hero {
    grid-template-columns: 1fr;
  }
}

.reviews-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.reviews-hero-lead {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.55;
}

.reviews-hero-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reviews-hero-stats li {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--card) 75%, transparent);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.reviews-hero-stats strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.reviews-hero-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reviews-hero-card {
  flex: 1;
  padding: 16px 18px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 92%, var(--brand));
}

.reviews-hero-card h2 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.reviews-hero-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
}

.reviews-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 1024px) {
  .reviews-layout {
    grid-template-columns: 1fr;
  }
}

.review-feature {
  display: grid;
  grid-template-columns: minmax(0, 200px) 1fr;
  gap: 0;
  overflow: hidden;
  margin-bottom: 22px;
}

@media (max-width: 720px) {
  .review-feature {
    grid-template-columns: 1fr;
  }
}

.review-feature-art {
  min-height: 180px;
  background: linear-gradient(160deg, #1d4ed8, #6366f1 45%, #0ea5e9);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: #fff;
}

.review-feature-art .rf-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}

.review-feature-art .rf-score {
  margin-top: 8px;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.review-feature-art .rf-score small {
  font-size: 16px;
  font-weight: 600;
  opacity: 0.85;
}

.review-feature-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.review-feature-body h2 {
  margin: 0;
  font-size: clamp(20px, 2.6vw, 24px);
  line-height: 1.25;
  font-weight: 700;
}

.review-feature-body h2 a {
  color: inherit;
}

.review-feature-body h2 a:hover {
  color: var(--brand);
}

.review-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.review-rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.review-rating-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.review-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-hover);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.review-pill.is-warn {
  background: color-mix(in srgb, #f59e0b 14%, transparent);
  color: #b45309;
  border-color: color-mix(in srgb, #f59e0b 35%, transparent);
}

.review-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .review-matrix {
    grid-template-columns: 1fr;
  }
}

.review-matrix-cell {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--tag-bg) 35%, var(--card));
}

.review-matrix-cell .rm-k {
  display: block;
  margin: 0 0 4px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.review-matrix-cell .rm-v {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.review-row {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 18px;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

@media (max-width: 720px) {
  .review-row {
    grid-template-columns: 1fr;
  }
}

.review-art {
  min-height: 120px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.review-art.ai {
  background: linear-gradient(145deg, #2563eb, #7c3aed);
}

.review-art.gear {
  background: linear-gradient(145deg, #0f766e, #0891b2);
}

.review-art.desk {
  background: linear-gradient(145deg, #c2410c, #ea580c);
}

.review-art.keys {
  background: linear-gradient(145deg, #4338ca, #6366f1);
}

.review-art.web {
  background: linear-gradient(145deg, #0369a1, #0284c7);
}

.review-art.llm {
  background: linear-gradient(145deg, #4c1d95, #7e22ce);
}

.review-row .card-body {
  padding: 18px 20px 18px 0;
}

@media (max-width: 720px) {
  .review-row .card-body {
    padding: 0 18px 18px;
  }
}

.review-row-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.review-row-title a {
  color: inherit;
}

.review-row-title a:hover {
  color: var(--brand);
}

.review-row-excerpt {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.review-row-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.reviews-aside {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 1024px) {
  .reviews-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 8px;
  }
}

.reviews-aside .widget p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.reviews-aside .widget ul {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.reviews-aside time {
  font-variant-numeric: tabular-nums;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 8px;
}

.compare-table th,
.compare-table td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  color: var(--text-muted);
  font-weight: 600;
}

.compare-table td.num {
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-weight: 600;
}
