/* ==========================================================================
 * dawdler.club 首页 · 科技风主题 v3 (tech.css)
 * 叠加在 assets/css/main.css(BootstrapMade QuickStart)之上,
 * 只作用于 body.index-page,不影响文档站点(Docusaurus)的样式。
 *
 * 视觉体系「DEEP-SPACE OPS CONSOLE」:
 *   深空蓝黑底 + 电子栅格 + 极光光晕 + 玻璃拟态 + 霓虹青蓝渐变
 *   + 装饰性英文技术标语 + 扫描光束 + HUD 边框 + 等宽数据仪表
 * ========================================================================== */

/* --------------------------------------------------------------------------
 * 0. 设计变量
 * -------------------------------------------------------------------------- */
body.index-page {
  --background-color: #04060e;
  --default-color: #9db2c7;
  --heading-color: #eef4ff;
  --accent-color: #5cf2d5;
  --surface-color: #0a1220;
  --contrast-color: #04121a;
  --nav-color: #c3d3e5;
  --nav-hover-color: #5cf2d5;
  --nav-mobile-background-color: #04060e;
  --nav-dropdown-background-color: #0a1420;
  --nav-dropdown-color: #c3d3e5;
  --nav-dropdown-hover-color: #5cf2d5;
  --light-background-color: transparent;
  --light-background-secondary-color: rgba(10, 20, 32, 0.35);
  /* 主题色板 */
  --daw-cyan: #5cf2d5;
  --daw-blue: #5b8dff;
  --daw-violet: #a47bff;
  --daw-ink: #04060e;
  --daw-font: 'Space Grotesk', 'Nunito', sans-serif;
  --daw-mono: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace;

  background-color: var(--background-color);
  color: var(--default-color);
  overflow-x: hidden;
}

body.index-page .main {
  position: relative;
  z-index: 1;
}

/* 通用等宽英文标签(daw-en) */
body.index-page .daw-en {
  font-family: var(--daw-mono);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(92, 242, 213, 0.38);
  font-size: 11px;
}

/* --------------------------------------------------------------------------
 * 1. 全局背景氛围:电子栅格 + 极光光晕
 * -------------------------------------------------------------------------- */
body.index-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(92, 242, 213, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 141, 255, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 95% 80% at 50% 0%, #000 25%, transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 95% 80% at 50% 0%, #000 25%, transparent 88%);
}

body.index-page::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 70% 18%, rgba(91, 141, 255, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 12% 12%, rgba(92, 242, 213, 0.11) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 108%, rgba(164, 123, 255, 0.12) 0%, transparent 60%);
}

/* --------------------------------------------------------------------------
 * 2. 头部导航:玻璃拟态驾驶舱
 * -------------------------------------------------------------------------- */
body.index-page .header {
  background-color: rgba(5, 7, 15, 0.55);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid rgba(92, 242, 213, 0.10);
}

body.index-page.scrolled .header {
  background-color: rgba(5, 7, 15, 0.88);
  border-bottom-color: rgba(92, 242, 213, 0.2);
}

body.index-page .header .logo h1,
body.index-page .sitename {
  color: var(--heading-color);
  font-family: var(--daw-font);
  letter-spacing: 0.05em;
  text-shadow: 0 0 22px rgba(92, 242, 213, 0.5);
}

body.index-page .header .logo img {
  border-radius: 6px;
  box-shadow: 0 0 18px rgba(92, 242, 213, 0.3);
}

body.index-page .header .btn-getstarted,
body.index-page .header .btn-getstarted:focus {
  color: #04121a;
  background: linear-gradient(135deg, #5cf2d5, #5b8dff);
  border: 1px solid rgba(92, 242, 213, 0.5);
  box-shadow: 0 0 18px rgba(92, 242, 213, 0.35);
}

body.index-page .header .btn-getstarted:hover,
body.index-page .header .btn-getstarted:focus:hover {
  color: #04121a;
  background: linear-gradient(135deg, #7ff7e2, #7da5ff);
  box-shadow: 0 0 28px rgba(92, 242, 213, 0.6);
}

body.index-page .header .lang-switch-wrapper {
  color: var(--nav-color);
}

body.index-page .header .lang-switch-wrapper .lang-menu {
  background: rgba(10, 20, 32, 0.96);
  border: 1px solid rgba(120, 160, 220, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 18px rgba(91, 141, 255, 0.12);
}

/* --------------------------------------------------------------------------
 * 3. Hero 区
 * -------------------------------------------------------------------------- */
body.index-page .hero {
  min-height: 88vh;
  padding-top: 128px;
  padding-bottom: 34px;
  display: flex;
  align-items: center;
}

@media (max-width: 991px) {
  body.index-page .hero {
    padding-top: 118px;
    min-height: 0;
  }
}

body.index-page .hero .container.content {
  width: 100%;
}

body.index-page .daw-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: center;
}

@media (max-width: 991px) {
  body.index-page .daw-hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

body.index-page .daw-hero-left {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

body.index-page .hero h1 {
  font-family: var(--daw-font);
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--heading-color);
  text-shadow: 0 0 36px rgba(91, 141, 255, 0.4);
  text-align: left;
  margin-bottom: 8px;
}

body.index-page .hero h1 span {
  background: linear-gradient(92deg, #7ff7e2 5%, #5cf2d5 35%, #5b8dff 75%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #5cf2d5;
  filter: drop-shadow(0 0 22px rgba(92, 242, 213, 0.55));
}

body.index-page .daw-tagline {
  margin: 10px 0 4px 0;
  font-size: 18px;
  color: #8fa6bc;
  letter-spacing: 0.16em;
}

/* 任务清单:紧凑两列 */
body.index-page .daw-missions {
  max-width: 640px;
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  body.index-page .daw-missions {
    grid-template-columns: 1fr 1fr;
    column-gap: 34px;
  }
}

body.index-page .daw-missions li {
  color: #b7c7d9;
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(120, 160, 220, 0.14);
}

body.index-page .daw-missions li:nth-last-child(-n+2) {
  border-bottom: none;
}

body.index-page .daw-missions li i {
  color: var(--daw-cyan);
  text-shadow: 0 0 12px rgba(92, 242, 213, 0.8);
}

body.index-page .daw-missions li span {
  display: inline;
}

body.index-page .daw-missions li.daw-mission-wide {
  grid-column: 1 / -1;
}

/* CTA 按钮组 */
body.index-page .daw-cta {
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

body.index-page .hero .btn-get-started {
  font-family: var(--daw-font);
  color: #04121a;
  background: linear-gradient(135deg, #5cf2d5 0%, #5b8dff 100%);
  border-radius: 12px;
  padding: 13px 40px;
  letter-spacing: 0.1em;
  font-weight: 700;
  border: 1px solid rgba(92, 242, 213, 0.65);
  box-shadow:
    0 0 26px rgba(92, 242, 213, 0.45),
    0 10px 32px rgba(0, 0, 0, 0.4),
    inset 0 0 14px rgba(255, 255, 255, 0.16);
  position: relative;
  overflow: hidden;
}

body.index-page .hero .btn-get-started::after {
  content: '';
  position: absolute;
  top: 0;
  left: -85%;
  width: 52%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: daw-sweep 3.4s ease-in-out infinite;
}

@keyframes daw-sweep {
  0%   { left: -85%; }
  55%  { left: 135%; }
  100% { left: 135%; }
}

body.index-page .hero .btn-get-started:hover {
  color: #04121a;
  background: linear-gradient(135deg, #7ff7e2 0%, #7da5ff 100%);
  box-shadow: 0 0 38px rgba(92, 242, 213, 0.75), 0 12px 36px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}

body.index-page .btn-github {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  border-radius: 12px;
  border: 1px solid rgba(195, 211, 229, 0.26);
  color: #c3d3e5;
  font-family: var(--daw-font);
  font-weight: 600;
  letter-spacing: 0.08em;
  background: rgba(12, 22, 36, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

body.index-page .btn-github:hover {
  color: #eef4ff;
  border-color: rgba(92, 242, 213, 0.6);
  box-shadow: 0 0 26px rgba(92, 242, 213, 0.28);
  transform: translateY(-2px);
}

/* 状态灯胶囊 */
body.index-page .daw-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(92, 242, 213, 0.35);
  background: rgba(10, 20, 32, 0.72);
  color: #5cf2d5;
  font-family: var(--daw-mono);
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(92, 242, 213, 0.2), inset 0 0 14px rgba(92, 242, 213, 0.06);
}

body.index-page .daw-status .daw-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.95);
  animation: daw-pulse 2s ease-in-out infinite;
}

@keyframes daw-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

/* Hero 右侧终端辉光 */
body.index-page .daw-hero-right {
  position: relative;
}

body.index-page .daw-hero-right::before {
  content: '';
  position: absolute;
  inset: -34px -28px;
  z-index: -1;
  background:
    radial-gradient(circle at 30% 25%, rgba(92, 242, 213, 0.16) 0%, transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(91, 141, 255, 0.18) 0%, transparent 58%);
  filter: blur(6px);
}

/* --------------------------------------------------------------------------
 * 4. 终端窗口:悬浮 + 打字光标
 * -------------------------------------------------------------------------- */
body.index-page .daw-terminal {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(120, 160, 220, 0.24);
  background: linear-gradient(175deg, rgba(10, 18, 30, 0.96), rgba(6, 12, 20, 0.98));
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 42px rgba(91, 141, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  text-align: left;
  animation: daw-float 7s ease-in-out infinite;
}

@keyframes daw-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

body.index-page .daw-terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  background: linear-gradient(180deg, rgba(22, 36, 56, 0.95), rgba(13, 23, 38, 0.95));
  border-bottom: 1px solid rgba(120, 160, 220, 0.18);
}

body.index-page .daw-tl-red,
body.index-page .daw-tl-yellow,
body.index-page .daw-tl-green {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

body.index-page .daw-tl-red    { background: #ff5f57; box-shadow: 0 0 8px rgba(255, 95, 87, 0.6); }
body.index-page .daw-tl-yellow { background: #febc2e; box-shadow: 0 0 8px rgba(254, 188, 46, 0.6); }
body.index-page .daw-tl-green  { background: #28c840; box-shadow: 0 0 8px rgba(40, 200, 64, 0.6); }

body.index-page .daw-terminal-title {
  margin-left: 10px;
  color: #7d92a8;
  font-family: var(--daw-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

body.index-page .daw-terminal-body {
  padding: 20px 22px 24px 22px;
  color: #cde3d8;
  font-family: var(--daw-mono);
  font-size: 13.5px;
  line-height: 1.85;
}

body.index-page .daw-prompt {
  color: #5cf2d5;
  margin-right: 8px;
  text-shadow: 0 0 12px rgba(92, 242, 213, 0.75);
}

body.index-page .daw-terminal-body .daw-cursor {
  color: #5cf2d5;
  animation: daw-blink 1.1s step-end infinite;
}

@keyframes daw-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

body.index-page .daw-terminal-body .daw-out-ok   { color: #7cf5c8; }
body.index-page .daw-terminal-body .daw-out-dim  { color: #6d8794; }
body.index-page .daw-terminal-body .daw-out-warn { color: #fbbf24; }

/* --------------------------------------------------------------------------
 * 5. HUD 分隔带:数据仪表条(全宽)
 * -------------------------------------------------------------------------- */
body.index-page .daw-hud {
  position: relative;
  z-index: 1;
  padding: 22px 0 30px 0;
}

body.index-page .daw-hud-inner {
  border-top: 1px solid rgba(92, 242, 213, 0.22);
  border-bottom: 1px solid rgba(92, 242, 213, 0.22);
  background:
    linear-gradient(180deg, rgba(10, 20, 32, 0.55), rgba(6, 12, 22, 0.7));
  box-shadow: inset 0 0 30px rgba(91, 141, 255, 0.06);
  padding: 20px 26px;
}

body.index-page .daw-hud-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 991px) {
  body.index-page .daw-hud-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

body.index-page .daw-hud-item {
  position: relative;
  padding-left: 16px;
}

body.index-page .daw-hud-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #5cf2d5, #5b8dff);
  box-shadow: 0 0 12px rgba(92, 242, 213, 0.6);
}

body.index-page .daw-hud-item b {
  display: block;
  font-family: var(--daw-font);
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 700;
  color: #eef4ff;
  text-shadow: 0 0 18px rgba(91, 141, 255, 0.45);
}

body.index-page .daw-hud-item span {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: #7d92a8;
  letter-spacing: 0.1em;
}

/* 仪表带左侧英文标语(大屏显示) */
body.index-page .daw-hud .daw-en-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

@media (max-width: 767px) {
  body.index-page .daw-hud .daw-en-line .daw-en:last-child { display: none; }
}

/* --------------------------------------------------------------------------
 * 6. 区块通用:标题 + kicker + 英文装饰
 * -------------------------------------------------------------------------- */
body.index-page .section-title h2 {
  color: var(--heading-color);
  font-family: var(--daw-font);
  letter-spacing: 0.06em;
  text-shadow: 0 0 26px rgba(91, 141, 255, 0.32);
}

body.index-page .section-title h2::after {
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #5cf2d5 30%, #5b8dff 70%, transparent);
  box-shadow: 0 0 14px rgba(92, 242, 213, 0.85);
}

body.index-page .section-title p {
  color: #8fa6bc;
}

body.index-page .daw-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--daw-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #5cf2d5;
  opacity: 0.9;
}

/* 区块大标题旁的英文标语 */
body.index-page .section-title .daw-title-en {
  display: block;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
 * 7. Feature 卡片:玻璃 + 霓虹能量线 + HUD 角标 + 序号
 * -------------------------------------------------------------------------- */
/* .light-background 的浅色底换成深空色(该类只重设 --background-color) */
body.index-page .light-background,
body.index-page section.light-background {
  --background-color: transparent;
}

body.index-page .services {
  padding-top: 64px;
}

body.index-page .services .service-item {
  background: linear-gradient(160deg, rgba(18, 30, 48, 0.72), rgba(8, 16, 26, 0.88));
  border: 1px solid rgba(120, 160, 220, 0.16);
  border-radius: 16px;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  position: relative;
  overflow: hidden;
  transition: transform 0.38s ease, border-color 0.38s ease, box-shadow 0.38s ease;
  padding: 26px 26px 26px 30px;
}

/* 顶部能量线 */
body.index-page .services .service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--daw-neon, #5cf2d5), transparent);
  opacity: 0.5;
  transition: opacity 0.38s ease;
}

/* 右上角 HUD 角标 */
body.index-page .services .service-item::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 12px;
  width: 7px;
  height: 7px;
  border-top: 2px solid color-mix(in srgb, var(--daw-neon, #5cf2d5), transparent 35%);
  border-right: 2px solid color-mix(in srgb, var(--daw-neon, #5cf2d5), transparent 35%);
  opacity: 0.65;
  transition: opacity 0.38s ease;
}

/* 卡片序号(SPEC-01 等) */
body.index-page .services .service-item .daw-idx {
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-family: var(--daw-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(125, 146, 168, 0.4);
  text-transform: uppercase;
}

body.index-page .services .service-item.item-cyan   { --daw-neon: #22d3ee; }
body.index-page .services .service-item.item-orange { --daw-neon: #fb923c; }
body.index-page .services .service-item.item-teal   { --daw-neon: #34d399; }
body.index-page .services .service-item.item-red    { --daw-neon: #f87171; }
body.index-page .services .service-item.item-indigo { --daw-neon: #818cf8; }
body.index-page .services .service-item.item-pink   { --daw-neon: #f472b6; }

body.index-page .services .service-item:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--daw-neon, #5cf2d5), transparent 42%);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.5),
    0 0 30px color-mix(in srgb, var(--daw-neon, #5cf2d5), transparent 68%);
}

body.index-page .services .service-item:hover::before,
body.index-page .services .service-item:hover::after {
  opacity: 1;
}

body.index-page .services .service-item .icon {
  border-radius: 12px;
}

body.index-page .services .service-item h3 {
  color: var(--heading-color);
  font-family: var(--daw-font);
}

body.index-page .services .service-item p {
  color: #8fa6bc;
}

/* 模块徽章行(卡片底部标签) */
body.index-page .daw-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

body.index-page .daw-badges span {
  font-family: var(--daw-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: #a9bfd4;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(120, 160, 220, 0.22);
  background: rgba(12, 22, 36, 0.5);
  white-space: nowrap;
}

body.index-page .daw-badges span:hover {
  border-color: rgba(92, 242, 213, 0.55);
  color: #cde8ff;
  text-shadow: 0 0 10px rgba(92, 242, 213, 0.5);
}

/* --------------------------------------------------------------------------
 * 8. 产品大卡(dawdler-boot / dawdler-series):HUD 双卡
 * -------------------------------------------------------------------------- */
body.index-page .daw-products {
  padding: 76px 0 26px 0;
}

/* 产品大卡:两卡上下竖排、整行铺满(与英文版一致,长文阅读更舒展) */
body.index-page .daw-products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

body.index-page .daw-card {
  position: relative;
  border: 1px solid rgba(120, 160, 220, 0.2);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(16, 27, 44, 0.78), rgba(7, 14, 24, 0.9));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 30px 30px 26px 34px;
  overflow: hidden;
  transition: transform 0.38s ease, border-color 0.38s ease, box-shadow 0.38s ease;
}

/* 左侧霓虹竖线 */
body.index-page .daw-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--daw-neon, #5cf2d5), rgba(91, 141, 255, 0.5) 55%, transparent);
  box-shadow: 0 0 16px rgba(92, 242, 213, 0.5);
}

/* 右上角 HUD 角括号 */
body.index-page .daw-card::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 14px;
  width: 12px;
  height: 12px;
  border-top: 2px solid color-mix(in srgb, var(--daw-neon, #5cf2d5), transparent 30%);
  border-right: 2px solid color-mix(in srgb, var(--daw-neon, #5cf2d5), transparent 30%);
  opacity: 0.7;
}

body.index-page .daw-card.daw-card-boot    { --daw-neon: #5cf2d5; }
body.index-page .daw-card.daw-card-series  { --daw-neon: #5b8dff; }

body.index-page .daw-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--daw-neon, #5cf2d5), transparent 50%);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.5),
    0 0 34px color-mix(in srgb, var(--daw-neon, #5cf2d5), transparent 70%);
}

body.index-page .daw-card .daw-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

body.index-page .daw-card .daw-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 22px;
  color: var(--daw-neon, #5cf2d5);
  border: 1px solid color-mix(in srgb, var(--daw-neon, #5cf2d5), transparent 55%);
  background: color-mix(in srgb, var(--daw-neon, #5cf2d5), transparent 90%);
  text-shadow: 0 0 12px color-mix(in srgb, var(--daw-neon, #5cf2d5), transparent 20%);
  box-shadow: 0 0 16px color-mix(in srgb, var(--daw-neon, #5cf2d5), transparent 75%);
}

body.index-page .daw-card h2 {
  color: var(--heading-color);
  font-family: var(--daw-font);
  font-size: 28px;
  letter-spacing: 0.04em;
  margin: 0;
  text-shadow: 0 0 20px color-mix(in srgb, var(--daw-neon, #5cf2d5), transparent 72%);
}

body.index-page .daw-card .daw-card-en {
  display: inline-block;
  margin-top: 4px;
}

body.index-page .daw-card p {
  color: #9fb3c8;
  margin: 14px 0 10px 0;
  line-height: 1.85;
}

body.index-page .daw-card .daw-badges {
  margin-top: 12px;
}

body.index-page .daw-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 9px 22px;
  border-radius: 10px;
  font-family: var(--daw-font);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.08em;
  color: var(--daw-neon, #5cf2d5);
  border: 1px solid color-mix(in srgb, var(--daw-neon, #5cf2d5), transparent 50%);
  background: color-mix(in srgb, var(--daw-neon, #5cf2d5), transparent 92%);
  transition: all 0.3s ease;
}

body.index-page .daw-card .read-more:hover {
  color: #04121a;
  background: var(--daw-neon, #5cf2d5);
  box-shadow: 0 0 24px color-mix(in srgb, var(--daw-neon, #5cf2d5), transparent 45%);
  text-shadow: none;
}

body.index-page .daw-card .read-more i {
  margin-left: 4px;
  transition: transform 0.3s ease;
}

body.index-page .daw-card .read-more:hover i {
  transform: translateX(4px);
}

/* maven 依赖代码行 */
body.index-page .daw-maven {
  margin: 16px 0 4px 0;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(120, 160, 220, 0.18);
  background: rgba(5, 10, 18, 0.8);
  font-family: var(--daw-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #8fb6c9;
  overflow-x: auto;
  white-space: nowrap;
}

body.index-page .daw-maven .daw-prompt {
  margin-right: 6px;
}

body.index-page .daw-maven .daw-out-dim { color: #6d8794; }
body.index-page .daw-maven .daw-out-ok  { color: #7cf5c8; }

/* --------------------------------------------------------------------------
 * 9. Contact 区
 * -------------------------------------------------------------------------- */
body.index-page .contact .info-item {
  background: linear-gradient(160deg, rgba(18, 30, 48, 0.72), rgba(8, 16, 26, 0.88));
  border: 1px solid rgba(120, 160, 220, 0.16);
  border-radius: 16px;
  box-shadow: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

body.index-page .contact .info-item:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 242, 213, 0.42);
  box-shadow: 0 0 28px rgba(92, 242, 213, 0.2);
}

body.index-page .contact .info-item h3 {
  color: var(--heading-color);
  font-family: var(--daw-font);
}

/* 联络区下方英文标语 */
body.index-page .daw-contact-en {
  text-align: center;
  margin-top: 34px;
}

/* --------------------------------------------------------------------------
 * 10. 页脚
 * -------------------------------------------------------------------------- */
body.index-page .footer {
  background-color: #03050b;
  border-top: 1px solid rgba(92, 242, 213, 0.12);
  color: #7d92a8;
  position: relative;
}

body.index-page .footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 4%, #5cf2d5 30%, #5b8dff 70%, transparent 96%);
  box-shadow: 0 0 18px rgba(92, 242, 213, 0.7);
}

body.index-page .footer .footer-top {
  padding-top: 44px;
}

body.index-page .footer .footer-top .text-center.fs-5 {
  font-family: var(--daw-font);
  color: var(--heading-color);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 15px !important;
  text-shadow: 0 0 16px rgba(91, 141, 255, 0.35);
}

body.index-page .footer .footer-about {
  margin-top: 14px;
  font-family: var(--daw-mono);
  letter-spacing: 0.08em;
  /* 链接纵向排布,移动端不窜行 */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* 大屏恢复横排:用间距分隔,不再用 &nbsp; */
@media (min-width: 992px) {
  body.index-page .footer .footer-about {
    flex-direction: row;
    justify-content: center;
    gap: 56px;
  }
}

body.index-page .footer .footer-about a,
body.index-page .footer a {
  color: #c3d3e5;
  position: relative;
}

body.index-page .footer .footer-about a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #5cf2d5, #5b8dff);
  transition: width 0.3s ease;
}

body.index-page .footer .footer-about a:hover::after {
  width: 100%;
}

body.index-page .footer a:hover {
  color: #5cf2d5;
}

body.index-page .footer .copyright {
  color: #647c93;
  border-top: 1px dashed rgba(120, 160, 220, 0.14);
  padding-top: 18px;
  margin-top: 26px !important;
}

body.index-page .footer .daw-footer-en {
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
 * 11. Preloader / 返回顶部 / 扫描光束
 * -------------------------------------------------------------------------- */
body.index-page #preloader {
  background-color: #04060e;
}

body.index-page .scroll-top {
  background: linear-gradient(135deg, #5cf2d5, #5b8dff);
  box-shadow: 0 0 20px rgba(92, 242, 213, 0.55);
}

/* 顶部掠过的扫描光束(页面级装饰,呼吸式) */
body.index-page .daw-beam {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 9;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(92, 242, 213, 0.8) 50%, transparent);
  background-size: 50% 100%;
  background-repeat: no-repeat;
  animation: daw-beam-run 9s linear infinite;
  opacity: 0.8;
}

@keyframes daw-beam-run {
  0%   { background-position: -60% 0; }
  100% { background-position: 160% 0; }
}

/* --------------------------------------------------------------------------
 * 12. 移动端导航
 * -------------------------------------------------------------------------- */
/* 手机/平板头部重排(≤1199px):模板把 logo、语言、Github、汉堡全塞一行,
 * 窄屏溢出把汉堡按钮裁掉"看不到"。重排为:
 * logo(左)→ 语言+Github(中,margin-left:auto 靠右)→ 汉堡(order 最大,贴最右)。
 * HTML 里 logo 自带的 me-auto 会把空隙塞在 logo 之后、把汉堡挤到中间,需一并抵消。 */
@media (max-width: 1199px) {
  body.index-page .header > .container-fluid {
    flex-wrap: wrap;
    row-gap: 6px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  body.index-page .header .logo {
    order: 1;
    /* 抵消 HTML 里写死的 me-auto,否则空隙全被塞在 logo 与汉堡之间 */
    margin-right: 0 !important;
  }

  body.index-page .header .lang-switch-wrapper {
    order: 4;
    margin: 0 10px 0 auto;
    padding: 4px 10px;
  }

  body.index-page .header .btn-getstarted {
    order: 5;
    margin: 0;
    padding: 6px 18px;
    font-size: 13px;
  }

  /* 汉堡最大 order,始终贴右边缘完整可见 */
  body.index-page .header .navmenu {
    order: 9;
  }

  body.index-page .header .navmenu .mobile-nav-toggle {
    margin-right: 0;
    font-size: 26px;
    color: #eef4ff;
    text-shadow: 0 0 14px rgba(92, 242, 213, 0.6);
  }

  body.index-page .header {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  body.index-page .hero {
    padding-top: 150px;
  }

  body.index-page .navmenu ul {
    background-color: rgba(5, 7, 15, 0.97);
  }
  body.index-page .navmenu a,
  body.index-page .navmenu a:focus {
    color: #c3d3e5;
  }
  body.index-page .navmenu a:hover,
  body.index-page .navmenu a:focus:hover,
  body.index-page .navmenu a.active {
    color: #5cf2d5;
  }
}

/* 菜单展开时关闭头部毛玻璃:backdrop-filter 会成为 fixed 后代的包含块,
 * 把全屏菜单(.mobile-nav-active .navmenu 的 inset:0)压扁在头部条内,
 * 导致菜单"窜行"显示不出来。展开期间菜单本来就铺满全屏,毛玻璃无意义。 */
body.index-page.mobile-nav-active .header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* 超窄屏(≤575px)紧凑模式:四件套(logo/语言/Github/汉堡)一行仍放不下时
 * 整体收缩 —— logo 与文字缩小、语言胶囊去掉地球图标并收紧内边距、
 * Github 按钮改短。保证一行容纳,汉堡始终贴最右完整可见。 */
@media (max-width: 575px) {
  body.index-page .header .lang-switch-wrapper {
    padding: 3px 6px;
    gap: 4px;
    margin: 0 6px 0 auto;
  }

  body.index-page .header .lang-switch-wrapper .bi-translate {
    display: none;
  }

  body.index-page .header .lang-switch-wrapper .lang-toggle {
    font-size: 11.5px;
  }

  body.index-page .header .lang-switch-wrapper .lang-toggle .bi-chevron-down {
    font-size: 9px;
  }

  body.index-page .header .btn-getstarted {
    padding: 6px 12px;
    font-size: 12px;
  }

  body.index-page .header .logo h1 {
    font-size: 22px;
  }

  body.index-page .header .logo img {
    max-height: 22px;
  }
}

/* 极窄(≤340px)时再让 Github 按钮退场,只留 logo+语言+汉堡。
 * 断点故意压到 340:桌面无滚动条时 390/375 视口不受影响,
 * 而 IAB 这类带滚动条的 355 视口也不至于误隐藏。 */
@media (max-width: 340px) {
  body.index-page .header .btn-getstarted {
    display: none;
  }
}

/* --------------------------------------------------------------------------
 * 13. 减少动效偏好
 * -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  body.index-page .daw-terminal,
  body.index-page .hero .btn-get-started::after,
  body.index-page .daw-status .daw-dot,
  body.index-page .daw-beam {
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
 * 14. Hero 入场动画(不依赖 AOS,渲染通道可靠)
 * -------------------------------------------------------------------------- */
@keyframes daw-rise {
  from { opacity: 0.012; transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: none; }
}

body.index-page .daw-in {
  animation: daw-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.index-page .daw-in-100 { animation-delay: 0.10s; }
body.index-page .daw-in-200 { animation-delay: 0.22s; }
body.index-page .daw-in-250 { animation-delay: 0.30s; }
body.index-page .daw-in-300 { animation-delay: 0.42s; }
body.index-page .daw-in-350 { animation-delay: 0.54s; }

@media (prefers-reduced-motion: reduce) {
  body.index-page .daw-in,
  body.index-page .daw-in-100,
  body.index-page .daw-in-200,
  body.index-page .daw-in-250,
  body.index-page .daw-in-300 {
    animation-duration: 0.01s;
    animation-delay: 0s;
  }
}

/* --------------------------------------------------------------------------
 * 15. 英文页微调(文案更长,压缩首屏间距)
 * -------------------------------------------------------------------------- */
html[lang="en"] body.index-page .hero {
  padding-top: 122px;
}

html[lang="en"] body.index-page .daw-missions li {
  padding: 5px 0;
  line-height: 1.5;
  font-size: 0.9rem;
}
