/* 首页增强样式 - 知识速查优先，板块概念精简归类 */

/* === 奇火AI顶部Banner === */
.qihuo-banner {
  background: linear-gradient(135deg, #1a0a0a 0%, #2d1010 50%, #1a0a0a 100%);
  border-top: 1px solid rgba(229,62,62,0.3);
  border-bottom: 1px solid rgba(229,62,62,0.3);
  padding: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
}
.qihuo-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 500px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(229,62,62,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.qihuo-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.qihuo-banner-left {
  flex: 1;
}
.qihuo-banner-tag {
  display: inline-block;
  background: rgba(229,62,62,0.2);
  border: 1px solid rgba(229,62,62,0.4);
  color: #f56565;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
}
.qihuo-banner-left strong {
  display: block;
  font-size: 18px;
  color: #fff;
  margin-bottom: 6px;
}
.qihuo-banner-left p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 520px;
}
.qihuo-banner-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.qihuo-btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(220,38,38,0.4);
  white-space: nowrap;
}
.qihuo-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(220,38,38,0.5);
  background: linear-gradient(135deg, #ef4444, #f87171);
}
.qihuo-btn-secondary {
  display: inline-block;
  padding: 10px 24px;
  background: transparent;
  color: #f56565;
  text-decoration: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border: 1.5px solid rgba(229,62,62,0.4);
  transition: all 0.2s;
  white-space: nowrap;
}
.qihuo-btn-secondary:hover {
  background: rgba(229,62,62,0.1);
  border-color: #f56565;
}
@media (max-width: 768px) {
  .qihuo-banner-inner { flex-direction: column; text-align: center; }
  .qihuo-banner-left p { max-width: 100%; }
  .qihuo-banner-right { flex-direction: row; width: 100%; }
  .qihuo-btn-primary, .qihuo-btn-secondary { flex: 1; }
}

/* === Hero V2 === */
.hero-v2 {
  padding: 80px 24px 40px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-v2::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(229,62,62,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-v2::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  align-items: center;
}
.hero-text h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
  background: linear-gradient(90deg, #fff, #f56565);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  color: #e2e8f0;
  margin-bottom: 16px;
}
.hero-desc {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.8;
  max-width: 560px;
}
.hero-stats {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hero-stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.3s, border-color 0.3s;
}
.hero-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(229,62,62,0.4);
}
.hero-num {
  font-size: 36px;
  font-weight: 800;
  color: #f56565;
  line-height: 1;
}
.hero-unit {
  font-size: 18px;
  color: #f56565;
  font-weight: 600;
}
.hero-label {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 6px;
}
.hero-update {
  max-width: 1000px;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

/* === 热门知识点 === */
.hot-topics {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 0;
}
.hot-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hot-tag {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--tc, var(--accent));
  border: 1.5px solid var(--tc, var(--accent));
  background: transparent;
  transition: all 0.2s;
}
.hot-tag:hover {
  background: var(--tc, var(--accent));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* === 通用区块 === */
.kp-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
  border-bottom: 1px solid var(--border);
}
.kp-section:last-of-type { border-bottom: none; }
.sec-header {
  text-align: center;
  margin-bottom: 28px;
}
.sec-header h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.sec-header p {
  font-size: 13px;
  color: var(--text3);
}

/* === 知识速查卡片 === */
.kn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.kn-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.kn-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border-color: var(--accent);
}
.kn-card-head {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #c53030, #e53e3e);
  letter-spacing: 1px;
}
.kn-card-body {
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kn-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  text-decoration: none;
  color: var(--text2);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  transition: all 0.2s;
}
.kn-tag:hover {
  background: rgba(229,62,62,0.12);
  border-color: var(--accent);
  color: var(--accent);
}
.kn-tag-off {
  opacity: 0.4;
  cursor: default;
}

/* === 行业板块卡片 === */
.bk-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.bk-card {
  background: var(--card);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.bk-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.5);
}
.bk-card-head {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #991b1b, #dc2626);
  letter-spacing: 0.5px;
}
.bk-card-body {
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bk-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  text-decoration: none;
  color: #f56565;
  border: 1px solid rgba(239,68,68,0.3);
  background: rgba(239,68,68,0.06);
  transition: all 0.2s;
}
.bk-tag:hover {
  background: rgba(239,68,68,0.2);
  border-color: #f56565;
  transform: translateY(-1px);
}
.bk-tag-off {
  opacity: 0.4;
  cursor: default;
}

/* === 概念题材卡片 === */
.gn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gn-card {
  background: var(--card);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.gn-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.5);
}
.gn-card-head {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  letter-spacing: 0.5px;
}
.gn-card-body {
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gn-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  text-decoration: none;
  color: #3b82f6;
  border: 1px solid rgba(59,130,246,0.3);
  background: rgba(59,130,246,0.06);
  transition: all 0.2s;
}
.gn-tag:hover {
  background: rgba(59,130,246,0.2);
  border-color: #3b82f6;
  transform: translateY(-1px);
}
.gn-tag-off {
  opacity: 0.4;
  cursor: default;
}

/* === 推广区 === */
.qihuo-sec {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}
.qihuo-box {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 1px solid rgba(229,62,62,0.3);
  border-radius: 16px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.qihuo-info h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.qihuo-info p {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 6px;
}
.qihuo-feat {
  font-size: 13px;
  color: #64748b !important;
  margin-top: 12px !important;
}
.qihuo-price {
  font-size: 15px;
  color: #e2e8f0;
  margin-top: 12px;
}
.qihuo-btn {
  flex-shrink: 0;
  padding: 14px 32px;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(220,38,38,0.4);
}
.qihuo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(220,38,38,0.5);
  background: linear-gradient(135deg, #ef4444, #f87171);
}

/* === Footer === */
.ft-ad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.ft-ad-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.ft-ad-icon {
  font-size: 24px;
}
.ft-ad-item div { flex: 1; }
.ft-ad-item b {
  font-size: 14px;
  color: var(--text);
  display: block;
}
.ft-ad-item p {
  font-size: 12px;
  color: var(--text3);
  margin-top: 2px;
}
.ft-ad-item a {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 12px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  transition: all 0.2s;
}
.ft-ad-item a:hover {
  background: var(--accent);
  color: #fff;
}
.ft-inner {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text3);
}

/* === 响应式 === */
@media (max-width: 1024px) {
  .bk-grid { grid-template-columns: repeat(3, 1fr); }
  .gn-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-text h1 { font-size: 24px; }
  .hero-desc { max-width: 100%; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .kn-grid { grid-template-columns: 1fr 1fr; }
  .bk-grid { grid-template-columns: 1fr 1fr; }
  .gn-grid { grid-template-columns: 1fr 1fr; }
  .qihuo-box { flex-direction: column; text-align: center; padding: 24px; }
  .qihuo-btn { width: 100%; text-align: center; }
  .ft-ad { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .kn-grid, .bk-grid, .gn-grid { grid-template-columns: 1fr; }
  .hero-stat { padding: 14px 12px; }
  .hero-num { font-size: 28px; }
}
