/* ============================================
   阙外首页专属样式 v3.0 — HNW Edition
   面向高净值用户 · 研报精品店调性
   依赖: quewai_tokens.css + quewai_core_v3.css
   ============================================ */

/* ===== Hero 区域 ===== */
.qw-hero {
  padding: 5rem 0 var(--qw-space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 顶光晕 — 柔和金色 */
.qw-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(
    ellipse at center,
    rgba(184, 148, 46, 0.06) 0%,
    rgba(184, 148, 46, 0.02) 40%,
    transparent 70%
  );
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

/* 底部微光 */
.qw-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(184, 148, 46, 0.15) 30%,
    rgba(184, 148, 46, 0.25) 50%,
    rgba(184, 148, 46, 0.15) 70%,
    transparent 100%
  );
}

.qw-hero-brand {
  position: relative;
  font-family: 'Noto Serif SC', 'STSong', 'Songti SC', Georgia, var(--qw-serif), serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--qw-text);
  letter-spacing: 0.06em;
  line-height: 1.25;
  margin-bottom: var(--qw-space-lg);
}

.qw-hero-brand .gold {
  font-weight: 500;
  color: var(--qw-gold);
  display: block;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.qw-hero-sub {
  position: relative;
  font-size: 1.1rem;
  color: var(--qw-text-secondary);
  max-width: 540px;
  margin: 0 auto var(--qw-space-xl);
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* 金色微标分隔 */
.qw-hero-ornament {
  width: 40px;
  height: 2px;
  background: var(--qw-gold);
  margin: 0 auto var(--qw-space-lg);
  opacity: 0.35;
}

/* ===== 搜索区域 ===== */
.qw-search-wrap {
  position: relative;
  max-width: 620px;
  margin: 0 auto var(--qw-space-xl);
}

.qw-search-input {
  width: 100%;
  padding: 18px 28px;
  padding-right: 130px;
  font-family: var(--qw-sans);
  font-size: 1rem;
  color: var(--qw-text);
  background: var(--qw-surface);
  border: 1.5px solid var(--qw-border);
  border-radius: var(--qw-radius-lg);
  box-shadow: var(--qw-shadow-sm);
  outline: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.015em;
}

.qw-search-input:focus {
  border-color: var(--qw-gold);
  box-shadow: 0 0 0 4px var(--qw-gold-subtle), var(--qw-shadow-md);
}

.qw-search-input::placeholder {
  color: var(--qw-text-muted);
  font-weight: 350;
}

.qw-search-hint {
  font-size: 0.8rem;
  color: var(--qw-text-muted);
  margin-top: var(--qw-space-sm);
  letter-spacing: 0.02em;
}

.qw-search-hint span {
  cursor: pointer;
  color: var(--qw-gold);
  border-bottom: 1px dotted var(--qw-gold);
  transition: color 0.2s;
}
.qw-search-hint span:hover { color: var(--qw-brand); }

/* ===== 状态栏 ===== */
.qw-status-bar {
  display: flex;
  justify-content: center;
  gap: var(--qw-space-xl);
  flex-wrap: wrap;
  position: relative;
}

.qw-status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--qw-text-secondary);
  font-weight: 450;
}

.qw-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--qw-success);
  animation: qwPulse 3s ease-in-out infinite;
}

@keyframes qwPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(45, 106, 79, 0.4); }
  50% { opacity: 0.7; transform: scale(0.8); box-shadow: 0 0 0 6px rgba(45, 106, 79, 0); }
}

/* ===== 信任数字带 ===== */
.qw-trust-strip {
  display: flex;
  justify-content: center;
  gap: var(--qw-space-2xl);
  padding: var(--qw-space-xl) 0 var(--qw-space-lg);
  flex-wrap: wrap;
}

.qw-trust-item {
  text-align: center;
  min-width: 100px;
}

.qw-trust-num {
  font-family: 'Noto Serif SC', 'STSong', 'Songti SC', Georgia, var(--qw-serif), serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--qw-text);
  line-height: 1.1;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.qw-trust-num::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 1.5px;
  background: var(--qw-gold);
  opacity: 0.25;
}

.qw-trust-label {
  font-size: 0.75rem;
  color: var(--qw-text-muted);
  margin-top: 6px;
  letter-spacing: 0.04em;
  font-weight: 400;
}

/* ===== 章节标题 ===== */
.qw-section-header {
  text-align: center;
  margin-bottom: var(--qw-space-xl);
}

.qw-section-header h2 {
  font-family: 'Noto Serif SC', 'STSong', 'Songti SC', Georgia, var(--qw-serif), serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--qw-text);
  letter-spacing: 0.04em;
  margin-bottom: var(--qw-space-sm);
}

.qw-section-header p {
  font-size: 0.9rem;
  color: var(--qw-text-muted);
  letter-spacing: 0.02em;
}

/* ===== 精选报告网格 — HNW核心 ===== */
.qw-reports-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--qw-space-lg);
}

@media (max-width: 768px) {
  .qw-reports-grid { grid-template-columns: 1fr; }
}

/* 研报卡片 — 精品店陈列 */
.qw-report-card {
  background: var(--qw-surface);
  border: 1px solid var(--qw-border-light);
  border-radius: var(--qw-radius-lg);
  padding: 28px 32px;
  box-shadow: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* 左侧金色渐变条 — 悬停时显现 */
.qw-report-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(180deg, var(--qw-gold) 0%, var(--qw-gold-light) 100%);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
}

.qw-report-card:hover {
  transform: translateX(4px) translateY(-2px);
  border-color: var(--qw-gold);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.qw-report-card:hover::before {
  width: 3px;
  opacity: 0.7;
}

/* 报告元信息行 */
.qw-report-card .qw-report-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

/* 分类标签 */
.qw-report-card .qw-report-meta .qw-tag {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  padding: 2px 10px;
}

/* 日期 */
.qw-report-card .qw-report-date,
.qw-report-card .qw-caption {
  font-size: 0.75rem;
  color: var(--qw-gold);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* 标题 */
.qw-report-card h3 {
  font-family: 'Noto Serif SC', 'STSong', 'Songti SC', Georgia, var(--qw-serif), serif;
  font-size: 1.15rem;
  font-weight: 550;
  line-height: 1.45;
  margin-bottom: 12px;
  color: var(--qw-text);
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
}

.qw-report-card:hover h3 {
  color: var(--qw-brand);
}

/* 摘要 */
.qw-report-card p {
  font-size: 0.85rem;
  color: var(--qw-text-muted);
  margin-bottom: 0;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

/* 底部分隔 */
.qw-report-card .qw-card-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--qw-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--qw-text-muted);
}

/* 阅读时长指示 */
.qw-read-time {
  font-size: 0.7rem;
  color: var(--qw-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.qw-read-time::before {
  content: '🕐';
  font-size: 0.65rem;
}

/* ===== 方法论入口 ===== */
.qw-methodology {
  background: var(--qw-surface-subtle);
  border: 1px solid var(--qw-border-light);
  border-radius: var(--qw-radius-lg);
  padding: var(--qw-space-xl) var(--qw-space-lg);
  text-align: center;
  margin-bottom: var(--qw-space-2xl);
}

.qw-methodology h3 {
  font-family: 'Noto Serif SC', 'STSong', 'Songti SC', Georgia, var(--qw-serif), serif;
  font-size: 1.25rem;
  color: var(--qw-text);
  margin-bottom: var(--qw-space-sm);
  font-weight: 550;
  letter-spacing: 0.03em;
}

.qw-methodology p {
  max-width: 560px;
  margin: 0 auto var(--qw-space-lg);
  font-size: 0.9rem;
  color: var(--qw-text-secondary);
  line-height: 1.7;
}

.qw-methodology .qw-layer-dots {
  display: flex;
  justify-content: center;
  gap: var(--qw-space-xl);
  margin-top: var(--qw-space-lg);
}

.qw-layer-dot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--qw-text-secondary);
  font-weight: 450;
}

.qw-layer-dot::before {
  content: '';
  width: 10px; height: 10px; border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}

.qw-layer-dot.l1::before { background: var(--qw-layer-1); }
.qw-layer-dot.l2::before { background: var(--qw-layer-2); }
.qw-layer-dot.l3::before { background: var(--qw-layer-3); }
.qw-layer-dot.l4::before { background: var(--qw-layer-4); }

/* ===== 数据信任带 ===== */
.qw-trust-banner {
  background: var(--qw-surface);
  border: 1px solid var(--qw-border-light);
  border-radius: var(--qw-radius-lg);
  padding: var(--qw-space-xl);
  text-align: center;
}

.qw-trust-banner h4 {
  font-size: 0.75rem;
  color: var(--qw-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--qw-space-lg);
  font-weight: 500;
}

.qw-trust-sources {
  display: flex;
  justify-content: center;
  gap: var(--qw-space-xl);
  flex-wrap: wrap;
  margin-bottom: var(--qw-space-lg);
}

.qw-trust-source {
  font-size: 0.85rem;
  color: var(--qw-text-secondary);
  font-weight: 500;
  opacity: 0.75;
  letter-spacing: 0.02em;
}

.qw-trust-confidence {
  font-size: 0.85rem;
  color: var(--qw-text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* ===== 订阅区域 ===== */
.qw-subscribe {
  text-align: center;
  padding: var(--qw-space-2xl) 0 var(--qw-space-3xl);
}

.qw-subscribe h2 {
  font-family: 'Noto Serif SC', 'STSong', 'Songti SC', Georgia, var(--qw-serif), serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: var(--qw-space-sm);
  letter-spacing: 0.04em;
}

.qw-subscribe p {
  color: var(--qw-text-muted);
  margin-bottom: var(--qw-space-xl);
  font-size: 0.95rem;
}

.qw-subscribe-form {
  display: flex;
  gap: var(--qw-space-sm);
  max-width: 440px;
  margin: 0 auto;
}

.qw-subscribe-form input {
  flex: 1;
  padding: 14px 20px;
  border: 1.5px solid var(--qw-border);
  border-radius: var(--qw-radius-md);
  font-size: 0.9rem;
  background: var(--qw-surface);
  color: var(--qw-text);
  outline: none;
  transition: all 0.3s ease;
  letter-spacing: 0.015em;
}

.qw-subscribe-form input:focus {
  border-color: var(--qw-gold);
  box-shadow: 0 0 0 3px var(--qw-gold-subtle);
}

.qw-subscribe-form .qw-btn {
  flex-shrink: 0;
  padding: 14px 28px;
}

/* ===== 骨架屏 ===== */
.qw-skeleton {
  background: linear-gradient(90deg,
    var(--qw-surface-subtle) 25%,
    var(--qw-border-light) 50%,
    var(--qw-surface-subtle) 75%
  );
  background-size: 200% 100%;
  animation: qwShimmer 1.5s ease-in-out infinite;
  border-radius: var(--qw-radius-md);
}

@keyframes qwShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== 滚动渐显 ===== */
.qw-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.qw-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 交错延迟 */
.qw-reports-grid.qw-reveal .qw-report-card:nth-child(1) { transition-delay: 0s; }
.qw-reports-grid.qw-reveal .qw-report-card:nth-child(2) { transition-delay: 0.1s; }
.qw-reports-grid.qw-reveal .qw-report-card:nth-child(3) { transition-delay: 0.2s; }
.qw-reports-grid.qw-reveal .qw-report-card:nth-child(4) { transition-delay: 0.3s; }
.qw-reports-grid.qw-reveal .qw-report-card:nth-child(5) { transition-delay: 0.4s; }
.qw-reports-grid.qw-reveal .qw-report-card:nth-child(6) { transition-delay: 0.5s; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .qw-hero { padding: var(--qw-space-2xl) 0 var(--qw-space-xl); }
  .qw-hero-brand { font-size: 2rem; }
  .qw-hero-brand .gold { font-size: 1.15rem; }
  .qw-hero-sub { font-size: 0.95rem; }
  .qw-search-input { padding: 14px 18px; padding-right: 100px; }
  .qw-trust-num { font-size: 1.8rem; }
  .qw-trust-strip { gap: var(--qw-space-lg); }
  .qw-report-card { padding: 20px 24px; }
  .qw-report-card h3 { font-size: 1.05rem; }
  .qw-subscribe-form { flex-direction: column; padding: 0 var(--qw-space-md); }
}

@media (max-width: 480px) {
  .qw-hero-brand { font-size: 1.6rem; }
  .qw-hero-brand .gold { font-size: 1rem; }
}

/* ===== 宏观脉搏 ===== */
.qw-macro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--qw-space-lg);
}
.qw-macro-card {
  background: var(--qw-surface);
  border: 1px solid var(--qw-border-light);
  border-radius: 8px;
  padding: var(--qw-space-lg);
  text-align: center;
}
.qw-macro-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--qw-text);
  font-family: var(--qw-mono), monospace;
}
.qw-macro-label {
  font-size: 0.8rem;
  color: var(--qw-text-muted);
  margin-top: var(--qw-space-xs);
}
.qw-macro-note {
  font-size: 0.7rem;
  color: var(--qw-text-muted);
  opacity: 0.7;
  margin-top: 2px;
}

/* ===== 四层穿透法 ===== */
.qw-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--qw-space-lg);
  margin-bottom: var(--qw-space-lg);
}
.qw-method-card {
  background: var(--qw-surface);
  border: 1px solid var(--qw-border-light);
  border-radius: 8px;
  padding: var(--qw-space-lg);
  position: relative;
}
.qw-method-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--qw-gold);
  opacity: 0.25;
  position: absolute;
  top: 8px;
  right: 12px;
  font-family: var(--qw-mono), monospace;
}
.qw-method-card h3 {
  font-family: 'Noto Serif SC', 'STSong', 'Songti SC', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--qw-text);
  margin: 0 0 var(--qw-space-sm) 0;
}
.qw-method-card p {
  font-size: 0.85rem;
  color: var(--qw-text-muted);
  margin: 0;
  line-height: 1.6;
}
.qw-method-source {
  font-size: 0.8rem;
  color: var(--qw-text-muted);
  text-align: center;
  padding-top: var(--qw-space-md);
  border-top: 1px solid var(--qw-border-light);
}
.qw-method-source a {
  color: var(--qw-gold);
  text-decoration: none;
}
.qw-method-source a:hover {
  text-decoration: underline;
}

/* ===== 数据来源 ===== */
.qw-source-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--qw-space-sm);
  margin-bottom: var(--qw-space-lg);
}
.qw-source-link {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--qw-border-light);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--qw-text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}
.qw-source-link:hover {
  border-color: var(--qw-gold);
  color: var(--qw-gold);
  background: rgba(212, 175, 55, 0.05);
}
.qw-source-disclaimer {
  font-size: 0.75rem;
  color: var(--qw-text-muted);
  opacity: 0.7;
  text-align: center;
}
.qw-source-disclaimer a {
  color: var(--qw-text-muted);
  text-decoration: underline;
}

/* ===== Section subtitle 链接样式 ===== */
.qw-section-subtitle a {
  color: var(--qw-gold);
  text-decoration: none;
}
.qw-section-subtitle a:hover {
  text-decoration: underline;
}
