/* ===== 无畏契约辅助 - 仅装饰样式 ===== */
/* 布局/结构样式由 script.js 注入，剥离 JS 后页面将错位 */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #0A0C10;
  color: #F0EDE5;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* 背景纹理 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.008) 2px, rgba(255,255,255,0.008) 4px);
  mask-image: radial-gradient(ellipse at 50% 0%, black 40%, transparent 70%);
}

html:not(.ww) body {
  filter: blur(10px);
  -webkit-filter: blur(10px);
}
body {
  transition: filter 0.5s ease, opacity 0.5s ease;
}

/* 颜色/字体 token（结构由 JS 控制） */
.nav-logo { color: #F0EDE5; }
.nav-links a { color: #999590; }
.nav-links a:hover,
.nav-links a.active { color: #F0EDE5; }
.nav-links a.active::after { background: #FF4655; box-shadow: 0 0 10px #FF4655; }
.nav-cta { border-color: #FF4655 !important; color: #FF5E6B !important; background: transparent !important; }
.nav-cta:hover { background: #FF4655 !important; color: #fff !important; box-shadow: 0 0 20px rgba(255,70,85,0.4); }

.hero-tag { border-color: rgba(255,70,85,0.4); color: #FF5E6B; }
.hero h1 { color: #F0EDE5; }
.hero h1 .neon { color: #FF5E6B; text-shadow: 0 0 40px rgba(255,70,85,0.5), 0 0 80px rgba(255,70,85,0.2); }
.hero h1 .outline { -webkit-text-stroke: 1.5px #F0EDE5; color: transparent; }
.hero p { color: #999590; }

.section-label { color: #FF4655; }
.section-title { color: #F0EDE5; }
.section-sub { color: #999590; }

.feature-card { background: #14171D; border-color: #1F2229; }
.feature-card:hover { border-color: #FF4655; box-shadow: 0 0 30px rgba(255,70,85,0.15); }
.feature-num { color: rgba(255,70,85,0.15); }
.feature-card h3 { color: #F0EDE5; }
.feature-card p { color: #999590; }

.gallery-strip { background: #1F2229; border-color: #1F2229; }
.gallery-strip .gallery-item img { filter: brightness(0.65); }
.gallery-strip .gallery-item:hover img { filter: brightness(0.9); }
.gallery-item .gallery-label { color: #F0EDE5; }

.step-block { background: #14171D; border-color: #1F2229; }
.step-block:hover { background: #111318; border-color: rgba(255,70,85,0.3); }
.step-num { border-color: #FF4655; color: #FF5E6B; }
.step-block:hover .step-num { background: #FF4655; color: #fff; box-shadow: 0 0 20px rgba(255,70,85,0.5); }
.step-block h4 { color: #F0EDE5; }
.step-block p { color: #999590; }
.step-arrow { color: #FF4655; }

.cta-block { background: #111318; border-color: #1F2229; }
.cta-block h2 { color: #F0EDE5; }
.cta-block p { color: #999590; }

.refund-bar a { color: #F0B823; border-color: rgba(240,184,35,0.3); background: rgba(240,184,35,0.04); }
.refund-bar a:hover { background: rgba(240,184,35,0.1); border-color: #F0B823; box-shadow: 0 0 24px rgba(240,184,35,0.2); }

.footer { border-color: #1F2229; color: #5C5A55; }
.footer-links a { color: #999590; }
.footer-links a:hover { color: #F0EDE5; }

/* 下载页 */
.page-hero .page-title { color: #F0EDE5; }
.page-hero .page-sub { color: #999590; }
.device-card { background: #14171D; border-color: #1F2229; }
.device-card:hover { border-color: #FF4655; box-shadow: 0 0 30px rgba(255,70,85,0.12); }
.device-card.featured { border-color: #FF4655; box-shadow: 0 0 24px rgba(255,70,85,0.15); }
.device-card.featured::after { background: #FF4655; color: #fff; }
.device-card h3 { color: #F0EDE5; }
.device-card .specs { color: #999590; }
.notes-card { background: #14171D; border-color: #1F2229; }
.notes-card h4 { color: #F0B823; }
.notes-card li { color: #999590; }

/* 退款页 */
.refund-page .page-title { color: #F0EDE5; }
.refund-page .page-sub { color: #999590; }
.form-card { background: #14171D; border-color: #1F2229; }
.form-group label { color: #F0EDE5; }
.form-group label .req { color: #FF4655; }
.form-group input,
.form-group select,
.form-group textarea { background: #0A0C10; border-color: #1F2229; color: #F0EDE5; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: #FF4655; box-shadow: 0 0 12px rgba(255,70,85,0.15); outline: none; }
.form-hint { color: #5C5A55; }
.info-box { background: rgba(240,184,35,0.04); border-color: rgba(240,184,35,0.2); }
.info-box h4 { color: #F0B823; }
.info-box p { color: #999590; }

/* 按钮颜色（形状由 JS） */
.btn-primary { background: #FF4655; color: #fff; box-shadow: 0 0 30px rgba(255,70,85,0.35); }
.btn-primary:hover { background: #FF5E6B; box-shadow: 0 0 50px rgba(255,70,85,0.5); }
.btn-outline { background: transparent; color: #F0EDE5; border-color: rgba(255,255,255,0.25); }
.btn-outline:hover { border-color: #F0EDE5; background: rgba(255,255,255,0.04); }

/* Toast 颜色 */
.toast { color: #fff; }
.toast.success { background: #2ECC71; }
.toast.error   { background: #FF4655; }

/* 扫描线动画 */
.hero-scanline {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255,70,85,0.5);
  z-index: 2;
  animation: scanDown 4s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(255,70,85,0.6);
}
@keyframes scanDown {
  0%   { top: -2px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes slideToast {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
