/* ============================================
   首页 — Hero Banner/快捷操作
   从 style.css 拆分
   ============================================ */

/* ----- Hero Banner (Home) ----- */
/* ===== Hero Banner ===== */

.hero-banner {
  background: linear-gradient(160deg, #EA580C 0%, #F97316 35%, #FB923C 60%, #FBA869 100%);
  border-radius: 22px;
  padding: var(--space-8) var(--space-6);
  color: #fff;
  margin-bottom: var(--space-5);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(249,115,22,.2), 0 1px 4px rgba(234,88,12,.15);
}

/* Decorative background blobs */
.hero-bg-layer {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-bg-layer--1 {
  width: 220px; height: 220px;
  top: -60px; right: -50px;
  background: rgba(255,255,255,.07);
  animation: heroBlob1 8s ease-in-out infinite;
}
.hero-bg-layer--2 {
  width: 140px; height: 140px;
  bottom: -30px; left: -20px;
  background: rgba(255,255,255,.05);
  animation: heroBlob2 6s ease-in-out infinite;
}
.hero-bg-layer--3 {
  width: 80px; height: 80px;
  top: 50%; right: 30%;
  background: rgba(255,255,255,.04);
  animation: heroBlob1 10s ease-in-out infinite reverse;
}
@keyframes heroBlob1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(8px,-6px) scale(1.06); }
  66%      { transform: translate(-4px,4px) scale(.96); }
}
@keyframes heroBlob2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-8px,-4px) scale(1.08); }
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-top {
  margin-bottom: var(--space-5);
}

.hero-greeting {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero-date {
  font-size: var(--text-xs);
  opacity: .65;
  margin-top: 2px;
  font-weight: 400;
}

/* Stats row — glass cards */
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: var(--space-4);
  border: 1px solid rgba(255,255,255,.15);
}

.hero-stat {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.hero-stat-icon {
  font-size: 1.125rem;
  line-height: 1;
  flex-shrink: 0;
  opacity: .9;
}

.hero-stat-body {
  min-width: 0;
}

.hero-stat-value {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.625rem;
  opacity: .65;
  font-weight: 400;
  line-height: 1.2;
}

.hero-stat-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.18);
  flex-shrink: 0;
}

/* ===== Quick Actions ===== */

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: var(--space-3) var(--space-1);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  color: var(--color-text);
  transition: all .2s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}
.quick-action:active {
  transform: scale(.94);
}

.qa-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  transition: transform .2s var(--ease-out);
}
.quick-action:active .qa-icon-wrap {
  transform: scale(.9);
}

.qa-icon-svg { display: block; }

/* Recommend — warm orange */
.qa-recommend { background: #FFFBF7; }
.qa-recommend .qa-icon-wrap { background: #FFF0E0; color: #F97316; }

/* Copy — indigo */
.qa-copy { background: #FAFBFF; }
.qa-copy .qa-icon-wrap { background: #EEF2FF; color: #4F6EF7; }

/* Analyze — emerald */
.qa-analyze { background: #FAFDFB; }
.qa-analyze .qa-icon-wrap { background: #ECFDF5; color: #059669; }

/* Churn — amber */
.qa-churn { background: #FFFBEB; }
.qa-churn .qa-icon-wrap { background: #FFF7D6; color: #D97706; }

.qa-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--color-text);
}

.qa-desc {
  font-size: 0.5625rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

