/* ========== 基础变量 ========== */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: #1a1f35;
  --bg-card-hover: #1f2542;
  --bg-input: #0d1220;
  --border: #1e2a4a;
  --border-focus: #3b82f6;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.3);
  --green: #10b981;
  --green-bg: rgba(16, 185, 129, 0.1);
  --green-border: rgba(16, 185, 129, 0.3);
  --yellow: #f59e0b;
  --yellow-bg: rgba(245, 158, 11, 0.1);
  --yellow-border: rgba(245, 158, 11, 0.3);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.1);
  --red-border: rgba(239, 68, 68, 0.3);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Reset & Base ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'Noto Sans SC', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ========== 背景动效 ========== */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -200px;
  right: -100px;
  animation: float1 20s ease-in-out infinite;
}

.bg-glow-2 {
  width: 500px;
  height: 500px;
  background: #8b5cf6;
  bottom: -200px;
  left: -100px;
  animation: float2 25s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-50px, 80px); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, -60px); }
}

/* ========== 容器 ========== */
.container {
  position: relative;
  z-index: 1;
  max-width: 1248px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  justify-content: center;
  align-items: start;
  gap: 32px;
}

.main-column {
  min-width: 0;
}

/* ========== 头部 ========== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 24px var(--accent-glow);
}

.logo-icon svg {
  width: 28px;
  height: 28px;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

/* ========== 侧边栏广告位 ========== */
.sponsor-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  margin-top: 120px;
}

.sponsor-card {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(16, 185, 129, 0.12), rgba(59, 130, 246, 0.06) 42%, rgba(13, 18, 32, 0.96)),
    var(--bg-card);
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sponsor-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 32%);
  pointer-events: none;
}

.sponsor-card > * {
  position: relative;
  z-index: 1;
}

.sponsor-kicker {
  width: fit-content;
  margin-bottom: 14px;
  padding: 5px 9px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
}

.sponsor-card h2 {
  margin-bottom: 10px;
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.35;
}

.sponsor-lead {
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.sponsor-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
  list-style: none;
}

.sponsor-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.sponsor-list svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--green);
}

.sponsor-contact {
  margin-top: auto;
  padding: 16px;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: var(--radius-sm);
}

.sponsor-contact span {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.sponsor-contact strong {
  display: block;
  color: #f8fafc;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 1.2rem;
  line-height: 1.35;
  word-break: break-all;
}

/* ========== 输入区域 ========== */
.input-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.input-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.input-card-header svg {
  color: var(--accent);
}

.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.input-grid .input-group:first-child {
  grid-column: 1 / -1;
}

.input-group {
  position: relative;
}

.input-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-group label svg {
  color: var(--text-muted);
}

.input-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.input-group input::placeholder {
  color: var(--text-muted);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.input-group input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.toggle-eye {
  position: absolute;
  right: 12px;
  bottom: 11px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
}

.toggle-eye:hover {
  color: var(--text-secondary);
}

.security-note {
  margin-bottom: 24px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.06));
  border: 1px solid var(--yellow-border);
  border-radius: var(--radius-sm);
}

.security-note-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #fbbf24;
  font-size: 0.92rem;
  font-weight: 700;
}

.security-note-title svg {
  flex-shrink: 0;
}

.security-note p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.security-note p + p {
  margin-top: 6px;
}

/* ========== 按钮 ========== */
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}

/* Turnstile widget 容器：空 sitekey 时 iframe 宽度为 0，不占位 */
.turnstile-widget {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

.btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: white;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

/* ========== 痛点与付费声明 ========== */
.pain-section {
  margin-top: 24px;
}

.pain-card {
  background: linear-gradient(180deg, rgba(26, 31, 53, 0.98), rgba(15, 22, 40, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.pain-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.pain-card-header svg {
  color: var(--red);
}

.pain-lead {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.pain-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.pain-item {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: rgba(13, 18, 32, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.pain-item:hover {
  border-color: rgba(239, 68, 68, 0.32);
  background: rgba(18, 24, 42, 0.95);
  transform: translateY(-2px);
}

.pain-item-index {
  flex-shrink: 0;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 700;
  color: var(--red);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 999px;
  padding: 8px 10px;
  height: fit-content;
}

.pain-item h3 {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.pain-item p {
  color: var(--text-secondary);
  font-size: 0.83rem;
}

.payment-disclosure {
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.16);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.payment-disclosure summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: background var(--transition), color var(--transition);
}

.payment-disclosure summary::-webkit-details-marker {
  display: none;
}

.payment-disclosure summary::after {
  content: '展开';
  float: right;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
}

.payment-disclosure[open] summary {
  background: rgba(59, 130, 246, 0.08);
}

.payment-disclosure[open] summary::after {
  content: '收起';
}

.payment-disclosure-body {
  padding: 0 18px 20px;
}

.payment-disclosure-body p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.payment-note {
  margin-top: 8px;
}

.payment-qr {
  display: block;
  width: min(100%, 280px);
  margin-top: 16px;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.14);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  background: #fff;
}

/* ========== SEO 内容区 ========== */
.seo-section,
.keyword-section,
.faq-section {
  margin-top: 24px;
}

.seo-card,
.keyword-card,
.faq-card {
  background: rgba(26, 31, 53, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.seo-card-header,
.keyword-card-header,
.faq-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.seo-card-header {
  justify-content: flex-start;
}

.seo-card-header svg {
  color: var(--accent);
  flex-shrink: 0;
}

.seo-card-header h2,
.keyword-card-header h2,
.faq-card-header h2 {
  font-size: 1rem;
  font-weight: 700;
}

.keyword-card-header span,
.faq-card-header span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.seo-lead,
.keyword-lead {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.seo-grid,
.faq-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.seo-item,
.faq-item {
  background: rgba(13, 18, 32, 0.75);
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.seo-item h3,
.faq-item h3 {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.seo-item p,
.faq-item p {
  color: var(--text-secondary);
  font-size: 0.83rem;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.keyword-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.16);
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* ========== 进度条 ========== */
.progress-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
  box-shadow: var(--shadow);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.progress-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
}

.progress-header h3 svg {
  color: var(--yellow);
}

.progress-percent {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  font-family: 'SF Mono', monospace;
}

.progress-bar-wrapper {
  width: 100%;
  height: 6px;
  background: var(--bg-input);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
  border-radius: 3px;
  transition: width 0.5s ease;
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-status {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ========== 结果区域 ========== */
.result-section {
  margin-top: 32px;
}

/* 总体评分卡 */
.verdict-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.verdict-card.verdict-green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), var(--bg-card));
  border-color: var(--green-border);
}

.verdict-card.verdict-yellow {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), var(--bg-card));
  border-color: var(--yellow-border);
}

.verdict-card.verdict-red {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), var(--bg-card));
  border-color: var(--red-border);
}

.verdict-icon {
  font-size: 3rem;
  line-height: 1;
}

.verdict-text {
  flex: 1;
}

.verdict-text h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.verdict-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.verdict-badge {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.verdict-green .verdict-badge {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green-border);
}

.verdict-yellow .verdict-badge {
  background: var(--yellow-bg);
  color: var(--yellow);
  border: 1px solid var(--yellow-border);
}

.verdict-red .verdict-badge {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid var(--red-border);
}

/* 概览网格 */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.overview-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
}

.overview-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.overview-item .ov-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.overview-item .ov-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'SF Mono', monospace;
  margin-bottom: 4px;
}

.overview-item .ov-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.ov-green { color: var(--green); }
.ov-yellow { color: var(--yellow); }
.ov-red { color: var(--red); }

/* 红旗警告 */
.redflags-card {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.redflags-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 16px;
}

.redflags-card ul {
  list-style: none;
}

.redflags-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(239, 68, 68, 0.1);
}

.redflags-card li:last-child {
  border-bottom: none;
}

.redflags-card li::before {
  content: '🚩';
  flex-shrink: 0;
}

/* 详细卡片 */
.detail-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.detail-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.detail-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
}

.detail-card-header:hover {
  background: var(--bg-card-hover);
}

.dc-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 600;
}

.dc-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.dc-status.status-pass {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green-border);
}

.dc-status.status-warn {
  background: var(--yellow-bg);
  color: var(--yellow);
  border: 1px solid var(--yellow-border);
}

.dc-status.status-fail {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid var(--red-border);
}

.dc-status.status-running {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.dc-status.status-pending {
  background: rgba(100, 116, 139, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.detail-card-body {
  padding: 0 24px 20px;
  display: none;
}

.detail-card.expanded .detail-card-body {
  display: block;
}

.dc-chevron {
  transition: transform var(--transition);
  color: var(--text-muted);
}

.detail-card.expanded .dc-chevron {
  transform: rotate(180deg);
}

.dc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(30, 42, 74, 0.5);
  font-size: 0.84rem;
}

.dc-row:last-child {
  border-bottom: none;
}

.dc-row-label {
  color: var(--text-secondary);
}

.dc-row-value {
  font-weight: 600;
  font-family: 'SF Mono', monospace;
}

.dc-block {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 12px 0;
  font-size: 0.82rem;
  font-family: 'SF Mono', monospace;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--text-secondary);
  max-height: 300px;
  overflow-y: auto;
}

/* ========== 日志区域 ========== */
.log-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  cursor: pointer;
  user-select: none;
}

.log-header:hover {
  background: var(--bg-card-hover);
}

.log-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
}

.log-header h3 svg {
  color: var(--accent);
}

.log-toggle {
  transition: transform var(--transition);
  color: var(--text-muted);
}

.log-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.log-body.expanded {
  max-height: 600px;
}

.log-legend {
  display: flex;
  gap: 16px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
}
.log-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}
.log-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.log-content {
  padding: 0 24px 20px;
  font-size: 0.78rem;
  font-family: 'SF Mono', monospace;
  color: var(--text-muted);
  line-height: 1.8;
  max-height: 500px;
  overflow-y: auto;
}

.log-line {
  display: flex;
  gap: 12px;
  padding: 2px 0;
}

.log-time {
  color: var(--text-muted);
  flex-shrink: 0;
  opacity: 0.6;
}

.log-msg { color: var(--text-secondary); }
.log-msg.log-ok { color: var(--green); }
.log-msg.log-warn { color: var(--yellow); }
.log-msg.log-err { color: var(--red); }
.log-msg.log-info { color: var(--accent); }

/* ========== 页脚 ========== */
.footer {
  margin-top: 60px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 2;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ========== 动画 ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--text-muted);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .container {
    max-width: 960px;
  }

  .page-layout {
    display: block;
  }

  .sponsor-sidebar {
    position: static;
    margin-top: 24px;
  }

  .sponsor-card {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 24px 16px 40px;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .input-grid {
    grid-template-columns: 1fr;
  }

  .pain-list {
    grid-template-columns: 1fr;
  }

  .seo-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .keyword-card-header,
  .faq-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .action-row {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .overview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .verdict-card {
    flex-direction: column;
    text-align: center;
  }
}

/* ========== 滚动条 ========== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
