/* ============================================================================
 * Apple 全家桶 - 全局样式表
 * 说明：本文件包含所有页面样式，一般不需要频繁修改。
 * 修改产品数据/价格/语言 → 请编辑 assets/js/ 下的对应文件
 * ========================================================================== */

/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans CJK SC", "Noto Sans CJK TC", "Noto Sans KR", "Noto Sans JP", sans-serif;
  background: #f5f5f7; color: #1d1d1f; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: #0071e3; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ===== 顶部导航栏 ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(22,22,23,.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: #f5f5f7;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; height: 48px;
}
.nav-logo { font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: #f5f5f7; display: flex; align-items: center; gap: 8px; }
.nav-logo svg { width: 18px; height: 18px; fill: #f5f5f7; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: #f5f5f7; font-size: 13px; opacity: .8; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }

/* ===== 语言切换下拉菜单 ===== */
.lang-wrap { position: relative; }
.lang-btn {
  background: rgba(255,255,255,.15); color: #f5f5f7;
  border-radius: 980px; padding: 4px 12px; font-size: 12px;
  display: flex; align-items: center; gap: 4px;
}
.lang-btn:hover { background: rgba(255,255,255,.25); }
.lang-btn .arrow { font-size: 8px; opacity: .7; }
.lang-menu {
  position: absolute; top: 38px; right: 0;
  background: #fff; border-radius: 12px; box-shadow: 0 4px 24px rgba(0,0,0,.18);
  min-width: 170px; overflow: hidden; display: none; z-index: 200;
}
.lang-menu.show { display: block; animation: fadeDown .15s ease; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left; padding: 10px 16px;
  background: #fff; color: #1d1d1f; font-size: 14px;
}
.lang-menu button:hover { background: #f5f5f7; }
.lang-menu button.active { color: #0071e3; font-weight: 600; }
.lang-menu button .check { opacity: 0; font-size: 12px; }
.lang-menu button.active .check { opacity: 1; }

/* ===== 购物车按钮 ===== */
.cart-btn { position: relative; background: none; color: #f5f5f7; display: flex; align-items: center; padding: 4px; }
.cart-btn svg { width: 20px; height: 20px; fill: #f5f5f7; }
.cart-badge {
  position: absolute; top: -2px; right: -6px;
  background: #0071e3; color: #fff; font-size: 11px; font-weight: 600;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.cart-badge.hidden { display: none; }

/* ===== 通用按钮 ===== */
.btn-primary { display: inline-block; background: #0071e3; color: #fff; padding: 10px 22px; border-radius: 980px; font-size: 15px; transition: background .2s; }
.btn-primary:hover { background: #0077ed; }
.btn-ghost { display: inline-block; background: transparent; color: #0071e3; padding: 10px 22px; border-radius: 980px; font-size: 15px; border: 1px solid #0071e3; transition: all .2s; }
.btn-ghost:hover { background: #0071e3; color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ===== Hero 首屏（背景图模式） ===== */
.hero {
  position: relative;
  margin-top: 48px;
  background: #000;
  color: #f5f5f7;
  text-align: center;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/Home/hero.jpg');
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  background-color: #000;
}
/* 渐变遮罩：顶部加深保证标题可读，底部自然过渡 */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.7) 0%,
    rgba(0,0,0,.4) 30%,
    rgba(0,0,0,.1) 60%,
    rgba(0,0,0,.3) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 100px 0 40px;
  width: 100%;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin-bottom: 16px;
  padding: 0 22px;
  text-shadow: 0 2px 30px rgba(0,0,0,.9), 0 0 60px rgba(0,0,0,.5);
}
.hero .sub {
  font-size: clamp(17px, 2vw, 21px);
  color: #e0e0e5;
  margin-bottom: 28px;
  padding: 0 22px;
  text-shadow: 0 1px 20px rgba(0,0,0,.9), 0 0 40px rgba(0,0,0,.4);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero .cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0;
  padding: 0 22px;
}
/* 移动端专用图片：电脑端隐藏 */
.hero-mobile-img { display: none; }

/* ===== 通用区块 ===== */
section { padding: 80px 22px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title { font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -.02em; text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; color: #6e6e73; font-size: 17px; margin-bottom: 50px; }

/* ===== 产品卡片网格 ===== */
.grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border-radius: 24px; overflow: hidden; cursor: pointer; transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.card-img { width: 100%; aspect-ratio: 6/5; background: #f5f5f7; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px; }
.card-name { font-size: 19px; font-weight: 600; margin-bottom: 4px; letter-spacing: -.01em; }
.card-tag { font-size: 13px; color: #6e6e73; margin-bottom: 12px; }
.card-price { font-size: 14px; color: #1d1d1f; font-weight: 500; }
.card-cta { margin-top: 14px; font-size: 13px; color: #0071e3; }
.badge-new { display: inline-block; background: #bf4800; color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 6px; margin-left: 8px; vertical-align: middle; }

/* ===== 生态特性区 ===== */
.ecosystem { background: #fff; }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature { text-align: center; padding: 20px; }
.feature .icon { width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 12px; background: #f5f5f7; display: flex; align-items: center; justify-content: center; }
.feature .icon svg { width: 24px; height: 24px; fill: #1d1d1f; }
.feature h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.feature p { font-size: 14px; color: #6e6e73; }

/* ===== 底部 CTA ===== */
.cta-final { background: linear-gradient(135deg, #1d1d1f 0%, #000 100%); color: #f5f5f7; text-align: center; }
.cta-final h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; margin-bottom: 16px; letter-spacing: -.02em; }
.cta-final p { color: #a1a1a6; margin-bottom: 28px; font-size: 17px; }
footer { background: #f5f5f7; padding: 30px 22px; text-align: center; color: #86868b; font-size: 12px; border-top: 1px solid #d2d2d7; }

/* ===== 产品详情页 ===== */
.detail { padding-top: 48px; min-height: 100vh; }
.back-bar { max-width: 1100px; margin: 0 auto; padding: 16px 22px 0; }
.back-btn {
  background: rgba(0,113,227,.08);
  color: #0071e3;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 16px 7px 12px;
  border-radius: 980px;
  transition: all .2s ease;
  cursor: pointer;
}
.back-btn:hover {
  background: rgba(0,113,227,.15);
  transform: translateX(-2px);
}
.back-btn span { letter-spacing: -.01em; }

.detail-hero { background: #f5f5f7; padding: 40px 22px 60px; }
.detail-wrap { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
@media (min-width: 900px) { .detail-wrap { grid-template-columns: 1.1fr 1fr; gap: 60px; } }

/* 图片画廊 */
.gallery-main { background: #fff; border-radius: 24px; overflow: hidden; aspect-ratio: 6/5; margin-bottom: 12px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery-thumbs button {
  background: #fff; border-radius: 12px; overflow: hidden;
  aspect-ratio: 6/5; padding: 0; border: 2px solid transparent; transition: border-color .2s;
}
.gallery-thumbs button.active { border-color: #0071e3; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* 产品信息 */
.detail-info .eyebrow { color: #bf4800; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.detail-info h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; margin-bottom: 12px; }
.detail-info .tagline { font-size: 20px; color: #6e6e73; margin-bottom: 20px; font-weight: 500; }
.detail-info .desc { font-size: 16px; color: #424245; margin-bottom: 24px; }

/* 购买选项 */
.buy-options { background: #fff; border-radius: 20px; padding: 24px; margin-bottom: 24px; }
.opt-group { margin-bottom: 20px; }
.opt-group:last-child { margin-bottom: 0; }
.opt-label { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.opt-label .sel-name { color: #6e6e73; font-weight: 400; }
.color-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.color-swatch {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid transparent; padding: 0;
  box-shadow: 0 0 0 1px #d2d2d7 inset; transition: border-color .2s;
}
.color-swatch.active { border-color: #0071e3; }
.config-row { display: flex; flex-direction: column; gap: 8px; }
.config-opt {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border: 1px solid #d2d2d7; border-radius: 12px;
  background: #fff; cursor: pointer; transition: all .15s;
  font-size: 14px; text-align: left; width: 100%;
}
.config-opt:hover { border-color: #86868b; }
.config-opt.active { border-color: #0071e3; background: #f5f5ff; }
.config-opt .price-tag { color: #1d1d1f; font-weight: 500; }

/* 价格区 */
.price-box { display: flex; align-items: baseline; gap: 12px; margin: 20px 0; flex-wrap: wrap; }
.price-box .now { font-size: 28px; font-weight: 700; letter-spacing: -.01em; color: #bf4800; }
.price-box .orig { font-size: 18px; font-weight: 400; color: #86868b; text-decoration: line-through; display: none; }
.price-box .orig.show { display: inline; }
.price-box .monthly { font-size: 13px; color: #6e6e73; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 优惠价：原价删除线 + 优惠价（卡片/配置按钮） */
.sale-price { font-weight: 600; }
.price-box .sale-price { color: #bf4800; }
.card-price .sale-price { color: #bf4800; }
.card-price .orig { font-size: 13px; color: #86868b; text-decoration: line-through; font-weight: 400; margin-right: 6px; }
.config-opt .orig.small { font-size: 12px; color: #86868b; text-decoration: line-through; font-weight: 400; margin-right: 6px; }
.config-opt .sale-price { color: #bf4800; }
.badge-sale {
  display: inline-block; background: #bf4800; color: #fff;
  font-size: 10px; padding: 2px 8px; border-radius: 6px; margin-left: 8px; vertical-align: middle;
}
/* 转盘专享角标（紫色区分于普通促销角标） */
.badge-wheel { background: #5e5ce6; }

/* ===== 产品亮点 ===== */
.highlights { background: #fff; padding: 60px 22px; }
.highlights-wrap { max-width: 900px; margin: 0 auto; }
.highlights h2 { font-size: 28px; font-weight: 700; margin-bottom: 24px; }
.highlight-list { list-style: none; }
.highlight-list li {
  padding: 16px 0; border-bottom: 1px solid #e8e8ed;
  font-size: 16px; color: #424245; padding-left: 24px; position: relative;
}
.highlight-list li:before { content: "✓"; position: absolute; left: 0; color: #0071e3; font-weight: 700; }

/* ===== 规格参数 ===== */
.detail-spec { background: #f5f5f7; padding: 60px 22px; }
.spec-wrap { max-width: 900px; margin: 0 auto; }
.spec-wrap h2 { font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.spec-wrap .spec-sub { color: #6e6e73; margin-bottom: 30px; font-size: 15px; }
.spec-row { display: grid; grid-template-columns: 160px 1fr; padding: 18px 0; border-bottom: 1px solid #d2d2d7; font-size: 15px; }
.spec-row .k { color: #6e6e73; }
.spec-row .v { color: #1d1d1f; }
@media (max-width: 600px) { .spec-row { grid-template-columns: 1fr; gap: 4px; } }

/* ===== 购物车侧边栏 ===== */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 150; opacity: 0; pointer-events: none; transition: opacity .3s; }
.cart-overlay.show { opacity: 1; pointer-events: auto; }
.cart-panel {
  position: fixed; top: 0; right: 0; width: 400px; max-width: 90vw;
  height: 100vh; background: #fff; z-index: 160;
  display: none; flex-direction: column; box-shadow: -4px 0 20px rgba(0,0,0,.1);
}
.cart-panel.show { display: flex; animation: slideIn .3s ease; }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.cart-header { padding: 20px 24px; border-bottom: 1px solid #d2d2d7; display: flex; justify-content: space-between; align-items: center; }
.cart-header h3 { font-size: 20px; font-weight: 600; }
.cart-close { background: none; font-size: 24px; color: #6e6e73; line-height: 1; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { text-align: center; color: #86868b; padding: 60px 0; }
.cart-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid #e8e8ed; align-items: center; }
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.cart-item .info .name { font-size: 14px; font-weight: 600; }
.cart-item .info .meta { font-size: 12px; color: #6e6e73; margin-top: 2px; }
.cart-item .info .price { font-size: 13px; margin-top: 4px; }
.cart-item .rm { background: none; color: #bf4800; font-size: 12px; margin-top: 4px; }
.cart-footer { padding: 20px 24px; border-top: 1px solid #d2d2d7; }
.cart-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 600; margin-bottom: 16px; }

/* ===== 弹窗 Modal ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 180;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal { background: #fff; border-radius: 20px; max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 32px; transform: scale(.95); transition: transform .25s; }
.modal-overlay.show .modal { transform: scale(1); }
.modal h2 { font-size: 24px; font-weight: 700; margin-bottom: 16px; letter-spacing: -.01em; }
.modal .close-x { float: right; background: none; font-size: 24px; color: #86868b; line-height: 1; margin: -8px -8px 0 0; }
.feature-list { list-style: none; }
.feature-list li { padding: 12px 0; border-bottom: 1px solid #e8e8ed; font-size: 14px; color: #424245; padding-left: 20px; position: relative; }
.feature-list li:before { content: "•"; position: absolute; left: 0; color: #0071e3; font-weight: 700; }

/* ===== 表单 ===== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 14px; border: 1px solid #d2d2d7; border-radius: 10px;
  font-size: 16px; font-family: inherit; background: #fff;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #0071e3; }
.form-note { font-size: 12px; color: #86868b; margin-top: 12px; }
.form-error { font-size: 12px; color: #d70015; margin-top: 4px; min-height: 16px; }
.form-group input.invalid, .form-group textarea.invalid { border-color: #d70015; }

/* ===== Toast 提示 ===== */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1d1d1f; color: #fff; padding: 12px 22px; border-radius: 12px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: all .3s; z-index: 200; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== 视图切换 ===== */
.view { display: none; }
.view.active { display: block; }

/* ===== 页脚管理后台入口 ===== */
.admin-entry { margin-top: 8px; }
.admin-entry a { font-size: 12px; color: #0071e3; }

/* ===== 预约表单商品展示 ===== */
.lead-products { display: flex; flex-direction: column; gap: 6px; }
.lead-product {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: #f5f5f7; border: 1px solid #e8e8ed; border-radius: 10px;
  padding: 8px 12px; font-size: 13px;
}
.lead-product .lp-name { font-weight: 600; }
.lead-product .lp-meta { color: #6e6e73; font-size: 12px; flex: 1; }
.lead-product .lp-price { color: #bf4800; font-weight: 600; white-space: nowrap; }
.lead-empty { color: #86868b; font-size: 13px; background: #f5f5f7; border-radius: 10px; padding: 10px 12px; }

/* ===== 提交中的加载动画 ===== */
.loading-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 220;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.loading-overlay.show { opacity: 1; pointer-events: auto; }
.loading-box {
  background: #fff; border-radius: 16px; padding: 32px 40px; text-align: center;
  color: #1d1d1f; font-size: 15px; display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.spinner {
  width: 40px; height: 40px; border: 4px solid #e8e8ed; border-top-color: #0071e3;
  border-radius: 50%; animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 预约成功弹窗 ===== */
.success-modal { text-align: center; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%; background: #30d158; color: #fff;
  font-size: 32px; line-height: 64px; margin: 0 auto 16px;
}
.success-modal h2 { margin-bottom: 8px; }
.success-sub { color: #6e6e73; margin-bottom: 20px; }
.success-contact { margin: 16px 0; padding: 14px; background: #f5f5f7; border-radius: 12px; }
.success-contact .sc-label { font-size: 13px; color: #6e6e73; margin-bottom: 10px; }
.success-contact .sc-actions { display: flex; flex-direction: column; }
.success-list { margin: 0 0 20px; text-align: left; }


/* ===== 移动端响应式优化 ===== */
@media (max-width: 768px) {
  /* 导航栏：隐藏文字导航，只保留 logo + 语言 + 购物车，避免拥挤 */
  .nav-inner { padding: 0 16px; }
  .nav-logo { font-size: 15px; gap: 6px; }
  .nav-logo svg { width: 16px; height: 16px; }
  .nav-links { gap: 12px; }
  .nav-links > a { display: none; } /* 隐藏"产品/生态/购买"文字链接 */
  .lang-btn { font-size: 11px; padding: 3px 10px; }
  .cart-btn svg { width: 18px; height: 18px; }

  /* Hero 首屏：手机端改为文字在上、图片在下，避免文字遮挡 */
  .hero {
    min-height: auto;
    aspect-ratio: auto;
    background: #000;
    display: block;
  }
  .hero-bg { display: none; } /* 手机端隐藏背景图 */
  .hero-content { padding: 60px 0 36px; }
  .hero h1 {
    font-size: clamp(32px, 9vw, 44px);
    text-shadow: none;
  }
  .hero .sub {
    font-size: clamp(15px, 4vw, 18px);
    color: #a1a1a6;
    text-shadow: none;
    margin-bottom: 24px;
  }
  .hero .cta-row { margin-bottom: 0; }
  .hero .cta-row .btn-primary,
  .hero .cta-row .btn-ghost { font-size: 14px; padding: 9px 18px; }
  /* 手机端显示完整产品图 */
  .hero-mobile-img {
    display: block;
    width: 100%;
    background: #000;
  }
  .hero-mobile-img img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* 通用区块移动端收紧 */
  section { padding: 56px 16px; }
  .section-title { font-size: clamp(24px, 6vw, 36px); }
  .section-sub { font-size: 15px; margin-bottom: 36px; }
}

@media (max-width: 420px) {
  /* 超小屏：进一步压缩导航栏 */
  .nav-logo span { display: none; } /* 只保留 Apple logo，隐藏"全家桶"文字 */
  .nav-inner { padding: 0 12px; }
  .nav-links { gap: 8px; }
  .lang-btn { font-size: 10px; padding: 3px 8px; }
  .lang-btn .arrow { display: none; }
}

/* ===== 联系方式自定义下拉 ===== */
.contact-select {
  position: relative;
  width: 100%;
}
.cs-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
  font-size: 15px;
  color: #1d1d1f;
}
.cs-selected:hover { border-color: #0071e3; }
.contact-select.open .cs-selected { border-color: #0071e3; }
.cs-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.cs-icon svg { width: 22px; height: 22px; display: block; }
.cs-text { flex: 1; }
.cs-arrow {
  color: #86868b;
  font-size: 12px;
  transition: transform 0.2s;
}
.contact-select.open .cs-arrow { transform: rotate(180deg); }
.cs-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: 100;
  display: none;
  overflow: hidden;
}
.contact-select.open .cs-options { display: block; }
.cs-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 15px;
  color: #1d1d1f;
}
.cs-option:hover { background: #f5f5f7; }
.cs-option.active { background: #e8f0fe; color: #0071e3; }

/* ===== 后台订单信息标签 ===== */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.tag-customer {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #bbdefb;
}
.tag-product {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffe0b2;
}

/* ============================================================================
 * 真人验证浮层（首页滑块验证动画）
 * ========================================================================== */
.verify-overlay {
  position: fixed; inset: 0; background: rgba(8,10,14,.72); z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.verify-overlay.show { opacity: 1; pointer-events: auto; }
.verify-overlay.hide { opacity: 0; pointer-events: none; }
.verify-card {
  position: relative; background: #fff; border-radius: 28px; padding: 40px 36px 32px;
  max-width: 420px; width: 100%; text-align: center;
  box-shadow: 0 30px 90px rgba(0,0,0,.45); animation: verifyPop .45s cubic-bezier(.2,.9,.3,1.2);
  overflow: hidden;
}
/* 卡片顶部装饰光晕 */
.verify-card::before {
  content: ''; position: absolute; top: -70px; left: 50%; transform: translateX(-50%);
  width: 260px; height: 140px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10,132,255,.18), transparent);
  pointer-events: none;
}
@keyframes verifyPop { from { opacity: 0; transform: scale(.85) translateY(18px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.verify-ico {
  position: relative; width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 18px;
  background: linear-gradient(135deg, #0a84ff, #5ac8fa); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(10,132,255,.4); animation: verifyPulse 1.8s ease-in-out infinite;
}
@keyframes verifyPulse {
  0%,100% { box-shadow: 0 8px 24px rgba(10,132,255,.4), 0 0 0 0 rgba(10,132,255,.35); }
  50% { box-shadow: 0 8px 24px rgba(10,132,255,.4), 0 0 0 16px rgba(10,132,255,0); }
}
.verify-ico svg { width: 32px; height: 32px; fill: #fff; }
.verify-card h2 { font-size: 23px; font-weight: 700; margin-bottom: 6px; letter-spacing: -.01em; }
.verify-card > p { color: #6e6e73; font-size: 14px; margin-bottom: 26px; }
/* 滑块 */
.verify-slider {
  position: relative; height: 54px; border-radius: 27px; overflow: hidden;
  background: #f2f2f4; border: 1px solid #d8d8dc;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.06);
  user-select: none; touch-action: none;
}
.vs-track { position: absolute; inset: 0; }
.vs-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, #34c759, #30d158);
  border-radius: 27px; opacity: .9; transition: width .12s linear;
}
.vs-handle {
  position: absolute; left: 4px; top: 4px; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.28); cursor: grab;
  display: flex; align-items: center; justify-content: center; z-index: 2;
  transition: left .12s linear, transform .2s, background .25s, box-shadow .25s;
}
.vs-handle svg { width: 24px; height: 24px; fill: #0071e3; }
.vs-handle.dragging { cursor: grabbing; transform: scale(1.06); }
.vs-handle.done { background: linear-gradient(135deg,#30d158,#28b04c); box-shadow: 0 4px 14px rgba(48,209,88,.5); }
.vs-handle.done svg { fill: #fff; }
.vs-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #8e8e93; font-size: 14px; pointer-events: none; z-index: 1; transition: opacity .2s;
}
/* 验证成功动画 */
.verify-success {
  margin-top: 20px; color: #0a7d2c; font-weight: 600; font-size: 15px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  animation: verifyOk .5s cubic-bezier(.2,.9,.3,1.4);
}
.vs-check {
  width: 28px; height: 28px; border-radius: 50%; background: #30d158; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
  box-shadow: 0 3px 10px rgba(48,209,88,.5);
  animation: checkPop .55s cubic-bezier(.2,.9,.3,1.6);
}
@keyframes checkPop { 0% { transform: scale(0) rotate(-60deg); } 60% { transform: scale(1.15) rotate(6deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes verifyOk { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================================
 * 折扣转盘弹窗（精致版：深色质感 + 渐变扇区 + 发光指针）
 * ========================================================================== */
.wheel-modal {
  max-width: 460px; text-align: center; padding: 32px 28px 26px;
  background: linear-gradient(180deg, #1d1d1f, #2a2a2e);
  color: #f5f5f7; border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px; box-shadow: 0 34px 100px rgba(0,0,0,.55);
}
.wheel-modal h2 {
  margin-bottom: 8px; font-size: 26px; letter-spacing: -.02em;
  background: linear-gradient(90deg, #ffd60a, #ff9f0a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wheel-modal .close-x { color: #86868b; }
.wheel-modal .close-x:hover { color: #f5f5f7; }
.wheel-sub { color: #a1a1a6; font-size: 13px; margin-bottom: 20px; }
.wheel-box { position: relative; width: 336px; max-width: 88vw; margin: 0 auto 16px; }
/* 转盘底部光晕 */
.wheel-box::before {
  content: ''; position: absolute; inset: 4% 4% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,214,10,.13), transparent 70%);
  pointer-events: none; z-index: 0;
}
.wheel-pointer {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%) rotate(180deg); z-index: 6;
  width: 0; height: 0;
  border-left: 15px solid transparent; border-right: 15px solid transparent; border-top: 24px solid #ffd60a;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.45));
}
.wheel-pointer::after {
  content: ''; position: absolute; left: -8px; top: -26px;
  border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 14px solid #fff;
}
#wheel-svg {
  position: relative; z-index: 1;
  width: 100%; height: auto;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,.45));
  transition: transform 4s cubic-bezier(.17,.67,.12,.99); transform: rotate(0deg);
}
#wheel-svg.spinning { transition: transform 4.3s cubic-bezier(.12,.72,.1,1); }
.wheel-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 96px; height: 96px; border-radius: 50%; z-index: 5;
  background: linear-gradient(180deg, #0a84ff, #0060df);
  color: #fff; font-size: 17px; font-weight: 800; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0,0,0,.25);
  box-shadow: 0 0 0 6px rgba(255,255,255,.14), 0 10px 26px rgba(0,96,223,.5), inset 0 -4px 10px rgba(0,0,0,.18);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.wheel-btn:hover { transform: translate(-50%,-50%) scale(1.06); box-shadow: 0 0 0 6px rgba(255,255,255,.2), 0 12px 32px rgba(0,96,223,.6), inset 0 -4px 10px rgba(0,0,0,.18); filter: brightness(1.05); }
.wheel-btn:active { transform: translate(-50%,-50%) scale(.97); }
.wheel-btn:disabled { cursor: not-allowed; opacity: .6; filter: grayscale(.4); }
.wheel-status { color: #a1a1a6; font-size: 13px; min-height: 20px; margin-top: 4px; }
/* 中奖结果卡 */
.wheel-result {
  margin-top: 16px; padding: 18px 20px; border-radius: 18px;
  background: linear-gradient(135deg, #3a2d0d, #554114);
  border: 1px solid rgba(255,214,10,.35);
  box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12);
  animation: verifyOk .5s cubic-bezier(.2,.9,.3,1.3);
}
.wheel-result .wr-title { font-size: 16px; font-weight: 700; color: #ffd60a; letter-spacing: .08em; }
.wheel-result .wr-value {
  font-size: 46px; font-weight: 900; margin: 4px 0 6px;
  background: linear-gradient(180deg, #ffe58a, #ffb000);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 6px rgba(255,176,0,.35));
  letter-spacing: -.02em; animation: wrBounce .6s cubic-bezier(.2,.9,.3,1.5);
}
@keyframes wrBounce { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.wheel-result .wr-sub { font-size: 13px; color: #d9c27a; }
.wheel-result .btn-primary {
  margin-top: 14px; background: linear-gradient(180deg,#0a84ff,#0060df); border: none; color: #fff;
  box-shadow: 0 6px 18px rgba(0,96,223,.4);
}

/* ============================================================================
 * 手机版重点优化（≤600px 与 ≤480px）
 * ========================================================================== */
@media (max-width: 600px) {
  .verify-overlay { padding: 16px; }
  .verify-card { max-width: 92vw; border-radius: 24px; padding: 32px 22px 26px; }
  .verify-ico { width: 58px; height: 58px; margin-bottom: 14px; }
  .verify-ico svg { width: 27px; height: 27px; }
  .verify-card h2 { font-size: 20px; }
  .verify-card > p { font-size: 13px; margin-bottom: 20px; }
  .verify-slider { height: 54px; border-radius: 27px; }
  .vs-handle { width: 46px; height: 46px; }
  .vs-handle svg { width: 23px; height: 23px; }
  .wheel-modal { max-width: 94vw; border-radius: 24px; padding: 26px 18px 22px; }
  .wheel-modal h2 { font-size: 23px; }
  .wheel-sub { margin-bottom: 16px; }
  .wheel-box { width: 100%; max-width: 336px; margin-bottom: 12px; }
  .wheel-btn { width: 88px; height: 88px; font-size: 16px; }
  .wheel-result .wr-value { font-size: 40px; }
}
@media (max-width: 480px) {
  .verify-overlay { padding: 12px; }
  .verify-card { padding: 28px 16px 22px; }
  .verify-success { font-size: 14px; }
  .wheel-modal { padding: 22px 14px 18px; }
  .wheel-btn { width: 80px; height: 80px; font-size: 15px; }
  .wheel-status { font-size: 12px; }
}

/* ============================================================================
 * 语言选择弹窗
 * ========================================================================== */
.lang-modal { max-width: 400px; text-align: center; }
.lang-globe {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px;
  background: #e8f0fe; display: flex; align-items: center; justify-content: center;
  animation: verifyPulse 1.8s ease-in-out infinite;
}
.lang-globe svg { width: 30px; height: 30px; fill: #0071e3; }
.lang-modal h2 { margin-bottom: 4px; }
.lang-sub { color: #6e6e73; font-size: 13px; margin-bottom: 20px; }
.lang-options { display: flex; flex-direction: column; gap: 8px; }
.lang-options button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; border-radius: 12px; border: 1.5px solid #e0e0e0;
  background: #fff; font-size: 15px; color: #1d1d1f; cursor: pointer;
  transition: all .15s;
}
.lang-options button:hover { border-color: #0071e3; background: #f5f9ff; }
.lang-options button.default { border-color: #0071e3; background: #e8f0fe; color: #0071e3; font-weight: 600; }
.lang-options button .lo-check { margin-left: auto; color: #0071e3; font-weight: 700; opacity: 0; }
.lang-options button.default .lo-check { opacity: 1; }

/* ============================================================================
 * 预约信息确认弹窗（提交前动画确认）
 * ========================================================================== */
.confirm-modal { max-width: 520px; text-align: center; }
.confirm-anim {
  display: flex; justify-content: center; gap: 6px; margin-bottom: 16px;
}
.confirm-anim .ca-dot {
  width: 10px; height: 10px; border-radius: 50%; background: #0071e3;
  animation: caBounce 1.2s ease-in-out infinite;
}
.confirm-anim .ca-dot:nth-child(2) { animation-delay: .15s; }
.confirm-anim .ca-dot:nth-child(3) { animation-delay: .3s; }
@keyframes caBounce { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-10px); opacity: 1; } }
.confirm-modal h2 { margin-bottom: 4px; }
.confirm-sub { color: #6e6e73; font-size: 13px; margin-bottom: 18px; }
.confirm-list {
  text-align: left; background: #f5f5f7; border-radius: 14px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px; max-height: 40vh; overflow-y: auto;
}
.confirm-list .cl-row { display: flex; gap: 10px; font-size: 14px; }
.confirm-list .cl-k { flex: 0 0 76px; color: #6e6e73; font-weight: 600; }
.confirm-list .cl-v { color: #1d1d1f; flex: 1; word-break: break-word; }

/* ============================================================================
 * 管理后台：验证与转盘 / 语言设置 面板
 * ========================================================================== */

/* ============================================================================
 * 2026-10 细化优化：
 * ① 首屏语言隐藏（避免闪现默认语言）
 * ② 后台按钮/下拉/勾选框 UI 升级
 * ③ 真人验证成功倒计时
 * ④ 折扣转盘精修
 * ⑤ 预约成功页销售繁忙提示
 * ========================================================================== */

/* ① 首屏隐藏：语言未加载完成前整页隐藏，保留布局不闪动 */
body.pre-init { visibility: hidden; }
body.pre-init #page-loading { visibility: visible; }
#page-loading {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: #fff; visibility: hidden;
}
#page-loading .pl-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid #e8e8ed; border-top-color: #0071e3;
  animation: plSpin .9s linear infinite;
}
@keyframes plSpin { to { transform: rotate(360deg); } }


/* ③ 真人验证成功倒计时 */
.verify-count {
  margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 10px;
  color: #6e6e73; font-size: 13px; font-weight: 600;
  animation: verifyOk .4s ease;
}
.vc-ring {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #34c759, #30d158); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
  box-shadow: 0 3px 10px rgba(48,209,88,.45);
  animation: vcPulse 1s ease-in-out infinite;
}
@keyframes vcPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* ④ 折扣转盘精修：指针呼吸 + 按钮层次光晕 + 阴影加深 */
.wheel-pointer { animation: wheelPointer 1.6s ease-in-out infinite; }
@keyframes wheelPointer {
  0%,100% { transform: translateX(-50%) rotate(180deg) scale(1); }
  50% { transform: translateX(-50%) rotate(180deg) scale(1.08); }
}
.wheel-box::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 44px rgba(0,0,0,.5);
  pointer-events: none; z-index: 0;
}
#wheel-svg { filter: drop-shadow(0 14px 34px rgba(0,0,0,.5)); }
.wheel-btn {
  background: linear-gradient(180deg, #0a84ff 0%, #0071e3 55%, #0060df 100%);
  box-shadow: 0 0 0 7px rgba(255,255,255,.15), 0 12px 30px rgba(0,96,223,.55),
    inset 0 2px 0 rgba(255,255,255,.28), inset 0 -5px 10px rgba(0,0,0,.2);
}
.wheel-btn:hover {
  box-shadow: 0 0 0 7px rgba(255,255,255,.22), 0 14px 36px rgba(0,96,223,.65),
    inset 0 2px 0 rgba(255,255,255,.3), inset 0 -5px 10px rgba(0,0,0,.2);
}

/* ⑤ 预约成功弹窗：销售繁忙提示（单一提示卡，避免文案重复） */
.sc-busy {
  margin-top: 14px; padding: 14px;
  background: linear-gradient(180deg, #fff8ee, #fff3e0);
  border: 1px solid #f5d9a8; border-radius: 14px;
  text-align: left;
}
.sc-busy-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.sc-busy-ico {
  width: 20px; height: 20px; border-radius: 50%; flex: 0 0 20px;
  background: linear-gradient(135deg, #ff9f0a, #ff9500); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  box-shadow: 0 2px 6px rgba(255,149,0,.4);
}
.sc-busy-title { font-size: 14px; font-weight: 700; color: #b2500e; }
.sc-busy-sub { font-size: 12.5px; color: #8a6a3a; line-height: 1.5; margin-bottom: 12px; }
.sc-busy-btn { margin-bottom: 8px; }
.sc-busy-btn:last-child { margin-bottom: 0; }
.sc-none { font-size: 13px; color: #86868b; text-align: center; }

  .verify-count { font-size: 12px; }
}
