/* 主页样式 — 现代渐变风格 */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: #fafbfc;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ===== Topbar ===== */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid #eef0f4;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; }
.brand-mark { font-size: 22px; }
.topbar-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; color: #4b5563; }
.topbar-nav a:hover { color: #2563eb; }
.topbar-admin { color: #9ca3af !important; font-size: 13px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #fff !important; font-weight: 500;
  border: none; border-radius: 8px;
  padding: 9px 18px; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 12px rgba(37,99,235,0.18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,0.28); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-large { padding: 14px 28px; font-size: 16px; }
.btn-ghost {
  display: inline-flex; align-items: center;
  color: #4b5563; font-weight: 500;
  padding: 14px 22px; border-radius: 8px;
  border: 1px solid #e5e7eb; background: #fff;
  transition: all 0.15s;
}
.btn-ghost:hover { border-color: #2563eb; color: #2563eb; }

/* ===== Hero ===== */
.hero {
  padding: 80px 0 100px;
  background:
    radial-gradient(800px 400px at 80% -10%, rgba(124,58,237,0.10), transparent 60%),
    radial-gradient(700px 500px at 0% 20%, rgba(37,99,235,0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-title { font-size: 48px; line-height: 1.18; font-weight: 700; margin: 0 0 20px; letter-spacing: -0.02em; color: #0f172a; }
@media (max-width: 700px) { .hero-title { font-size: 36px; } }
.hero-sub { font-size: 17px; color: #4b5563; margin: 0 0 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-meta { display: flex; gap: 36px; }
.meta-item { display: flex; flex-direction: column; }
.meta-num { font-size: 28px; font-weight: 700; color: #2563eb; line-height: 1.1; }
.meta-label { font-size: 13px; color: #6b7280; margin-top: 4px; }

/* ===== Hero 艺术 ===== */
.hero-art { position: relative; height: 360px; }
.art-blob {
  position: absolute; inset: 20px;
  background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
  border-radius: 36% 64% 50% 50% / 50% 50% 64% 36%;
  filter: blur(0.5px);
  animation: blob 14s ease-in-out infinite;
  opacity: 0.85;
}
@keyframes blob {
  0%, 100% { border-radius: 36% 64% 50% 50% / 50% 50% 64% 36%; }
  50%      { border-radius: 50% 50% 36% 64% / 64% 36% 50% 50%; }
}
.art-card {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  display: flex; flex-direction: column; align-items: center;
  min-width: 100px;
}
.art-num { font-size: 26px; font-weight: 700; color: #111827; line-height: 1; }
.art-label { font-size: 12px; color: #6b7280; margin-top: 4px; }
.art-card-1 { top: 30px;  left: 20px;  }
.art-card-2 { top: 130px; right: 10px; }
.art-card-3 { bottom: 30px; left: 70px; }

/* ===== Section 通用 ===== */
.section-title { font-size: 32px; font-weight: 700; color: #0f172a; margin: 0 0 8px; letter-spacing: -0.01em; }
.section-sub { font-size: 15px; color: #6b7280; margin: 0 0 36px; }

/* ===== 4 维度卡片 ===== */
.dims { padding: 80px 0; background: #fff; }
.dim-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .dim-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .dim-grid { grid-template-columns: 1fr; } }
.dim-card {
  position: relative;
  padding: 28px 24px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #eef0f4;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.dim-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  border-color: #d1d5db;
}
.dim-icon { font-size: 32px; margin-bottom: 12px; }
.dim-card h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; color: #111827; }
.dim-card p { font-size: 14px; color: #6b7280; margin: 0 0 14px; line-height: 1.55; }
.dim-count {
  display: inline-block;
  font-size: 12px; color: #4b5563; font-weight: 600;
  background: #f3f4f6; padding: 3px 10px; border-radius: 999px;
}
.dim-pro  { border-top: 3px solid #2563eb; }
.dim-att  { border-top: 3px solid #10b981; }
.dim-eff  { border-top: 3px solid #f59e0b; }
.dim-emo  { border-top: 3px solid #ec4899; }

/* ===== 最近反馈 ===== */
.recent { padding: 80px 0; background: #fafbfc; }
.recent-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 8px; }
.recent-list { display: grid; gap: 12px; }
.recent-loading { text-align: center; color: #9ca3af; padding: 40px 0; }
.recent-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eef0f4;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.recent-item:hover { border-color: #d1d5db; box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.recent-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600;
}
.recent-body { min-width: 0; }
.recent-name { font-size: 15px; font-weight: 600; color: #111827; margin: 0 0 2px; }
.recent-meta { font-size: 13px; color: #6b7280; }
.recent-meta span + span::before { content: '·'; margin: 0 8px; color: #d1d5db; }
.recent-score {
  text-align: right;
  min-width: 80px;
}
.recent-score-num { font-size: 22px; font-weight: 700; line-height: 1; }
.recent-score-label { font-size: 11px; color: #6b7280; margin-top: 2px; }
.score-good { color: #059669; }
.score-warn { color: #d97706; }
.score-bad  { color: #dc2626; }
.recent-empty {
  text-align: center;
  color: #9ca3af;
  padding: 60px 0;
  background: #fff;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
}
.recent-empty p { margin: 8px 0 0; }

/* ===== Footer ===== */
.footer { background: #0f172a; color: #cbd5e1; padding: 28px 0; margin-top: 0; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; align-items: center; gap: 10px; color: #94a3b8; }
.footer-links a:hover { color: #fff; }
