/* ==================== 狂械司官网 - 样式表 ==================== */
/* 配色体系对齐 cooler 项目（Apple 风格极简黑白灰） */

/* CSS 变量 */
:root {
  --bg-page: #F2F2F7;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8F8FA;
  --bg-secondary: #E8E8ED;
  --bg-glass: rgba(242, 242, 247, 0.88);
  --bg-dark: #1D1D1F;
  --color-primary: #1D1D1F;
  --color-primary-light: rgba(0, 0, 0, 0.05);
  --color-secondary: #86868B;
  --color-accent: #00AAFF;
  --color-accent-hover: #0095E0;
  --color-accent-dim: rgba(0, 170, 255, 0.12);
  --color-accent-glow: rgba(0, 170, 255, 0.25);
  --text-primary: #1D1D1F;
  --text-secondary: #6E6E73;
  --text-placeholder: #AEAEB2;
  --text-inverse: #FFFFFF;
  --border-light: rgba(0, 0, 0, 0.06);
  --border-color: #E5E5EA;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-base: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-accent: 0 4px 20px rgba(0, 170, 255, 0.15);
  --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;
}

/* 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; }

/* ==================== 导航栏 ==================== */
.kxs-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition-smooth);
}
.kxs-nav.scrolled {
  background: rgba(10, 10, 15, 0.98);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}
.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: 8px; }
.logo-icon { height: 28px; width: auto; }
.logo-text {
  font-size: 22px; font-weight: 700; color: #FFFFFF;
  letter-spacing: 3px; text-transform: uppercase;
}
.nav-links { display: flex; gap: 32px; }
.nav-link {
  font-size: 14px; color: rgba(255,255,255,0.65); font-weight: 500;
  transition: color var(--transition-smooth); position: relative;
  letter-spacing: 0.3px;
}
.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: 20px; }
.nav-stores { display: flex; gap: 12px; }
.lang-switch { padding-left: 20px; border-left: 1px solid rgba(255,255,255,0.15); }
/* 语言切换器 */
.lang-switch { position: relative; }
.lang-current {
  font-size: 12px; color: rgba(255,255,255,0.7); font-weight: 500;
  padding: 4px 8px; border-radius: 4px; cursor: pointer;
  transition: color var(--transition-base);
}
.lang-current:hover { color: #FFFFFF; }
.lang-dropdown {
  display: none; position: absolute; top: 100%; right: 0; margin-top: 8px;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  min-width: 120px; z-index: 101; overflow: hidden;
  flex-direction: column;
}
.lang-dropdown.open { display: flex; }
.lang-opt {
  display: block; width: 100%; text-align: left; padding: 10px 16px;
  font-size: 13px; color: var(--text-secondary); transition: all var(--transition-base);
}
.lang-opt:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.lang-opt.active { color: var(--text-primary); font-weight: 600; }
/* 移动端语言切换 */
.mobile-lang { display: flex; gap: 12px; padding-top: 12px; border-top: 1px solid var(--border-light); }
.mobile-lang .lang-opt {
  flex: 1; text-align: center; padding: 8px; border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-secondary); background: var(--bg-page);
}
.mobile-lang .lang-opt.active { background: var(--color-primary); color: var(--text-inverse); }
/* 页脚语言切换 */
.footer-lang { display: flex; gap: 4px; align-items: center; }
.footer-lang .lang-opt { display: inline; width: auto; font-size: 12px; color: rgba(255,255,255,0.5); padding: 0 4px; background: none; }
.footer-lang .lang-opt:hover { color: #FFFFFF; background: none; }
.footer-lang .lang-opt.active { color: #FFFFFF; }
.footer-lang .footer-lang-sep { font-size: 12px; color: rgba(255,255,255,0.3); }
.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: 0 2px 12px rgba(0, 170, 255, 0.3); }
.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); color: #FFFFFF; }
.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: var(--bg-glass); 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: 12px; padding-top: 8px; }

/* ==================== Hero 轮播 ==================== */
.hero {
  margin-top: var(--nav-height); position: relative;
  background: var(--bg-card); overflow: hidden;
}
.hero-carousel { position: relative; }
.hero-slide {
  display: none; animation: heroFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-slide.active { display: block; }
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content {
  max-width: 1200px; margin: 0 auto; padding: 72px 24px 88px;
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
  min-height: 500px;
}
.hero-text { flex: 1; max-width: 480px; }
.hero-tag {
  display: inline-block; font-size: 11px; font-weight: 600; color: var(--color-accent);
  text-transform: uppercase; letter-spacing: 3px; margin-bottom: 20px;
}
.hero-title {
  font-size: 46px; font-weight: 700; line-height: 1.12; margin-bottom: 20px;
  color: var(--text-primary); letter-spacing: -0.5px;
}
.hero-desc {
  font-size: 18px; color: var(--text-secondary); margin-bottom: 36px;
  line-height: 1.7; letter-spacing: 0.2px;
}
.hero-cta {
  display: inline-block; padding: 14px 36px; background: var(--color-primary);
  color: var(--text-inverse); border-radius: 28px; font-size: 15px; font-weight: 500;
  transition: all var(--transition-smooth); letter-spacing: 0.3px;
}
.hero-cta:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.hero-image {
  flex: 1; display: flex; justify-content: center; align-items: center;
}
.hero-image img {
  max-height: 380px; object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.1));
}
.hero-dots {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-color); transition: all var(--transition-smooth);
  cursor: pointer;
}
.dot:hover { background: var(--text-secondary); }
.dot.active { background: var(--color-primary); width: 28px; border-radius: 4px; }

/* ==================== 产品区块 ==================== */
.section-products { padding: 80px 0 60px; }
.product-category { margin-bottom: 56px; }
.section-header { max-width: 1200px; margin: 0 auto; padding: 0 24px 32px; }
.section-title {
  font-size: 32px; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.3px;
}
.section-sub { font-size: 15px; color: var(--text-secondary); margin-top: 6px; letter-spacing: 0.2px; }
.product-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.product-scroll::-webkit-scrollbar { display: none; }
.product-track {
  display: flex; gap: 20px; padding: 0 24px 20px;
  max-width: 1200px; margin: 0 auto;
}
.product-card {
  flex: 0 0 280px; background: var(--bg-card); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border-light);
  transition: all var(--transition-smooth); display: block;
  box-shadow: var(--shadow-base);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  background: var(--bg-page);
  padding: 28px; display: flex;
  align-items: center; justify-content: center; height: 220px;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-smooth);
}
.product-card:hover .card-img {
  background: #EEEEF3;
}
.card-img img { max-height: 170px; object-fit: contain; transition: transform var(--transition-smooth); }
.product-card:hover .card-img img { transform: scale(1.04); }
.card-name { font-size: 16px; font-weight: 600; padding: 18px 18px 6px; color: var(--text-primary); }
.card-desc { font-size: 13px; color: var(--text-secondary); padding: 0 18px 18px; letter-spacing: 0.2px; }

/* ==================== 装备库下载 ==================== */
.section-download {
  background: var(--bg-card);
  padding: 100px 24px; position: relative; overflow: hidden;
}
.section-download::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}
.download-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 80px;
}
.download-info { flex: 1; max-width: 500px; }
.download-info .section-title { margin-bottom: 16px; }
.download-desc { font-size: 16px; color: var(--text-secondary); line-height: 1.9; margin-bottom: 36px; }
.download-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.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-ios { background: var(--color-primary); color: var(--text-inverse); }
.dl-btn-ios:hover { opacity: 0.85; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.dl-btn-android { border: 1.5px solid var(--border-color); color: var(--text-primary); }
.dl-btn-android:hover { background: var(--color-primary); color: var(--text-inverse); border-color: var(--color-primary); transform: translateY(-2px); }
.dl-btn svg { width: 20px; height: 20px; fill: currentColor; }
.download-mockup { flex: 1; display: flex; justify-content: center; }
.mockup-frame {
  width: 260px; height: 520px; background: var(--bg-page);
  border-radius: 40px; border: 6px solid var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.mockup-frame::before {
  content: ''; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 24px; background: var(--bg-secondary); border-radius: 12px;
}
.mockup-screen {
  font-size: 14px; color: var(--text-secondary); text-align: center; padding: 24px;
}
.mockup-screen .mock-app-logo {
  width: 72px; height: 72px; object-fit: contain; margin: 0 auto 16px;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
}
.mockup-screen .mock-sub { font-size: 14px; color: var(--text-secondary); font-weight: 500; letter-spacing: 0.5px; }

/* ==================== 品牌故事 ==================== */
.section-about {
  padding: 100px 24px; text-align: center;
  background: var(--bg-page);
}
.about-inner { max-width: 700px; margin: 0 auto; }
.about-inner .section-title { 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(--text-primary);
}
.value-label { display: block; font-size: 13px; color: var(--text-secondary); margin-top: 6px; letter-spacing: 0.5px; }

/* ==================== Footer ==================== */
.kxs-footer {
  background: var(--bg-dark); color: var(--text-inverse); padding: 56px 24px 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.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; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.5); 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: rgba(255,255,255,0.5);
  padding: 4px 0; transition: color var(--transition-base);
}
.footer-col a:hover { color: #FFFFFF; }
.footer-wechat {
  width: 100px; height: 100px; background: rgba(255,255,255,0.1);
  border-radius: var(--radius-base); display: flex; align-items: center;
  justify-content: center; margin-top: 8px;
}
.footer-wechat span { font-size: 11px; color: rgba(255,255,255,0.4); text-align: center; white-space: pre-line; }
.footer-bottom {
  max-width: 1200px; margin: 32px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-copyright-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p, .footer-beian { font-size: 12px; color: rgba(255,255,255,0.35); text-decoration: none; transition: color var(--transition-base); }
.footer-beian:hover { color: #FFFFFF; }

@media (max-width: 768px) {
  .footer-copyright-wrap { justify-content: center; text-align: center; gap: 8px; }
}

/* ==================== 滚动动画 ==================== */
.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; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
  :root { --nav-height: 52px; }
  .nav-links, .nav-right { display: none; }
  .nav-hamburger { display: flex; }
  .hero-content {
    flex-direction: column; text-align: center; padding: 48px 20px 80px;
    min-height: auto;
  }
  .hero-text { max-width: 100%; }
  .hero-title { font-size: 30px; letter-spacing: -0.3px; }
  .hero-desc { font-size: 15px; margin-bottom: 28px; }
  .hero-image img { max-height: 240px; }
  .hero-image::before { width: 200px; height: 200px; }
  .section-products { padding: 48px 0 40px; }
  .section-header { padding: 0 20px 20px; }
  .section-title { font-size: 24px; }
  .product-track { padding: 0 20px 12px; }
  .product-card { flex: 0 0 220px; }
  .card-img { height: 160px; padding: 18px; }
  .card-img img { max-height: 130px; }
  .section-download { padding: 60px 20px; }
  .download-inner { flex-direction: column; text-align: center; gap: 48px; }
  .download-btns { justify-content: center; }
  .download-mockup { order: -1; }
  .mockup-frame { width: 200px; height: 400px; border-width: 5px; border-radius: 32px; }
  .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: 36px; }
  .hero-image img { max-height: 300px; }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
}
