﻿/**
 * K4鐢电珵 - 鍐拌摑HUD涓婚鏍峰紡灞? * 鑱岃矗锛氫富棰樺彉閲忋€丠UD璐ㄦ劅銆佸啺钃濋鏍? * 绂佹锛欻ero/Contact 甯冨眬銆侀〉闈㈠畾浣? */

/* ===== 涓婚鍙橀噺绯荤粺锛堝彉閲忛┍鍔級 ===== */
body.theme-ice {
  /* 鑳屾櫙鑹茬郴 */
  --bg-0: #05070a;
  --bg-1: #0a0e14;
  --bg-2: #0f1419;
  --bg-3: #141920;
  
  /* Premium Pass: 闈㈡澘涓庡鍣紙杈规鏀舵暃锛?*/
  --panel-bg: rgba(0, 229, 255, 0.05);
  --panel-border: rgba(57, 213, 255, 0.12);
  --panel-border-glow: rgba(57, 213, 255, 0.22);
  
  /* 鏂囧瓧鑹茬郴 */
  --text-primary: #f0f9ff;
  --text-muted: #a8d5e2;
  
  /* 鍝佺墝鑹诧紙鍐拌摑锛?*/
  --cyan: #00e5ff;
  --cyan-light: #4af5ff;
  --cyan-dark: #00b8cc;
  --cyan-glow: rgba(0, 229, 255, 0.4);
  
  /* Premium Pass: HUD 鍙戝厜鏁堟灉锛堝鍙戝厜鍑忓崐+缁嗚竟+鍐呭彂鍏夛級 */
  --glow-hud: 
    0 0 0 1px rgba(57, 213, 255, 0.12) inset,
    0 0 12px rgba(57, 213, 255, 0.18),
    0 0 20px rgba(57, 213, 255, 0.09),
    inset 0 0 0 1px rgba(57, 213, 255, 0.08),
    inset 0 0 20px rgba(57, 213, 255, 0.04);
  
  /* Premium Pass: 鍙皟 tokens */
  --glow-soft: rgba(57, 213, 255, 0.08);
  --glow-edge: rgba(57, 213, 255, 0.15);
  --border-ice: rgba(57, 213, 255, 0.12);
  
  /* START: Glow Hierarchy */
  --glow-soft: rgba(57, 213, 255, 0.04); /* 鏋佸急锛氶粯璁よ竟缂橀珮鍏?*/
  --glow-focus: rgba(57, 213, 255, 0.12); /* 閲嶇偣鑺傜偣锛氭爣棰?CTA/Proof */
  --glow-hover: rgba(57, 213, 255, 0.18); /* 浜や簰鏃讹細hover 鎵嶆彁鍗?*/
  /* END: Glow Hierarchy */
}

/* ===== 鍏ㄥ眬鑳屾櫙锛堜富棰樹笓灞烇級 ===== */
body.theme-ice {
  background: var(--bg-0);
  background-image:
    radial-gradient(ellipse 1200px 800px at 15% 8%, rgba(0, 229, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 1000px 600px at 85% 25%, rgba(0, 212, 255, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 30%, var(--bg-2) 60%, var(--bg-1) 80%, var(--bg-0) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(0, 229, 255, 0.02) 1px, rgba(0, 229, 255, 0.02) 2px),
    repeating-linear-gradient(90deg, transparent, transparent 1px, rgba(0, 229, 255, 0.02) 1px, rgba(0, 229, 255, 0.02) 2px);
  background-attachment: fixed;
  background-size: 100% 100%, 100% 100%, 100% 100%, 30px 30px, 30px 30px;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  body.theme-ice {
    background-attachment: scroll;
  }
}


/* ===== START: Premium Pass - 鐜荤拑鎷熸€侀潰鏉垮崌绾?===== */
/* 鐜荤拑鎷熸€侀潰鏉匡紙浣跨敤涓婚鍙橀噺锛?*/
body.theme-ice .k4-panel {
  position: relative;
  background: var(--panel-bg);
  backdrop-filter: blur(10px) saturate(125%);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -12px 24px rgba(0, 0, 0, 0.28);
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Premium Pass: 杈圭紭楂樺厜 + 寰汗鐞?*/
body.theme-ice .k4-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    linear-gradient(135deg, rgba(57, 213, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 20% 20%, rgba(57, 213, 255, 0.04) 0%, transparent 40%),
    repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(57, 213, 255, 0.015) 1px, rgba(57, 213, 255, 0.015) 2px);
  background-size: 100% 100%, 60% 60%, 30px 30px;
  opacity: 1;
  border-radius: inherit;
}

body.theme-ice .k4-panel > * {
  position: relative;
  z-index: 1;
}
/* ===== END: Premium Pass - 鐜荤拑鎷熸€侀潰鏉垮崌绾?===== */

/* 闄嶇骇鏀寔 */
@supports not (backdrop-filter: blur(12px)) {
  body.theme-ice .k4-panel {
    background: rgba(15, 25, 35, 0.85);
  }
}

/* ===== HUD杈圭紭鍏夋晥鏋?===== */
body.theme-ice .k4-glow {
  box-shadow: var(--glow-hud);
}

body.theme-ice .k4-panel:hover.k4-glow,
body.theme-ice .k4-glow:hover {
  box-shadow: 
    0 0 0 1px rgba(0, 229, 255, 0.15) inset,
    0 0 30px rgba(0, 229, 255, 0.4),
    0 0 50px rgba(0, 229, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: var(--panel-border-glow);
}

/* ===== 鏍囬鏍峰紡 ===== */
/* Premium Pass: 鏍囬楂樼閿愬埄鎰?*/
body.theme-ice .k4-title {
  color: var(--text-primary);
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 0 4px rgba(57, 213, 255, 0.2);
  font-weight: 600;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: always;
}

/* ===== 鎸夐挳鏍峰紡锛堜娇鐢ㄤ富棰樺彉閲忥級 ===== */
body.theme-ice .k4-btn {
  background: linear-gradient(135deg, 
    rgba(0, 229, 255, 0.15) 0%,
    rgba(0, 212, 255, 0.1) 100%
  );
  border: 1px solid var(--cyan);
  color: var(--text-primary);
  box-shadow: 
    0 4px 16px rgba(0, 229, 255, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
}

body.theme-ice .k4-btn:hover {
  background: linear-gradient(135deg, 
    rgba(0, 229, 255, 0.25) 0%,
    rgba(0, 212, 255, 0.2) 100%
  );
  border-color: var(--cyan-light);
  box-shadow: 
    0 6px 20px rgba(0, 229, 255, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: var(--cyan-light);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

body.theme-ice .k4-btn:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 8px rgba(0, 229, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ===== HUD寰界珷 ===== */
body.theme-ice .k4-badge {
  background: linear-gradient(135deg, 
    rgba(0, 229, 255, 0.12) 0%,
    rgba(0, 212, 255, 0.08) 100%
  );
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 9999px;
  color: var(--cyan-light);
  font-size: 0.75rem;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.6);
  box-shadow: 
    0 0 10px rgba(0, 229, 255, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ===== 鍏ㄥ眬閾炬帴鏍峰紡 ===== */
body.theme-ice a {
  color: var(--text-primary);
  transition: all 0.3s ease;
  text-decoration: none;
}

body.theme-ice a:hover {
  color: var(--cyan-light);
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.5);
}

/* ===== 閾炬帴涓嬪垝绾挎晥鏋?===== */
body.theme-ice .link-underline {
  position: relative;
}

body.theme-ice .link-underline::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent,
    var(--cyan),
    var(--cyan-light),
    var(--cyan),
    transparent
  );
  box-shadow: 0 0 6px var(--cyan-glow);
  transition: width 0.3s ease;
  border-radius: 2px;
}

body.theme-ice .link-underline:hover::after {
  width: 100%;
}

/* ===== 鍒楄〃涓庢钀戒紭鍖?===== */
body.theme-ice p {
  line-height: 1.7;
  color: var(--text-muted);
}

body.theme-ice ul, 
body.theme-ice ol {
  color: var(--text-muted);
}

body.theme-ice li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* ===== 鍒嗛殧绾?===== */
body.theme-ice hr,
body.theme-ice .hairline {
  border: none;
  height: 1px;
  background: rgba(0, 229, 255, 0.15);
  margin: 2rem 0;
  box-shadow: 0 0 4px rgba(0, 229, 255, 0.08);
}

/* ===== 涓庣幇鏈夋牱寮忓吋瀹?===== */
/* START: Glow Hierarchy */
/* Premium Pass: Glass 鏉愯川鍗囩骇锛堥粯璁ゆ瀬寮?glow锛?*/
body.theme-ice .glass {
  position: relative;
  background: var(--panel-bg) !important;
  backdrop-filter: blur(10px) saturate(125%);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
  border: 1px solid rgba(57, 213, 255, 0.06) !important; /* 闄嶄綆榛樿杈规 alpha */
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2),
    0 0 0 1px var(--glow-soft) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -12px 24px rgba(0, 0, 0, 0.28) !important;
  overflow: hidden;
}

/* 鍗＄墖 hover 鎵嶅寮?glow */
body.theme-ice .glass:hover {
  border-color: rgba(57, 213, 255, 0.12) !important;
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.25),
    0 0 0 1px var(--glow-hover) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -12px 24px rgba(0, 0, 0, 0.3) !important;
}

/* 閲嶇偣鑺傜偣浣跨敤 --glow-focus */
.hero-section .section-title,
.hero-cta,
.section-title,
.proof-item .proof-title,
.proof-item .proof-icon {
  text-shadow: 0 0 8px var(--glow-focus);
}

/* Proof item icon 鍜屾爣棰樻湁鍏?*/
.proof-item .proof-icon {
  box-shadow: 0 0 6px var(--glow-focus);
}

.proof-item .proof-title {
  text-shadow: 0 0 6px var(--glow-focus);
}

/* hover 鏃跺寮?*/
.hero-cta:hover,
.proof-item:hover .proof-title {
  text-shadow: 0 0 12px var(--glow-hover);
}

.proof-item:hover .proof-icon {
  box-shadow: 0 0 10px var(--glow-hover);
}
/* END: Glow Hierarchy */

/* Premium Pass: Glass 寰汗鐞?*/
body.theme-ice .glass::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    linear-gradient(135deg, rgba(57, 213, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 30% 30%, rgba(57, 213, 255, 0.04) 0%, transparent 45%);
  opacity: 1;
  border-radius: inherit;
}

body.theme-ice .glass > * {
  position: relative;
  z-index: 1;
}

body.theme-ice .glow {
  box-shadow: var(--glow-hud) !important;
}

/* Premium Pass: Glass glow hover锛堝鍙戝厜鍑忓崐锛?*/
body.theme-ice .glass.glow:hover,
body.theme-ice .glass:hover.glow {
  box-shadow: 
    0 0 0 1px rgba(57, 213, 255, 0.15) inset,
    0 0 18px rgba(57, 213, 255, 0.24),
    0 0 30px rgba(57, 213, 255, 0.12),
    inset 0 0 0 1px rgba(57, 213, 255, 0.1),
    inset 0 0 20px rgba(57, 213, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  border-color: var(--panel-border-glow) !important;
}

@supports not (backdrop-filter: blur(12px)) {
  body.theme-ice .glass {
    background: rgba(15, 25, 35, 0.85) !important;
  }
}

/* ===================================================================
 * === ICE CORE: dynamic light engine (do not remove) ===
 * 鍐拌摑HUD鍔ㄦ€佸厜绾挎牳蹇冨紩鎿? * 鍖呭惈锛氬懠鍚稿厜銆佹壂鍏夈€佽竟缂樺厜鍔ㄧ敾
 * =================================================================== */

/* ===== 鍔ㄦ€佸厜绾垮彉閲?===== */
body.theme-ice {
  --ice-glow-1: rgba(0, 229, 255, 0.15);
  --ice-glow-2: rgba(0, 229, 255, 0.3);
  --ice-glow-3: rgba(0, 229, 255, 0.5);
  --ice-border: rgba(0, 229, 255, 0.4);
  --ice-scan-alpha: rgba(0, 229, 255, 0.2);
}

/* ===== 鍏抽敭甯э細鍛煎惛鍏?===== */
@keyframes ice-breathe {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.02);
  }
}

/* ===== 鍏抽敭甯э細鎵厜 ===== */
@keyframes ice-scan {
  0% {
    background-position: -100% 0;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    background-position: 200% 0;
    opacity: 0;
  }
}

/* ===== 鍏抽敭甯э細杈圭紭娴佺嚎 ===== */
@keyframes ice-flow {
  0% {
    stroke-dashoffset: 0;
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    stroke-dashoffset: -200%;
    opacity: 0.3;
  }
}

/* ===== 鍏抽敭甯э細杈圭紭鍏夎剦鍐?===== */
@keyframes ice-edge-pulse {
  0%, 100% {
    opacity: 0.3;
    box-shadow: 
      0 0 0 1px rgba(0, 229, 255, 0.1) inset,
      0 0 20px rgba(0, 229, 255, 0.2),
      0 0 40px rgba(0, 229, 255, 0.1);
  }
  50% {
    opacity: 0.6;
    box-shadow: 
      0 0 0 1px rgba(0, 229, 255, 0.2) inset,
      0 0 30px rgba(0, 229, 255, 0.4),
      0 0 60px rgba(0, 229, 255, 0.2);
  }
}

/* ===== 鍏抽敭甯э細鍐呴儴鍙嶅厜 ===== */
@keyframes ice-shimmer {
  0% {
    background-position: -200% 0;
    opacity: 0;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    background-position: 200% 0;
    opacity: 0;
  }
}

/* ===== .k4-panel 鍔ㄦ€佸厜绾垮寮?===== */
body.theme-ice .k4-panel {
  position: relative;
  overflow: visible;
}

/* ===== .k4-glow 鍔ㄦ€佽竟缂樺厜 ===== */
body.theme-ice .k4-glow {
  position: relative;
}

/* 杈圭紭鍏変吉鍏冪礌锛堝懠鍚告晥鏋滐級- 浠呮部杈圭紭锛屼笉瑕嗙洊鍐呭 */
body.theme-ice .k4-glow::before {
  content: "";
  position: absolute;
  inset: -4px;
  pointer-events: none;
  z-index: -1;
  border-radius: inherit;
  background: 
    radial-gradient(circle at 0% 0%, var(--ice-glow-2) 0%, transparent 35%),
    radial-gradient(circle at 100% 0%, var(--ice-glow-2) 0%, transparent 35%),
    radial-gradient(circle at 100% 100%, var(--ice-glow-2) 0%, transparent 35%),
    radial-gradient(circle at 0% 100%, var(--ice-glow-2) 0%, transparent 35%);
  background-size: 25% 25%, 25% 25%, 25% 25%, 25% 25%;
  background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%;
  background-repeat: no-repeat;
  opacity: 0.35;
  animation: ice-breathe 4s ease-in-out infinite;
  filter: blur(8px);
}

/* 杈圭紭娴佺嚎鏁堟灉 - 宸茬鐢?*/
body.theme-ice .k4-glow::after {
  display: none;
}

/* Hover鏃跺寮鸿竟缂樺厜 */
body.theme-ice .k4-panel:hover.k4-glow::before,
body.theme-ice .k4-glow:hover::before {
  opacity: 0.4;
  animation-duration: 2.5s;
}

/* ===== prefers-reduced-motion 闄嶇骇 ===== */
@media (prefers-reduced-motion: reduce) {
  body.theme-ice .k4-glow::before,
  body.theme-ice .k4-glow::after {
    animation: none;
    opacity: 0.3;
  }
  
  body.theme-ice .k4-panel:hover.k4-glow::before,
  body.theme-ice .k4-glow:hover::before {
    animation: none;
    opacity: 0.4;
  }
}
