/* ==================== 炽壳官网 - 深色电竞风格 ==================== */

:root {
  --bg-page: #0A0A0F;
  --bg-card: #141419;
  --bg-card-hover: #1A1A22;
  --bg-glass: rgba(10, 10, 15, 0.92);
  --color-accent: #FF6B35;
  --color-accent-hover: #FF8255;
  --color-accent-dim: rgba(255, 107, 53, 0.12);
  --color-accent-glow: rgba(255, 107, 53, 0.25);
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-tertiary: rgba(255, 255, 255, 0.35);
  --border-light: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.3);
  --shadow-base: 0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 4px 24px rgba(255, 107, 53, 0.2);
  --radius-sm: 8px;
  --radius-base: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition-base: 0.3s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --nav-height: 60px;
}

/* iOS 风格加载指示器 */
.page-loader {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-page); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.3s ease;
}
.page-loader.hidden { opacity: 0; pointer-events: none; }
.ios-spinner {
  width: 32px; height: 32px; position: relative;
}
.ios-spinner i {
  display: block; position: absolute;
  width: 3px; height: 9px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  left: 50%; top: 50%;
  transform-origin: 50% 0;
  animation: ios-spin 1s linear infinite;
}
.ios-spinner i:nth-child(1)  { transform: translate(-50%, 0) rotate(0deg)   translateY(-12px); animation-delay: -0.917s; }
.ios-spinner i:nth-child(2)  { transform: translate(-50%, 0) rotate(30deg)  translateY(-12px); animation-delay: -0.833s; }
.ios-spinner i:nth-child(3)  { transform: translate(-50%, 0) rotate(60deg)  translateY(-12px); animation-delay: -0.75s; }
.ios-spinner i:nth-child(4)  { transform: translate(-50%, 0) rotate(90deg)  translateY(-12px); animation-delay: -0.667s; }
.ios-spinner i:nth-child(5)  { transform: translate(-50%, 0) rotate(120deg) translateY(-12px); animation-delay: -0.583s; }
.ios-spinner i:nth-child(6)  { transform: translate(-50%, 0) rotate(150deg) translateY(-12px); animation-delay: -0.5s; }
.ios-spinner i:nth-child(7)  { transform: translate(-50%, 0) rotate(180deg) translateY(-12px); animation-delay: -0.417s; }
.ios-spinner i:nth-child(8)  { transform: translate(-50%, 0) rotate(210deg) translateY(-12px); animation-delay: -0.333s; }
.ios-spinner i:nth-child(9)  { transform: translate(-50%, 0) rotate(240deg) translateY(-12px); animation-delay: -0.25s; }
.ios-spinner i:nth-child(10) { transform: translate(-50%, 0) rotate(270deg) translateY(-12px); animation-delay: -0.167s; }
.ios-spinner i:nth-child(11) { transform: translate(-50%, 0) rotate(300deg) translateY(-12px); animation-delay: -0.083s; }
.ios-spinner i:nth-child(12) { transform: translate(-50%, 0) rotate(330deg) translateY(-12px); animation-delay: 0s; }
@keyframes ios-spin {
  0%   { background: rgba(255, 255, 255, 0.85); }
  100% { background: rgba(255, 255, 255, 0.15); }
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { border: none; background: none; cursor: pointer; font: inherit; }

/* ==================== 导航栏 ==================== */
.ck-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-smooth);
}
.ck-nav.scrolled {
  background: rgba(10, 10, 15, 0.98);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.5);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { height: 32px; width: auto; }
.logo-text {
  font-size: 22px; font-weight: 700; color: #FFFFFF;
  letter-spacing: 3px;
}
.nav-links { display: flex; gap: 32px; }
.nav-link {
  font-size: 14px; color: rgba(255, 255, 255, 0.6); font-weight: 500;
  transition: color var(--transition-smooth); position: relative;
  letter-spacing: 0.5px;
}
.nav-link:hover { color: #FFFFFF; }
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 50%; right: 50%;
  height: 2px; background: var(--color-accent);
  transition: all var(--transition-smooth); border-radius: 1px;
}
.nav-link:hover::after { left: 0; right: 0; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-stores { display: flex; gap: 12px; }
.store-wrap { position: relative; }
.store-btn {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  font-size: 12px; font-weight: 500; transition: all var(--transition-smooth);
  letter-spacing: 0.3px;
}
.store-tmall { background: var(--color-accent); color: #FFFFFF; }
.store-tmall:hover { background: var(--color-accent-hover); box-shadow: var(--shadow-accent); }
.store-taobao { background: var(--color-accent); color: #FFFFFF; }
.store-taobao:hover { background: var(--color-accent-hover); box-shadow: var(--shadow-accent); }
.store-jd { border: 1px solid rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.85); }
.store-jd:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); }

/* 导航栏 hover 弹出二维码 */
.store-qr-popup {
  display: none; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%); margin-top: 12px;
  background: #FFFFFF; border-radius: var(--radius-base);
  padding: 16px; text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  z-index: 200; white-space: nowrap;
}
.store-qr-popup::before {
  content: ''; position: absolute; top: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px; background: #FFFFFF;
}
.store-wrap:hover .store-qr-popup { display: block; }
.store-qr-box { width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; }
.store-qr-box img { width: 112px; height: 112px; }
.store-qr-tip { font-size: 12px; color: #666; margin-top: 8px; }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #FFFFFF; transition: all var(--transition-base); }

/* 移动端菜单 */
.mobile-menu {
  display: none; position: fixed; top: var(--nav-height); left: 0; right: 0;
  background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 24px; z-index: 99; border-bottom: 1px solid var(--border-light);
  flex-direction: column; gap: 20px;
  transform: translateY(-10px); opacity: 0; transition: all var(--transition-base);
}
.mobile-menu.open { display: flex; transform: translateY(0); opacity: 1; }
.mobile-link { font-size: 16px; color: var(--text-primary); font-weight: 500; padding: 8px 0; }
.mobile-stores { display: flex; gap: 16px; padding-top: 8px; flex-wrap: wrap; }
.mobile-store-card { text-align: center; }
.mobile-store-qr {
  width: 80px; height: 80px; background: #FFFFFF; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; margin-top: 8px;
}
.mobile-store-qr img { width: 72px; height: 72px; }

/* ==================== Hero ==================== */
.hero {
  margin-top: var(--nav-height); position: relative;
  background: var(--bg-page); overflow: hidden;
  min-height: 600px; display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; top: -40%; right: -20%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--color-accent-dim) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  max-width: 1200px; margin: 0 auto; padding: 80px 24px 100px; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
}
.hero-text { flex: 1; max-width: 500px; }
.hero-tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: var(--color-accent); text-transform: uppercase;
  letter-spacing: 4px; margin-bottom: 20px;
  padding: 4px 12px; border: 1px solid var(--color-accent-dim);
  border-radius: 4px;
}
.hero-title {
  font-size: 52px; font-weight: 800; line-height: 1.1; margin-bottom: 24px;
  color: var(--text-primary); letter-spacing: -0.5px;
}
.hero-title .accent { color: var(--color-accent); }
.hero-desc {
  font-size: 18px; color: var(--text-secondary); margin-bottom: 40px;
  line-height: 1.8;
}
.hero-cta {
  display: inline-block; padding: 16px 40px;
  background: var(--color-accent); color: #FFFFFF;
  border-radius: 28px; font-size: 15px; font-weight: 600;
  transition: all var(--transition-smooth); letter-spacing: 0.5px;
}
.hero-cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}
.hero-image { flex: 1; display: flex; justify-content: center; align-items: center; }
.hero-image img {
  max-height: 420px; object-fit: contain;
  filter: drop-shadow(0 8px 40px rgba(255, 107, 53, 0.15));
}

/* ==================== 旗舰店栏目 ==================== */
.section-stores {
  padding: 80px 24px; text-align: center;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.stores-inner { max-width: 900px; margin: 0 auto; }
.stores-inner .section-title { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.stores-sub { font-size: 15px; color: var(--text-secondary); margin-bottom: 48px; }
.stores-grid {
  display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
}
.sg-card {
  flex: 0 0 240px; background: var(--bg-page); border-radius: var(--radius-lg);
  padding: 32px 24px; text-align: center;
  border: 1px solid var(--border-light);
  transition: all var(--transition-smooth);
}
.sg-card:hover {
  border-color: var(--color-accent-dim);
  box-shadow: 0 4px 24px rgba(255, 107, 53, 0.1);
  transform: translateY(-4px);
}
.sg-title {
  font-size: 18px; font-weight: 600; color: var(--text-primary);
  margin-bottom: 20px;
}
.sg-qr {
  width: 160px; height: 160px; background: #FFFFFF; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.sg-qr img { width: 144px; height: 144px; }
.sg-tip { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }
.sg-link {
  font-size: 14px; color: var(--color-accent); font-weight: 500;
  transition: color var(--transition-base);
}
.sg-link:hover { color: var(--color-accent-hover); }
.sg-btn {
  display: inline-block; padding: 14px 40px; border-radius: 28px;
  font-size: 15px; font-weight: 600; margin-top: 8px;
  transition: all var(--transition-smooth);
}

@media (max-width: 768px) {
  .section-stores { padding: 60px 20px; }
  .stores-grid { gap: 20px; }
  .sg-card { flex: 0 0 100%; max-width: 280px; padding: 24px 20px; }
}

/* ==================== 产品特性 ==================== */
.section-features { padding: 0; }

.feature-block {
  display: flex; align-items: center; gap: 80px;
  max-width: 1200px; margin: 0 auto; padding: 100px 24px;
  position: relative;
}
.feature-block.reverse { flex-direction: row-reverse; }

.feature-image {
  flex: 1; position: relative; border-radius: var(--radius-lg); overflow: hidden;
}
.feature-image img {
  width: 100%; height: auto; border-radius: var(--radius-lg);
  transition: transform var(--transition-smooth);
}
.feature-image:hover img { transform: scale(1.02); }

.feature-text { flex: 1; max-width: 460px; }
.feature-index {
  font-size: 64px; font-weight: 800; color: rgba(255, 107, 53, 0.1);
  line-height: 1; margin-bottom: 16px; letter-spacing: -2px;
}
.feature-title {
  font-size: 32px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 20px; line-height: 1.3;
}
.feature-desc {
  font-size: 16px; color: var(--text-secondary); line-height: 2;
}

/* 分隔线 */
.feature-divider {
  max-width: 1200px; margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

/* ==================== App 下载 ==================== */
.section-download {
  padding: 100px 24px; position: relative; overflow: hidden;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.download-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 48px;
}
.download-info { flex: 1; max-width: 500px; }
.download-info .section-title {
  font-size: 32px; font-weight: 700; margin-bottom: 16px;
}
.download-desc { font-size: 16px; color: var(--text-secondary); line-height: 1.9; }
.download-actions {
  flex: 0 0 auto; display: flex; align-items: center; gap: 36px;
}
.dl-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 14px; font-size: 15px; font-weight: 500;
  transition: all var(--transition-smooth);
}
.dl-btn-primary { background: var(--color-accent); color: #FFFFFF; }
.dl-btn-primary:hover { background: var(--color-accent-hover); box-shadow: var(--shadow-accent); transform: translateY(-2px); }
.download-qr { flex: 0 0 auto; text-align: center; }
.download-qr-label { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }
.download-qr-code {
  width: 160px; height: 160px;
  display: flex; align-items: center; justify-content: center;
  background: #FFFFFF; border-radius: var(--radius-sm);
}
.download-qr-code img { width: 144px; height: 144px; }

/* ==================== 品牌介绍 ==================== */
.section-about {
  padding: 100px 24px; text-align: center;
}
.about-inner { max-width: 700px; margin: 0 auto; }
.about-inner .section-title {
  font-size: 32px; font-weight: 700; margin-bottom: 28px;
}
.about-text {
  font-size: 16px; color: var(--text-secondary); line-height: 2.1;
}
.about-values {
  display: flex; gap: 48px; justify-content: center; margin-top: 56px; flex-wrap: wrap;
}
.value-item { text-align: center; }
.value-num {
  font-size: 42px; font-weight: 700; color: var(--color-accent);
}
.value-label {
  display: block; font-size: 13px; color: var(--text-secondary);
  margin-top: 6px; letter-spacing: 0.5px;
}

/* ==================== Footer ==================== */
.ck-footer {
  background: #06060A; color: var(--text-primary);
  padding: 56px 24px 28px;
  border-top: 1px solid var(--border-light);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand .footer-logo {
  font-size: 20px; font-weight: 700; letter-spacing: 2px;
  margin-bottom: 12px; color: var(--color-accent);
}
.footer-brand p { font-size: 13px; color: var(--text-tertiary); line-height: 1.8; }
.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; color: rgba(255, 255, 255, 0.9); }
.footer-col a {
  display: block; font-size: 13px; color: var(--text-tertiary);
  padding: 4px 0; transition: color var(--transition-base);
}
.footer-col a:hover { color: #FFFFFF; }
.footer-bottom {
  max-width: 1200px; margin: 32px auto 0; padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p, .footer-beian {
  font-size: 12px; color: var(--text-tertiary);
  text-decoration: none; transition: color var(--transition-base);
}
.footer-beian:hover { color: #FFFFFF; }

/* Footer 店铺卡片（带二维码） */
.footer-stores { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-store-card { text-align: center; }
.footer-store-name {
  display: block; font-size: 13px; color: var(--text-secondary) !important;
  margin-bottom: 8px; font-weight: 500; padding: 0 !important;
  transition: color var(--transition-base);
}
.footer-store-name:hover { color: #FFFFFF !important; }
.footer-store-qr {
  width: 88px; height: 88px; background: #FFFFFF; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.footer-store-qr img { width: 80px; height: 80px; }
.footer-store-tip { font-size: 11px; color: var(--text-tertiary); margin-top: 6px; }

/* 淘宝按钮样式 */
.store-taobao { background: var(--color-accent); color: #FFFFFF; }
.store-taobao:hover { background: var(--color-accent-hover); box-shadow: var(--shadow-accent); }

/* ==================== 滚动动画 ==================== */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
  :root { --nav-height: 52px; }
  .nav-links, .nav-right { display: none; }
  .nav-hamburger { display: flex; }

  .hero { min-height: auto; }
  .hero-content {
    flex-direction: column; text-align: center; padding: 48px 20px 64px;
  }
  .hero-text { max-width: 100%; }
  .hero-title { font-size: 32px; }
  .hero-desc { font-size: 15px; margin-bottom: 28px; }
  .hero-image img { max-height: 260px; }

  .feature-block, .feature-block.reverse {
    flex-direction: column; gap: 32px; padding: 60px 20px;
  }
  .feature-text { max-width: 100%; text-align: center; }
  .feature-index { font-size: 48px; }
  .feature-title { font-size: 24px; }

  .section-download { padding: 60px 20px; }
  .download-inner { flex-direction: column; text-align: center; gap: 36px; }
  .download-actions { flex-direction: column; gap: 24px; align-items: center; }
  .download-qr-code { width: 128px; height: 128px; margin: 0 auto; }
  .download-qr-code img { width: 112px; height: 112px; }

  .section-about { padding: 60px 20px; }
  .about-values { gap: 28px; }
  .value-num { font-size: 34px; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-title { font-size: 40px; }
  .hero-image img { max-height: 320px; }
  .feature-block { gap: 48px; padding: 80px 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
}
