/* ============================================================
   采购平台 · 苹果官网设计语言视觉系统 V8.0
   ------------------------------------------------------------
   设计原则（对照 Apple.com）：
   - 定位高端产品广告页，一屏一个大叙事，一个 section 只讲一件事
   - 超大留白、区块高度大（600-800px）、字体层级反差强
   - 背景四色交替：白 #FFFFFF / 浅灰 #F5F5F7 / 浅蓝灰 #FBFBFD / 深黑 #000
   - 内容限宽 980-1100px，居中
   - 卡片：28px 大圆角 BannerCard / 双列 feature-card / 深色卡片白字
   - 动效克制：0.3-0.5s ease-out，滚动渐显
   字体：SF Pro SC / SF Pro Text / PingFang SC
   色彩：文字 #1D1D1F / #6E6E73；链接蓝 #0066CC；主按钮 #0071E3
   ============================================================ */

:root {
  --primary: #0071e3;
  --primary-hover: #0077ed;
  --primary-light: #2997ff;
  --link: #0071e3;
  --bg: #f5f5f7;
  --bg-tint: #fbfbfd;
  --bg-light: #fafafc;
  --card: #ffffff;
  --dark: #000000;
  --dark-soft: #161617;
  --accent-dark: #0077ed;
  --text: #1d1d1f;
  --text-light: #6e6e73;
  --text-tertiary: #86868b;
  --border: #d2d2d7;
  --border-light: #e8e8ed;
  --green: #34c759;
  --red: #ff3b30;
  --red-dark: #d70015;
  --yellow: #ff9f0a;
  --purple: #af52de;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 980px;
  --shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.1);
  --font: "SF Pro SC", "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  --nav-h: 44px;
  --content-w: 1100px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);

  /* ---- 字号层级（反差强，避免相邻模糊档） ---- */
  --fs-display: 64px;  /* Hero 大标题 */
  --fs-h1: 48px;       /* 区块 / 次级页标题 */
  --fs-h2: 40px;       /* 产品详情 / 叙事标题 */
  --fs-h3: 32px;       /* 后台页头 / 表单标题 / 核心指标 */
  --fs-h4: 24px;       /* 面板 / 小标题 */
  --fs-lead: 21px;     /* 副标题 / 引导句 */
  --fs-body: 17px;     /* 正文 */
  --fs-sm: 15px;       /* 次要正文 / 按钮 / 输入 */
  --fs-xs: 13px;       /* 元信息 / 标签 / 侧栏 */
  --fs-caption: 12px;  /* 说明 / 徽章 / 表格头 */

  /* ---- 字距（大标题收紧，小字放宽） ---- */
  --ls-display: -0.022em;
  --ls-h1: -0.016em;
  --ls-h2: -0.015em;
  --ls-h3: -0.01em;
  --ls-tight: -0.006em;

  /* ---- 留白节奏（4pt 基准） ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: #ffffff;
  color: var(--text);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 24px;
}

.hidden {
  display: none !important;
}

/* ============================================================
   动效（克制，ease-out）
   ============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 滚动渐显（苹果式）：元素进入视口时浮现 */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   全局导航（44px 半透明吸顶，苹果式单色小字）
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.4s var(--ease);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2997ff, #0071e3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.brand h1 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.brand p {
  font-size: var(--fs-caption);
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.nav a {
  display: block;
  padding: 0 14px;
  line-height: var(--nav-h);
  font-size: 12px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}

.nav a:hover,
.nav a.active {
  color: #000;
}

.nav .cart-link {
  position: relative;
  padding: 0 12px;
}

.cart-badge {
  position: absolute;
  top: 7px;
  right: 2px;
  background: var(--red);
  color: #fff;
  font-size: var(--fs-caption);
  font-weight: 600;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
}

.nav .btn-login {
  display: inline-block;
  padding: 5px 16px;
  line-height: normal;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  margin-left: 6px;
}

.nav .btn-login:hover {
  background: var(--primary-hover);
  color: #fff;
}

/* ============================================================
   按钮（蓝色胶囊 + 文字链）
   ============================================================ */
.btn {
  display: inline-block;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
  font-family: inherit;
  text-align: center;
  line-height: 1.2;
}

.btn-primary,
.btn-blue {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover,
.btn-blue:hover {
  background: var(--primary-hover);
  color: #fff;
}

.aph-map-nav:hover { background: var(--primary); color: #fff; text-decoration: none; }

.footer .aph-map-nav {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--link);
}

.btn-ghost:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.btn-danger {
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
}

.btn-danger:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 12px;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 17px;
}

.btn-dark {
  background: var(--dark-soft);
  color: #fff;
}

.btn-dark:hover {
  background: #000;
  color: #fff;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 文字链按钮（进一步了解 ›） */
.btn-link {
  display: inline-block;
  background: none;
  border: none;
  color: var(--link);
  font-size: 17px;
  cursor: pointer;
  padding: 8px 4px;
  font-family: inherit;
  letter-spacing: -0.2px;
}

.btn-link::after {
  content: " ›";
  font-weight: 300;
}

.btn-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.btn-link.light {
  color: var(--primary-light);
}

.btn-link.light:hover {
  color: #66b6ff;
}

/* 深色背景上的主按钮 */
.btn-white {
  background: #fff;
  color: var(--text);
}

.btn-white:hover {
  background: #f5f5f7;
  color: var(--text);
}

/* ============================================================
   Hero（全宽通栏产品大图 + 大标题 + 双按钮）
   ============================================================ */
.hero {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 110px 0 90px;
  overflow: hidden;
  position: relative;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: clamp(40px, 8vw, var(--fs-display));
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: var(--ls-display);
  color: #ffffff;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h2 {
    background: linear-gradient(180deg, #ffffff 0%, #cfe9ff 45%, #2997ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero .hero-sub {
  color: #a1a1a6;
  font-size: clamp(17px, 2.4vw, var(--fs-lead));
  line-height: 1.4;
  margin: var(--space-4) auto 0;
  max-width: 640px;
  letter-spacing: -0.01em;
}

.hero .hero-sub b {
  color: #f5f5f7;
  font-weight: 600;
}

.hero .btns {
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

/* Hero 顶部小标签（eyebrow） */
.hero-eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  color: var(--primary-light);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-4);
}

/* Hero 底部产品大图舞台 */
.hero-media {
  margin-top: var(--space-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hero 通栏产品大图舞台（已移除） */

/* 次级页面小 Hero（浅灰，居中大标题） */
.hero-small {
  background: var(--bg);
  color: var(--text);
  padding: var(--space-9) 0 var(--space-8);
  text-align: center;
}

.hero-small h2 {
  font-size: clamp(32px, 6vw, var(--fs-h1));
  font-weight: 600;
  letter-spacing: var(--ls-h1);
}

.hero-small p {
  color: var(--text-light);
  font-size: var(--fs-lead);
  margin-top: var(--space-3);
}

/* ============================================================
   分区（叙事：一个 section 只讲一件事，背景四色交替）
   ============================================================ */
.section {
  padding: var(--space-9) 0;
}

.section-gray {
  background: var(--bg);
}

.section-tint {
  background: var(--bg-tint);
}

.section-dark {
  background: var(--dark);
  color: #fff;
}

.section-head {
  text-align: center;
  margin-bottom: var(--space-7);
}

.section-head h2 {
  font-size: clamp(32px, 6vw, var(--fs-h1));
  font-weight: 600;
  letter-spacing: var(--ls-h1);
  color: var(--text);
  line-height: 1.1;
}

.section-head p {
  color: var(--text-light);
  font-size: var(--fs-lead);
  margin-top: var(--space-3);
}

.section-head .sub-blue {
  color: var(--link);
  font-size: var(--fs-body);
  margin-top: var(--space-2);
}

.section-dark .section-head h2 {
  color: #fff;
}

.section-dark .section-head p {
  color: #a1a1a6;
}

/* 叙事区标题（深色区白字） */
.story-head {
  font-size: clamp(32px, 6vw, var(--fs-h1));
  font-weight: 600;
  letter-spacing: var(--ls-h1);
  line-height: 1.08;
  color: var(--text);
}

.section-dark .story-head {
  color: #fff;
}

.story-sub {
  font-size: var(--fs-lead);
  color: var(--text-light);
  line-height: 1.35;
  margin-top: var(--space-3);
  max-width: 720px;
}

.section-dark .story-sub {
  color: #a1a1a6;
}

/* ============================================================
   卡片体系
   ============================================================ */
/* 精选产品画廊（2-3 列大图卡片） */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-img {
  height: 300px;
  overflow: hidden;
  background: #fff;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card-img img {
  transform: scale(1.04);
}

.card-body {
  padding: var(--space-5);
}

.card-body h3 {
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-2);
}

.card-body h3 a {
  color: var(--text);
}

.card-body h3 a:hover {
  color: var(--link);
}

.tag {
  display: inline-block;
  font-size: 12px;
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--text-light);
  border-radius: var(--radius-pill);
  padding: 2px 12px;
  margin-right: 6px;
  margin-bottom: 6px;
}

.price {
  color: var(--text);
  font-weight: 600;
  font-size: var(--fs-lead);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.price-note {
  font-size: 12px;
  color: var(--text-tertiary);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

/* 分类 BannerCard（整块大图 + 底部标题，28px 大圆角） */
.banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.banner-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
  background: #e8e8ed;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.banner-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.banner-card:hover img {
  transform: scale(1.05);
}

.banner-card .mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.62));
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}

.banner-card h3 {
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
}

.banner-card p {
  font-size: 14px;
  opacity: 0.92;
  margin-top: 4px;
}

/* feature-card（双列大图叙事） */
.feature-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-card.flip .fc-img {
  order: 2;
}

.fc-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  min-height: 380px;
}

.fc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fc-text h3 {
  font-size: clamp(28px, 5vw, var(--fs-h2));
  font-weight: 600;
  letter-spacing: var(--ls-h2);
  line-height: 1.1;
}

.fc-text .fc-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  color: var(--link);
  margin-bottom: var(--space-3);
}

.fc-text p {
  font-size: var(--fs-lead);
  color: var(--text-light);
  line-height: 1.55;
  margin: var(--space-4) 0 var(--space-2);
}

.fc-text .btns {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.section-dark .fc-text h3 {
  color: #fff;
}

.section-dark .fc-text p {
  color: #a1a1a6;
}

/* 服务保障（深色卡片白字 / 浅灰卡片） */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  text-align: left;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.feature h4 {
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-2);
}

.feature p {
  font-size: var(--fs-sm);
  color: var(--text-light);
  line-height: 1.6;
}

/* 深色卡片（深色背景上的白字卡片） */
.dark-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dark-card {
  background: var(--dark-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  color: #f5f5f7;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.dark-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
}

.dark-card h4 {
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-3);
}

.dark-card p {
  font-size: var(--fs-sm);
  color: #a1a1a6;
  line-height: 1.7;
}

/* ============================================================
   表单（克制的浅灰卡片）
   ============================================================ */
.form-box {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  max-width: 440px;
  margin: 0 auto;
}

.form-box h2 {
  color: var(--text);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: var(--ls-h3);
  margin-bottom: var(--space-5);
  text-align: center;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-light);
  margin-bottom: var(--space-2);
}

.input,
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: var(--shadow);
}

.input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.form-tip {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 16px;
  text-align: center;
}

.form-tip a {
  color: var(--link);
}

/* ============================================================
   筛选（TabNav / 胶囊筛选）
   ============================================================ */
.filter-bar {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-bar .search {
  flex: 1;
  min-width: 240px;
  display: flex;
  gap: 8px;
}

.chip {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-light);
  transition: all 0.3s var(--ease);
}

.chip:hover {
  border-color: var(--border);
  color: var(--text);
}

.chip.active {
  background: var(--primary);
  color: #fff;
}

/* ============================================================
   产品详情（Apple 产品页：左大图右选购）
   ============================================================ */
.pd-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  padding: 28px 0 0;
}

.pd-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  min-height: 420px;
}

.pd-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-info h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: var(--ls-h2);
  color: var(--text);
  margin-bottom: var(--space-4);
  line-height: 1.1;
}

.pd-info .tags {
  margin-bottom: 22px;
}

.pd-price-box {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 22px;
}

.pd-price {
  font-size: var(--fs-h2);
  color: var(--text);
  font-weight: 600;
  letter-spacing: var(--ls-h2);
  font-variant-numeric: tabular-nums;
}

.pd-price .unit {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 400;
}

.pd-price-box .delivery {
  font-size: 17px;
  color: var(--text);
  margin-top: 8px;
}

.pd-price-box .delivery b {
  color: var(--primary);
  font-size: 21px;
  letter-spacing: -0.3px;
}

.pd-price-date {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 8px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
}

.qty-row > span {
  font-size: 14px;
  color: var(--text);
}

.qty-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: #fff;
}

.qty-box button {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  color: var(--text);
}

.qty-box button:hover {
  color: var(--primary);
}

.qty-box input {
  width: 60px;
  text-align: center;
  border: none;
  background: transparent;
  height: 36px;
  font-size: 15px;
  color: var(--text);
}

.pd-desc {
  border-top: 1px solid var(--border-light);
  padding-top: 22px;
  margin-top: 22px;
}

.pd-desc h3 {
  color: var(--text);
  font-size: var(--fs-h4);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.pd-desc p {
  color: var(--text-light);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

/* swatch 圆形色板（布色选择） */
.swatch-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
  background-size: cover;
  background-position: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.swatch:hover {
  transform: scale(1.08);
}

.swatch.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.swatch .sw-label {
  font-size: var(--fs-caption);
  color: var(--text);
  font-weight: 500;
}

/* ============================================================
   表格（轻边框、居中、无重装饰）
   ============================================================ */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: transparent;
}

.table th,
.table td {
  padding: 13px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.table th {
  background: transparent;
  color: var(--text-tertiary);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tbody tr {
  transition: background 0.25s var(--ease);
}

.table tbody tr:hover {
  background: var(--bg-tint);
}

/* ============================================================
   状态徽章
   ============================================================ */
.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  white-space: nowrap;
}

.badge-pending_payment { background: rgba(0,113,227,0.12); color: #0071e3; }
.badge-scheduled { background: rgba(0,113,227,0.12); color: #0071e3; }
.badge-paid { background: rgba(0,113,227,0.12); color: #0071e3; }
.badge-producing { background: #f5f5f7; color: #1d1d1f; }
.badge-shipped { background: #f5f5f7; color: #6e6e73; }
.badge-completed { background: #e8e8ed; color: #6e6e73; }
.badge-cancelled { background: #ffebeb; color: #d70015; }
.badge-pending_balance { background: rgba(0,113,227,0.12); color: #0077ed; }
.badge-pending_shipment { background: #f5f5f7; color: #6e6e73; }

/* ============================================================
   购物车
   ============================================================ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.cart-item {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 14px;
}

.cart-item img {
  width: 96px;
  height: 96px;
  border-radius: var(--radius);
  object-fit: cover;
}

.cart-item .info {
  flex: 1;
  min-width: 0;
}

.cart-item .info h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.summary-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}

.summary-card h3 {
  color: var(--text);
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-4);
}

.sum-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-light);
}

.sum-total {
  border-top: 1px solid var(--border-light);
  margin-top: 14px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  color: var(--text);
}

.sum-total .num {
  color: var(--text);
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  font-variant-numeric: tabular-nums;
}

.empty {
  text-align: center;
  padding: 96px 0;
  color: var(--text-light);
}

.empty .big {
  font-size: 48px;
  font-weight: 300;
  margin-bottom: 14px;
  color: #d2d2d7;
}

/* ============================================================
   结算
   ============================================================ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.block {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 16px;
}

.block h3 {
  color: var(--text);
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-light);
}

/* radio 大卡选购 */
.pay-option {
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.pay-option:hover {
  border-color: var(--border);
}

.pay-option.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.pay-option input {
  margin-top: 4px;
  accent-color: var(--primary);
}

.pay-option h4 {
  font-size: 15px;
  font-weight: 600;
}

.pay-option p {
  font-size: 13px;
  color: var(--text-light);
}

.order-items {
  width: 100%;
}

/* ============================================================
   进度时间轴
   ============================================================ */
.timeline {
  padding: 6px 0;
}

.tl-item {
  display: flex;
  gap: 14px;
  position: relative;
  padding-bottom: 22px;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 26px;
  bottom: 2px;
  width: 2px;
  background: var(--border-light);
}

.tl-item:last-child::before {
  display: none;
}

.tl-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  flex-shrink: 0;
  z-index: 1;
}

.tl-item.done .tl-dot { background: var(--green); }
.tl-item.current .tl-dot { background: var(--primary); }

.tl-content {
  flex: 1;
}

.tl-content h5 {
  font-size: 14px;
  font-weight: 600;
}

.tl-content p {
  font-size: 12px;
  color: var(--text-light);
}

/* ============================================================
   弹窗
   ============================================================ */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: fadeIn 0.3s var(--ease);
}

.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px;
  width: 92%;
  max-width: 440px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
}

.modal h3 {
  color: var(--text);
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-4);
}

.modal .close-x {
  position: absolute;
  top: 14px;
  right: 18px;
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-tertiary);
  font-weight: 300;
}

.modal .close-x:hover {
  color: var(--text);
}

/* ============================================================
   Toast
   ============================================================ */
#toast-wrap {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(29, 29, 31, 0.92);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  min-width: 220px;
  animation: slideIn 0.3s var(--ease);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.toast.error {
  background: rgba(215, 0, 21, 0.94);
}

/* ============================================================
   页脚（浅灰、12px 多列小字）
   ============================================================ */
.footer {
  background: var(--bg);
  color: var(--text-light);
  padding: 52px 0 32px;
  margin-top: 0;
}

.footer::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--border-light);
  margin: 0 auto 40px;
  max-width: var(--content-w);
}

.footer .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.footer h4 {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.footer p,
.footer a {
  font-size: 15px;
  color: var(--text-light);
  line-height: 2;
}

.footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer .copyright {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border-light);
  margin-top: 32px;
  padding-top: 18px;
  font-size: 15px;
  color: var(--text-tertiary);
  text-align: center;
}

.footer .footer-map {
  display: block;
  margin-top: 12px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.footer .footer-map:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.footer .footer-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.footer .footer-map-label {
  display: block;
  font-size: 15px;
  color: var(--text-tertiary);
  padding: 6px 10px;
  text-align: center;
  background: #fafafa;
  text-decoration: none;
  transition: color 0.2s ease-out;
}

.footer .footer-map-label:hover {
  color: var(--blue);
}

/* ============================================================
   后台管理（功能侧栏 + 浅灰工作区）
   ============================================================ */
.admin-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 100vh;
  overflow: hidden;
  background: #fff;
}

.sidebar {
  background: #f5f5f7;
  color: var(--text);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar > * {
  flex-shrink: 0;
}

.sidebar .brand {
  padding: 0 8px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 8px;
  flex-direction: column;
  text-align: center;
}

.sidebar .brand h1 {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.sidebar .brand p {
  color: var(--text-tertiary);
  font-size: var(--fs-caption);
  white-space: normal;
  max-width: 100%;
  line-height: 1.3;
}

.side-link {
  display: block;
  padding: 9px 14px;
  margin: 2px 0;
  text-align: center;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  border: none;
  border-radius: 10px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.side-link:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

.side-link.active {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}

.side-group-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 10px 14px;
  text-align: center;
  letter-spacing: normal;
  cursor: pointer;
  user-select: none;
  border-radius: 10px;
  transition: background 0.2s var(--ease);
}

.side-group-title:hover {
  background: rgba(0, 0, 0, 0.05);
}

.side-group-title::before {
  content: "";
  width: 7px;
  height: 7px;
  flex-shrink: 0;
}

.side-group-title::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--text-tertiary);
  border-bottom: 1.5px solid var(--text-tertiary);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}

.side-group:not(.open) .side-group-title::after {
  transform: rotate(-45deg);
}

.side-group:not(.open) .side-sub {
  display: none;
}

.side-sub {
  font-size: 12px;
  color: var(--text-light);
}

.side-link .dot {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--red);
  color: #fff;
  font-size: var(--fs-caption);
  border-radius: 10px;
  padding: 1px 7px;
}

.side-user {
  margin-top: 8px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.side-user .uname {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-user a {
  color: var(--text);
  font-size: 13px;
}

.side-user a:hover {
  color: var(--primary);
}

.admin-main {
  background: var(--bg);
  padding: 40px 44px;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}

.admin-head h2 {
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-head .user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-light);
  font-size: 13px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s var(--ease);
}

.stat-card:hover {
  box-shadow: var(--shadow-hover);
}

.stat-card .label {
  font-size: 13px;
  color: var(--text-light);
}

.stat-card .value {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: var(--ls-h3);
  color: var(--text);
  margin-top: var(--space-2);
  font-variant-numeric: tabular-nums;
}

.stat-card .sub {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.panel {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 16px;
}

.panel h3 {
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 20px 24px;
}

.toolbar .search {
  flex: 1;
  min-width: 240px;
  display: flex;
  gap: 8px;
}

/* ============================================================
   提示条
   ============================================================ */
.notice {
  background: var(--bg);
  border: 1px solid var(--border-light);
  color: var(--text-light);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.6;
  margin: 10px 0;
}

.notice-block {
  background: var(--bg-tint);
  border: 1px solid var(--border-light);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  margin: 20px 0;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.mini-table th,
.mini-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.mini-table th {
  color: var(--text-light);
  font-weight: 500;
  font-size: 12px;
}

/* ============================================================
   包装选项（pill 胶囊 / swatch 色板）
   ============================================================ */
.pkg-group {
  margin: 14px 0;
}

.pkg-group > label {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.pkg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  transition: all 0.3s var(--ease);
}

.pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pkg-input {
  width: 130px;
  display: inline-block;
  margin-left: 6px;
}

/* ============================================================
   登录 Tab
   ============================================================ */
.login-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 4px;
  box-shadow: var(--shadow);
}

.ltab {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  font-size: 14px;
  color: var(--text-light);
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: all 0.3s var(--ease);
}

.ltab.active {
  background: var(--primary);
  color: #fff;
  font-weight: 500;
}

/* ============================================================
   设置表单
   ============================================================ */
.settings-form {
  max-width: 640px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px;
}

.settings-form .field {
  margin-bottom: 20px;
}

.settings-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.settings-form .tip {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 6px;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .grid,
  .grid-4,
  .banner-grid,
  .dark-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .pd-wrap,
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .feature-card.flip .fc-img {
    order: 0;
  }

  .hero {
    padding: 80px 0 0;
  }

  .footer .container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }

  .admin-body {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .sidebar {
    display: flex;
    overflow-x: auto;
    padding: 8px 12px;
    height: auto;
    overflow-y: visible;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .sidebar .brand {
    display: none;
  }

  .side-link {
    white-space: nowrap;
    padding: 8px 16px;
    margin: 0 2px;
    font-size: 14px;
    border-radius: 8px;
  }

  .side-sub {
    font-size: 12px;
  }

  .side-group-title {
    font-size: 14px;
  }

  .admin-main {
    padding: 24px 16px;
    height: auto;
    overflow: visible;
  }
}

@media (max-width: 560px) {
  .grid,
  .grid-4,
  .banner-grid,
  .dark-card-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .header .container {
    gap: var(--space-2);
  }

  .brand p,
  .brand h1 {
    display: none;
  }

  .nav a {
    padding: 0 var(--space-2);
    font-size: var(--fs-caption);
  }

  .hero-small {
    padding: var(--space-7) 0 var(--space-6);
  }

  .section {
    padding: var(--space-7) 0;
  }

  .card-img {
    height: 220px;
  }

  .banner-card {
    height: 300px;
  }

  .footer .container {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 var(--space-4);
  }
}

/* ============================================================
   前台 v3 苹果式设计体系（除主页/后台外所有前台页面共用）
   黑白灰 + 单一蓝，大标题 + 留白，浅色毛玻璃页眉
   ============================================================ */
:root {
  --aph-bg: rgba(255, 255, 255, 0.72);
  --aph-bg-solid: rgba(251, 251, 253, 0.92);
  --aph-text: rgba(0, 0, 0, 0.8);
  --aph-text-hover: #1d1d1f;
  --aph-blue: #0071e3;
  --aph-blue-hover: #0077ed;
}

body.v3 {
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --ink: #1d1d1f;
  --gray: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --bg-alt: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ---- 毛玻璃页眉 ---- */
.aph-nav {
  position: sticky; top: 0; z-index: 1000; height: 48px;
  background: var(--aph-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.aph-nav.scrolled { background: var(--aph-bg-solid); }
.aph-inner {
  max-width: 1080px; height: 48px; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center;
}
.aph-logo { flex: 1; display: flex; align-items: center; height: 48px; min-width: 0; color: #1d1d1f; }
.aph-logo-text { margin-left: 9px; font-size: 15px; font-weight: 600; letter-spacing: 0.2px; white-space: nowrap; }
.aph-logo svg { display: block; }
.aph-logo .mark { transition: opacity 0.3s; }
.aph-logo:hover .mark { opacity: 0.72; }
.aph-menu { display: flex; align-items: center; }
.aph-menu > .aph-link, .aph-has-drop > .aph-trigger {
  display: flex; align-items: center; height: 48px; padding: 0 20px;
  font-size: 12.5px; font-weight: 400; color: var(--aph-text);
  cursor: pointer; white-space: nowrap; position: relative; transition: color 0.3s;
  text-decoration: none;
}
.aph-menu > .aph-link:hover, .aph-has-drop:hover > .aph-trigger, .aph-has-drop:focus-within > .aph-trigger { color: var(--aph-text-hover); }
.aph-menu > .aph-link.active { color: var(--aph-text-hover); }
.aph-chevron {
  width: 8px; height: 8px; margin-left: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px); transition: transform 0.3s; opacity: 0.6;
}
.aph-has-drop:hover .aph-chevron, .aph-has-drop:focus-within .aph-chevron { transform: rotate(225deg) translateY(0); }
.aph-has-drop { position: relative; }
.aph-dropdown {
  position: absolute; top: 48px; left: 50%; transform: translate(-50%, -10px);
  min-width: 220px; background: var(--aph-bg-solid);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border-radius: 0 0 18px 18px; padding: 10px 0;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(0, 0, 0, 0.06); border-top: none;
  opacity: 0; visibility: hidden;
  transition: opacity 0.32s, transform 0.32s, visibility 0.32s;
}
.aph-has-drop:hover .aph-dropdown, .aph-has-drop:focus-within .aph-dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.aph-dropdown a {
  display: block; padding: 10px 24px; font-size: 14px; color: var(--aph-text);
  transition: background 0.2s, color 0.2s; text-decoration: none;
}
.aph-dropdown a:hover { background: rgba(0, 0, 0, 0.05); color: #1d1d1f; }
.aph-dropdown a .sub { display: block; font-size: 11px; color: rgba(0, 0, 0, 0.45); margin-top: 2px; }
.aph-actions { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 6px; height: 48px; }
.aph-cart {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; color: var(--aph-text);
  transition: color 0.3s, background 0.3s;
}
.aph-cart:hover { color: #1d1d1f; background: rgba(0, 0, 0, 0.05); }
.aph-cart .badge {
  position: absolute; top: 3px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--aph-blue); color: #fff;
  font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; line-height: 1;
}
.aph-cart .badge.hidden { display: none; }
.aph-login {
  display: inline-flex; align-items: center; height: 30px; padding: 0 16px;
  border-radius: 15px; background: var(--aph-blue); color: #fff;
  font-size: 12.5px; font-weight: 500; margin-left: 4px; transition: background 0.3s; text-decoration: none;
}
.aph-login:hover { background: var(--aph-blue-hover); }
.aph-account {
  display: inline-flex; align-items: center; height: 48px; padding: 0 12px;
  font-size: 12.5px; color: var(--aph-text); white-space: nowrap; transition: color 0.3s; text-decoration: none;
}
.aph-account:hover { color: var(--aph-text-hover); }
.aph-account-name { font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.aph-burger {
  display: none; width: 44px; height: 44px; margin-left: 4px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.aph-burger span { display: block; width: 18px; height: 1.5px; background: var(--aph-text); transition: transform 0.3s, opacity 0.3s; }
.aph-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.aph-burger.open span:nth-child(2) { opacity: 0; }
.aph-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.aph-mobile {
  display: none; position: fixed; top: 48px; left: 0; right: 0; bottom: 0;
  background: rgba(251, 251, 253, 0.97);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  padding: 40px 36px; z-index: 999;
  opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
}
.aph-mobile.open { opacity: 1; visibility: visible; }
.aph-mobile a {
  display: block; padding: 15px 0; font-size: 28px; font-weight: 600;
  color: rgba(0, 0, 0, 0.85); border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.4s, transform 0.4s, color 0.2s; text-decoration: none;
}
.aph-mobile.open a { opacity: 1; transform: none; }
.aph-mobile a:nth-child(1) { transition-delay: 0.05s; }
.aph-mobile a:nth-child(2) { transition-delay: 0.1s; }
.aph-mobile a:nth-child(3) { transition-delay: 0.15s; }
.aph-mobile a:nth-child(4) { transition-delay: 0.2s; }
.aph-mobile a:hover { color: #1d1d1f; }
@media (max-width: 834px) {
  .aph-menu, .aph-actions .aph-login, .aph-actions .aph-account { display: none; }
  .aph-burger { display: flex; }
  .aph-mobile { display: block; }
  .aph-inner { padding: 0 16px; }
}

/* ---- v3 通用排版 ---- */
.v3-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.v3 .eyebrow {
  display: inline-block; font-size: 14px; font-weight: 600; color: var(--blue);
  letter-spacing: 0.02em; margin-bottom: 20px;
}
.v3 h1, .v3 h2, .v3 h3, .v3 p { margin: 0; }
.v3 .btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 28px; border-radius: 24px; font-size: 15px;
  font-weight: 600; text-decoration: none; cursor: pointer; transition: all 0.25s ease; border: none;
}
.v3 .btn-blue { background: var(--blue); color: #fff; }
.v3 .btn-blue:hover { background: var(--blue-hover); }
.v3 .btn-ghost { color: var(--blue); background: none; }
.v3 .btn-ghost:hover { text-decoration: underline; }
.v3 .btn-outline { background: none; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.v3 .btn-outline:hover { background: rgba(0, 113, 227, 0.06); }
.v3 .btn-block { width: 100%; }
.v3 .btn-sm { height: 40px; padding: 0 20px; font-size: 14px; border-radius: 20px; }

/* ---- v3 小标题 Hero（内页） ---- */
.v3-hero-sm { text-align: center; padding: 9vh 24px 4vh; }
.v3-hero-sm h1 {
  font-size: clamp(40px, 7vw, 72px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
}
.v3-hero-sm p { color: var(--gray); font-size: 19px; margin-top: 16px; }

/* ---- v3 区块留白 ---- */
.v3-sec { padding: 8vh 0; }
.v3-sec-tight { padding: 5vh 0; }

/* ---- v3 卡片 ---- */
.v3-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s;
}
.v3-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.18); }
.v3-card .pic { aspect-ratio: 4 / 3; overflow: hidden; background: #f5f5f7; }
.v3-card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.v3-card:hover .pic img { transform: scale(1.04); }
.v3-card .body { padding: 20px; }
.v3-card .body h3 { font-size: 19px; font-weight: 600; }
.v3-card .body h3 a { color: var(--ink); text-decoration: none; }
.v3-card .body h3 a:hover { color: var(--blue); }
.v3-card .meta { color: var(--gray); font-size: 13px; margin-top: 8px; line-height: 1.6; }
.v3-card .price { font-size: 20px; font-weight: 700; color: var(--ink); margin-top: 12px; }
.v3-card .price small { font-size: 12px; font-weight: 400; color: var(--gray); }

/* ---- v3 卡片网格 ---- */
.v3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .v3-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .v3-grid { grid-template-columns: 1fr; } }

/* ---- v3 筛选条 ---- */
.v3-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 40px; }
.v3-filter .chip {
  padding: 8px 18px; border-radius: 18px; font-size: 13px; cursor: pointer;
  background: #f5f5f7; color: var(--ink); transition: all 0.25s; user-select: none;
}
.v3-filter .chip:hover { background: #ebebed; }
.v3-filter .chip.active { background: var(--ink); color: #fff; }
.v3-filter .search { display: flex; gap: 8px; margin-left: auto; }
.v3-filter .search input {
  width: 220px; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line);
  font-size: 13px; outline: none; background: #fff; font-family: inherit;
}
.v3-filter .search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12); }

/* ---- v3 表单（登录/注册/结算） ---- */
.v3-form-wrap { max-width: 460px; margin: 0 auto; }
.v3-form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 40px;
  box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.12);
}
.v3-form-card h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; text-align: center; }
.v3-form-card .sub { color: var(--gray); font-size: 14px; text-align: center; margin-top: 8px; }
.v3-field { margin-top: 20px; }
.v3-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.v3-field input, .v3-field select, .v3-field textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px;
  border: 1px solid #d2d2d7; font-size: 15px; outline: none; background: #fff;
  font-family: inherit; box-sizing: border-box; transition: border-color 0.2s, box-shadow 0.2s;
}
.v3-field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.v3-field input:focus, .v3-field select:focus, .v3-field textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}
.v3-field .row { display: flex; gap: 8px; }
.v3-field .row input { flex: 1; }
.v3-form-tip { text-align: center; color: var(--gray); font-size: 13px; margin-top: 20px; }
.v3-form-tip a { color: var(--blue); text-decoration: none; }

/* ---- v3 标签 ---- */
.v3-tag {
  display: inline-block; padding: 3px 10px; border-radius: 10px; font-size: 12px;
  background: #f5f5f7; color: var(--gray);
}
.v3-tag.blue { background: rgba(0, 113, 227, 0.1); color: var(--blue); }

/* ---- v3 空状态 ---- */
.v3-empty { text-align: center; padding: 60px 20px; color: var(--gray); }
.v3-empty .big { font-size: 40px; color: #d2d2d7; margin-bottom: 12px; }

/* ---- v3 渐显 ---- */
.v3-fade { opacity: 0; transform: translateY(30px); transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.v3-fade.in { opacity: 1; transform: none; }

/* ---- v3 数据表格 ---- */
.v3-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.v3-table th, .v3-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.v3-table th { font-weight: 600; color: var(--gray); font-size: 12px; }
.v3-table tr:hover td { background: #fafafc; }

/* ============================================================
   骨架重构设计系统（阶段一：设计系统 + 阶段二：动效）
   黑白灰蓝 + 大标题 + 留白 + 克制动效
   组件类 .btn/.card/.input/.badge/.reveal/.eyebrow 复用现有定义，
   此处新增统一 CSS 变量 + 内页页面头 .page-head。
   ============================================================ */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f7;
  --color-bg-dark: #000000;
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-text-on-dark: #f5f5f7;
  --color-accent: #0071e3;
  --color-accent-hover: #0077ed;
  --color-border: #d2d2d7;
  --color-danger: #ff3b30;
  --color-success: #34c759;
  --radius-card: 20px;
  --radius-image: 16px;
  --radius-button: 980px;
  --radius-input: 12px;
  --section-padding: 14vh;
  --container-max: 1080px;
  --ease-apple: cubic-bezier(0.25, 0.1, 0.25, 1);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 内页统一页面头 */
.page-head { text-align: center; padding: 8vh 24px 4vh; }
.page-head .eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--color-accent); letter-spacing: 0.02em; margin-bottom: 14px; }
.page-head h1 { font-size: clamp(40px, 7vw, 60px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.page-head p { color: var(--color-text-secondary); font-size: 19px; margin-top: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

.badge-default { background: #f5f5f7; color: #86868b; }

/* 触控目标兜底: 移动端点击目标高度至少 44px(视觉几乎不变, 仅抬高热区) */
@media (max-width: 834px) {
  .btn { min-height: 44px; }
  .btn-sm { min-height: 44px; }
}
