/* 一榫云雷达 · radar.yisuncloud.com */

:root {
  --bg: #ffffff;
  --bg-elevated: #f8fafc;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-soft: #64748b;
  --muted: #64748b;
  /* 与 Harness 情报库「公开站」徽章一致的绿色强调 */
  --accent: #16a34a;
  --accent-hover: #15803d;
  --accent-strong: #166534;
  --accent-soft: #dcfce7;
  --accent-soft-bg: #f0fdf4;
  --accent-border: #bbf7d0;
  --ok: #16a34a;
  --warn: #ca8a04;
  --bad: #dc2626;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  /* 与 Harness 一致；Windows 优先微软雅黑，避免中文落到 Segoe UI 显得粗硬 */
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif;
  --wrap: min(960px, 100% - 2rem);
  --intel-block-gap: 0.875rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
  padding: 0 1rem;
}

/* Header */
.radar-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-product {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.brand-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.brand-tagline {
  flex: 1;
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  min-width: 200px;
}

.nav-main {
  display: flex;
  gap: 1rem;
  font-size: 0.9375rem;
}

.nav-main a {
  color: var(--muted);
}

.nav-main a:hover {
  color: var(--accent);
}

/* Hero / 页头 — 对齐 Harness dash-header 字号 */
.hero {
  padding: 1rem 0 2rem;
}

.hero-compact {
  padding: 1rem 0 1.25rem;
}

.hero-subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

.hero-desc {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 42rem;
  letter-spacing: normal;
}

.hero-stats {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  letter-spacing: normal;
}

.hero-archive {
  margin-left: 0.75rem;
  font-size: 0.875rem;
}

/* Feed view tabs — 全部 / 今日上新 / 今日好价 */
.feed-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.feed-view-tab {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  transition: all 0.15s ease;
}

.feed-view-tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.feed-view-tab.active {
  color: var(--text);
  background: var(--accent-soft, rgba(59, 130, 246, 0.12));
  border-color: var(--accent, #3b82f6);
}

.badge-new {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-deal {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.intel-pro-cta {
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
}

.intel-pro-link {
  color: var(--accent, #2563eb);
  font-weight: 500;
  text-decoration: none;
}

.intel-pro-link::before {
  content: "🔒 ";
}

.intel-pro-link:hover {
  text-decoration: underline;
}

/* Filter tabs — 与 Harness .filter-tabs 一致 */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-tab {
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  transition: all 0.15s ease;
}

.filter-tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-subtle);
}

.filter-tab.active {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.badge-cat {
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.list-meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.sort-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: -0.25rem 0 0.85rem;
}

.sort-tabs-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-right: 0.15rem;
}

.sort-tab {
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  border: 1px solid transparent;
}

.sort-tab:hover {
  color: var(--text);
  border-color: var(--border);
}

.sort-tab.active {
  color: var(--accent-strong);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-weight: 600;
}

.filter-chip {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  color: var(--text);
}

.list-meta strong {
  color: var(--text);
  font-weight: 700;
}

/* Intel list — 对齐 Harness .card + .rss-item */
.intel-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.intel-panel .filter-tabs {
  margin-bottom: 1rem;
}

.intel-search {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}

.intel-search-field {
  flex: 1 1 200px;
  min-width: 0;
  display: block;
}

.intel-search-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.intel-search input[type="search"] {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.intel-search input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-search {
  flex-shrink: 0;
}

.badge-tag {
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.badge-tag:hover {
  border: 1px solid var(--accent-border);
  background: var(--accent-soft-bg);
  color: var(--accent-strong);
}

.intel-item-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.intel-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--intel-block-gap);
}

.intel-item > * {
  margin: 0;
}

.intel-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.intel-item:first-child {
  padding-top: 0;
}

.intel-item-head {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.hint {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
}

.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.badge-muted {
  background: #f1f5f9;
  color: #475569;
}

.badge-ok {
  background: #dcfce7;
  color: #166534;
}

.badge-ad,
.ad-mark {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.ad-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5em;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}

.ad-mark--inline {
  vertical-align: middle;
}

.intel-title-zh {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: normal;
}

.intel-title-zh a {
  color: inherit;
  text-decoration: none;
}

.intel-title-zh a:hover {
  color: var(--accent);
}

.intel-title-en {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  font-style: italic;
  line-height: 1.65;
}

.article-summary {
  color: var(--muted);
  font-size: inherit;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: normal;
}

.intel-summary-en {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
  font-style: italic;
  line-height: 1.65;
  letter-spacing: normal;
  border-left: 3px solid var(--border);
  padding-left: 0.65rem;
}

.intel-why {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.65;
  letter-spacing: normal;
}

.intel-why strong {
  color: var(--text);
  font-weight: 600;
}

.intel-tags {
  line-height: 1.9;
}

.intel-source-link {
  font-size: 0.875rem;
}

.intel-buy-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.25rem 0 0;
}

.intel-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #ffffff;
}

.btn-secondary {
  color: var(--text);
}

.item-detail .intel-item {
  border-bottom: none;
  padding: 0;
}

.btn-link {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-link:hover {
  color: var(--accent);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover {
  color: #ffffff;
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  padding-top: 1rem;
}

.page-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.page-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-elevated);
}

.page-info {
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* Empty & alerts */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.empty-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.empty-desc {
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.alert-warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.back-link {
  margin: 0 0 1rem;
  font-size: 0.875rem;
}

.back-link a {
  color: var(--muted);
  text-decoration: none;
}

.back-link a:hover {
  color: var(--accent);
}

.item-page {
  padding-top: 1.5rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 0.5rem;
}

.item-source-name {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* About */
.about-page {
  padding: 2rem 0 3rem;
  max-width: 640px;
}

.about-hero h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.about-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.about-block {
  margin-bottom: 2rem;
}

.about-block h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.about-block p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
  letter-spacing: normal;
}

.about-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  line-height: 1.8;
  letter-spacing: normal;
}

/* Footer */
.radar-footer {
  margin-top: 0;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.footer-company {
  text-align: center;
}

.footer-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem 1.25rem;
  margin-bottom: 2rem;
  text-align: left;
}

.footer-product {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.footer-product:hover {
  border-color: var(--border);
  background: var(--bg-elevated);
}

.footer-product-current {
  border-color: var(--accent-border);
  background: var(--accent-soft-bg);
}

.footer-product-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 0.2rem;
}

.footer-product-name:hover {
  color: var(--accent);
}

.footer-product-current .footer-product-name {
  color: var(--accent);
}

.footer-product-host {
  display: block;
  font-size: 0.75rem;
  color: var(--text-soft);
  text-decoration: none;
}

.footer-product-host:hover {
  color: var(--text-muted);
}

.footer-note,
.footer-operator,
.footer-icp-line,
.footer-contact,
.footer-ad-disclosure {
  margin: 0.35rem 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.footer-icp,
.footer-contact a {
  color: var(--text-muted);
}

.footer-icp:hover,
.footer-contact a:hover {
  color: var(--accent);
}

.footer-brand {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-brand a {
  color: inherit;
  text-decoration: none;
}

.footer-brand a:hover {
  color: var(--accent);
}

.footer-links {
  margin: 0.25rem 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.site-main {
  padding: 1.5rem 0 3rem;
  min-height: 60vh;
}

/* Admin · stats */
.page-admin-stats .admin-page {
  padding-top: 1.5rem;
  max-width: 960px;
}

.admin-head h1 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--text);
}

.subsection-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 1.25rem 0 0.75rem;
  color: var(--text-muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.stats-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}

.stat-card {
  background: var(--accent-soft-bg);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.stat-card-sm {
  padding: 0.65rem 0.75rem;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-soft);
  margin: 0 0 0.35rem;
  letter-spacing: 0.04em;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--accent);
}

.table-simple {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.table-simple th,
.table-simple td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.table-simple th {
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-weight: 600;
}

.table-compact td,
.table-compact th {
  padding: 0.4rem 0.55rem;
}

.table-simple a {
  color: var(--text);
}

.table-simple a:hover {
  color: var(--accent);
}

.hint {
  color: var(--text-soft);
  font-size: 0.875rem;
  margin: 0;
}

.hint a {
  color: var(--accent);
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.alert-warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.alert-ok {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.admin-ops-section {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-ops-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.steps-guide {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.admin-links {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-admin {
  color: var(--accent) !important;
}

.nav-login {
  color: var(--text-muted) !important;
  font-weight: 500;
}

.nav-login:hover {
  color: var(--accent) !important;
}

.footer-admin-link {
  color: var(--text-muted);
}

.footer-admin-link:hover {
  color: var(--accent);
}

/* Admin subnav */
.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.admin-subnav-link {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.15s ease;
}

.admin-subnav-link:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

.admin-subnav-link.active {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

/* Design doc */
.page-admin-design .design-doc {
  max-width: 880px;
}

.design-section {
  margin-bottom: 2rem;
}

.design-section h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.design-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.design-card p {
  margin: 0 0 0.5rem;
}

.design-card p:last-child {
  margin-bottom: 0;
}

.design-card-mock .mock-layer {
  margin: 0.5rem 0;
  padding: 0.5rem 0.75rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.mock-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-right: 0.5rem;
}

.design-flow {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
  overflow-x: auto;
  white-space: pre-wrap;
}

.design-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Login */
.page-login .site-main {
  min-height: 50vh;
}

.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 2rem 0 3rem;
}

.auth-card {
  width: min(400px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.auth-hint {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-form .field {
  display: block;
  margin-bottom: 1rem;
}

.auth-form .field span {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.auth-form input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.auth-footer {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

code {
  font-size: 0.85em;
  background: #f1f5f9;
  color: #475569;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* 全球电商每日爆款 · 商品卡片 */
.intel-item-list--hot .intel-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.intel-item-list--hot .intel-item--has-image {
  flex-wrap: nowrap;
}

.intel-product-thumb-wrap {
  position: relative;
  flex: 0 0 220px;
  width: 220px;
}

.ad-label {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  border-radius: 4px;
  pointer-events: none;
}

.intel-product-thumb {
  flex: 0 0 220px;
  width: 220px;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
}

.intel-product-thumb-wrap .intel-product-thumb {
  width: 100%;
  flex: none;
}

.intel-product-thumb img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #fff;
}

.intel-item-body {
  flex: 1;
  min-width: 0;
}

.intel-price {
  font-weight: 600;
  color: #059669;
}

/* 商品图点击放大 */
.product-lightbox[hidden] {
  display: none !important;
}

.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.product-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
}

.product-lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(960px, 100%);
  max-height: 90vh;
  margin: 0;
}

.product-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-sm, 8px);
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.product-lightbox-caption {
  margin: 0.75rem 0 0;
  text-align: center;
  color: #f8fafc;
  font-size: 0.95rem;
  line-height: 1.4;
}

.product-lightbox-close {
  position: absolute;
  top: -0.25rem;
  right: 0;
  border: 0;
  background: transparent;
  color: #f8fafc;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

body.product-lightbox-open {
  overflow: hidden;
}

.intel-product-thumb {
  cursor: zoom-in;
}

@media (max-width: 720px) {
  .intel-item-list--hot .intel-item {
    flex-direction: column;
  }

  .intel-product-thumb-wrap,
  .intel-product-thumb {
    width: 100%;
    flex: 0 0 auto;
    max-width: none;
  }

  .intel-product-thumb img {
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 72vw;
    min-height: 260px;
    object-fit: contain;
  }

  body {
    padding-top: var(--radar-header-offset, 0);
    transition: padding-top 0.22s ease;
  }

  .radar-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    transition: transform 0.22s ease;
    will-change: transform;
  }

  .radar-header.radar-header--hidden {
    transform: translateY(-100%);
    pointer-events: none;
  }

  .intel-search {
    flex-direction: column;
    align-items: stretch;
  }

  .intel-search .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-tagline {
    order: 3;
  }

  .nav-main {
    gap: 0.625rem;
    font-size: 0.8125rem;
  }

  .intel-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .intel-actions .btn {
    justify-content: center;
  }

  .btn-primary {
    justify-content: center;
  }

  .footer-products {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
}

/* 每日样本观察 · 归档页情报卡 */
.daily-brief-card {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--accent-border, #bfdbfe);
  border-radius: var(--radius, 12px);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.daily-brief-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent, #2563eb);
}

.daily-brief-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.35;
}

.daily-brief-lead {
  margin: 0 0 0.5rem;
  color: var(--text-muted, #475569);
  line-height: 1.6;
}

.daily-brief-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted, #64748b);
}

.daily-brief-body {
  margin-top: 1rem;
  color: var(--text, #0f172a);
  line-height: 1.75;
  font-size: 0.95rem;
}

.daily-brief-section + .daily-brief-section {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border, #e2e8f0);
}

.daily-brief-heading {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-strong, #1d4ed8);
}

.daily-brief-body p {
  margin: 0 0 0.75rem;
}

.daily-brief-kicker time {
  font-weight: 700;
  color: inherit;
}

.daily-brief-date-line {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted, #475569);
}

.daily-brief-date-line strong {
  color: var(--accent-strong, #1d4ed8);
}

.daily-brief-note {
  font-size: 0.82rem;
  color: var(--muted, #64748b);
}

.daily-brief-pick-title {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.45;
  color: var(--text, #0f172a);
}

.daily-brief-pick {
  margin: 0 0 1.35rem;
  padding: 0 0 1.2rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.daily-brief-pick:last-of-type {
  margin-bottom: 0.65rem;
  padding-bottom: 0;
  border-bottom: 0;
}

.daily-brief-section .daily-brief-pick:first-child .daily-brief-pick-title {
  margin-top: 0.1rem;
}

.daily-brief-pick-line {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted, #334155);
}

.daily-brief-pick-line strong {
  color: var(--text, #0f172a);
}

.intel-item-guide {
  margin: 0.85rem 0 0.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  background: var(--surface-muted, #f8fafc);
}

.intel-guide-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--muted, #64748b);
}

.intel-guide-line {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted, #334155);
}

.intel-guide-line strong {
  color: var(--text, #0f172a);
}

.intel-guide-teaser {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted, #475569);
}

.intel-guide-teaser strong {
  color: var(--text, #0f172a);
}

.brief-date-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.brief-date-link {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-muted, #475569);
  text-decoration: none;
}

.brief-date-link.active,
.brief-date-link:hover {
  border-color: var(--accent-border, #bfdbfe);
  color: var(--accent-strong, #1d4ed8);
  background: #f8fbff;
}

.badge-innov {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #6ee7b7;
}

.innovation-strip {
  margin: 0 auto 1.5rem;
  padding: 1rem 0 0;
}

.innovation-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.innovation-strip-title {
  margin: 0;
  font-size: 1.05rem;
}

.innovation-strip-more {
  font-size: 0.85rem;
  color: var(--accent, #2563eb);
  text-decoration: none;
}

.innovation-strip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.innovation-strip-item {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 0.75rem;
  background: #fff;
}

.innovation-strip-thumb img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
  margin-bottom: 0.5rem;
}

.innovation-strip-name {
  margin: 0.35rem 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

.innovation-strip-name a {
  color: inherit;
  text-decoration: none;
}

.innovation-strip-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted, #475569);
  line-height: 1.45;
}

.innovation-page-kicker {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted, #64748b);
}

.innovation-page-block + .innovation-page-block {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border, #e2e8f0);
}

.innovation-page-note {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  background: #ecfdf5;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Subscribe / pricing */
.subscribe-form label { display: block; margin: 0.75rem 0; }
.subscribe-form input[type="email"] {
  display: block;
  width: 100%;
  max-width: 28rem;
  margin-top: 0.35rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  font: inherit;
}
.check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.5rem 0 1rem;
}
.check-grid .check { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.9rem; }
.digest-preview {
  white-space: pre-wrap;
  font-size: 0.82rem;
  line-height: 1.5;
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
}
.flash-ok { color: #047857; }
.flash-err { color: #b91c1c; }
.pricing-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.pricing-table th, .pricing-table td { border: 1px solid var(--border, #e2e8f0); padding: 0.5rem 0.65rem; text-align: left; vertical-align: top; }
.footer-discovery { margin: 0.5rem 0; font-size: 0.85rem; }
.btn {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--accent, #0f766e); color: #fff; border-color: var(--accent, #0f766e); }
.muted { color: var(--text-muted, #64748b); font-size: 0.9rem; }

/* Subscribe promo (nav / strip / hero) */
.nav-cta {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--accent, #0f766e);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.85rem;
}
.nav-cta:hover { filter: brightness(1.05); color: #fff !important; }
.sub-promo {
  border-bottom: 1px solid #fed7aa;
  background: linear-gradient(90deg, #fff7ed 0%, #fffbeb 55%, #ecfdf5 100%);
}
.sub-promo-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}
.sub-promo-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: min(100%, 18rem);
  flex: 1;
}
.sub-promo-copy strong { font-size: 0.95rem; color: #9a3412; }
.sub-promo-copy span { font-size: 0.85rem; color: var(--text-muted, #64748b); line-height: 1.45; }
.sub-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.sub-promo-api { font-size: 0.85rem; color: var(--accent, #0f766e); white-space: nowrap; }
.hero-cta { margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.hero-cta-link { font-size: 0.9rem; color: var(--accent, #0f766e); }
.sub-inline {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px dashed #fdba74;
  border-radius: 10px;
  background: #fffbeb;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  justify-content: space-between;
}
.sub-inline p { margin: 0; font-size: 0.9rem; color: #7c2d12; flex: 1; min-width: 12rem; }
.btn-secondary {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border, #e2e8f0);
  background: #fff;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

/* WeChat affiliate go guide */
.wx-go-page { padding: 1.5rem 0 3rem; max-width: 36rem; }
.wx-go-card {
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 1.25rem 1.35rem 1.5rem;
}
.wx-go-kicker { margin: 0 0 0.35rem; font-size: 0.75rem; font-weight: 700; color: #b45309; letter-spacing: 0.04em; }
.wx-go-card h1 { margin: 0 0 0.75rem; font-size: 1.35rem; }
.wx-go-lead { margin: 0 0 0.65rem; font-size: 0.92rem; line-height: 1.55; color: var(--text-muted, #64748b); }
.wx-go-title { margin: 0.75rem 0; font-weight: 700; font-size: 1rem; }
.wx-go-urlbox { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0; }
.wx-go-urlbox input {
  flex: 1;
  min-width: 12rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  font-size: 0.85rem;
}
.wx-go-hint { margin: 0.35rem 0 0; color: #047857; font-size: 0.88rem; }
.wx-go-steps { margin: 1rem 0; padding-left: 1.2rem; line-height: 1.65; font-size: 0.92rem; }
.wx-go-alt { margin: 0.75rem 0; font-size: 0.88rem; color: var(--text-muted, #64748b); line-height: 1.5; }
.wx-go-back { margin: 1.25rem 0 0; font-size: 0.9rem; }
.buy-wx-hint { font-size: 0.8rem; color: #b45309; }

.wx-go-actions { margin: 1rem 0; }
.wx-go-actions .btn { font-size: 1.05rem; padding: 0.7rem 1.2rem; }

.wx-go-lead { margin: 0.75rem 0; font-size: 0.95rem; line-height: 1.55; color: #9a3412; font-weight: 600; }
.wx-go-card .muted { font-weight: 400; color: var(--text-muted, #64748b); }

.badge-coupon { background: #fef3c7; color: #b45309; font-weight: 600; }
.intel-price-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 8px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 700;
  font-size: 0.95rem;
}
.intel-price-was { text-decoration: line-through; font-size: 0.85rem; }
.buy-price-hint { margin-left: 0.25rem; }
.seller-pro-panel {
  margin: 1.25rem 0 2rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.seller-pro-title { margin: 0 0 0.35rem; font-size: 1.15rem; }
.seller-pro-lead { margin: 0 0 0.85rem; color: var(--text-muted, #64748b); font-size: 0.9rem; }
.seller-pro-free {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.65rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}
.seller-pro-free dt { margin: 0; font-size: 0.75rem; color: var(--text-muted, #64748b); }
.seller-pro-free dd { margin: 0.15rem 0 0; font-weight: 600; }
.seller-pro-kw { padding: 0.15rem 0.45rem; background: #f1f5f9; border-radius: 6px; }
.seller-pro-snaps { margin: 0.35rem 0 0; padding-left: 1.1rem; font-size: 0.88rem; color: var(--text-muted, #64748b); }
.seller-pro-locked { padding: 0.85rem 1rem; border-radius: 10px; background: #fff7ed; border: 1px dashed #fdba74; }
.seller-pro-actions { margin: 0.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
