/* ===== 方向探索页样式（深色主题） ===== */

/* ---- 页面容器 ---- */
.explore-page {
  position: relative;
  min-height: 100vh;
  background: #07070f;
  color: #c8c8d8;
  padding-top: 58px;
  overflow: hidden;
}

/* 背景图（响应式） */
.explore-bg {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('/static/gen/user_cropped.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

/* 网格线覆盖（同首页 value-section::before） */
.explore-grid {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.012) 0px, transparent 1px, transparent 60px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0px, transparent 1px, transparent 60px);
  pointer-events: none;
  z-index: 0;
}

/* 右上光晕（同首页 hero-mesh） */
.explore-glow-right {
  position: fixed;
  top: -40%; right: -15%;
  width: 1400px; height: 1200px;
  background:
    radial-gradient(ellipse 70% 60% at 25% 35%, rgba(102,126,234,0.30) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 55% 25%, rgba(168,85,247,0.20) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 45% 70%, rgba(236,72,153,0.08) 0%, transparent 50%);
  filter: blur(120px);
  pointer-events: none;
  z-index: 1;
  animation: exploreFlow 22s ease-in-out infinite alternate;
}

/* 左下光晕（同首页 hero-mesh-left） */
.explore-glow-left {
  position: fixed;
  bottom: -10%; left: -5%;
  width: 600px; height: 500px;
  background: radial-gradient(ellipse 60% 50% at 40% 30%, rgba(102,126,234,0.18) 0%, transparent 50%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 1;
  animation: exploreFlow2 18s ease-in-out infinite alternate-reverse;
}

@keyframes exploreFlow {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(-60px, 40px) rotate(3deg) scale(1.03); }
  100% { transform: translate(40px, -30px) rotate(-2deg) scale(0.97); }
}
@keyframes exploreFlow2 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  100% { transform: translate(30px, -20px) scale(1.1); opacity: 0.8; }
}

/* 所有内容层放在背景之上 */
.explore-hero, .explore-stats, .explore-sections, .explore-cta, .explore-footer {
  position: relative;
  z-index: 2;
}

.explore-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Hero ---- */
.explore-hero {
  position: relative;
  padding: 64px 0 48px;
  overflow: hidden;
}
.explore-hero-bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 600px 400px at 50% 0%, rgba(102,126,234,0.08), transparent 70%),
              radial-gradient(ellipse 400px 300px at 80% 60%, rgba(118,75,162,0.06), transparent 70%);
  pointer-events: none;
}
.explore-back {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; color: #7777a0; cursor: pointer;
  margin-bottom: 24px; transition: color 0.2s;
}
.explore-back:hover { color: #a0a0c8; }

.explore-title {
  font-size: 40px; font-weight: 800;
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 8px; line-height: 1.2;
}
.explore-subname {
  font-size: 16px; color: #8888aa; margin: 0 0 16px;
}
.explore-hero-line {
  font-size: 15px; color: #9999b8; line-height: 1.7;
  max-width: 720px; margin: 0 0 16px;
}
.explore-hero-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.ehtag {
  padding: 3px 12px; border-radius: 20px;
  background: rgba(102,126,234,0.12); border: 1px solid rgba(102,126,234,0.25);
  font-size: 12px; color: #b8b8ee;
}

/* ---- 指标卡片 ---- */
.explore-stats { padding: 0 0 40px; }
.estat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.estat-card {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px; padding: 24px;
  display: flex; gap: 16px; align-items: flex-start;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.estat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #667eea, transparent);
  opacity: 0.3;
  transition: opacity 0.3s;
}
.estat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(102,126,234,0.6);
  background: rgba(255,255,255,0.045);
}
.estat-card:hover::after { opacity: 0.6; }
.estat-icon {
  flex-shrink: 0; width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(102,126,234,0.12);
  display: flex; align-items: center; justify-content: center;
  color: #8899ee;
}
.estat-label { font-size: 13px; color: #7777a0; margin-bottom: 4px; }
.estat-value { font-size: 18px; font-weight: 700; color: #e8e8f8; margin-bottom: 4px; }
.estat-desc { font-size: 13px; color: #8888aa; line-height: 1.5; }

/* ---- 内容区块 ---- */
.explore-sections { padding: 0 0 60px; }
.esection { margin-bottom: 48px; }
.esection-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.esection-num {
  font-size: 14px; font-weight: 700; color: #667eea;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  letter-spacing: 0.5px;
}
.esection-title { font-size: 22px; font-weight: 700; color: #e8e8f8; margin: 0; }

/* -- 数据列表 -- */
.edata-item {
  display: grid; grid-template-columns: 120px 1fr 200px; gap: 16px;
  align-items: center; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.edata-name { font-size: 14px; font-weight: 600; color: #d8d8e8; }
.edata-bar-wrap {
  height: 8px; border-radius: 4px;
  background: rgba(255,255,255,0.06); overflow: hidden;
}
.edata-bar {
  height: 100%; border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.edata-desc { font-size: 13px; color: #7777a0; line-height: 1.4; }

/* -- 时间线 -- */
.etimeline { position: relative; padding-left: 24px; }
.etimeline::before {
  content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: rgba(255,255,255,0.08);
}
.et-item { position: relative; margin-bottom: 28px; }
.et-item:last-child { margin-bottom: 0; }
.et-dot {
  position: absolute; left: -18px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  box-shadow: 0 0 8px rgba(102,126,234,0.4);
}
.et-period {
  font-size: 12px; font-weight: 600; color: #667eea;
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px;
}
.et-title { font-size: 16px; font-weight: 600; color: #e8e8f8; margin-bottom: 4px; }
.et-desc { font-size: 14px; color: #9999b8; line-height: 1.65; }

/* -- 对比表 -- */
.ecompare-table {
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.ectr { display: grid; grid-template-columns: 130px 1fr 1fr 1fr; }
.ectr-head { background: rgba(102,126,234,0.08); }
.ectr-head .ectd { font-size: 13px; color: #a0a0c8; font-weight: 600; }
.ectd {
  padding: 12px 14px; font-size: 13px; color: #d0d0e0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  line-height: 1.5;
}
.ectr:last-child .ectd { border-bottom: none; }
.ectd:first-child { color: #667eea; font-weight: 600; }

/* -- 卡片列表 -- */
.ecard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ecard {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px; padding: 24px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.ecard::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #667eea, transparent);
  opacity: 0.3;
  transition: opacity 0.3s;
}
.ecard:hover {
  transform: translateY(-3px);
  border-color: rgba(102,126,234,0.6);
  background: rgba(255,255,255,0.045);
}
.ecard:hover::after { opacity: 0.6; }
.ecard-icon { font-size: 28px; margin-bottom: 10px; }
.ecard-title { font-size: 15px; font-weight: 600; color: #e8e8f8; margin-bottom: 8px; }
.ecard-desc { font-size: 13px; color: #9999b8; line-height: 1.6; }
.ecard-tip {
  margin-top: 10px; padding: 6px 10px; border-radius: 6px;
  background: rgba(102,126,234,0.08);
  font-size: 12px; color: #a0a0d0; line-height: 1.4;
}

/* -- 数据洞察 -- */
.einsight-intro { font-size: 14px; color: #9999b8; line-height: 1.7; margin-bottom: 16px; }
.eip {
  display: flex; gap: 14px; padding: 14px 16px;
  margin-bottom: 8px;
  background: rgba(20,20,40,0.5); border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04);
}
.eip-key {
  flex-shrink: 0; min-width: 100px;
  font-size: 13px; font-weight: 600; color: #667eea;
}
.eip-val { font-size: 13px; color: #c8c8d8; line-height: 1.6; }

/* ---- CTA ---- */
.explore-cta { padding: 0 0 60px; }
.ecta-card {
  position: relative;
  text-align: center;
  background: linear-gradient(135deg, rgba(102,126,234,0.08), rgba(118,75,162,0.08));
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px; padding: 48px 32px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.ecta-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #667eea, transparent);
  opacity: 0.3;
  transition: opacity 0.3s;
}
.ecta-card:hover {
  transform: translateY(-3px);
  border-color: rgba(102,126,234,0.6);
  background: linear-gradient(135deg, rgba(102,126,234,0.10), rgba(118,75,162,0.10));
}
.ecta-card:hover::after { opacity: 0.6; }
.ecta-title { font-size: 28px; font-weight: 800; color: #eeeef8; margin: 0 0 12px; }
.ecta-desc { font-size: 15px; color: #9999b8; max-width: 560px; margin: 0 auto 24px; line-height: 1.7; }
.ecta-desc strong { color: #d0d0f0; }
.ecta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 36px; border-radius: 12px; border: none;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff; font-size: 16px; font-weight: 600;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
/* CTA胶囊按钮 — 与首页免费获取推荐方向按钮一致 */
.explore-cta .btn-agnes-ref:hover {
  background: linear-gradient(135deg, #667eea, #a855f7);
  border-color: transparent;
  box-shadow: 0 8px 25px -5px rgba(102,126,234,0.4), 0 4px 15px -3px rgba(168,85,247,0.25);
}
.explore-cta .btn-agnes-ref:hover .bento-cta-arrow {
  max-width: 30px; opacity: 1; margin-left: 0;
}
.ecta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(102,126,234,0.3);
}
.ecta-hint {
  margin-top: 16px; font-size: 13px; color: #6666a0;
}
.ecta-hint strong { color: #8888c0; }
.ecta-closing {
  margin-top: 20px; font-size: 15px; color: #c4b5fd; font-weight: 600;
  line-height: 1.6; font-style: italic; letter-spacing: 0.3px;
}

/* ---- Footer ---- */
.explore-footer {
  padding: 40px 0 60px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.efoot-title { font-size: 14px; font-weight: 600; color: #8888aa; margin: 0 0 10px; }
.efoot-text { font-size: 13px; color: #7777a0; line-height: 1.7; margin: 0 0 12px; }
.efoot-disclaimer { font-size: 12px; color: #555580; line-height: 1.6; margin: 0; }

/* ---- 响应式 ---- */
@media (max-width: 768px) {
  .explore-container { padding: 0 16px; }
  .explore-hero { padding: 40px 0 32px; }
  .explore-title { font-size: 28px; }
  .explore-hero-line { font-size: 14px; }
  .explore-subname { font-size: 14px; }

  .estat-row { grid-template-columns: 1fr; gap: 10px; }
  .estat-card { padding: 18px; }

  .esection-title { font-size: 18px; }

  .edata-item { grid-template-columns: 1fr; gap: 6px; }
  .edata-bar-wrap { height: 6px; }

  .ecompare-table { font-size: 11px; overflow-x: auto; }
  .ectr { grid-template-columns: 80px 1fr 1fr 1fr; }

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

  .eip { flex-direction: column; gap: 6px; }
  .eip-key { min-width: auto; }

  .ecta-card { padding: 32px 20px; }
  .ecta-title { font-size: 22px; }
  .ecta-btn { padding: 12px 28px; font-size: 14px; }

  .etimeline { padding-left: 18px; }
}

/* ===== 方向确认页 ===== */
.dconfirm-wrap {
  position: relative; z-index: 1;
  min-height: calc(100vh - 58px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 150px 20px 80px;
}
.dconfirm-title {
  font-size: 24px; font-weight: 800; color: #eeeef8;
  text-align: center; margin-bottom: 28px;
}
.dconfirm-label {
  font-size: 13px; font-weight: 600; color: #a0a0b8;
  margin-bottom: 8px; letter-spacing: 0.3px;
}
.dconfirm-row {
  display: flex; gap: 10px;
}
.dconfirm-input {
  flex: 1; height: 48px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px; padding: 0 16px;
  font-size: 15px; color: #eeeef8; outline: none;
  transition: border-color 0.25s;
}
.dconfirm-input:focus {
  border-color: #667eea;
  background: rgba(255,255,255,0.06);
}
.dconfirm-btn {
  flex-shrink: 0; height: 48px; padding: 0 28px;
  border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700; color: white;
  background: linear-gradient(135deg, #667eea, #764ba2);
  cursor: pointer; transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(102,126,234,0.25);
}
.dconfirm-btn:hover { transform: translateY(-1px); opacity: 0.94; }
.dconfirm-btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; box-shadow: none; }
.dconfirm-row .btn-primary { height: 48px; }
.dconfirm-or {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0;
}
.dconfirm-or-line { flex: 1; height: 1px; background: rgba(255,255,255,0.06); }
.dconfirm-or-text { font-size: 12px; color: #555570; white-space: nowrap; }
.dconfirm-free {
  display: flex; align-items: center; justify-content: space-between;
}
.dconfirm-free-text {
  font-size: 14px; color: #8888a8; white-space: nowrap;
}
.dconfirm-free .btn-agnes-ref:hover {
  background: linear-gradient(135deg, #667eea, #a855f7);
  border-color: transparent;
  box-shadow: 0 8px 25px -5px rgba(102,126,234,0.4), 0 4px 15px -3px rgba(168,85,247,0.25);
}
.dconfirm-free .btn-agnes-ref:hover .bento-cta-arrow {
  max-width: 30px; opacity: 1; margin-left: 0;
}


/* ===== 探索首页 ===== */
.explore-index-page {
  min-height: 100vh;
  background: #07070f;
  color: #c8c8d8;
  padding-top: 58px;
}
.explore-trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.explore-trending-card {
  display: block;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 20px 22px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.explore-trending-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px #a855f7, 0 0 14px rgba(168,85,247,0.25);
}
.etc-name { font-size: 16px; font-weight: 600; color: #eeeef8; margin-bottom: 8px; }
.etc-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.etc-cat { font-size: 12px; color: #667eea; background: rgba(102,126,234,0.1); padding: 2px 8px; border-radius: 4px; }
.etc-income { font-size: 12px; color: #8888a8; }
.etc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.etc-tag { font-size: 11px; color: #666680; background: rgba(255,255,255,0.04); padding: 2px 8px; border-radius: 10px; }

/* ===== 分类网格卡片（展开在卡片内） ===== */
.explore-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.explore-cat-card {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 14px 18px;
  text-decoration: none; cursor: pointer;
  transition: all 0.2s ease;
}
.explore-cat-card:hover { background: rgba(255,255,255,0.05); border-color: transparent; transform: translateY(-2px); box-shadow: 0 0 0 1px #a855f7, 0 0 14px rgba(168,85,247,0.25); }
.explore-cat-card.ecc-expanded {
  background: rgba(168,85,247,0.12);
  border-color: rgba(168,85,247,0.35);
}
.ecc-topline { display: flex; align-items: center; gap: 10px; width: 100%; }
.ecc-icon { font-size: 22px; }
.ecc-name { font-size: 14px; font-weight: 500; color: #eeeef8; flex: 1; }
.ecc-count { font-size: 11px; color: #555570; white-space: nowrap; }
.ecc-body { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(168,85,247,0.20); animation: eisFadeIn 0.2s ease; }
.ecc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ecc-tag {
  display: inline-block; padding: 6px 12px; border-radius: 16px;
  font-size: 12px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08); color: #c8c8e0;
  cursor: pointer; transition: all 0.2s ease; user-select: none;
}
.ecc-tag:hover {
  background: rgba(168,85,247,0.10);
  border-color: #a855f7;
  color: #e9d5ff;
  box-shadow: 0 0 12px rgba(168,85,247,0.20);
}
.ecc-tag-selected { background: rgba(168,85,247,0.15) !important; border-color: #a855f7 !important; color: #f3e8ff !important; }

/* ===== 预览卡片 ===== */
.eis-preview-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(234,179,8,0.35);
  border-radius: 14px;
  padding: 24px 28px;
  animation: eisFadeIn 0.25s ease;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.eis-preview-card:hover {
  border-color: rgba(234,179,8,0.8);
  box-shadow: 0 0 20px rgba(234,179,8,0.12);
}
@keyframes eisFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.eis-pc-top { margin-bottom: 14px; }
.eis-pc-name { font-size: 20px; font-weight: 700; color: #eeeef8; margin-bottom: 10px; }
.eis-pc-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.eis-pc-tag {
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #aaaad0;
}
.eis-pc-desc { font-size: 14px; color: #c0c0d0; line-height: 1.6; margin-bottom: 10px; }
.eis-pc-cat { font-size: 12px; color: #666680; margin-bottom: 16px; }
.eis-pc-cta {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.eis-pc-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.etc-barrier { font-size: 11px; color: #8888a8; background: rgba(255,255,255,0.04); padding: 2px 8px; border-radius: 4px; }
.etc-heat { font-size: 12px; color: #f59e0b; }
