/**
 * K4电竞 - Obsidian Tactical Luxury 主题
 * 职责：黑奢战术风主题变量、材质、重点节点光效
 * 禁止：布局定位、Hero/Contact 特定布局
 */

/* ===== START: Obsidian Tactical Luxury ===== */

/* ===== Step 2: 狠但低调的 Token（变量驱动） ===== */
body.theme-obsidian {
  /* 硬黑层级 + 冷金属强调 + 极弱冷青点缀 */
  --bg-0: #050608;  /* 最深墨黑，偏冷 */
  --bg-1: #070a0e;  /* 底层 */
  --bg-2: #0a1016;  /* 内容区底 */
  --bg-3: #0f1720;  /* 卡片暗面 */
  
  /* 文字层级 */
  --text-0: rgba(245, 248, 255, 0.92);
  --text-1: rgba(245, 248, 255, 0.72);
  --text-2: rgba(245, 248, 255, 0.52);
  
  /* 强调色：冷香槟金（方案A） */
  --accent: #d8c38f;
  /* 战术电流点缀（几乎不可见） */
  --accent-cyan: rgba(57, 213, 255, 0.14);
  
  /* Glow 三档（更克制，重点才亮） */
  --glow-soft: 0 0 0 rgba(0, 0, 0, 0);  /* 默认直接 0 */
  --glow-focus: 0 0 18px rgba(216, 195, 143, 0.16);  /* 重点节点极轻 */
  --glow-hover: 0 0 22px rgba(216, 195, 143, 0.22);  /* hover 才出现 */
  
  /* Panel/Glass - 奢华版 */
  --panel-bg: rgba(10, 16, 22, 0.72);  /* 提高不透明度，更实 */
  --panel-bg-2: rgba(10, 16, 22, 0.52);
  --panel-border: rgba(216, 195, 143, 0.14);  /* 金属边稍明显，但依然低调 */
  --panel-hairline: rgba(255, 255, 255, 0.08);  /* 刀口线：更明显的内高光 */
  --shadow-deep: 0 32px 100px rgba(0, 0, 0, 0.7);  /* 更深更大的阴影 */
}

/* ===== Step 3: 背景（狠的关键：干净 + 大尺度渐变 + 暗角） ===== */
body.theme-obsidian {
  background: var(--bg-0);
  background-image:
    radial-gradient(ellipse 1400px 900px at 20% 10%, rgba(57, 213, 255, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse 1200px 800px at 80% 30%, rgba(216, 195, 143, 0.02) 0%, transparent 50%),
    radial-gradient(ellipse 2000px 1500px at 50% 50%, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
  background-attachment: fixed;
  background-size: 100% 100%, 100% 100%, 100% 100%;
  color: var(--text-0);
}

/* 移动端禁用 fixed 背景（避免卡顿） */
@media (max-width: 768px) {
  body.theme-obsidian {
    background-attachment: scroll;
  }
}

/* ===== Step 4: 材质升级（钛合金玻璃）- 奢华版 ===== */
body.theme-obsidian .glass,
body.theme-obsidian .k4-panel {
  /* 默认态：几乎无外发光，更精致的质感 */
  background: linear-gradient(180deg, 
    var(--panel-bg) 0%,
    rgba(10, 16, 22, 0.58) 50%,
    rgba(10, 16, 22, 0.42) 100%
  );
  border: 1px solid var(--panel-border);
  box-shadow:
    inset 0 1px 0 var(--panel-hairline),  /* 刀口线 */
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),  /* 底部内边框 */
    inset 0 -24px 48px rgba(0, 0, 0, 0.52),  /* 内阴影（更深） */
    0 24px 80px rgba(0, 0, 0, 0.6),  /* 深阴影（更大） */
    0 0 0 1px rgba(0, 0, 0, 0.2) inset;  /* 内边框增强 */
  /* 禁止外发光 */
  position: relative;
  overflow: hidden;
}

/* 内部微光效 */
body.theme-obsidian .glass::before,
body.theme-obsidian .k4-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(216, 195, 143, 0.02) 0%,
    transparent 30%,
    transparent 70%,
    rgba(216, 195, 143, 0.01) 100%
  );
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}

body.theme-obsidian .glass > *,
body.theme-obsidian .k4-panel > * {
  position: relative;
  z-index: 1;
}

/* START: Hero 取消毛玻璃 */
/* Hero 区域取消毛玻璃特效 */
body.theme-obsidian .hero-section .glass,
body.theme-obsidian .hero-section .hero-content.glass {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: var(--panel-bg) !important;
}
/* END: Hero 取消毛玻璃 */

/* hover（狠但低调）- 奢华版 */
body.theme-obsidian .glass:hover,
body.theme-obsidian .k4-panel:hover {
  transform: translateY(-3px);  /* 轻微抬升 */
  border-color: rgba(216, 195, 143, 0.24);  /* 边缘 accent 光（更细腻） */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),  /* 顶部高光增强 */
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    inset 0 -24px 48px rgba(0, 0, 0, 0.58),  /* 内阴影更深 */
    0 28px 90px rgba(0, 0, 0, 0.7),  /* 外阴影更大 */
    0 0 0 1px rgba(0, 0, 0, 0.3) inset,
    var(--glow-hover);  /* hover 才给 glow */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-obsidian .glass:hover::before,
body.theme-obsidian .k4-panel:hover::before {
  opacity: 0.8;
}

/* ===== Step 5: 重点节点"开刃"（狠劲来源） ===== */
/* Hero 主标题 */
body.theme-obsidian .hero-section h1,
body.theme-obsidian .hero-section .section-title {
  text-shadow: 0 0 18px rgba(216, 195, 143, 0.18);
  color: var(--text-0);
}

/* Hero CTA 区 */
body.theme-obsidian .hero-cta {
  border-color: rgba(216, 195, 143, 0.22);
  text-shadow: 0 0 12px rgba(216, 195, 143, 0.16);
}

body.theme-obsidian .hero-cta:hover {
  border-color: rgba(216, 195, 143, 0.32);
  text-shadow: 0 0 18px rgba(216, 195, 143, 0.24);
  box-shadow: var(--glow-hover);
}

/* Section title */
body.theme-obsidian .section-title {
  text-shadow: 0 0 16px rgba(216, 195, 143, 0.16);
  color: var(--text-0);
}

/* 当前导航 active */
body.theme-obsidian .fx-nav-link.active,
body.theme-obsidian a.active {
  border-color: rgba(216, 195, 143, 0.22);
  text-shadow: 0 0 12px rgba(216, 195, 143, 0.16);
}

/* 可点击卡片 hover */
body.theme-obsidian .fx-card:hover,
body.theme-obsidian a.fx-card:hover {
  border-color: rgba(216, 195, 143, 0.22);
  box-shadow:
    inset 0 1px 0 var(--panel-hairline),
    inset 0 -18px 36px rgba(0, 0, 0, 0.52),
    0 24px 75px rgba(0, 0, 0, 0.6),
    var(--glow-hover);
}

/* Proof item icon 和标题 */
body.theme-obsidian .proof-item .proof-icon {
  box-shadow: 0 0 8px rgba(216, 195, 143, 0.16);
}

body.theme-obsidian .proof-item .proof-title {
  text-shadow: 0 0 10px rgba(216, 195, 143, 0.14);
}

body.theme-obsidian .proof-item:hover .proof-icon {
  box-shadow: 0 0 12px rgba(216, 195, 143, 0.22);
}

body.theme-obsidian .proof-item:hover .proof-title {
  text-shadow: 0 0 14px rgba(216, 195, 143, 0.20);
}

/* ===== Step 6: Typography 更狠（但不花） ===== */
/* h1：更紧的 tracking，略低行高，形成"压迫感" */
body.theme-obsidian h1,
body.theme-obsidian .hero-section h1 {
  letter-spacing: -0.01em;  /* 略微负 tracking */
  line-height: 1.08;  /* 略低行高 */
}

/* 小标题：tracking 略增，形成层级差 */
body.theme-obsidian .section-title {
  letter-spacing: 0.02em;
  line-height: 1.15;
}

body.theme-obsidian .section-subtitle {
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* 正文：行高略高一点，让黑奢更"从容" */
body.theme-obsidian p {
  line-height: 1.75;
}

body.theme-obsidian .text-sm,
body.theme-obsidian .text-xs {
  letter-spacing: 0.02em;
}

/* ===== 文字颜色覆盖 ===== */
body.theme-obsidian {
  color: var(--text-0);
}

body.theme-obsidian .text-gray-400 {
  color: var(--text-2);
}

body.theme-obsidian .text-gray-300 {
  color: var(--text-1);
}

body.theme-obsidian .text-gray-200 {
  color: var(--text-1);
}

/* ===== 禁止全站平均发光 ===== */
/* 确保默认态无 glow */
body.theme-obsidian .glass:not(:hover),
body.theme-obsidian .k4-panel:not(:hover),
body.theme-obsidian .fx-card:not(:hover) {
  box-shadow:
    inset 0 1px 0 var(--panel-hairline),
    inset 0 -18px 36px rgba(0, 0, 0, 0.48),
    0 22px 70px rgba(0, 0, 0, 0.55);
  /* 无外发光 */
}

/* ===== END: Obsidian Tactical Luxury ===== */

