/* ===== 基础重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #ffb703;
  --primary-dark: #f49e0a;
  --accent: #fb8500;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-soft: #fff7e6;
  --bg-cream: #fffbf2;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(255, 183, 3, 0.18);
  --shadow-lg: 0 20px 50px rgba(23, 26, 32, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

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

.gradient-text {
  background: linear-gradient(90deg, #ff8b00, #ffb703, #ff9f1a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { box-shadow: 0 14px 34px rgba(255, 140, 0, 0.35); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid #e5e7eb;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--accent); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--bg-soft); }

.btn-white {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 10px 26px rgba(0,0,0,0.15);
}

.btn-lg { padding: 15px 38px; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-nav { padding: 9px 22px; font-size: 0.9rem; }

/* ===== 导航 ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 183, 3, 0.15);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* ===== Hero ===== */
.hero {
  background: radial-gradient(circle at 80% 10%, #fff3d6 0%, transparent 50%), var(--bg-cream);
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: var(--bg-soft);
  color: var(--accent);
  border: 1px solid var(--primary);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 2.8rem;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero-sub {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
}
.hero-stats div { display: flex; flex-direction: column; }
.stat-num { font-size: 1.7rem; font-weight: 800; color: var(--accent); }
.hero-stats span:last-child { font-size: 0.85rem; color: var(--text-light); }

.hero-img {
  position: relative;
  justify-self: center;
}
.hero-img img {
  width: 380px;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}
.hero-float {
  position: absolute;
  background: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: float 3.5s ease-in-out infinite;
}
.float-1 { top: -12px; left: -30px; animation-delay: 0s; }
.float-2 { top: 30%; right: -40px; animation-delay: 0.8s; }
.float-3 { bottom: 20px; left: -20px; animation-delay: 1.6s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== 通用区块 ===== */
section { padding: 80px 0; }

/* ===== 在线模拟器 ===== */
.simulator { background: var(--bg-cream); }
.simulator-frame {
  max-width: 960px;
  margin: 0 auto;
  border: 2px solid #fff3d6;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 820px;
  background: #fafafa;
}
@media (max-width: 640px) {
  /* 移动端：模拟器需要展示 3D 视图 + 行为按钮，按视口高度尽量加高 */
  .simulator-frame { height: 90vh; min-height: 780px; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .simulator-frame { height: 720px; }
}
.simulator-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.simulator-fallback {
  max-width: 960px;
  margin: 14px auto 0;
  text-align: center;
  color: var(--text-light);
  font-size: 0.88rem;
}
.simulator-fallback a { color: var(--accent); }

/* ===== 内置行为 ===== */
.behaviors { background: var(--bg); }
.behaviors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.behavior-card {
  background: var(--bg-cream);
  border: 1px solid #fff3d6;
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.behavior-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.behavior-icon { font-size: 2.2rem; margin-bottom: 12px; }
.behavior-card h3 { margin-bottom: 6px; font-size: 1.1rem; }
.behavior-card p { color: var(--text-light); font-size: 0.9rem; }

/* ===== 配色 ===== */
.colors { background: var(--bg-soft); }
.colors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.color-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.color-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.color-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}
.color-card h3 { font-size: 1rem; }

/* ===== 规格参数 ===== */
.specs { background: var(--bg); }
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.spec-item {
  background: var(--bg-cream);
  border: 1px solid #fff3d6;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spec-label { font-size: 0.8rem; color: var(--text-light); }
.spec-value { font-weight: 700; font-size: 1.02rem; }

/* ===== 开源 ===== */
.open { padding-bottom: 30px; background: var(--bg); }
.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
}
.section-sub {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 46px;
}

/* ===== 产品亮点 ===== */
.features { background: var(--bg); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.feature-card {
  background: var(--bg-cream);
  border: 1px solid #fff3d6;
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-icon { font-size: 2.4rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-light); font-size: 0.92rem; }

/* ===== 版本 ===== */
.editions { background: var(--bg-soft); }
.editions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}
.edition-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  position: relative;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
  cursor: pointer;
}
.edition-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.edition-card.selected {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  background: var(--bg-cream);
}
.edition-card.hot.selected { transform: scale(1.03); box-shadow: var(--shadow); }
.edition-card.hot.selected:hover { transform: scale(1.03) translateY(-6px); }

/* 卡片右上角选中角标 */
.select-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d1d5db;
  color: transparent;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.edition-card.selected .select-badge {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: var(--accent);
  color: #fff;
}
.editions-hint {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 26px;
}

/* 浮动结算栏 */
.order-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  background: #1f2937;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 12px 16px 12px 26px;
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
  z-index: 150;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.order-bar.show { transform: translateX(-50%) translateY(0); }
.order-bar-info { display: flex; align-items: baseline; gap: 18px; font-size: 0.95rem; }
.order-bar-total strong { color: var(--primary); font-size: 1.35rem; font-weight: 800; margin-left: 4px; }
.order-bar .btn { padding: 10px 26px; }
.order-bar .btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.edition-card.hot {
  border: 2px solid var(--primary);
  transform: scale(1.03);
}
.edition-card.hot:hover { transform: scale(1.03) translateY(-6px); }
.hot-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.edition-img { margin-bottom: 16px; }
.edition-img img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
}
.edition-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.edition-desc { color: var(--text-light); font-size: 0.9rem; margin-bottom: 12px; }
.edition-price { margin-bottom: 18px; }
.price { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.origin { color: var(--text-light); text-decoration: line-through; font-size: 0.95rem; }
.edition-features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
  flex: 1;
}
.edition-features li { padding: 6px 0; font-size: 0.92rem; color: var(--text); }

/* ===== 用户评价 ===== */
.reviews { background: var(--bg); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.review-card {
  background: var(--bg-cream);
  border: 1px solid #fff3d6;
  border-radius: var(--radius);
  padding: 28px 24px;
}
.review-stars { color: var(--primary); margin-bottom: 12px; letter-spacing: 2px; }
.review-card p { font-size: 0.96rem; margin-bottom: 16px; }
.review-user { color: var(--text-light); font-size: 0.9rem; font-weight: 600; }

/* ===== FAQ ===== */
.faq { background: var(--bg-cream); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 22px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-icon {
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p {
  padding: 0 22px 18px;
  color: var(--text-light);
  font-size: 0.93rem;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ===== CTA ===== */
.cta { padding-bottom: 90px; background: var(--bg); }
.cta-box {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 28px;
  text-align: center;
  padding: 60px 30px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-box h2 { font-size: 2.2rem; margin-bottom: 12px; }
.cta-box p { font-size: 1rem; opacity: 0.95; margin-bottom: 26px; }
.cta-note { font-size: 0.82rem !important; opacity: 0.85; margin-top: 18px !important; margin-bottom: 0 !important; }

/* ===== 页脚 ===== */
.footer { background: #1f2937; color: #cbd5e1; padding-top: 50px; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
}
.footer .logo { color: #fff; }
.footer-brand p { margin-top: 12px; font-size: 0.9rem; color: #94a3b8; }
.footer-links h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.footer-links a { display: block; color: #94a3b8; text-decoration: none; margin-bottom: 8px; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid #334155; padding: 18px 0; text-align: center; font-size: 0.82rem; color: #94a3b8; }

/* ===== 弹窗 ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-box {
  background: #fff;
  border-radius: 20px;
  padding: 34px 30px;
  width: min(460px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: pop 0.3s ease;
}
@keyframes pop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-box h3 { text-align: center; margin-bottom: 20px; font-size: 1.3rem; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
}
.modal-box form { display: flex; flex-direction: column; gap: 6px; }
.modal-box label { font-size: 0.86rem; font-weight: 600; color: var(--text); margin-top: 8px; }
.modal-box input,
.modal-box select,
.modal-box textarea {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.modal-box textarea { resize: vertical; font-family: inherit; line-height: 1.5; }
.modal-box input:focus,
.modal-box select:focus,
.modal-box textarea:focus { border-color: var(--primary); }
.modal-box .btn { margin-top: 20px; }

/* 弹窗内多选产品 */
.product-options { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.product-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.product-option:hover { border-color: var(--primary); }
.product-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--bg-soft);
}
.product-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.option-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid #d1d5db;
  background: #fff;
  color: transparent;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.product-option:has(input:checked) .option-check {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: var(--accent);
  color: #fff;
}
.option-name { flex: 1; font-size: 0.95rem; font-weight: 500; }
.option-price { font-weight: 800; color: var(--accent); font-size: 1.02rem; }

/* 订单核算清单 */
.order-summary {
  margin-top: 14px;
  background: var(--bg-cream);
  border: 1px solid #ffe3a3;
  border-radius: 12px;
  padding: 14px 16px;
}
.summary-title { font-size: 0.88rem; font-weight: 700; margin-bottom: 6px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  padding: 6px 0;
  color: var(--text);
}
.summary-name { flex: 1; }
.summary-line { font-weight: 800; color: var(--accent); white-space: nowrap; min-width: 52px; text-align: right; }
.summary-empty { font-size: 0.86rem; color: var(--text-light); padding: 4px 0; }
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed #e5c779;
  margin-top: 8px;
  padding-top: 10px;
  font-weight: 700;
  font-size: 0.95rem;
}
.total-price { color: var(--accent); font-size: 1.4rem; font-weight: 800; }

/* 每行数量步进器 */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.qty-stepper button {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1.5px solid var(--primary);
  background: #fff;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.qty-stepper button:hover:not(:disabled) { background: var(--bg-soft); }
.qty-stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.qty-num { min-width: 28px; text-align: center; font-weight: 700; font-size: 0.92rem; }

/* 查询结果价格 */
.query-line-price { color: var(--accent); font-weight: 700; }
.query-total { color: var(--accent); font-size: 1.05rem; }

/* ===== Toast 提示 ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  background: #1f2937;
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  z-index: 300;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
  max-width: 92%;
  text-align: center;
  line-height: 1.5;
}
@keyframes slideUp { from { transform: translateX(-50%) translateY(20px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }

/* ===== 工具类 ===== */
.hidden { display: none !important; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-img { order: -1; }
  .features-grid, .editions-grid, .reviews-grid, .behaviors-grid, .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .colors-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  .features-grid, .editions-grid, .reviews-grid, .behaviors-grid, .specs-grid, .colors-grid { grid-template-columns: 1fr; }
  .edition-card.hot { transform: none; }
  .edition-card.hot:hover { transform: translateY(-6px); }
  .edition-card.hot.selected { transform: none; }
  .edition-card.hot.selected:hover { transform: translateY(-6px); }
  .hero h1 { font-size: 2.1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-img img { width: 100%; }
  .order-bar { width: 92%; justify-content: space-between; gap: 12px; border-radius: 20px; padding: 12px 16px; }
  .order-bar-info { gap: 12px; flex-wrap: wrap; }
  .toast { border-radius: 16px; bottom: 96px; }
}
/* ================================================ */
/* 订单系统：表单错误 / 下单成功 / 订单查询 / 状态徽章 */
/* ================================================ */
.form-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.88rem;
  margin-top: 10px;
}

.order-success { text-align: center; padding: 10px 0; }
.success-icon { font-size: 3rem; margin-bottom: 8px; }
.order-success h3 { margin-bottom: 8px; }
.order-success p { color: var(--text-light); font-size: 0.92rem; margin-bottom: 16px; }
.order-no-box {
  background: var(--bg-soft);
  border: 2px dashed var(--primary);
  border-radius: 12px;
  padding: 14px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 18px;
  user-select: all;
}
.order-success .btn { margin-bottom: 10px; }

.query-result {
  margin-top: 18px;
  border-top: 1px dashed #e5e7eb;
  padding-top: 16px;
}
.query-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.query-no { font-weight: 700; color: var(--text); }
.query-dl div {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.92rem;
  border-bottom: 1px solid #f3f4f6;
}
.query-dl dt { width: 72px; flex-shrink: 0; color: var(--text-light); }
.query-dl dd { flex: 1; word-break: break-all; }

/* 状态徽章（前台查询与后台共用） */
.status-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.status-pending   { background: #fef3c7; color: #b45309; }
.status-paid      { background: #dbeafe; color: #1d4ed8; }
.status-shipped   { background: #e0e7ff; color: #4338ca; }
.status-completed { background: #dcfce7; color: #15803d; }
.status-cancelled { background: #f3f4f6; color: #6b7280; }

/* ================================================ */
/* 管理后台                                           */
/* ================================================ */
.admin-body { background: #f6f7fb; }

/* 登录 */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 0%, #fff3d6 0%, #f6f7fb 60%);
}
.admin-login-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 38px 34px;
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-logo { font-size: 1.3rem; font-weight: 800; text-align: center; margin-bottom: 4px; }
.admin-login-card h2 { text-align: center; font-size: 1.2rem; margin-bottom: 14px; }
.admin-login-card label { font-size: 0.86rem; font-weight: 600; margin-top: 8px; }
.admin-login-card input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  outline: none;
}
.admin-login-card input:focus { border-color: var(--primary); }
.admin-login-card .btn { margin-top: 18px; }
.admin-captcha-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.admin-captcha-question {
  flex: 1;
  padding: 10px 14px;
  border: 1px dashed #c3c8d4;
  border-radius: 10px;
  background: #f9fafb;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  color: #374151;
}
.admin-captcha-row .btn { margin-top: 0; }
.admin-back {
  text-align: center;
  margin-top: 14px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.88rem;
}
.admin-back:hover { color: var(--accent); }

/* 头部 */
.admin-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-header-inner {
  width: min(1280px, 96%);
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-header-right { display: flex; align-items: center; gap: 16px; }
.admin-back-link { color: var(--text-light); text-decoration: none; font-size: 0.9rem; }
.admin-back-link:hover { color: var(--accent); }
.admin-logout { padding: 7px 18px; font-size: 0.85rem; }

.admin-main { width: min(1280px, 96%); margin: 24px auto 60px; }

/* 统计卡片 */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-top: 3px solid var(--primary);
}
.stat-card-num { font-size: 1.5rem; font-weight: 800; }
.stat-card-label { font-size: 0.82rem; color: var(--text-light); }
.stat-card.status-pending   { border-top-color: #f59e0b; }
.stat-card.status-shipped   { border-top-color: #6366f1; }
.stat-card.status-completed { border-top-color: #22c55e; }
.stat-card.status-cancelled { border-top-color: #9ca3af; }

/* 筛选栏 */
.admin-pay-section {
  margin-bottom: 18px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
}
.admin-pay-toggle {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: #1f2937;
}
.admin-pay-toggle:hover { background: #f9fafb; }
.admin-pay-panel {
  padding: 6px 18px 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.admin-pay-panel.hidden { display: none; }
/* 收款设置独立视图（左侧导航） */
#view-pay .admin-pay-panel {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
}
.pay-group h4 { margin: 6px 0 12px; font-size: 1rem; color: var(--primary); }
.pay-group label { display: block; font-size: 0.85rem; color: #4b5563; margin-bottom: 10px; }
.pay-group label > input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  box-sizing: border-box;
}
.pay-group label > input:focus { border-color: var(--primary); }
.pay-qr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pay-qr-row label { flex: 1 1 200px; }
.admin-file {
  padding: 8px 12px;
  border: 1px dashed #9ca3af;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  flex: 0 0 auto;
}
.admin-file:hover { border-color: var(--primary); color: var(--primary); }
.admin-qr-preview {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
}
.admin-pay-msg.hidden { display: none; }
.admin-pay-msg.ok { color: #16a34a; margin: 6px 0; }
.admin-pay-msg.err { color: #dc2626; margin: 6px 0; }
@media (max-width: 760px) { .admin-pay-panel { grid-template-columns: 1fr; } }
.admin-filters {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.admin-filters select,
.admin-filters input[type="text"],
.admin-filters input[type="date"] {
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  outline: none;
}
.admin-filters input[type="text"] { flex: 1; min-width: 200px; }
.admin-filters select:focus,
.admin-filters input:focus { border-color: var(--primary); }
.admin-date { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-light); }
.admin-filters .btn { padding: 9px 20px; font-size: 0.9rem; }
.admin-count { margin-left: auto; font-size: 0.88rem; color: var(--text-light); }

/* 表格 */
.admin-table-wrap {
  background: #fff;
  border-radius: 14px;
  overflow-x: auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 1000px;
}
.admin-table th {
  background: #fafafa;
  text-align: left;
  padding: 12px 14px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
.admin-table tr:hover td { background: #fffcf5; }
.cell-no, .cell-user { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.cell-time { font-size: 0.78rem; color: var(--text-light); }
.cell-total { font-weight: 800; color: var(--accent); white-space: nowrap; }
.cell-addr { max-width: 220px; }
.cell-addr .cell-note {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px dashed #e5e7eb;
  color: #a16207;
  font-size: 0.8rem;
  white-space: normal;
  word-break: break-word;
}
.status-select {
  display: block;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.82rem;
}
.note-input {
  width: 130px;
  padding: 6px 9px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 0.82rem;
  outline: none;
}
.note-input:focus { border-color: var(--primary); }
.admin-loading, .admin-empty {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
}

@media (max-width: 900px) {
  .admin-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-count { margin-left: 0; width: 100%; }
}

/* ================================================ */
/* 产品卡片数量步进器                                */
/* ================================================ */
.card-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}
.edition-card.selected .card-qty { opacity: 1; }
.card-qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: #fff;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.card-qty-btn:hover:not(:disabled) { background: var(--primary); color: #fff; }
.card-qty-btn:disabled { border-color: #d1d5db; color: #cbd5e1; cursor: not-allowed; }
.card-qty-num {
  min-width: 26px;
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

/* ================================================ */
/* 个人中心：邮箱无密码登录 / 我的订单                */
/* ================================================ */
.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
  border-radius: 999px;
}
.account-tip {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.86rem;
  color: var(--text-light);
  line-height: 1.7;
  margin: 12px 0 16px;
}
.account-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-cream);
  border: 1px solid #f3e3c3;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 12px 0 8px;
}
.account-email {
  font-weight: 800;
  color: var(--accent);
  word-break: break-all;
}
.account-profile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  padding: 4px 2px 10px;
}
.account-profile > div {
  display: flex;
  gap: 10px;
  line-height: 1.5;
}
.account-profile span {
  flex: 0 0 56px;
  color: var(--text-light);
}
.account-orders-title {
  margin: 14px 0 10px;
  font-size: 1rem;
}
.account-count { color: var(--text-light); font-weight: 600; font-size: 0.88rem; }
.account-empty {
  text-align: center;
  color: var(--text-light);
  padding: 28px 0;
  font-size: 0.9rem;
}
.account-orders {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 46vh;
  overflow-y: auto;
  padding-right: 4px;
}
.ac-order {
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
}
.ac-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.ac-order-no {
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.3px;
}
.ac-order-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.88rem;
  color: var(--text);
  border-top: 1px dashed #eee;
  padding-top: 8px;
}
.ac-order-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.ac-order-item span:last-child { color: var(--text-light); font-weight: 600; }
.ac-order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  border-top: 1px dashed #eee;
  padding-top: 8px;
  font-size: 0.82rem;
  color: var(--text-light);
}
.ac-order-total { white-space: nowrap; }
.ac-order-total strong { color: var(--accent); font-size: 1rem; }
.ac-order-addr {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text);
  background: #f7f9fc;
  border-radius: 8px;
  padding: 6px 10px;
  word-break: break-word;
}
.ac-order-ops {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.ac-order-ops button {
  flex: 1;
  border: 1px solid var(--border, #e5e7eb);
  background: #fff;
  border-radius: 8px;
  padding: 7px 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.ac-order-ops .ac-btn-edit:hover { border-color: var(--primary); color: var(--primary); }
.ac-order-ops .ac-btn-del:hover { border-color: #e0433f; color: #e0433f; }
.ac-order-note {
  margin-top: 6px;
  font-size: 0.82rem;
  color: #a16207;
  background: #fffbeb;
  border-radius: 8px;
  padding: 6px 10px;
  word-break: break-word;
}

/* 订单表单地址三行（国家 / 州省 / 邮编）*/
.addr-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.addr-row .addr-field { display: flex; flex-direction: column; }
.addr-row .addr-field label { margin-top: 8px; }
.edit-order-no {
  text-align: center;
  font-weight: 700;
  color: var(--primary);
  background: #eef3fb;
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 4px;
  letter-spacing: 0.4px;
}
@media (max-width: 420px) {
  .addr-row { grid-template-columns: 1fr; gap: 0; }
}

/* ================================================ */
/* 多语言：语言切换器 / 导航右侧 / 字体栈               */
/* ================================================ */
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e5e0d4;
  font-size: 0.9rem;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 0.2s, transform 0.2s;
}
@media (max-width: 560px) {
  .nav-account { max-width: 140px; font-size: 0.82rem; min-height: 32px; }
}
.nav-account:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.lang-select {
  padding: 6px 8px;
  border: 1px solid #e5e0d4;
  border-radius: 999px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  max-width: 76px;
}
.lang-select:hover, .lang-select:focus { border-color: var(--accent); }

/* 泰 / 日 / 韩 字体栈（保证对应文字正常渲染） */
html[lang="ja"] body { font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "PingFang SC", sans-serif; }
html[lang="ko"] body { font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "PingFang SC", sans-serif; }
html[lang="th"] body { font-family: "Noto Sans Thai", "Leelawadee UI", "Tahoma", "PingFang SC", sans-serif; }

@media (max-width: 560px) {
  .nav-right { gap: 8px; }
  .nav-account { font-size: 0.8rem; }
  .nav-right .btn-nav { padding: 8px 12px; font-size: 0.82rem; }
}

/* ================================================ */
/* 支付页                                             */
/* ================================================ */
.pay-body { background: var(--bg-cream); min-height: 100vh; display: flex; flex-direction: column; }
.pay-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #f0eadb;
  position: sticky;
  top: 0;
  z-index: 50;
}
.pay-logo { font-size: 1.2rem; font-weight: 800; color: var(--text); text-decoration: none; white-space: nowrap; }
.pay-header-steps { flex: 1; color: var(--text-light); font-size: 0.88rem; text-align: center; }
.pay-header-steps strong { color: var(--accent); }
@media (max-width: 640px) {
  .pay-header { flex-wrap: wrap; gap: 10px; }
  .pay-header-steps { order: 3; flex-basis: 100%; text-align: left; }
}
.pay-main {
  flex: 1;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pay-card {
  background: #fff;
  border: 1px solid #f0eadb;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}
.pay-card h2 { font-size: 1.25rem; margin-bottom: 16px; }
.pay-order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pay-order-label { font-size: 0.8rem; color: var(--text-light); }
.pay-order-no { font-size: 1.15rem; font-weight: 800; letter-spacing: 0.5px; word-break: break-all; margin-top: 2px; }
.pay-items { display: flex; flex-direction: column; gap: 8px; border-top: 1px dashed #eee; padding: 12px 0; font-size: 0.92rem; }
.pay-item { display: flex; justify-content: space-between; gap: 12px; }
.pay-item span:last-child { font-weight: 700; }
.pay-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 2px solid var(--primary);
  padding-top: 14px;
  font-size: 0.92rem;
  color: var(--text-light);
}
.pay-total-row strong { font-size: 1.5rem; color: var(--accent); }
.pay-tabs { display: flex; gap: 10px; margin-bottom: 18px; }
.pay-tab {
  flex: 1;
  padding: 11px 0;
  border: 1px solid #e5e0d4;
  border-radius: 12px;
  background: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}
.pay-tab.active { border-color: var(--primary); background: var(--bg-soft); color: var(--accent); }
.pay-detail { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.pay-qr img { width: 180px; height: 180px; border-radius: 14px; border: 1px solid #eee; }
.pay-fields { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 12px; }
.pay-field { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.pay-field-label { font-size: 0.82rem; color: var(--text-light); flex: 0 0 100%; }
.pay-field-value { font-weight: 600; font-size: 0.92rem; word-break: break-all; }
.pay-address { font-family: "SF Mono", Consolas, monospace; font-size: 0.85rem; }
.pay-copy { padding: 5px 12px !important; font-size: 0.8rem !important; }
.pay-hint { width: 100%; font-size: 0.82rem; color: var(--text-light); line-height: 1.6; }
.pay-proof { margin-top: 18px; border-top: 1px dashed #eee; padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.pay-proof label { font-weight: 600; font-size: 0.9rem; }
.pay-note { font-size: 0.8rem; color: var(--text-light); line-height: 1.6; }
.pay-state { text-align: center; padding: 40px 24px; }
.pay-state-icon { font-size: 2.4rem; margin-bottom: 10px; }
.pay-state-ok { font-size: 2.8rem; }
.pay-state-meta { margin: 10px 0 0; font-size: 0.85rem; color: var(--text-light); }
.pay-poll-tip { font-size: 0.8rem; color: var(--text-light); margin-top: 14px; line-height: 1.7; }
.pay-spinner {
  width: 26px; height: 26px;
  border: 3px solid #f3e3c3;
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 18px auto 0;
  animation: paySpin 0.9s linear infinite;
}
@keyframes paySpin { to { transform: rotate(360deg); } }
.status-confirmed { background: #d1fae5; color: #047857; }

/* ================================================ */
/* 后台：批量删除 / 复选框 / 邮箱 / 操作列            */
/* ================================================ */
.btn-danger {
  background: #ef4444;
  color: #fff;
  border: 1px solid #ef4444;
}
.btn-danger:hover:not(:disabled) { background: #dc2626; border-color: #dc2626; }
.btn-danger:disabled { background: #fca5a5; border-color: #fca5a5; cursor: not-allowed; opacity: 0.7; }

.admin-batchbar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 10px 16px;
  margin: 14px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.batch-select-all { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; cursor: pointer; }
.batch-info { font-size: 0.9rem; color: var(--text-light); }
.batch-info strong { color: var(--accent); font-size: 1.02rem; }
.admin-batchbar .btn-danger { margin-left: auto; padding: 7px 16px; font-size: 0.85rem; }

.admin-table { min-width: 1280px; }
.col-check { width: 40px; text-align: center; }
.col-check input, .batch-select-all input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); }
.col-op { width: 80px; text-align: center; }

.cell-user .cell-email {
  display: block;
  font-size: 0.78rem;
  color: #2563eb;
  word-break: break-all;
  margin-top: 2px;
}
.row-del-btn {
  background: none;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.row-del-btn:hover { background: #fee2e2; }

/* ===== 后台左侧导航 + 多视图布局 ===== */
.admin-layout {
  width: min(1280px, 96%);
  margin: 12px auto 60px;
  display: flex;
  align-items: flex-start;
  gap: 22px;
}
.admin-sidebar {
  flex: 0 0 200px;
  position: sticky;
  top: 72px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 10px;
}
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav-item {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.admin-nav-item:hover { background: #f3f5fa; }
.admin-nav-item.active {
  background: var(--primary);
  color: #fff;
}
.admin-main { flex: 1; min-width: 0; margin: 0; }
.admin-view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.admin-view-head h2 { font-size: 1.2rem; margin: 0; }

/* 营销漏斗 */
.funnel-range { display: flex; gap: 8px; }
.funnel-range-btn {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.15s ease;
}
.funnel-range-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.funnel-container { background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 22px; margin-bottom: 20px; }
.funnel-stage { margin-bottom: 16px; }
.funnel-stage:last-child { margin-bottom: 0; }
.funnel-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.funnel-stage-nums { display: flex; align-items: baseline; gap: 10px; }
.funnel-stage-count { font-size: 1.1rem; color: var(--accent); font-weight: 800; }
.funnel-stage-conv { font-size: 0.8rem; color: var(--text-light); font-weight: 400; }
.funnel-bar {
  margin-top: 7px;
  height: 10px;
  border-radius: 8px;
  background: #eef0f4;
  overflow: hidden;
}
.funnel-bar-fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--primary), #38bdf8);
  transition: width 0.4s ease;
}
.dist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.dist-card { background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 18px; }
.dist-card h4 { margin: 0 0 12px; font-size: 0.95rem; }
.dist-item { display: flex; align-items: center; justify-content: space-between; font-size: 0.86rem; padding: 4px 0; }
.dist-item span:first-child { color: var(--text); }
.dist-item span:last-child { color: var(--text-light); font-weight: 600; }
.dist-track { height: 6px; border-radius: 6px; background: #eef0f4; margin-top: 2px; overflow: hidden; }
.dist-track-fill { height: 100%; border-radius: 6px; background: #38bdf8; }

/* 访问日志 */
.log-table { min-width: 1100px; }
.log-table th:nth-child(1) { width: 150px; white-space: nowrap; }
.log-table td { word-break: break-all; }
.log-ua { font-size: 0.72rem; color: var(--text-light); max-width: 320px; }
.log-chip {
  display: inline-block;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.log-chip-device { background: #eef3fb; color: var(--primary); }
.log-chip-os { background: #f3f4f6; color: #374151; }
.log-chip-browser { background: #ecfdf5; color: #059669; }
.log-source { font-size: 0.8rem; color: var(--text-light); }
.admin-pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; }
.admin-pager button {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: pointer;
}
.admin-pager button:disabled { opacity: 0.4; cursor: not-allowed; }
.admin-pager span { font-size: 0.88rem; color: var(--text-light); }

@media (max-width: 900px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { flex: 1 1 auto; width: 100%; position: static; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-nav-item { flex: 1 1 auto; text-align: center; }
}
