/* ============================================
   BEISAX 佰赛思 - 品牌电商首页样式
   设计语言：现代简约 / 大留白 / 卡片式
   主色：海军蓝 #0b2447 · 品牌蓝 #0a84ff · 青绿 #00b3a4
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0b2447;
  --primary: #0a84ff;
  --primary-dark: #0050b3;
  --accent: #00b3a4;
  --text: #1c1f26;
  --text-light: #5f6b7a;
  --text-lighter: #9aa5b5;
  --bg: #f6f7fb;
  --bg-white: #ffffff;
  --border: #e7eaf0;
  --red: #e5493a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(11, 36, 71, .06);
  --shadow: 0 8px 24px rgba(11, 36, 71, .08);
  --shadow-lg: 0 16px 40px rgba(11, 36, 71, .14);
}

html { scroll-behavior: smooth; }

.hidden { display: none !important; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   顶部信息条
   ============================================ */
.top-strip {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  font-size: 12.5px;
  letter-spacing: .3px;
}
.strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
}
.strip-slogan {
  font-weight: 600;
  letter-spacing: .5px;
  color: rgba(255, 255, 255, .85);
}
.strip-links { display: flex; gap: 24px; }
.strip-links a { color: rgba(255,255,255,.75); transition: color .2s; }
.strip-links a:hover { color: #fff; }

/* ============================================
   页头
   ============================================ */
.site-header {
  background: var(--bg-white);
  padding: 18px 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo { filter: drop-shadow(0 3px 8px rgba(10,132,255,.3)); }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 2px;
  line-height: 1.1;
}
.brand-cn {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 1px;
  margin-top: 2px;
}

.main-nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nav-link {
  padding: 8px 16px;
  font-size: 15px;
  color: var(--text-light);
  border-radius: 8px;
  transition: all .2s;
  font-weight: 500;
}
.nav-link:hover { color: var(--primary); background: #eef6ff; }
.nav-link.active { color: var(--primary); font-weight: 700; }

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg);
  border-radius: 24px;
  padding: 0 6px 0 18px;
  border: 1.5px solid transparent;
  transition: all .25s;
  width: 260px;
  flex-shrink: 0;
}
.search-box:focus-within {
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(10,132,255,.12);
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  padding: 10px 0;
  color: var(--text);
}
.search-box input::placeholder { color: var(--text-lighter); }
.search-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  transition: all .2s;
}
.search-btn:hover { background: var(--primary-dark); }

/* 语言切换器 */
.lang-switch { position: relative; flex-shrink: 0; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 200px;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 6px;
  z-index: 200;
  display: none;
  max-height: 340px;
  overflow-y: auto;
}
.lang-menu.open { display: block; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: all .15s;
  text-align: left;
}
.lang-option:hover { background: var(--bg); }
.lang-option.active { background: var(--primary-light); color: var(--primary); font-weight: 700; }
.lang-option .lo-flag { font-size: 16px; }
.lang-option .lo-en { margin-left: auto; font-size: 11px; color: var(--text-lighter); }

/* ============================================
   公告条
   ============================================ */
.notice-bar {
  background: linear-gradient(90deg, #fff7e6, #fffdf5);
  border: 1px solid #ffe7ba;
  border-radius: 12px;
  margin-top: 16px;
  overflow: hidden;
}
.notice-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13.5px;
  color: #8a5a00;
}
.notice-icon { font-size: 16px; flex-shrink: 0; }
.notice-text {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.notice-text b { color: #e5493a; }

/* ============================================
   Hero 轮播
   ============================================ */
.hero {
  background: var(--bg);
  padding-top: 16px;
}
.carousel {
  position: relative;
  height: 460px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}
.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  background: var(--slide-bg);
  position: relative;
  overflow: hidden;
}
.carousel-slide::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(255,255,255,.14) 0%, transparent 65%);
  border-radius: 50%;
}
.carousel-slide::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: 30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 60%);
  border-radius: 50%;
}
.slide-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 80px;
  color: #fff;
  position: relative;
  z-index: 1;
}
.slide-text { flex: 1; max-width: 500px; }
.slide-kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 600;
  padding: 6px 16px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 24px;
  backdrop-filter: blur(6px);
  margin-bottom: 20px;
}
.slide-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.slide-desc {
  font-size: 16px;
  line-height: 1.8;
  opacity: .92;
  margin-bottom: 28px;
}
.slide-price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
}
.slide-price .num {
  font-size: 44px;
  font-weight: 800;
  color: #ffe16b;
  text-shadow: 0 2px 14px rgba(0,0,0,.18);
}
.slide-price .origin {
  font-size: 16px;
  opacity: .75;
  text-decoration: line-through;
}
.slide-price .note {
  font-size: 12.5px;
  background: rgba(255,255,255,.18);
  padding: 3px 12px;
  border-radius: 16px;
}
.slide-btn {
  display: inline-block;
  padding: 13px 34px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  border-radius: 30px;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  transition: transform .2s, box-shadow .2s;
}
.slide-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,0,0,.24);
}
.slide-image {
  flex-shrink: 0;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.3));
  animation: float 4.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: rgba(255,255,255,.85);
  color: var(--navy);
  font-size: 26px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all .3s;
  z-index: 2;
  box-shadow: var(--shadow);
}
.carousel:hover .carousel-arrow { opacity: 1; }
.carousel-arrow:hover {
  transform: translateY(-50%) scale(1.08);
  background: #fff;
}
.carousel-arrow.prev { left: 20px; }
.carousel-arrow.next { right: 20px; }

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.dot {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,.45);
  border-radius: 50%;
  cursor: pointer;
  transition: all .3s;
}
.dot.active {
  width: 30px;
  border-radius: 5px;
  background: #fff;
}

/* ============================================
   Section 通用
   ============================================ */
.series, .products-sec { padding: 64px 0; }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head.row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  text-align: left;
}
.sec-head h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: .5px;
}
.sec-head p {
  color: var(--text-light);
  margin-top: 8px;
  font-size: 14.5px;
}
.sec-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 14.5px;
  transition: all .2s;
}
.sec-more:hover { transform: translateX(3px); color: var(--primary-dark); }

/* ============================================
   产品系列卡片
   ============================================ */
.series { background: var(--bg-white); }
.series-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.series-card {
  background: var(--card-bg, #f2f5fb);
  border-radius: var(--radius);
  padding: 28px 24px;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.series-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.series-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,.35);
  border-radius: 50%;
}
.series-icon {
  font-size: 36px;
  margin-bottom: 14px;
  color: var(--navy);
}
.series-svg {
  width: 38px;
  height: 38px;
}
.series-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.series-all .series-icon { color: #7cc4ff; }
.series-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.series-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.series-count {
  display: inline-block;
  font-size: 12px;
  color: var(--text-light);
  background: rgba(255,255,255,.6);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.series-btn {
  display: block;
  width: 100%;
  padding: 9px 0;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: all .25s;
  position: relative;
  z-index: 1;
}
.series-btn:hover { background: var(--primary); }
.series-all {
  background: linear-gradient(135deg, #0b2447, #123a6b);
  color: #fff;
}
.series-all h3 { color: #fff; }
.series-all p { color: rgba(255,255,255,.75); }
.series-all .series-count { background: rgba(255,255,255,.15); color: #fff; }
.series-all .series-btn { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35); }
.series-all .series-btn:hover { background: #fff; color: var(--navy); }

/* ============================================
   商品卡片
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  border-radius: 20px;
  z-index: 2;
  letter-spacing: .5px;
}
.badge-hot { background: linear-gradient(135deg, #ff6b6b, #e5493a); }
.badge-new { background: linear-gradient(135deg, #00b3a4, #0a9a8d); }
.badge-sale { background: linear-gradient(135deg, #ff9a44, #f07700); }

.product-img {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #f4f6fa;
  overflow: hidden;
}
.product-img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s;
}
.product-card:hover .product-img img { transform: scale(1.06); }
.product-info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-title {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 10px;
  transition: color .2s;
}
.product-card:hover .product-title { color: var(--primary); }
.product-desc-preview {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
  min-height: 20px;
}
.ptag {
  font-size: 11px;
  color: var(--accent);
  background: rgba(0,179,164,.08);
  border: 1px solid rgba(0,179,164,.2);
  padding: 1px 8px;
  border-radius: 10px;
}
.ptag.orange { color: #e5493a; background: rgba(229,73,58,.06); border-color: rgba(229,73,58,.2); }
.product-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 10px;
}
.product-price .currency { font-size: 14px; color: var(--red); font-weight: 700; }
.product-price .now { font-size: 24px; font-weight: 800; color: var(--red); letter-spacing: -0.5px; }
.product-price .old {
  font-size: 12.5px;
  color: var(--text-lighter);
  text-decoration: line-through;
  margin-left: 6px;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.product-sales {
  font-size: 12px;
  color: var(--text-light);
}
.meta-actions { display: inline-flex; gap: 6px; align-items: center; }
.buy-btn {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ff6b3d, #ff3b30);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: all .25s;
}
.buy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 59, 48, .35);
}
.view-btn {
  padding: 5px 14px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  transition: all .25s;
}
.product-card:hover .view-btn {
  background: var(--primary);
  color: #fff;
}

/* ============================================
   品牌故事
   ============================================ */
.story {
  background: linear-gradient(135deg, #0b2447 0%, #0d3a6e 60%, #0a84ff 130%);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.story::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 65%);
  border-radius: 50%;
}
.story-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.story-kicker {
  font-size: 13px;
  letter-spacing: 4px;
  color: #7cc4ff;
  font-weight: 600;
  margin-bottom: 16px;
}
.story-left h2 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
}
.story-desc {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255,255,255,.82);
  margin-bottom: 28px;
  max-width: 480px;
}
.story-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14.5px;
  color: rgba(255,255,255,.9);
}
.story-points li span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,179,164,.9);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.stat {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform .3s;
}
.stat:hover { transform: translateY(-4px); }
.stat-num {
  font-size: 40px;
  font-weight: 800;
  color: #ffe16b;
  margin-bottom: 6px;
  letter-spacing: .5px;
}
.stat-num span { font-size: 22px; }
.stat-label {
  font-size: 13.5px;
  color: rgba(255,255,255,.75);
  letter-spacing: 1px;
}

/* ============================================
   全部产品筛选
   ============================================ */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.filter-btn {
  padding: 10px 22px;
  border-radius: 24px;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  transition: all .25s;
}
.filter-btn span {
  display: inline-block;
  min-width: 22px;
  height: 22px;
  line-height: 22px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 11px;
  background: var(--bg);
  font-size: 11.5px;
  color: var(--text-light);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(11,36,71,.25);
}
.filter-btn.active span { background: rgba(255,255,255,.18); color: #fff; }

/* ============================================
   IP 变化语言提示弹窗
   ============================================ */
.suggest-mask {
  position: fixed;
  inset: 0;
  background: rgba(11, 36, 71, .55);
  z-index: 998;
  backdrop-filter: blur(3px);
}
.suggest-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  max-width: calc(100vw - 40px);
  background: var(--bg-white);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
  z-index: 999;
  padding: 32px 30px 24px;
  text-align: center;
  animation: modalIn .3s cubic-bezier(.4, 0, .2, 1);
}
.suggest-icon { font-size: 40px; margin-bottom: 12px; }
.suggest-modal h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}
.suggest-desc {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 22px;
}
.suggest-desc b { color: var(--primary); }
.suggest-en {
  font-size: 12px;
  color: var(--text-lighter);
  line-height: 1.7;
}
.suggest-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 12px;
}
.btn-primary-lg {
  flex: 1;
  padding: 12px 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.btn-primary-lg:hover { opacity: .9; transform: translateY(-1px); }
.btn-ghost-lg {
  flex: 1;
  padding: 12px 10px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.btn-ghost-lg:hover { border-color: var(--primary); color: var(--primary); }
.suggest-note { font-size: 11.5px; color: var(--text-lighter); }

/* ============================================
   商品详情弹窗
   ============================================ */
.detail-mask {
  position: fixed;
  inset: 0;
  background: rgba(11, 36, 71, .55);
  z-index: 998;
  backdrop-filter: blur(3px);
}
.detail-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 860px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 60px);
  background: var(--bg-white);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  z-index: 999;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalIn .3s cubic-bezier(.4, 0, .2, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, -46%) scale(.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(11, 36, 71, .08);
  color: var(--text);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  z-index: 2;
}
.detail-close:hover { background: #ffe9e7; color: var(--red); }
.detail-body {
  display: flex;
  overflow-y: auto;
  min-height: 320px;
}
.detail-left {
  flex: 1;
  background: #f4f6fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  min-width: 320px;
}
.detail-left img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
}
.detail-right {
  flex: 1.15;
  padding: 36px 32px 32px;
  overflow-y: auto;
}
.detail-cat {
  display: inline-block;
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-light, #e3f1ff);
  padding: 3px 12px;
  border-radius: 14px;
  margin-bottom: 12px;
  font-weight: 600;
}
.detail-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 12px;
}
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.detail-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}
.detail-price .currency { font-size: 18px; color: var(--red); font-weight: 800; }
.detail-price .now { font-size: 38px; font-weight: 800; color: var(--red); }
.detail-price .old {
  font-size: 14px;
  color: var(--text-lighter);
  text-decoration: line-through;
  margin-left: 8px;
}
.detail-sales { font-size: 13px; color: var(--text-light); margin-bottom: 18px; }
.detail-buylinks { margin-bottom: 20px; }
.detail-buylinks h4 {
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 10px;
}
.buylink-list { display: flex; flex-wrap: wrap; gap: 8px; }
.buylink-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--p-color, #0a84ff);
  transition: all .2s;
}
.buylink-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.detail-desc {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
  background: #f8fafd;
  border-left: 3px solid var(--primary);
  padding: 14px 16px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 20px;
}
.detail-files h4 {
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 10px;
}
.detail-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  transition: all .2s;
}
.detail-file:hover {
  border-color: var(--primary);
  background: #f0f7ff;
}
.df-icon { font-size: 20px; }
.df-name {
  flex: 1;
  font-size: 13.5px;
  color: var(--text);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.df-dl {
  font-size: 12.5px;
  color: var(--primary);
  font-weight: 600;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .detail-body { flex-direction: column; }
  .detail-left { min-width: 0; padding: 24px; }
  .detail-left img { max-height: 220px; }
}

/* ============================================
   页脚
   ============================================ */
.site-footer {
  background: #0a1526;
  color: #8fa0b5;
  padding: 56px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.fb-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.footer-brand p { font-size: 13px; margin-top: 4px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.footer-col a {
  font-size: 13.5px;
  color: #8fa0b5;
  transition: color .2s;
  width: fit-content;
}
.footer-col a:hover { color: #7cc4ff; }
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  font-size: 12.5px;
  color: #5c6d84;
  line-height: 1.8;
}
.admin-entry { margin-top: 10px; }
.admin-entry a {
  font-size: 12px;
  color: #5c6d84;
  border-bottom: 1px dashed #5c6d84;
  padding-bottom: 1px;
  transition: all .2s;
}
.admin-entry a:hover { color: #7cc4ff; border-color: #7cc4ff; }

/* ============================================
   回到顶部
   ============================================ */
.back-top {
  position: fixed;
  right: 28px;
  bottom: 40px;
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(11,36,71,.3);
  opacity: 0;
  transform: translateY(16px);
  transition: all .3s;
  z-index: 99;
}
.back-top.show { opacity: 1; transform: translateY(0); }
.back-top:hover { background: var(--primary); transform: translateY(-2px); }

/* Toast */
#toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.9);
  padding: 12px 26px;
  background: rgba(11, 36, 71, .92);
  color: #fff;
  font-size: 14px;
  border-radius: 12px;
  z-index: 9999;
  opacity: 0;
  transition: all .25s;
  pointer-events: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}

/* ============================================
   响应式
   ============================================ */
@keyframes mobileNavIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 汉堡按钮（默认隐藏，≤1024px 显示） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--navy);
  transition: all .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* 移动端导航抽屉（默认隐藏，≤1024px 启用） */
.mobile-nav {
  display: none;
}

@media (max-width: 1024px) {
  .series-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1.2fr repeat(2, 1fr); }
  .search-box { width: 200px; }
  .slide-content { padding: 0 48px; }
  .nav-toggle { display: flex; }
  .main-nav { display: none; }
  .mobile-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px rgba(11,36,71,.1);
    padding: 8px 0;
    z-index: 120;
  }
  .mobile-nav.open { display: flex; animation: mobileNavIn .2s ease; }
  .mobile-nav a {
    padding: 13px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    border-left: 3px solid transparent;
  }
  .mobile-nav a.active { color: var(--primary); border-left-color: var(--primary); background: rgba(10,132,255,.06); }
  .mobile-nav a:active { background: var(--bg); }
  .site-header { position: relative; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; gap: 14px; }
  .main-nav { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; white-space: nowrap; padding-bottom: 4px; }
  .search-box { margin-left: auto; width: 180px; }
  .strip-links { display: none; }
  .carousel { height: 380px; }
  .slide-content { padding: 0 28px; }
  .slide-title { font-size: 32px; }
  .slide-image { width: 200px; height: 200px; }
  .slide-desc { font-size: 14px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .series-grid { grid-template-columns: 1fr; }
  .story-inner { grid-template-columns: 1fr; gap: 40px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .sec-head h2 { font-size: 26px; }
  .story-left h2 { font-size: 30px; }
}

/* ---------- 移动端精细化（≤640px） ---------- */
@media (max-width: 640px) {
  .top-strip { padding: 6px 14px; }
  .strip-slogan { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-inner { gap: 10px; padding: 12px 14px; }
  .brand-logo svg { width: 40px; height: 40px; }
  .brand-name { font-size: 17px; }
  .brand-cn { font-size: 10.5px; }
  .search-box { width: 100%; order: 4; flex-basis: 100%; margin-left: 0; }
  .lang-btn { padding: 6px 10px; font-size: 12px; }
  .lang-menu {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 68px;
    max-height: 60vh;
    overflow-y: auto;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(11,36,71,.18);
  }
  .carousel { height: 300px; }
  .slide-content { padding: 0 18px; }
  .slide-title { font-size: 25px; line-height: 1.25; }
  .slide-kicker { font-size: 11px; }
  .slide-desc { font-size: 12.5px; margin-top: 8px; -webkit-line-clamp: 2; }
  .slide-price { margin-top: 10px; }
  .slide-price .num { font-size: 24px; }
  .slide-btn { padding: 9px 20px; font-size: 13px; margin-top: 12px; }
  .slide-image { width: 140px; height: 140px; right: 14px; }
  .carousel-arrow { width: 34px; height: 34px; font-size: 20px; }
  .carousel-dots { bottom: 12px; }
  .carousel-dots span { width: 7px; height: 7px; }
  .series-card { padding: 20px; }
  .series-card h3 { font-size: 17px; }
  .sec-head { padding: 26px 14px 4px; }
  .sec-head h2 { font-size: 23px; }
  .sec-head p { font-size: 12.5px; }
  .product-card { border-radius: 14px; }
  .product-info { padding: 12px; }
  .product-title { font-size: 13.5px; }
  .product-desc-preview { font-size: 12px; -webkit-line-clamp: 2; }
  .product-price .now { font-size: 18px; }
  .product-sales { font-size: 11px; }
  .view-btn { padding: 8px 12px; font-size: 12.5px; }
  .buy-btn { padding: 8px 12px; font-size: 12.5px; }
  .product-tags .ptag { font-size: 11px; padding: 3px 8px; }
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 14px 6px; }
  .filter-btn { flex-shrink: 0; padding: 8px 14px; font-size: 12.5px; }
  .story { padding: 44px 14px; }
  .story-kicker { font-size: 11px; }
  .story-left h2 { font-size: 24px; }
  .story-desc { font-size: 13.5px; }
  .stat-num { font-size: 22px; }
  .stat-label { font-size: 11.5px; }
  .site-footer { padding: 40px 0 24px; }
  .footer-top { gap: 24px; padding-bottom: 28px; }
  .footer-col h5 { font-size: 13px; }
  .footer-col a { font-size: 12.5px; }
  .back-top { width: 42px; height: 42px; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); border-radius: 12px; }
  /* 详情弹窗移动端：全屏化 */
  .detail-modal { border-radius: 0; }
  .detail-body { flex-direction: column; }
  .detail-left { min-width: 0; padding: 20px; }
  .detail-left img { max-height: 240px; }
  .detail-right { padding: 20px; }
  .detail-title { font-size: 18px; }
  .detail-close { width: 36px; height: 36px; top: 10px; right: 10px; }
  .detail-buylinks .buylink-list { grid-template-columns: 1fr; }
  .detail-files h4, .detail-buylinks h4 { font-size: 14px; }
  /* 公告条 */
  .notice-inner { padding: 8px 14px; font-size: 12.5px; }
  /* Toast 适配底部安全区 */
  #toast { max-width: 86vw; padding: 11px 20px; font-size: 13px; text-align: center; }
  /* 语言切换提示弹窗 */
  .suggest-modal { width: 92vw; }
  .suggest-title { font-size: 17px; }
  .suggest-desc { font-size: 13px; }
  .suggest-actions { flex-direction: column; }
  .suggest-actions button { width: 100%; }
}

/* ---------- 超小屏（≤400px） ---------- */
@media (max-width: 400px) {
  .carousel { height: 270px; }
  .slide-title { font-size: 22px; }
  .slide-image { width: 110px; height: 110px; }
  .product-grid { gap: 10px; }
  .product-info { padding: 10px; }
  .product-title { font-size: 12.5px; }
  .meta-actions { flex-direction: column; align-items: stretch; gap: 6px; }
  .buy-btn, .view-btn { width: 100%; text-align: center; }
  .product-price .now { font-size: 16px; }
  .footer-top { grid-template-columns: 1fr; gap: 18px; }
  .footer-brand { margin-bottom: 6px; }
}

/* ============================================
   动效系统（animations.js）
   ============================================ */

/* 锚点滚动偏移补偿（sticky 页头） */
#hero, #series, #hot, #story, #products, #footer {
  scroll-margin-top: 86px;
}

/* ---------- 滚动 reveal 动画 ----------
   默认可见（JS 加载失败时不白屏）；
   仅当 body.fx-ready（animations.js 就绪）时才进入待动画隐藏态 */
.reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-zoom {
  will-change: opacity, transform;
}
body.fx-ready .reveal,
body.fx-ready .reveal-up,
body.fx-ready .reveal-left,
body.fx-ready .reveal-right,
body.fx-ready .reveal-zoom {
  opacity: 0;
}
.reveal.in, .reveal-up.in, .reveal-left.in, .reveal-right.in, .reveal-zoom.in {
  opacity: 1;
}
.reveal-up { transform: translateY(42px); }
.reveal-up.in { animation: revealUp .7s cubic-bezier(.22, .9, .3, 1) forwards; }
.reveal-left { transform: translateX(-48px); }
.reveal-left.in { animation: revealLeft .7s cubic-bezier(.22, .9, .3, 1) forwards; }
.reveal-right { transform: translateX(48px); }
.reveal-right.in { animation: revealRight .7s cubic-bezier(.22, .9, .3, 1) forwards; }
.reveal-zoom { transform: scale(.88); }
.reveal-zoom.in { animation: revealZoom .7s cubic-bezier(.22, .9, .3, 1) forwards; }

@keyframes revealUp { to { opacity: 1; transform: translateY(0); } }
@keyframes revealLeft { to { opacity: 1; transform: translateX(0); } }
@keyframes revealRight { to { opacity: 1; transform: translateX(0); } }
@keyframes revealZoom { to { opacity: 1; transform: scale(1); } }

/* 交错子元素（系列卡 / 产品卡） */
.stagger-item { transform: translateY(28px); will-change: opacity, transform; }
body.fx-ready .stagger-item { opacity: 0; }
.stagger-item.in { animation: revealUp .6s cubic-bezier(.22, .9, .3, 1) forwards; }

/* 动态产品卡 / 系列卡默认已展示（不进 reveal），仅悬浮效果见下 */
.product-card, .series-card { transition: transform .35s cubic-bezier(.22, .9, .3, 1), box-shadow .35s; }

/* ---------- 水珠漂浮碰撞粒子 ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;               /* 在轮播(2)之上、箭头/圆点(4)之下 */
  overflow: hidden;
}
.hero-bubble {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.85), rgba(10,132,255,.28) 55%, rgba(10,132,255,.08));
  box-shadow: inset -2px -3px 6px rgba(11,36,71,.12), 0 0 12px rgba(10,132,255,.18);
  will-change: left, top, transform, opacity;
}
.carousel { z-index: 2; }
.carousel-arrow, .carousel-dots { z-index: 4; }

/* 轮播图片缓动浮动 + 标题入场 */
.slide-image.float-anim { animation: floatY 4.5s ease-in-out infinite; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.slide-title.title-anim { animation: titleIn .8s cubic-bezier(.22, .9, .3, 1) both; }
@keyframes titleIn {
  from { opacity: 0; transform: translateY(24px) scale(.97); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ---------- 点击涟漪 ---------- */
.ripple, .btn, .buy-btn, .view-btn, .series-btn, .filter-btn, .lang-btn, .slide-btn, .nav-toggle, .sec-more {
  position: relative;
  overflow: hidden;
}
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.55), rgba(255,255,255,0) 65%);
  transform: scale(0);
  animation: rippleAnim .55s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(1); opacity: 0; }
}

/* ---------- 卡片悬浮微交互 ---------- */
/* 产品卡 */
.product-card {
  transition: transform .35s cubic-bezier(.22, .9, .3, 1), box-shadow .35s;
}
@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(11, 36, 71, .14);
  }
  .product-card:hover .product-img img { transform: scale(1.07); }
  .product-card:hover .product-title { color: var(--primary); }
  .product-card:active { transform: translateY(-3px) scale(.985); }
}
.product-img { overflow: hidden; }
.product-img img { transition: transform .5s cubic-bezier(.22, .9, .3, 1); }

/* 系列卡 */
@media (hover: hover) {
  .series-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(11, 36, 71, .13);
  }
  .series-card:hover .series-icon { transform: scale(1.12) rotate(-6deg); }
  .series-card:hover .series-btn { background: var(--primary); color: #fff; border-color: var(--primary); }
}
.series-icon { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); display: inline-block; }
.series-card { transition: transform .35s cubic-bezier(.22, .9, .3, 1), box-shadow .35s; }
.series-btn { transition: all .3s; }

/* 按钮光扫 */
.btn-sheen, .buy-btn, .view-btn, .series-btn, .slide-btn {
  position: relative;
  overflow: hidden;
}
@media (hover: hover) {
  .btn-sheen::after, .buy-btn::after, .view-btn::after, .series-btn::after, .slide-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
    transform: skewX(-20deg);
    transition: left .5s ease;
  }
  .btn-sheen:hover::after, .buy-btn:hover::after, .view-btn:hover::after, .series-btn:hover::after, .slide-btn:hover::after {
    left: 130%;
  }
}

/* 顶部标语 hover */
.strip-slogan { transition: color .3s; }

/* 轮播切换滑动动画（track 平移已在 script.js 控制） */
.carousel-track { transition: transform .7s cubic-bezier(.25, .8, .3, 1); }

/* 导航链接滑动下划线 */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2.5px;
  border-radius: 2px;
  background: var(--primary);
  transition: width .3s ease, left .3s ease;
}
@media (hover: hover) {
  .nav-link:hover::after, .nav-link.active::after { width: 100%; left: 0; }
}

/* 回到顶部悬浮（已带 transition） */

/* 统计数字滚动样式 */
.stat-num b { font-weight: inherit; }

/* 页面加载进场 */
body.fx-ready .site-header { animation: headerIn .6s cubic-bezier(.22, .9, .3, 1) both; }
@keyframes headerIn {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 动画降级：减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-zoom, .stagger-item {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .slide-image.float-anim, .slide-title.title-anim, .hero-bubble {
    animation: none !important;
  }
  .carousel-track { transition: none; }
  .product-card, .series-card { transition: none; }
  .nav-link::after { transition: none; }
}

/* 移动端触摸：禁用 hover 悬浮（避免粘滞），保留点击涟漪 */
@media (hover: none) {
  .product-card:hover, .series-card:hover { transform: none; box-shadow: var(--shadow); }
  .product-card:hover .product-img img { transform: none; }
  .btn-sheen::after, .buy-btn::after, .view-btn::after, .series-btn::after, .slide-btn::after { display: none; }
}

/* ---------- 弹窗增强动画 ---------- */
.detail-modal { animation: modalIn .38s cubic-bezier(.22, .9, .3, 1); }
.detail-left, .detail-right {
  animation: detailFadeIn .5s cubic-bezier(.22, .9, .3, 1) both;
}
.detail-right { animation-delay: .1s; }
@keyframes detailFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.detail-mask, .suggest-mask { animation: maskIn .3s ease both; }
@keyframes maskIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* 公告条滑入 */
.notice-bar { animation: noticeDrop .5s cubic-bezier(.22, .9, .3, 1) both; }
@keyframes noticeDrop {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}
/* 回到顶部 */
.back-top { transition: opacity .3s, transform .3s; }
