/* 极点 · 强力 UI 视觉升级
   让界面变化更明显：更干净、更现代、更有层次 */

:root {
  --accent: #ff7a3d;
  --accent-2: #ff9f6b;
  --ink: #1c2533;
  --muted: #6d7d93;
  --bg: #f8fafc;
  --panel: #ffffff;
  --soft: #f1f5f9;
  --line: #e2e8f0;
  --radius: 18px;
  --shadow: 0 10px 30px -8px rgba(28, 37, 51, 0.12);
}

/* ===== 全局基础 ===== */
body {
  background: #f8fafc !important;
  color: #1c2533 !important;
  font-size: 15px !important;
}

/* ===== 导航栏 ===== */
.nav {
  height: 70px !important;
  background: rgba(255,255,255,0.9) !important;
  backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}

.brand {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #1c2533 !important;
}

.brand img {
  border-radius: 14px !important;
  box-shadow: 0 4px 12px rgba(255,122,61,0.25) !important;
}

.navlinks button {
  font-weight: 500 !important;
  color: #4a5568 !important;
  padding: 8px 14px !important;
  border-radius: 10px !important;
}

.navlinks button.active {
  background: #fff5f0 !important;
  color: #ff7a3d !important;
  font-weight: 600 !important;
}

.navlinks button.active:after {
  background: #ff7a3d !important;
  height: 3px !important;
}

/* ===== 按钮 ===== */
.btn, .pill {
  border-radius: 12px !important;
  font-weight: 600 !important;
  padding: 10px 18px !important;
  transition: all 0.2s ease !important;
}

.primary {
  background: linear-gradient(135deg, #ff8a4c, #ff7a3d) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(255,122,61,0.3) !important;
}

.primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(255,122,61,0.4) !important;
}

.ghost {
  background: #f1f5f9 !important;
  color: #4a5568 !important;
  border: 1px solid #e2e8f0 !important;
}

/* ===== 卡片全面升级 ===== */
.card, .topic, .qy-function-card, .sidebar-card, .product-card, .panel {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 16px rgba(28,37,51,0.06) !important;
  overflow: hidden !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.card:hover, .topic:hover, .qy-function-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 40px rgba(28,37,51,0.12) !important;
  border-color: #cbd5e1 !important;
}

.card-body, .content-grid .card-body {
  padding: 20px !important;
}

.card h3 {
  font-size: 17px !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
  color: #1c2533 !important;
  margin: 0 0 10px !important;
}

.card-excerpt {
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: #64748b !important;
}

.cover {
  height: 180px !important;
  object-fit: cover !important;
}

/* ===== 英雄区 ===== */
.hero-v2, .hero {
  border-radius: 24px !important;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d4a70 40%, #3d5f8a 100%) !important;
  box-shadow: 0 20px 50px rgba(30,58,95,0.25) !important;
  position: relative !important;
  overflow: hidden !important;
}

.hero-v2::before, .hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: radial-gradient(ellipse at 90% 10%, rgba(255,122,61,0.2), transparent 50%) !important;
  pointer-events: none !important;
}

.hero-v2 h1, .hero h1 {
  font-size: 36px !important;
  font-weight: 700 !important;
  letter-spacing: -0.5px !important;
  color: #ffffff !important;
}

.hero-v2 p, .hero p {
  font-size: 15px !important;
  color: rgba(255,255,255,0.88) !important;
  line-height: 1.7 !important;
}

/* ===== 分区标题 ===== */
.section-head h2 {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #1c2533 !important;
}

.section-head .more {
  color: #ff7a3d !important;
  font-weight: 600 !important;
}

/* ===== 主题分类 ===== */
.topics {
  gap: 16px !important;
}

.topic {
  border-radius: 16px !important;
  padding: 20px !important;
  background: #ffffff !important;
}

.topic strong {
  font-size: 15px !important;
  font-weight: 600 !important;
}

/* ===== 搜索 ===== */
.search {
  background: #f1f5f9 !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
}

.search:focus-within {
  background: #fff !important;
  border-color: #ff7a3d !important;
  box-shadow: 0 0 0 3px rgba(255,122,61,0.15) !important;
}

/* ===== 抽屉 ===== */
.drawer {
  background: #ffffff !important;
  border-radius: 0 28px 28px 0 !important;
  box-shadow: 40px 0 100px rgba(0,0,0,0.15) !important;
}

.drawer .dditem {
  border-radius: 12px !important;
  padding: 14px 16px !important;
  font-size: 15.5px !important;
}

.drawer .dditem:hover, .drawer .dditem.active {
  background: #fff5f0 !important;
  color: #ff7a3d !important;
}

/* ===== 公告 ===== */
.announcement {
  background: #fffaf7 !important;
  border: 1px solid #ffe4d4 !important;
  border-radius: 16px !important;
  padding: 14px 18px !important;
}

/* ===== 页脚 ===== */
.footer {
  background: transparent !important;
  color: #64748b !important;
  padding: 40px 0 !important;
}

/* ===== 移动端强化 ===== */
@media (max-width: 900px) {
  .nav {
    height: 62px !important;
    background: rgba(255,255,255,0.95) !important;
  }
  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .hero-v2 h1, .hero h1 {
    font-size: 28px !important;
  }
  .card h3 {
    font-size: 16px !important;
  }
  .topics {
    gap: 12px !important;
  }
}

/* ===== 深色模式 ===== */
.dark body {
  background: #0f1419 !important;
  color: #e2e8f0 !important;
}
.dark .nav {
  background: rgba(15,20,25,0.9) !important;
  border-bottom-color: #1e2832 !important;
}
.dark .card, .dark .topic, .dark .drawer, .dark .panel {
  background: #1a2129 !important;
  border-color: #2d3a4a !important;
}
.dark .ghost {
  background: #242d38 !important;
  color: #cbd5e1 !important;
}
