/* ============================================================
   XuniShop · 明亮玻璃主题（明亮大气 · 玻璃拟态 · 渐变发光）
   浅色背景 + 白色玻璃 + 柔和光影 + 逐词模糊动画
   ============================================================ */

/* ---------- 字体 ---------- */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/barlow-300.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-500.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600.ttf") format("truetype"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-regular.ttf") format("truetype"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-italic.ttf") format("truetype"); }

/* ---------- 设计变量（明亮） ---------- */
:root {
  --bg: #f2f5fc;
  --bg-2: #eaf0fa;
  --surface: rgba(255, 255, 255, .6);
  --surface-2: rgba(255, 255, 255, .82);
  --glass: rgba(255, 255, 255, .6);
  --glass-strong: rgba(255, 255, 255, .88);
  --glass-border: rgba(23, 28, 47, .08);
  --text: #171c2f;
  --text-2: rgba(23, 28, 47, .62);
  --text-3: rgba(23, 28, 47, .38);
  --primary: #3d7bff;
  --primary-hover: #2f6cef;
  --primary-grad: linear-gradient(135deg, #3d7bff, #6a5cff);
  --primary-weak: rgba(61, 123, 255, .14);
  --success: #1fa84e;
  --danger: #e5484d;
  --warn: #b7791f;
  --price: #ff4d4f;
  --border: rgba(23, 28, 47, .10);
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow-sm: 0 2px 12px rgba(23, 28, 47, .06);
  --shadow: 0 8px 30px rgba(23, 28, 47, .08);
  --shadow-lg: 0 24px 64px rgba(23, 28, 47, .14);
  --glow: 0 0 0 1px rgba(61, 123, 255, .25), 0 8px 40px rgba(61, 123, 255, .16);
  --font: "Barlow", -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* ---------- 明亮背景（固定层：柔和光晕） ---------- */
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 18% -5%, rgba(61, 123, 255, .14), transparent 60%),
    radial-gradient(ellipse 55% 40% at 85% 12%, rgba(139, 92, 246, .10), transparent 60%),
    radial-gradient(ellipse 60% 45% at 50% 110%, rgba(79, 140, 255, .10), transparent 60%),
    linear-gradient(180deg, #f7f9ff 0%, #eef2fb 55%, #e9eefb 100%);
}
body::after { display: none; }

a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; }
::selection { background: rgba(61, 123, 255, .28); color: #fff; }

/* 更宽更舒展的容器 */
.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
main.container { padding-top: 20px; padding-bottom: 96px; }
@media (min-width: 1560px) { .container { max-width: 1440px; } }

/* ============================================================
   液态玻璃（明亮）
   ============================================================ */
.liquid-glass {
  position: relative;
  background: linear-gradient(145deg, rgba(255,255,255,.8) 0%, rgba(255,255,255,.58) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), var(--shadow-sm);
}
.liquid-glass-strong {
  background: linear-gradient(145deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.72) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(23, 28, 47, .10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,1), var(--shadow);
}
/* 渐变描边（更高级的玻璃边缘） */
.gradient-border {
  position: relative;
  background: linear-gradient(145deg, rgba(255,255,255,.85), rgba(255,255,255,.6));
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
.gradient-border::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(255,255,255,1), rgba(255,255,255,.5) 30%, rgba(255,255,255,.35) 60%, rgba(255,255,255,.8));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* ============================================================
   发光边框（鼠标跟随）
   ============================================================ */
.border-glow {
  --x: 50%;
  --y: 50%;
  position: relative;
}
.border-glow::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--x) var(--y), rgba(61, 123, 255, .30), rgba(139, 92, 246, .14) 35%, transparent 65%);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: 1;
  pointer-events: none;
}
.border-glow:hover::after { opacity: 1; }
.border-glow > * { position: relative; z-index: 2; }

/* ============================================================
   顶部导航（白色玻璃胶囊）
   ============================================================ */
.header {
  position: sticky; top: 14px; z-index: 200;
  padding: 0 28px;
}
.header .container {
  display: flex; align-items: center; gap: 18px;
  height: 56px;
  max-width: 1280px;
  border-radius: 999px;
  padding: 0 12px 0 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.85), rgba(255,255,255,.62));
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(23, 28, 47, .09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 8px 32px rgba(23, 28, 47, .10);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, -webkit-backdrop-filter .3s ease, backdrop-filter .3s ease;
}

/* 首页：导航栏透明悬浮在太空视频上，滚动后恢复白色玻璃 */
.page-home .header .container {
  background: transparent !important;
  border-color: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}
/* 首页导航文字恒为白色 + 小范围深色投影（顶部透明与滚动后深色玻璃通用） */
.page-home .header .container .nav a,
.page-home .header .container .nav-orders-btn,
.page-home .header .container .brand {
  color: #fff;
  text-shadow: 0 1px 2px rgba(10,15,30,.8);
}
.page-home .header .container .nav a:hover { color: #fff; background: rgba(255,255,255,.16); }
/* 首页搜索框、订单按钮深色半透明，不出现白色块 */
.page-home .header .container .search-box input {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
}
.page-home .header .container .search-box input::placeholder { color: rgba(255,255,255,.55); }
.page-home .header .container .search-box .icon { color: rgba(255,255,255,.8); }
.page-home .header .container .nav-orders-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
}
.page-home .header .container .nav a.active {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.page-home .header .container .btn-primary,
.page-home .header .container .login-btn {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  box-shadow: none;
}
.page-home .header .container .btn-primary:hover,
.page-home .header .container .login-btn:hover {
  background: rgba(255,255,255,.24);
  color: #fff;
  box-shadow: none;
}
/* 首页滚动后：深色半透明玻璃（不用白色，避免白条），白字依然清晰 */
.page-home .header.scrolled .container {
  background: rgba(10, 15, 30, .58) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 8px 32px rgba(10, 15, 30, .22);
}
.logo {
  font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: #171c2f;
  display: flex; align-items: center; gap: 10px; white-space: nowrap; flex-shrink: 0;
}
.logo i {
  font-style: normal; width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, #3d7bff, #8b5cf6); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
  box-shadow: 0 0 18px rgba(61, 123, 255, .35);
}
.logo em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  background: linear-gradient(120deg, #2f6cef, #7c4dff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.logo:hover { color: #171c2f; }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--text-2); font-size: 14px; font-weight: 500; padding: 7px 13px;
  border-radius: 999px; transition: color .15s, background .15s;
}
.nav a:hover { color: #171c2f; background: rgba(23, 28, 47, .06); }
.nav a.active { color: #2f6cef; background: rgba(61, 123, 255, .14); box-shadow: inset 0 0 0 1px rgba(61, 123, 255, .30); }

.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.search-box { position: relative; }
.search-box input {
  width: 180px; padding: 8px 14px 8px 36px; border-radius: 999px;
  border: 1px solid rgba(23, 28, 47, .10);
  background: rgba(255, 255, 255, .7); font-size: 14px; color: #171c2f; outline: none;
  transition: width .25s ease, background .2s, box-shadow .2s;
}
.search-box input::placeholder { color: var(--text-3); }
.search-box input:focus { width: 240px; background: #fff; box-shadow: 0 0 0 3px var(--primary-weak); }
.search-box .icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: var(--text-3); pointer-events: none;
}

.login-btn {
  padding: 8px 18px; border-radius: 999px;
  background: var(--primary-grad); color: #fff;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 0 16px rgba(61, 123, 255, .35);
  transition: box-shadow .2s, transform .1s;
}
.login-btn:hover { color: #fff; box-shadow: 0 0 24px rgba(61, 123, 255, .55); }
.login-btn:active { transform: scale(.97); }

.nav-orders-btn {
  padding: 8px 18px; border-radius: 999px;
  background: rgba(23, 28, 47, .05); color: #171c2f;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  border: 1px solid rgba(23, 28, 47, .14);
  transition: background .2s, box-shadow .2s, transform .1s;
}
.nav-orders-btn:hover { background: rgba(23, 28, 47, .10); color: #171c2f; box-shadow: 0 0 16px rgba(61, 123, 255, .20); }
.nav-orders-btn:active { transform: scale(.97); }
.user-area { position: relative; display: flex; align-items: center; }
.user-area .avatar {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  background: linear-gradient(135deg, #3d7bff, #8b5cf6); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .9);
}
.user-drop {
  display: none; position: absolute; right: 0; top: calc(100% + 14px);
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-radius: 16px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-border); padding: 8px; min-width: 156px;
}
.user-area:hover .user-drop { display: block; }
.user-drop a {
  display: block; padding: 10px 14px; border-radius: 10px; color: var(--text);
  font-size: 14px; font-weight: 500; white-space: nowrap;
}
.user-drop a:hover { background: rgba(23, 28, 47, .06); color: #171c2f; }
.user-drop a.red { color: var(--danger); }
.user-drop a.red:hover { background: rgba(229, 72, 77, .12); color: var(--danger); }

/* ============================================================
   首页 Hero（明亮太空落地页）
   ============================================================ */
/* 首页首屏：整屏太空视频背景（去掉白雾，视频原色直出） */
.main-home { overflow-x: hidden; }
.hero-section {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
}
.hero-section::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,15,30,.32) 0%, rgba(10,15,30,.08) 20%, transparent 38%);
  pointer-events: none;
}
.hero-section::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(242,245,252,.96) 92%);
  pointer-events: none;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 1; z-index: 0; border-radius: 0; background: #0a0f1e;
  filter: saturate(1.25) contrast(1.06);
}
/* 首页：视频向上延伸覆盖导航栏，首屏真正铺满，白条不再露出 */
.page-home .hero-video { top: -80px; height: calc(100% + 80px); }
.main-home .hero-section { margin-top: 0; }
.hero-inner {
  position: relative; z-index: 2; width: 100%;
  padding: 124px 0 116px; text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 7px; border-radius: 999px; margin-bottom: 28px;
  background: transparent !important; border: none !important; box-shadow: none !important;
}
.hero-badge-chip {
  background: linear-gradient(135deg, #3d7bff, #8b5cf6); color: #fff;
  padding: 4px 14px; font-size: 12px; font-weight: 600; border-radius: 999px;
  box-shadow: 0 0 14px rgba(61,123,255,.35);
}
.hero-badge-text { font-size: 13px; color: #fff !important; font-weight: 500; text-shadow: 0 1px 3px rgba(10,15,30,.55); }
.hero-headline {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: #fff; font-size: clamp(3rem, 7vw, 6rem);
  line-height: .95; letter-spacing: -3px;
  display: flex; flex-wrap: wrap; justify-content: center; row-gap: .14em;
  text-shadow: 0 1px 3px rgba(10,15,30,.55);
}
.hero-headline .blur-word { padding: 0 .08em; }
.hero-headline .accent {
  background: linear-gradient(120deg, #7fb0ff, #b39dff, #8fd0ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 3px rgba(10,15,30,.45);
}
.hero-sub {
  margin: 24px auto 0; max-width: 560px; font-size: 16px; font-weight: 500;
  color: #fff; line-height: 1.75;
  text-shadow: 0 1px 3px rgba(10,15,30,.55);
}
.hero-ctas { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 38px; flex-wrap: wrap; }
.hero-cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; font-size: 16px; font-weight: 600; color: #fff;
  border: none; cursor: pointer; border-radius: 999px;
  background: linear-gradient(135deg, #3d7bff, #6a5cff);
  box-shadow: 0 0 28px rgba(61, 123, 255, .4), inset 0 1px 0 rgba(255,255,255,.25);
  transition: box-shadow .25s, transform .15s;
}
.hero-cta-primary:hover { box-shadow: 0 0 40px rgba(61, 123, 255, .65); transform: translateY(-2px); }
.hero-cta-primary svg { width: 18px; height: 18px; }
.hero-cta-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; font-size: 16px; color: #fff; font-weight: 500;
  border-radius: 999px; background: rgba(10, 15, 30, .42);
  border: 1px solid rgba(255, 255, 255, .18);
  transition: background .2s;
}
.hero-cta-secondary:hover { background: rgba(10, 15, 30, .6); color: #fff; }
.hero-stats { display: flex; justify-content: center; gap: 18px; margin-top: 54px; flex-wrap: wrap; }
.stat-card {
  width: 210px; padding: 22px; border-radius: 20px; text-align: left;
}
.stat-icon { font-size: 22px; margin-bottom: 12px; opacity: .9; }
.stat-icon svg { width: 26px; height: 26px; color: #3d7bff; filter: drop-shadow(0 0 8px rgba(61,123,255,.35)); }
.stat-number { font-family: var(--serif); font-style: italic; color: #171c2f; font-size: 36px; letter-spacing: -1px; line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-2); margin-top: 8px; font-weight: 400; }

/* ============================================================
   落地页区块（介绍 / 用途 / 步骤）
   ============================================================ */
.landing-section { padding: 56px 0 16px; }
.landing-kicker {
  font-size: 13px; color: var(--primary); font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; text-align: center; margin-bottom: 16px;
}
.landing-title {
  font-family: var(--serif); font-style: italic; font-weight: 400; text-align: center;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem); letter-spacing: -1.5px; line-height: 1.05; color: #171c2f;
}
.landing-sub { text-align: center; color: var(--text-2); font-size: 15px; font-weight: 400; margin-top: 14px; }

.cap-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
@media (min-width: 820px) { .cap-grid { grid-template-columns: repeat(3, 1fr); } }
.cap-card {
  padding: 30px 28px; border-radius: 22px; min-height: 240px;
  display: flex; flex-direction: column;
}
.cap-card-icon {
  width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
  border-radius: 15px; font-size: 24px; margin-bottom: 20px;
  background: linear-gradient(145deg, rgba(61,123,255,.16), rgba(139,92,246,.12));
  border: 1px solid rgba(61,123,255,.22);
  box-shadow: 0 0 18px rgba(61,123,255,.18);
}
.cap-card-title {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 27px; letter-spacing: -.5px; line-height: 1; color: #171c2f; margin-bottom: 12px;
}
.cap-card-body { font-size: 14px; color: var(--text-2); font-weight: 400; line-height: 1.8; }

.steps-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 48px; counter-reset: step; }
@media (min-width: 820px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card { padding: 30px 28px; border-radius: 22px; position: relative; }
.step-num {
  position: absolute; top: 24px; right: 26px;
  font-family: var(--serif); font-style: italic; font-size: 46px; line-height: 1;
  background: linear-gradient(120deg, rgba(23,28,47,.35), rgba(23,28,47,.10));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.step-title { font-size: 18px; font-weight: 600; color: #171c2f; margin-bottom: 8px; }
.step-body { font-size: 14px; color: var(--text-2); font-weight: 400; line-height: 1.8; }
.step-body b { color: var(--text); font-weight: 600; }

/* ---------- 商城页大搜索条 ---------- */
.shop-search {
  display: flex; align-items: center; gap: 8px;
  max-width: 660px; margin: 40px auto 0;
  padding: 6px 6px 6px 20px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(255,255,255,.68));
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(23, 28, 47, .10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 8px 30px rgba(23, 28, 47, .08);
  transition: box-shadow .2s, border-color .2s;
}
.shop-search:focus-within {
  border-color: rgba(61, 123, 255, .5);
  box-shadow: 0 0 0 4px var(--primary-weak), 0 8px 30px rgba(23, 28, 47, .08);
}
.shop-search-icon { font-size: 16px; color: var(--text-3); flex-shrink: 0; }
.shop-search input {
  flex: 1; min-width: 0; border: none; background: transparent; outline: none;
  font-size: 15px; color: #171c2f; font-family: var(--font); padding: 10px 4px;
}
.shop-search input::placeholder { color: var(--text-3); }
.shop-search-btn {
  border: none; cursor: pointer; border-radius: 999px;
  padding: 11px 28px; font-size: 14px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #3d7bff, #6a5cff);
  box-shadow: 0 0 16px rgba(61, 123, 255, .35);
  font-family: var(--font);
  transition: box-shadow .2s;
}
.shop-search-btn:hover { box-shadow: 0 0 26px rgba(61, 123, 255, .55); }

/* ---------- 分类筛选 ---------- */
.cats { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 36px; justify-content: center; }
.cats a {
  padding: 9px 22px; border-radius: 999px;
  background: rgba(255,255,255,.7); color: var(--text-2);
  font-size: 14px; font-weight: 500;
  border: 1px solid rgba(23, 28, 47, .08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: all .18s;
}
.cats a:hover { transform: translateY(-1px); color: #171c2f; border-color: rgba(61,123,255,.4); }
.cats a.active {
  background: linear-gradient(135deg, rgba(61,123,255,.92), rgba(106,92,255,.92));
  color: #fff; border-color: transparent;
  box-shadow: 0 0 20px rgba(61, 123, 255, .35);
}

/* ============================================================
   淘宝式商城页：左侧分类栏 + 右侧商品
   ============================================================ */
.shop-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 28px; }
.shop-side {
  position: sticky; top: 96px;
  border-radius: 22px; padding: 18px 14px 16px;
}
.shop-side-title {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3); padding: 4px 14px 12px;
}
.shop-side a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 2px; border-radius: 12px;
  color: var(--text-2); font-size: 14px; font-weight: 500;
  border: 1px solid transparent; transition: all .16s;
}
.shop-side a:hover { color: #171c2f; background: rgba(23, 28, 47, .05); transform: translateX(2px); }
.shop-side a.active {
  color: #2f6cef;
  background: linear-gradient(135deg, rgba(61,123,255,.14), rgba(106,92,255,.10));
  border-color: rgba(61,123,255,.30);
  box-shadow: 0 0 18px rgba(61,123,255,.14);
}
.shop-side .ic {
  width: 26px; height: 26px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: rgba(23, 28, 47, .05);
  font-size: 14px; font-style: normal;
}
.shop-side a.active .ic {
  background: linear-gradient(135deg, #3d7bff, #6a5cff);
  box-shadow: 0 0 12px rgba(61,123,255,.4);
}
.shop-side .dot-ic { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .55; }
.shop-side .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-side .cnt {
  margin-left: auto; flex-shrink: 0; font-size: 12px;
  color: var(--text-3); background: rgba(23, 28, 47, .05);
  padding: 1px 9px; border-radius: 999px;
}
.shop-side a.active .cnt { color: #2f6cef; background: rgba(61,123,255,.12); }
.shop-side .side-all { margin-bottom: 8px; }
.shop-side-empty { padding: 18px 12px; font-size: 12px; line-height: 1.8; color: var(--text-3); text-align: center; }

.shop-main { min-width: 0; }
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; margin-bottom: 24px; border-radius: 18px;
  background: rgba(255,255,255,.68); border: 1px solid rgba(23, 28, 47, .08);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.shop-info { font-size: 13px; color: var(--text-3); }
.shop-info b { color: #171c2f; font-weight: 600; }
.shop-sort { display: flex; gap: 4px; flex-wrap: wrap; }
.shop-sort a {
  padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 500;
  color: var(--text-2); border: 1px solid transparent; transition: all .15s;
}
.shop-sort a:hover { color: #171c2f; background: rgba(23, 28, 47, .06); }
.shop-sort a.active {
  color: #fff; background: linear-gradient(135deg, #3d7bff, #6a5cff);
  box-shadow: 0 0 14px rgba(61,123,255,.35);
}

/* ============================================================
   商品网格（白色玻璃卡片）
   ============================================================ */
.goods-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.goods-card {
  border-radius: 20px; overflow: hidden;
  display: block; color: var(--text);
  background: linear-gradient(160deg, rgba(255,255,255,.88), rgba(255,255,255,.62));
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(23, 28, 47, .08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.goods-card:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 0 0 1px rgba(61,123,255,.35), 0 18px 44px rgba(61,123,255,.14);
  border-color: rgba(61,123,255,.35);
  color: var(--text);
}
.goods-thumb { aspect-ratio: 1; background: rgba(23, 28, 47, .03); overflow: hidden; }
.goods-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.goods-card:hover .goods-thumb img { transform: scale(1.06); }
.goods-thumb .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 44px; }
.goods-body { padding: 16px 18px 18px; }
.goods-name { font-size: 15px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; color: #171c2f; }
.goods-sub { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.goods-price { margin-top: 10px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--price); }
.goods-price .ori { text-decoration: line-through; color: var(--text-3); font-weight: 400; font-size: 12px; margin-left: 6px; }

/* ============================================================
   商品详情
   ============================================================ */
.detail-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; padding: 40px 0 8px; align-items: start; }
.detail-cover {
  border-radius: 26px; overflow: hidden; aspect-ratio: 1;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(23, 28, 47, .08);
  box-shadow: 0 20px 60px rgba(23, 28, 47, .12);
  display: flex; align-items: center; justify-content: center; font-size: 120px;
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-info { padding-top: 8px; }
.detail-cat {
  display: inline-block; font-size: 13px; font-weight: 600; color: #2f6cef;
  background: rgba(61,123,255,.10); padding: 4px 14px; border-radius: 999px; margin-bottom: 14px;
  border: 1px solid rgba(61,123,255,.22);
}
.detail-name { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: #171c2f; }
.detail-sub { color: var(--text-2); font-size: 14px; margin-top: 8px; }
.detail-price { margin: 22px 0 24px; font-size: 36px; font-weight: 700; letter-spacing: -.02em; color: var(--price); }
.detail-price .ori { font-size: 16px; color: var(--text-3); font-weight: 400; text-decoration: line-through; margin-left: 10px; }
.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; color: var(--text-2); font-size: 14px; }
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(23, 28, 47, .14); border-radius: 999px; overflow: hidden;
  background: rgba(255,255,255,.7);
}
.qty button {
  width: 36px; height: 36px; border: none; background: transparent; color: var(--text);
  font-size: 18px; cursor: pointer; transition: background .15s;
}
.qty button:hover { background: rgba(23, 28, 47, .06); }
.qty input {
  width: 46px; height: 36px; border: none; text-align: center; font-size: 15px; font-weight: 600;
  background: transparent; color: #171c2f; outline: none; -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-btn { font-size: 17px; padding: 15px 36px; }
.detail-tips {
  margin-top: 24px; background: rgba(61,123,255,.07); border: 1px solid rgba(61,123,255,.18);
  border-radius: 14px; padding: 13px 16px;
  color: var(--text-2); font-size: 13px; line-height: 1.7;
}
.section-title { font-size: 24px; font-weight: 700; letter-spacing: -.01em; margin: 42px 0 18px; color: #171c2f; }
.detail-desc { min-height: 120px; white-space: pre-line; line-height: 1.8; color: var(--text-2); }

/* ============================================================
   通用卡片 / 表单
   ============================================================ */
.card {
  background: linear-gradient(160deg, rgba(255,255,255,.85), rgba(255,255,255,.6));
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(23, 28, 47, .08);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), var(--shadow-sm);
}
.card-title { font-size: 21px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 16px; color: #171c2f; }
.card-title .badge { vertical-align: middle; }

.form-card { max-width: 460px; margin: 64px auto; padding: 40px; border-radius: 26px; }
.form-card h2 { font-size: 27px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 24px; color: #171c2f; }
.form-item { margin-bottom: 18px; }
.form-item label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 7px; }
.form-item input[type="text"], .form-item input[type="email"], .form-item input[type="password"],
.form-item input[type="number"], .form-item select, .form-item textarea {
  width: 100%; padding: 12px 16px; border-radius: 13px;
  border: 1px solid rgba(23, 28, 47, .12);
  background: rgba(255, 255, 255, .85); font-size: 15px; color: #171c2f; outline: none; font-family: var(--font);
  transition: background .2s, box-shadow .2s, border-color .2s;
}
.form-item input::placeholder, .form-item textarea::placeholder { color: var(--text-3); }
.form-item select option { background: #fff; color: #171c2f; }
.form-item input:focus, .form-item select:focus, .form-item textarea:focus {
  background: #fff;
  border-color: rgba(61, 123, 255, .4);
  box-shadow: 0 0 0 3px var(--primary-weak);
}
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; }
.code-row .btn { flex-shrink: 0; }
.divider {
  display: flex; align-items: center; gap: 14px; color: var(--text-3); font-size: 13px;
  margin: 22px 0; white-space: nowrap;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: rgba(23, 28, 47, .12); }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #3d7bff, #6a5cff); color: #fff; font-size: 15px; font-weight: 600; font-family: var(--font);
  text-align: center;
  box-shadow: 0 0 18px rgba(61, 123, 255, .32);
  transition: box-shadow .2s, transform .1s, background .2s;
}
.btn:hover { color: #fff; box-shadow: 0 0 26px rgba(61, 123, 255, .5); }
.btn:active { transform: scale(.97); }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 13px; box-shadow: none; }
.btn-outline {
  background: transparent; color: #2f6cef;
  box-shadow: inset 0 0 0 1px rgba(61, 123, 255, .4);
}
.btn-outline:hover { background: rgba(61,123,255,.10); color: #2f6cef; }
.btn-danger {
  background: linear-gradient(135deg, #e5484d, #ff6b5e);
  box-shadow: 0 0 18px rgba(229, 72, 77, .3);
}
.btn-danger:hover { box-shadow: 0 0 26px rgba(229, 72, 77, .48); }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }

/* 支付方式卡片 */
.pay-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.pay-card {
  position: relative; display: flex; align-items: center; gap: 10px;
  border: 1px solid rgba(23, 28, 47, .10); border-radius: 14px; padding: 15px 16px;
  background: rgba(255,255,255,.6); cursor: pointer; transition: all .15s;
}
.pay-card:hover { border-color: rgba(61, 123, 255, .4); }
.pay-card input { position: absolute; opacity: 0; pointer-events: none; }
.pay-card .pay-icon { font-size: 22px; }
.pay-card .pay-name { font-size: 14px; font-weight: 600; color: var(--text); }
.pay-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-weak), 0 0 18px rgba(61,123,255,.2);
}

/* ============================================================
   Badge / 提示
   ============================================================ */
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4; }
.badge-pay { background: rgba(255, 183, 77, .16); color: #b7791f; border: 1px solid rgba(214, 160, 0, .28); }
.badge-ship { background: rgba(61, 123, 255, .12); color: #2f6cef; border: 1px solid rgba(61, 123, 255, .25); }
.badge-done { background: rgba(31, 168, 78, .12); color: #1fa84e; border: 1px solid rgba(31, 168, 78, .28); }
.badge-close { background: rgba(23, 28, 47, .06); color: var(--text-3); border: 1px solid rgba(23, 28, 47, .10); }

.alert { border-radius: 14px; padding: 12px 16px; font-size: 14px; line-height: 1.6; }
.alert-warn { background: rgba(255, 183, 77, .15); color: #a06700; border: 1px solid rgba(214, 160, 0, .3); }
.alert-info { background: rgba(61, 123, 255, .10); color: #2f6cef; border: 1px solid rgba(61, 123, 255, .22); }
.alert-success { background: rgba(31, 168, 78, .12); color: #1fa84e; border: 1px solid rgba(31, 168, 78, .28); }
.alert-danger { background: rgba(229, 72, 77, .10); color: #c2363b; border: 1px solid rgba(229, 72, 77, .28); }

/* ============================================================
   订单 / 用户中心
   ============================================================ */
.order-item { padding: 20px 0; border-bottom: 1px solid rgba(23, 28, 47, .08); }
.order-item:last-child { border-bottom: none; }
.order-head { display: flex; justify-content: space-between; color: var(--text-3); font-size: 12px; margin-bottom: 10px; }
.order-body { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.order-body .actions { display: flex; gap: 8px; align-items: center; }

.detail-box .row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(23, 28, 47, .08); font-size: 14px; }
.detail-box .row:last-child { border-bottom: none; }
.detail-box .row > span:first-child { color: var(--text-2); }
.price { font-weight: 700; color: var(--price); }
.ori { text-decoration: line-through; color: var(--text-3); font-weight: 400; font-size: 12px; margin-left: 6px; }

.kami-box {
  background: rgba(255,255,255,.8); border-radius: 14px; padding: 18px; margin-top: 14px;
  font-family: var(--mono); font-size: 14px; line-height: 1.9; white-space: pre-wrap;
  word-break: break-all; border: 1px dashed rgba(61,123,255,.4); color: #2f3b66;
}

.empty { text-align: center; padding: 80px 20px; color: var(--text-3); font-size: 15px; }
.empty i { display: block; font-size: 48px; font-style: normal; margin-bottom: 14px; }

/* ============================================================
   表格（后台）
   ============================================================ */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--text-2); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid rgba(23, 28, 47, .10); }
.table td { padding: 13px 12px; border-bottom: 1px solid rgba(23, 28, 47, .07); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(23, 28, 47, .03); }

.grid { display: grid; gap: 22px; }
.bar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.bar .spacer { flex: 1; }
.pagination { margin-top: 24px; display: flex; gap: 6px; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid rgba(23, 28, 47, .12); border-radius: 10px; font-size: 13px; background: rgba(255,255,255,.7); color: var(--text-2); }
.pagination .cur { background: var(--primary-grad); color: #fff; border-color: transparent; }

/* ============================================================
   工具类
   ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-light { color: var(--text-2); }
.text-red { color: var(--danger); }
.text-green { color: var(--success); }
.flex { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }

/* ============================================================
   页脚
   ============================================================ */
.footer {
  border-top: 1px solid rgba(23, 28, 47, .08);
  background: linear-gradient(180deg, transparent, rgba(23, 28, 47, .03));
  padding: 36px 0 44px; color: var(--text-3); font-size: 13px;
  margin-top: 72px;
}
.footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer a { color: var(--text-3); }
.footer a:hover { color: #2f6cef; }

/* ============================================================
   后台布局（明亮侧栏）
   ============================================================ */
.admin-wrap { display: flex; min-height: calc(100vh - 60px); }
.admin-side { width: 200px; background: rgba(255, 255, 255, .75); border-right: 1px solid rgba(23, 28, 47, .08); padding: 18px 0; flex-shrink: 0; }
.admin-side a {
  display: block; color: var(--text-2); padding: 12px 24px; font-size: 14px; font-weight: 500;
  transition: background .15s, color .15s;
}
.admin-side a:hover { background: rgba(23, 28, 47, .05); color: #171c2f; }
.admin-side a.active {
  background: linear-gradient(90deg, rgba(61,123,255,.16), transparent); color: #2f6cef;
  box-shadow: inset 3px 0 0 var(--primary);
}
.admin-main { flex: 1; padding: 28px; min-width: 0; background: transparent; }
.admin-top {
  background: rgba(255, 255, 255, .9); color: #171c2f; padding: 0 24px; height: 60px;
  border-bottom: 1px solid rgba(23, 28, 47, .08);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.admin-top b { font-weight: 600; letter-spacing: -.01em; }
.admin-top a { color: var(--text-2); font-size: 13px; }
.admin-top a:hover { color: #171c2f; }

/* ============================================================
   动画
   ============================================================ */
@keyframes blurWordIn {
  from { opacity: 0; filter: blur(12px); transform: translateY(12px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}
.blur-word {
  display: inline-block;
  opacity: 0;
  filter: blur(12px);
  animation: blurWordIn .9s cubic-bezier(.22, 1, .36, 1) forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
.anim-in { opacity: 0; animation: fadeUp .8s cubic-bezier(.22, 1, .36, 1) forwards; }
.anim-in-d1 { animation-delay: .1s; } .anim-in-d2 { animation-delay: .2s; }
.anim-in-d3 { animation-delay: .3s; } .anim-in-d4 { animation-delay: .4s; }
.anim-in-d5 { animation-delay: .5s; } .anim-in-d6 { animation-delay: .6s; }
.anim-in-d7 { animation-delay: .7s; } .anim-in-d8 { animation-delay: .8s; }
.card-in { opacity: 0; transform: translateY(20px); animation: fadeUp .7s cubic-bezier(.22,1,.36,1) forwards; }
.card-in-d1 { animation-delay: .05s; } .card-in-d2 { animation-delay: .15s; } .card-in-d3 { animation-delay: .25s; }
.card-in-d4 { animation-delay: .35s; } .card-in-d5 { animation-delay: .45s; } .card-in-d6 { animation-delay: .55s; }

@media (prefers-reduced-motion: reduce) {
  .blur-word, .anim-in, .card-in { animation: none; opacity: 1; transform: none; filter: none; }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1200px) {
  .goods-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .goods-grid { grid-template-columns: repeat(3, 1fr); }
  .nav { display: none; }
  .search-box input { width: 140px; }
  .search-box input:focus { width: 170px; }
  /* 商城页：侧栏改为顶部横排 */
  .shop-layout { grid-template-columns: 1fr; gap: 20px; }
  .shop-side { position: static; display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; }
  .shop-side-title { width: 100%; padding: 0 6px 6px; }
  .shop-side a { margin-bottom: 0; padding: 8px 14px; }
  .shop-side a:hover { transform: none; }
  .shop-side .cnt { margin-left: 6px; }
  .shop-side .side-all { margin-bottom: 0; }
}
@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .header { top: 8px; padding: 0 12px; }
  .header .container { height: 52px; padding-left: 14px; }
  .hero-section { min-height: 100svh; min-height: 100dvh; }
  .hero-inner { padding: 96px 0 72px; }
  .main-home .hero-section { margin-top: 0; }
  .page-home .hero-video { top: -100px; height: calc(100% + 100px); }
  .goods-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .goods-body { padding: 12px; }
  .goods-name { font-size: 14px; min-height: 38px; }
  .goods-price { font-size: 16px; }
  .detail-wrap { grid-template-columns: 1fr; gap: 24px; }
  .detail-name { font-size: 24px; }
  .detail-price { font-size: 28px; }
  .search-box { display: none; }
  .admin-side { width: 64px; }
  .admin-side a { padding: 12px 0; text-align: center; font-size: 12px; }
  .form-card { margin: 32px auto; padding: 28px 22px; }
  .hero-stats { gap: 10px; }
  .stat-card { width: 46%; padding: 16px; }
}
