/* ============================================
   小慧AI V3 - 明亮企业SaaS风格
   ============================================ */

/* === 全局变量 === */
:root {
  /* 背景色 */
  --bg-page: #F6F8FC;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-hover: #F8FAFC;

  /* 主色 - 蓝紫渐变 */
  --primary: #5B6AF0;
  --primary-dark: #4A58E8;
  --primary-light: #7480F5;
  --primary-soft: #EEF0FE;
  --primary-glow: rgba(91, 106, 240, 0.15);

  /* 紫色辅助 */
  --purple: #8B5CF6;
  --purple-soft: #F3F0FF;

  /* 强调色 - 金/橙 */
  --gold: #F59E0B;
  --gold-soft: #FEF3C7;
  --orange: #F97316;
  --orange-soft: #FFF7ED;

  /* 文字色 */
  --text-heading: #182033;
  --text-body: #667085;
  --text-muted: #94A3B8;
  --text-disabled: #CBD5E1;

  /* 功能色 */
  --green: #10B981;
  --green-soft: #ECFDF5;
  --red: #EF4444;
  --red-soft: #FEF2F2;

  /* 边框 */
  --border: #E8ECF2;
  --border-light: #F1F5F9;
  --border-focus: #5B6AF0;

  /* 圆角 */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* 阴影 */
  --shadow-xs: 0 1px 2px rgba(24, 48, 114, 0.04);
  --shadow-sm: 0 2px 8px rgba(24, 48, 114, 0.06);
  --shadow-md: 0 4px 16px rgba(24, 48, 114, 0.08);
  --shadow-lg: 0 8px 32px rgba(24, 48, 114, 0.1);
  --shadow-xl: 0 16px 48px rgba(24, 48, 114, 0.12);
  --shadow-card: 0 1px 3px rgba(24, 48, 114, 0.06), 0 4px 12px rgba(24, 48, 114, 0.06);

  /* 底部导航 */
  --nav-height: 68px;
}

/* === 重置 === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--text-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* === 全桌面背景 === */
body {
  background: #E8ECF2;
  min-height: 100vh;
}

/* === 移动端App容器 === */
.mobile-body {
  min-height: 100vh;
  background: var(--bg-page);
}

.mobile-app {
  position: relative;
  min-height: 100vh;
  background: var(--bg-page);
  max-width: 430px;
  margin: 0 auto;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
}

/* === 页面内容区 === */
.screen-shell {
  flex: 1;
  padding: 0;
  padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 20px);
  overflow-x: hidden;
}

/* === 页面切换动画 === */
.tab-screen {
  display: none;
  animation: fadeSlideUp 0.3s ease;
}

.tab-screen.active {
  display: block;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   顶部品牌栏
   ============================================ */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px 0;
  background: var(--bg-page);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(91, 106, 240, 0.3);
  flex-shrink: 0;
}

.brand-mark::after {
  content: '';
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2L15.09 8.26L22 9.27L17 14.14L18.18 21.02L12 17.77L5.82 21.02L7 14.14L2 9.27L8.91 8.26L12 2Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.brand-mark.small {
  width: 34px;
  height: 34px;
}

.brand-mark.small::after {
  width: 16px;
  height: 16px;
}

.brand-box h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.brand-box p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
  line-height: 1;
}

.header-tools {
  display: flex;
  gap: 6px;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
  position: relative;
}

.icon-button:hover {
  background: var(--bg-subtle);
  border-color: var(--primary-light);
  color: var(--primary);
}

.icon-button:active {
  transform: scale(0.95);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.notice-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  background: var(--red);
  border-radius: var(--radius-full);
  font-size: 9px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid white;
  line-height: 1;
}

/* ============================================
   主视觉Banner
   ============================================ */
.hero-card {
  margin: 12px 16px 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg,
    #EEF0FE 0%,
    #E8EAFF 40%,
    #F0F2FF 70%,
    #ECEFFE 100%);
  border: 1px solid rgba(91, 106, 240, 0.12);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}

/* 右上角装饰圆 */
.hero-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(91, 106, 240, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  padding: 22px 20px 20px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: var(--primary);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: white;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(91, 106, 240, 0.3);
}

.hero-eyebrow svg {
  width: 11px;
  height: 11px;
}

.hero-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-description {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 16px;
}

.hero-points {
  list-style: none;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-body);
}

.hero-points li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 9px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(91, 106, 240, 0.35);
  white-space: nowrap;
}

.primary-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 106, 240, 0.4);
}

.primary-pill:active {
  transform: translateY(0);
}

.primary-pill svg {
  width: 16px;
  height: 16px;
}

.secondary-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-heading);
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
}

.secondary-pill:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  background: var(--primary-soft);
}

.secondary-pill svg {
  width: 14px;
  height: 14px;
}

/* AI视觉元素 */
.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 0 16px 16px 0;
  position: relative;
}

.avatar-sphere {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--primary) 0deg,
    var(--purple) 90deg,
    var(--primary-light) 180deg,
    var(--primary) 270deg,
    var(--primary) 360deg
  );
  animation: rotate-conic 6s linear infinite;
  position: relative;
  box-shadow: 0 4px 20px rgba(91, 106, 240, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-sphere::after {
  content: 'AI';
  position: absolute;
  inset: 6px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

@keyframes rotate-conic {
  to { transform: rotate(360deg); }
}

/* ============================================
   通用模块标题
   ============================================ */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 24px 16px 12px;
}

.section-head h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.3px;
}

.section-head .subtitle {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

.text-link {
  font-size: 13px;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  font-weight: 600;
  transition: color 0.2s;
}

.text-link:hover {
  color: var(--primary-dark);
}

/* ============================================
   行业分类入口
   ============================================ */
.industry-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 16px 4px;
}

.industry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.industry-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.industry-item:active {
  transform: translateY(0);
}

.industry-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.industry-icon-wrap svg {
  width: 20px;
  height: 20px;
}

.industry-icon-wrap.blue { background: #EEF2FF; color: #5B6AF0; }
.industry-icon-wrap.purple { background: #F3F0FF; color: #8B5CF6; }
.industry-icon-wrap.green { background: #ECFDF5; color: #10B981; }
.industry-icon-wrap.orange { background: #FFF7ED; color: #F97316; }
.industry-icon-wrap.indigo { background: #EEF2FF; color: #6366F1; }
.industry-icon-wrap.mint { background: #F0FDFA; color: #14B8A6; }
.industry-icon-wrap.slate { background: var(--bg-subtle); color: #64748B; }

.industry-item strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.2;
}

/* ============================================
   热门AI工具
   ============================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 16px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.tool-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.tool-card:active {
  transform: translateY(-1px);
}

.tool-card.wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
}

.tool-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.tool-icon-wrap.blue { background: linear-gradient(135deg, #EEF2FF, #E0E7FF); color: #5B6AF0; }
.tool-icon-wrap.orange { background: linear-gradient(135deg, #FFF7ED, #FFEDD5); color: #F97316; }
.tool-icon-wrap.purple { background: linear-gradient(135deg, #F3F0FF, #EDE9FE); color: #8B5CF6; }
.tool-icon-wrap.green { background: linear-gradient(135deg, #ECFDF5, #D1FAE5); color: #10B981; }
.tool-icon-wrap.gold { background: linear-gradient(135deg, #FFFBEB, #FEF3C7); color: #F59E0B; }

.tool-info {
  flex: 1;
  min-width: 0;
}

.tool-info strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
  line-height: 1.3;
}

.tool-info p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  color: var(--primary);
}

.tool-arrow svg {
  width: 16px;
  height: 16px;
}

.tool-card:hover .tool-arrow {
  background: var(--primary);
  color: white;
  transform: translateX(2px);
}

/* ============================================
   精选行业智能体
   ============================================ */
.agent-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 16px 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.agent-scroll::-webkit-scrollbar {
  display: none;
}

.agent-card-scroll {
  flex-shrink: 0;
  width: 148px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 14px;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agent-card-scroll:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.agent-card-scroll .agent-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-card-scroll .agent-icon-wrap svg {
  width: 20px;
  height: 20px;
}

.agent-icon { width: 44px; height: 44px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.agent-icon svg { width: 24px; height: 24px; }
.agent-icon.blue { background: linear-gradient(135deg, #EEF2FF, #E0E7FF); color: #5B6AF0; }
.agent-icon.purple { background: linear-gradient(135deg, #F3F0FF, #EDE9FE); color: #8B5CF6; }
.agent-icon.green { background: linear-gradient(135deg, #ECFDF5, #D1FAE5); color: #10B981; }
.agent-icon.orange { background: linear-gradient(135deg, #FFF7ED, #FFEDD5); color: #F97316; }
.agent-icon.gold { background: linear-gradient(135deg, #FFFBEB, #FEF3C7); color: #F59E0B; }
.agent-icon.indigo { background: linear-gradient(135deg, #EEF2FF, #E0E7FF); color: #5B6AF0; }
.agent-icon.mint { background: linear-gradient(135deg, #F0FDFA, #CCFBF1); color: #14B8A6; }
.agent-icon.slate { background: #F1F5F9; color: #64748B; }

/* JS-rendered list view agent cards */
.agent-list .agent-card {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.agent-list .agent-card strong { font-size: 16px; }
.agent-list .agent-card p { font-size: 13px; }

.agent-card-scroll strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.3;
  display: block;
}

.agent-card-scroll p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.agent-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  align-self: flex-start;
  background: var(--primary-soft);
  color: var(--primary);
}

/* ============================================
   底部成交引导区
   ============================================ */
.cta-section {
  margin: 4px 16px 16px;
}

.cta-card {
  background: linear-gradient(135deg,
    var(--primary) 0%,
    #6C74F2 50%,
    var(--purple) 100%);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(91, 106, 240, 0.3);
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.cta-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
  line-height: 1.5;
}

.cta-card .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: white;
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.25s;
}

.cta-card .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.cta-card .cta-btn svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   底部导航
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  box-shadow: 0 -2px 16px rgba(24, 48, 114, 0.06);
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  border-radius: var(--radius-md);
  min-width: 52px;
}

.nav-tab:hover {
  color: var(--text-body);
}

.nav-tab.active {
  color: var(--primary);
}

.nav-tab span {
  font-size: 10px;
  font-weight: 600;
}

.nav-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 22px;
  height: 22px;
}

.nav-tab-center {
  position: relative;
  top: -16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-orb {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: white;
  box-shadow: 0 4px 16px rgba(91, 106, 240, 0.4);
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: -0.5px;
}

.nav-orb:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(91, 106, 240, 0.5);
}

/* ============================================
   详情抽屉
   ============================================ */
.detail-sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
}

.detail-sheet.hidden {
  display: none;
}

.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(24, 48, 114, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.sheet-panel {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  padding: 24px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -4px 24px rgba(24, 48, 114, 0.1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: var(--bg-subtle);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.sheet-close:hover {
  background: var(--border);
  color: var(--text-heading);
}

.sheet-badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.sheet-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}

.sheet-badge.blue { background: var(--primary-soft); color: var(--primary); }
.sheet-badge.purple { background: var(--purple-soft); color: var(--purple); }
.sheet-badge.orange { background: var(--orange-soft); color: var(--orange); }
.sheet-badge.gold { background: var(--gold-soft); color: var(--gold); }

.sheet-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  background: var(--bg-subtle);
  color: var(--text-body);
}

.sheet-panel h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 12px;
  letter-spacing: -0.4px;
}

.sheet-summary {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 20px;
}

.sheet-icon-card {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.sheet-icon-card.blue { background: var(--primary-soft); color: var(--primary); }
.sheet-icon-card.purple { background: var(--purple-soft); color: var(--purple); }
.sheet-icon-card.green { background: var(--green-soft); color: var(--green); }
.sheet-icon-card.orange { background: var(--orange-soft); color: var(--orange); }
.sheet-icon-card.gold { background: var(--gold-soft); color: var(--gold); }
.sheet-icon-card.indigo { background: var(--primary-soft); color: var(--primary); }
.sheet-icon-card.mint { background: #F0FDFA; color: #14B8A6; }

.sheet-icon-card svg {
  width: 32px;
  height: 32px;
}

.sheet-bullets {
  list-style: none;
  margin-bottom: 24px;
}

.sheet-bullets li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-body);
  padding-left: 28px;
  position: relative;
  line-height: 1.5;
}

.sheet-bullets li:last-child {
  border-bottom: none;
}

.sheet-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: var(--primary-soft);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 24 24' fill='none' stroke='%235B6AF0' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sheet-action {
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  text-align: center;
}

.sheet-action.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 14px rgba(91, 106, 240, 0.3);
}

.sheet-action.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 106, 240, 0.4);
}

.sheet-action.ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-heading);
}

.sheet-action.ghost:hover {
  border-color: var(--primary-light);
  background: var(--primary-soft);
  color: var(--primary);
}

/* 通知面板 */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notice-list article {
  padding: 16px;
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.notice-list strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.notice-list p {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.5;
}

.notice-list code {
  background: var(--border-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--primary);
  font-family: monospace;
}

/* ============================================
   Toast
   ============================================ */
.app-toast {
  position: fixed;
  bottom: calc(var(--nav-height) + 20px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(24, 32, 51, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  max-width: calc(100% - 32px);
}

.app-toast:not(.hidden) {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.app-toast.hidden {
  display: flex !important;
}

/* ============================================
   智能体商城页 & 其他页面
   ============================================ */

.view-header {
  padding: 20px 16px 16px;
  background: var(--bg-page);
}

.view-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
  letter-spacing: -0.4px;
}

.view-header p {
  font-size: 14px;
  color: var(--text-muted);
}

.filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 16px;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-button {
  flex-shrink: 0;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-button:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.filter-button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(91, 106, 240, 0.3);
}

.marketplace-search-card {
  margin: 0 16px 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.marketplace-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: #F8FAFC;
}

.marketplace-search svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.marketplace-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: var(--text-heading);
}

.marketplace-search input::placeholder {
  color: var(--text-muted);
}

.marketplace-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.marketplace-stats span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 8px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #F8FAFF, #FFFFFF);
  border: 1px solid var(--border-light);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

.marketplace-stats strong {
  font-size: 16px;
  color: var(--primary);
}

.marketplace-list {
  display: grid;
  gap: 12px;
  padding: 0 16px calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 24px);
}

.marketplace-agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.marketplace-card-main {
  width: 100%;
  display: block;
  padding: 15px;
  text-align: left;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
}

.marketplace-card-top {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.marketplace-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.marketplace-card-title-row strong {
  min-width: 0;
  font-size: 16px;
  line-height: 1.35;
  color: var(--text-heading);
}

.marketplace-category {
  display: inline-flex;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.marketplace-status {
  flex-shrink: 0;
  padding: 3px 7px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}

.marketplace-status.online {
  color: #047857;
  background: #D1FAE5;
}

.marketplace-status.custom {
  color: #4338CA;
  background: #E0E7FF;
}

.marketplace-status.soon {
  color: #92400E;
  background: #FEF3C7;
}

.marketplace-card-main p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-body);
  margin-bottom: 11px;
}

.marketplace-field {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  margin-bottom: 10px;
}

.marketplace-field span {
  font-size: 11px;
  color: var(--text-muted);
}

.marketplace-field strong {
  font-size: 13px;
  color: var(--text-heading);
  line-height: 1.45;
}

.marketplace-points {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.marketplace-points span {
  max-width: 100%;
  padding: 5px 8px;
  border-radius: var(--radius-full);
  background: #EEF2FF;
  color: #4F46E5;
  font-size: 11px;
  line-height: 1.35;
}

.marketplace-result {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

.marketplace-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 12px 15px 15px;
  border-top: 1px solid var(--border-light);
}

.marketplace-action {
  min-width: 0;
  min-height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.marketplace-action.primary {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 8px 18px rgba(91, 106, 240, 0.18);
}

.marketplace-action.ghost {
  color: var(--primary);
  background: #F8FAFF;
  border-color: #DDE4FF;
}

.marketplace-action.light {
  color: var(--text-body);
  background: #FFFFFF;
}

.agent-empty-state {
  margin: 0 16px calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 24px);
  padding: 24px 16px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-xl);
  background: #FFFFFF;
}

.agent-empty-state strong {
  display: block;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.agent-empty-state p {
  font-size: 13px;
  color: var(--text-muted);
}

.agent-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.agent-meta span:first-child {
  color: var(--gold);
  font-weight: 600;
}

/* Hub页 */
.hub-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin: 0 16px 16px;
}

.hub-chip {
  display: inline-flex;
  padding: 4px 12px;
  background: var(--primary);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.hub-hero h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.hub-hero p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.hub-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.hub-tile {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.hub-tile:hover {
  border-color: var(--primary-light);
  background: var(--primary-soft);
}

.hub-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-icon svg { width: 20px; height: 20px; }
.hub-icon.blue { background: #EEF2FF; color: #5B6AF0; }
.hub-icon.purple { background: #F3F0FF; color: #8B5CF6; }
.hub-icon.green { background: #ECFDF5; color: #10B981; }
.hub-icon.orange { background: #FFF7ED; color: #F97316; }
.hub-icon.gold { background: #FFFBEB; color: #F59E0B; }
.hub-icon.indigo { background: #EEF2FF; color: #5B6AF0; }
.hub-icon.mint { background: #F0FDFA; color: #14B8A6; }
.hub-icon.slate { background: #F1F5F9; color: #64748B; }

.hub-tile strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-heading);
}

.hub-tile span {
  font-size: 10px;
  color: var(--text-muted);
}

/* 发现页 */
.discover-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px;
  padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 20px);
}

.discover-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.discover-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.discover-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.discover-icon svg { width: 22px; height: 22px; }
.discover-icon.blue { background: #EEF2FF; color: #5B6AF0; }
.discover-icon.purple { background: #F3F0FF; color: #8B5CF6; }
.discover-icon.green { background: #ECFDF5; color: #10B981; }
.discover-icon.orange { background: #FFF7ED; color: #F97316; }
.discover-icon.gold { background: #FFFBEB; color: #F59E0B; }
.discover-icon.indigo { background: #EEF2FF; color: #5B6AF0; }
.discover-icon.mint { background: #F0FDFA; color: #14B8A6; }
.discover-icon.slate { background: #F1F5F9; color: #64748B; }

.discover-body strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 3px;
}

.discover-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 我的页面 */
.profile-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  border-radius: var(--radius-xl);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 16px 16px;
  box-shadow: var(--shadow-md);
}

.profile-avatar { flex-shrink: 0; }

.profile-meta strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.profile-meta span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 16px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 10px;
  text-align: center;
}

.stat-card span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-card strong {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px;
  padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 20px);
}

.profile-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 15px 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-heading);
}

.profile-menu-item:hover {
  border-color: var(--primary-light);
  background: var(--primary-soft);
}

/* ============================================
   表单页 & 结果页
   （保留原有样式，仅调整配色）
   ============================================ */

.diagnosis-page {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 16px calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 20px);
}

.diagnosis-header {
  text-align: center;
  padding: 20px 0 24px;
}

.diagnosis-header h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 8px;
  letter-spacing: -0.4px;
}

.diagnosis-header p {
  font-size: 14px;
  color: var(--text-muted);
}

.diagnosis-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 16px;
}

.form-group:last-of-type {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg-page);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text-heading);
  transition: all 0.2s;
  font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group textarea {
  min-height: 88px;
  resize: vertical;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.submit-btn {
  width: 100%;
  padding: 15px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(91, 106, 240, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.submit-btn svg { width: 18px; height: 18px; }

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(91, 106, 240, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

/* 结果页 */
.result-page {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 16px calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 20px);
}

.result-header {
  text-align: center;
  padding: 24px 20px;
  background: linear-gradient(135deg, var(--primary-soft) 0%, #F8FAFF 100%);
  border: 1px solid rgba(91, 106, 240, 0.12);
  border-radius: var(--radius-xl);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.result-header::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(91, 106, 240, 0.04) 60deg, transparent 120deg);
  animation: result-rotate 15s linear infinite;
}

@keyframes result-rotate {
  to { transform: rotate(360deg); }
}

.score-circle {
  width: 120px;
  height: 120px;
  margin: 0 auto 14px;
  position: relative;
  z-index: 1;
}

.score-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-circle .bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 10;
}

.score-circle .progress {
  fill: none;
  stroke: url(#scoreGradient);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  animation: score-progress 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes score-progress {
  to { stroke-dashoffset: var(--score-offset, 100); }
}

.score-value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-value strong {
  font-size: 40px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.score-value span {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.result-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-xs);
}

.result-section h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-section h3 .icon {
  width: 24px;
  height: 24px;
  background: var(--primary-soft);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--primary);
  flex-shrink: 0;
}

.result-conclusion-card {
  padding: 16px;
  margin-bottom: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(91, 106, 240, 0.18);
  background: linear-gradient(135deg, rgba(91, 106, 240, 0.1), rgba(245, 158, 11, 0.08));
}

.result-kicker {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.78);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.result-conclusion-card h3 {
  margin: 12px 0 8px;
}

.result-conclusion-card p {
  margin: 0;
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.75;
}

.revenue-impact-card {
  padding: 20px;
  margin-bottom: 12px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(245, 158, 11, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at 88% 12%, rgba(245, 158, 11, 0.16), transparent 34%);
  box-shadow: 0 14px 34px rgba(148, 108, 16, 0.1);
}

.revenue-impact-card h3 {
  margin: 14px 0 8px;
  color: var(--text-heading);
  font-size: 17px;
  line-height: 1.35;
}

.revenue-impact-card > strong {
  display: block;
  color: var(--gold);
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.revenue-impact-card p {
  margin: 10px 0 0;
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.7;
}

.revenue-lift-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.revenue-lift-grid .result-metric-card {
  min-height: 118px;
}

.result-metric-card small {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.3;
}

.result-metric-grid.compact {
  margin-bottom: 10px;
}

.score-secondary-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-xs);
}

.score-circle.compact {
  width: 72px;
  height: 72px;
  margin: 0;
  flex: 0 0 auto;
}

.score-circle.compact .bg,
.score-circle.compact .progress {
  stroke-width: 9;
}

.score-circle.compact .progress.secondary {
  stroke: url(#scoreGradientSecondary);
}

.score-circle.compact .score-value strong {
  font-size: 24px;
}

.score-circle.compact .score-value span {
  font-size: 11px;
}

.score-secondary-card h3 {
  margin: 0 0 4px;
  color: var(--text-heading);
  font-size: 15px;
  font-weight: 800;
}

.score-secondary-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.priority-tools {
  margin-top: 12px;
}

.priority-tools strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-heading);
  font-size: 14px;
}

.priority-tools ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.priority-tools li {
  padding: 9px 11px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-heading);
  font-size: 13px;
  font-weight: 700;
}

.result-conclusion-card .result-disclaimer {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.result-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.result-metric-card {
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.result-metric-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.result-metric-card strong {
  display: block;
  color: var(--text-heading);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
}

.result-metric-card.highlight {
  border-color: rgba(91, 106, 240, 0.28);
  background: rgba(91, 106, 240, 0.08);
}

.result-metric-card.highlight strong {
  color: var(--primary);
}

.result-metric-card.highlight.warm {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.1);
}

.result-metric-card.highlight.warm strong {
  color: var(--gold);
}

.problem-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.problem-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.5;
}

.problem-list li::before {
  content: '!';
  width: 20px;
  height: 20px;
  background: var(--red-soft);
  color: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.suggestion-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.suggestion-list li {
  padding: 13px;
  background: var(--primary-soft);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
}

.suggestion-list li strong {
  color: var(--primary);
}

.plan-day {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.plan-day:last-child {
  margin-bottom: 0;
}

.day-badge {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(91, 106, 240, 0.3);
}

.plan-content {
  flex: 1;
  padding-top: 5px;
}

.plan-content strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 2px;
}

.plan-content p {
  font-size: 12px;
  color: var(--text-muted);
}

.product-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.product-card:hover {
  border-color: var(--primary-light);
  background: var(--primary-soft);
}

.product-card:last-child {
  margin-bottom: 0;
}

.product-info strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 3px;
}

.product-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.product-price {
  text-align: right;
  flex-shrink: 0;
  margin-left: 12px;
}

.product-price .price {
  font-size: 20px;
  font-weight: 800;
  color: var(--gold);
}

.product-price .unit {
  font-size: 11px;
  color: var(--text-muted);
}

.result-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(91, 106, 240, 0.16);
  background: linear-gradient(180deg, rgba(91, 106, 240, 0.08), rgba(255, 255, 255, 0.8));
  box-shadow: var(--shadow-xs);
}

.result-cta-copy {
  margin: 0 0 4px;
  color: var(--text-heading);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 700;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 24px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  text-decoration: none;
}

.cta-btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 16px rgba(91, 106, 240, 0.3);
}

.cta-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 106, 240, 0.4);
}

.cta-btn.secondary {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-heading);
}

.cta-btn.secondary:hover {
  border-color: var(--primary-light);
  background: var(--primary-soft);
  color: var(--primary);
}

/* 行业页 */
.industry-page {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 16px calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 20px);
}

.industry-header {
  text-align: center;
  padding: 24px 0;
}

.industry-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.industry-icon svg { width: 36px; height: 36px; }

.industry-header h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 6px;
  letter-spacing: -0.4px;
}

.industry-header p {
  font-size: 14px;
  color: var(--text-muted);
}

.pain-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 12px;
}

.pain-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pain-section h3::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--red);
  border-radius: 2px;
}

.solution-section h3::before {
  background: var(--green);
}

.pain-grid {
  display: grid;
  gap: 10px;
}

.pain-item {
  padding: 13px;
  background: var(--red-soft);
  border: 1px solid rgba(239, 68, 68, 0.1);
  border-radius: var(--radius-md);
}

.pain-item strong {
  display: block;
  font-size: 14px;
  color: var(--red);
  margin-bottom: 3px;
}

.pain-item p {
  font-size: 12px;
  color: var(--text-muted);
}

.solution-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.solution-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  background: var(--green-soft);
  border: 1px solid rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-md);
}

.solution-icon {
  width: 26px;
  height: 26px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: white;
  flex-shrink: 0;
}

.solution-item strong {
  display: block;
  font-size: 14px;
  color: var(--text-heading);
  margin-bottom: 2px;
}

.solution-item p {
  font-size: 12px;
  color: var(--text-muted);
}

.industry-cta {
  margin: 16px 0;
}

/* ============================================
   隐藏 & 辅助
   ============================================ */
.hidden {
  display: none !important;
}

.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;
}

/* 分类条（JS动态渲染用） */
.category-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 16px 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

/* ============================================
   响应式
   ============================================ */
@media (min-width: 768px) {
  body {
    background: #DDE1E9;
  }

  .mobile-app {
    border-radius: 0;
    box-shadow: none;
  }
}

/* ============================================
   后台样式
   ============================================ */
.leads-table-wrapper {
  overflow-x: auto;
  margin: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.leads-table th,
.leads-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.leads-table th {
  background: var(--bg-subtle);
  font-weight: 600;
  color: var(--text-body);
  white-space: nowrap;
}

.leads-table td {
  color: var(--text-heading);
}

.leads-table tr:last-child td {
  border-bottom: none;
}

.leads-table tr:hover td {
  background: var(--primary-soft);
}

.status-select {
  padding: 5px 10px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-heading);
  font-size: 12px;
  cursor: pointer;
}

.status-select:focus {
  outline: none;
  border-color: var(--primary);
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 40px !important;
}

.tiny-button {
  padding: 5px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-heading);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.tiny-button:hover {
  background: var(--primary-soft);
  border-color: var(--primary-light);
  color: var(--primary);
}

.lead-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.lead-filters label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.lead-filters input,
.lead-filters select {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--text-heading);
}

.lead-filters .tiny-button {
  align-self: end;
  min-height: 34px;
}

.problem-cell,
.result-cell {
  max-width: 260px;
  line-height: 1.5;
}

.result-cell {
  color: var(--text-body);
}

.lead-remark {
  display: block;
  width: 150px;
  min-height: 48px;
  margin-top: 8px;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--text-heading);
  font-size: 12px;
  resize: vertical;
}

@media (max-width: 900px) {
  .lead-filters {
    grid-template-columns: 1fr 1fr;
  }
}
