/* ==========================================================
   星星云 · IDC & 云电脑官网  — 全局样式（橘色 × 白色）
   ========================================================== */
:root {
  --primary: #ff7a1a;
  --primary-dark: #ea580c;
  --accent: #f59e0b;
  --ink: #1c1917;
  --ink-2: #44403c;
  --ink-3: #8a7f6f;
  --bg: #fff8f1;
  --card: #ffffff;
  --line: #ffe4cf;
  --radius: 16px;
  --grad: linear-gradient(135deg, #ff7a1a 0%, #ff9e3d 55%, #ffc265 130%);
  --grad-deep: linear-gradient(135deg, #c2410c, #9a3412);
  --tint: #fff3e6;
  --shadow: 0 10px 30px rgba(194, 65, 12, 0.10);
  --shadow-lg: 0 20px 50px rgba(194, 65, 12, 0.18);
  /* 覆盖 Layui 默认主题色为橘色 */
  --layui-color-primary: #ff7a1a;
  --layui-color-primary-darker: #ea580c;
  --layui-color-primary-lighter: #fff3e6;
  --layui-color-primary-rgb: 255, 122, 26;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* ===== 排印系统（大厂级） ===== */
:root {
  --font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  --font-display: "Outfit", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
html { font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums; /* 价格/统计数字等宽对齐 */
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* 内容不足一屏时，页脚也贴底 */
}
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--ink); font-weight: 800; line-height: 1.25; font-family: var(--font-display); }
h1 { font-size: 46px; letter-spacing: -0.02em; }
h2 { font-size: 30px; letter-spacing: -0.01em; }
h3 { font-size: 22px; }
h4 { font-size: 17px; }
/* 展示字体：品牌 / 数字 / 按钮 / 导航 / 标签 */
.brand b, .brand .tag, .kicker, .num, .s-num,
.hero-stats .num, .stat-mini .s-num, .section-head h2,
.d-price-line .now, .co-amount b, .co-pay, .d-buy-btn, .btn,
.adm-menu a, .adm-crumb, .adm-badge, .tag, .chip, .pill, .d-level,
.d-name, .co-name, .hero-badge, .steps-h small, .steps-v small,
.hero h1 .g, .stat-mini .s-lab, .page-hero .kicker { font-family: var(--font-display); }
b, strong { font-weight: 700; }
small { font-size: 0.86em; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.container { max-width: 1360px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; height: 68px; gap: 24px; }
.site-nav .nav-inner { max-width: none; padding: 0 28px; } /* 导航全宽靠左贴合 */
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad);
  display: grid; place-items: center; color: #fff; font-size: 18px;
  box-shadow: 0 4px 12px rgba(255, 122, 26, 0.4);
}
.brand b { letter-spacing: 0.5px; }
.brand .tag { font-size: 12px; font-weight: 600; color: var(--primary); margin-left: 2px; }
.brand .logo img, .auth-brand .logo img { width: 58%; height: 58%; object-fit: contain; }
.admin-subbar img { height: 16px; vertical-align: -3px; margin-right: 8px; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links a {
  padding: 8px 16px; border-radius: 9px; font-size: 15px; font-weight: 500;
  color: var(--ink-2); transition: all 0.18s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--tint); }
.nav-user { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 10px; padding: 10px 20px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: all 0.2s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(255, 122, 26, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(255, 122, 26, 0.45); }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { color: var(--primary); border-color: var(--primary); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.user-chip { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.user-ava {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 14px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 140, 40, 0.35), transparent 60%),
    radial-gradient(900px 500px at 10% 10%, rgba(255, 190, 110, 0.45), transparent 55%),
    linear-gradient(180deg, #fff3e2 0%, #ffffff 100%);
  color: var(--ink);
}
.hero .glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; pointer-events: none; }
.hero .g1 { width: 340px; height: 340px; background: #ff9e3d; top: -120px; right: 8%; }
.hero .g2 { width: 260px; height: 260px; background: #ffd9b0; bottom: -100px; left: 4%; }
.hero-inner { position: relative; padding: clamp(56px, 8vw, 92px) 0 clamp(56px, 7.5vw, 84px); text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255, 122, 26, 0.08); border: 1px solid rgba(255, 122, 26, 0.22);
  color: var(--primary);
}
.hero h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.2; margin: 22px 0 14px; font-weight: 800; color: #1c1917; }
.hero h1 .g { background: linear-gradient(90deg, #ff7a1a, #ffb347); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { color: var(--ink-3); font-size: 18px; margin: 0 auto 30px; max-width: 640px; line-height: 1.7; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-search {
  max-width: 640px; margin: 34px auto 0; display: flex; gap: 10px;
  background: #fff; border: 1px solid #ffd4a8;
  padding: 8px; border-radius: 14px;
  box-shadow: 0 12px 32px rgba(194, 65, 12, 0.12);
}
.hero-search input {
  flex: 1; background: transparent; border: none; outline: none; color: var(--ink);
  font-size: 15px; padding: 8px 12px;
}
.hero-search input::placeholder { color: #b8a897; }
.hero-stats { display: flex; justify-content: center; gap: 56px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats .num { font-size: 30px; font-weight: 800; color: var(--primary); }
.hero-stats .lab { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* ---------- 产品中心页 Hero ---------- */
.page-hero {
  background:
    radial-gradient(900px 420px at 85% -20%, rgba(255, 140, 40, 0.28), transparent 55%),
    linear-gradient(180deg, #fff3e2 0%, #ffffff 100%);
  padding: 54px 0 8px; text-align: center; border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(26px, 4.2vw, 34px); font-weight: 800; margin: 8px 0 8px; }
.page-hero p { color: var(--ink-3); font-size: 15px; margin: 0; }
.page-search {
  max-width: 560px; margin: 24px auto 0; display: flex; gap: 10px;
  background: #fff; border: 1px solid #ffd4a8; padding: 8px; border-radius: 14px;
  box-shadow: var(--shadow);
}
.page-search input {
  flex: 1; border: none; outline: none; padding: 8px 12px; font-size: 15px; color: var(--ink);
  background: transparent;
}
.page-search input::placeholder { color: #b8a897; }

/* ---------- 区块通用 ---------- */
.section { padding: clamp(48px, 6.4vw, 80px) 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(25px, 3.2vw, 32px); font-weight: 800; margin: 0 0 10px; }
.section-head p { color: var(--ink-3); margin: 0; font-size: 15px; }
.sec-clear { color: var(--primary); font-weight: 600; margin-left: 6px; text-decoration: none; border-bottom: 1px dashed currentColor; }
.sec-clear:hover { color: var(--primary-dark); }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: var(--primary); margin-bottom: 10px; text-transform: uppercase;
}

/* ---------- 分类胶囊 ---------- */
.cat-chips { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.chip {
  padding: 10px 22px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2); transition: all 0.2s;
}
.chip:hover { color: var(--primary); border-color: var(--primary); }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(255, 122, 26, 0.4); }
.chip .cnt { font-size: 12px; opacity: 0.75; margin-left: 4px; }

/* ---------- 产品卡片 ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: clamp(18px, 2.4vw, 26px); grid-auto-rows: 1fr; }
.prod-card {
  background: var(--card); border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform 0.28s, box-shadow 0.28s, border-color 0.28s;
  display: flex; flex-direction: column; height: 100%; min-width: 0;
  animation: cardRise 0.55s ease both;
}
@keyframes cardRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.prod-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(255, 122, 26, 0.45); }

.prod-media { position: relative; height: 190px; display: grid; place-items: center; color: #fff; overflow: hidden; }
.prod-media .pic { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.prod-card:hover .prod-media .pic { transform: scale(1.07); }
.prod-media .no-pic { width: 100%; height: 100%; display: grid; place-items: center; font-size: 60px; transition: transform 0.5s ease; }
.prod-card:hover .prod-media .no-pic { transform: scale(1.1); }
.prod-media .media-veil {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(64, 26, 4, 0.5));
}
.prod-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 13px; border-radius: 999px;
  background: linear-gradient(135deg, #ff9e3d, #f5505b);
  box-shadow: 0 6px 16px rgba(245, 80, 91, 0.35);
  font-size: 12px; font-weight: 700; color: #fff;
}
.cat-chip {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25); color: #fff;
}
.cat-chip .layui-icon { font-size: 12px; }

.prod-body { padding: 15px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.prod-name { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; min-height: 26px; }
.prod-name > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-display); letter-spacing: 0.2px; }
.prod-name .level {
  margin-left: auto; flex: none; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: linear-gradient(135deg, #fff3e6, #ffe9cc); color: var(--primary); border: 1px solid #ffd4a8;
}
.prod-sub {
  color: var(--ink-3); font-size: 13px; margin: 6px 0 14px; line-height: 1.55;
  min-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.prod-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); margin-bottom: 7px; }
.prod-meta .stars { color: #f59e0b; letter-spacing: 1px; }
.prod-meta .rate-num { font-weight: 700; color: #d97706; }
.prod-meta .m-sep { color: #e3cdb5; }
.prod-meta .level {
  margin-left: auto; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 5px;
  background: linear-gradient(135deg, #fff3e6, #ffe9cc); color: var(--primary);
}

.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 4px; }
.spec {
  background: #fff7f0; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
  display: flex; flex-direction: column; gap: 2px; transition: all 0.2s;
}
.prod-card:hover .spec { border-color: #ffd2a1; background: #fff6ea; }
.spec .s-k { font-size: 11px; color: var(--ink-3); }
.spec .s-v { font-size: 13px; color: var(--ink); font-weight: 600; }
.spec.spec-empty { visibility: hidden; }

.prod-feats { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.prod-feats li { font-size: 12.5px; color: var(--ink-2); display: flex; gap: 7px; align-items: center; }
.prod-feats li .layui-icon { font-size: 13px; color: var(--primary); }
.prod-feats li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tag-row { display: flex; gap: 6px; flex-wrap: nowrap; overflow: hidden; margin: 8px 0 0; min-height: 24px; }
.tag {
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; flex: none;
  background: var(--tint); color: var(--primary); border: 1px solid #ffdcb8;
}

.prod-foot {
  margin-top: auto; border-top: 1px dashed var(--line); padding-top: 14px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
}
.price { line-height: 1; }
.price .now { font-size: 27px; font-weight: 800; color: var(--primary); }
.price .now small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.price .old { font-size: 12.5px; color: var(--ink-3); text-decoration: line-through; margin-left: 6px; font-weight: 500; }
.btn-detail {
  padding: 10px 18px; border-radius: 10px; font-size: 13px; font-weight: 700;
  color: var(--primary); background: var(--tint);
  transition: all 0.22s; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.btn-detail:hover { background: var(--grad); color: #fff; box-shadow: 0 8px 18px rgba(255, 122, 26, 0.4); }

.stock-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.stock-tag.ok { color: #16a34a; background: #e8f7ee; }
.stock-tag.warn { color: #d97706; background: #fdf1e2; }

/* ---------- 优势特性 ---------- */
.features { background: #fff; border-top: 1px solid var(--line); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 22px; }
.feat {
  padding: 26px; border-radius: var(--radius); border: 1px solid var(--line);
  background: #fffbf6; transition: all 0.2s;
}
.feat:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.feat .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, #fff3e6, #ffe9cc); color: var(--primary); font-size: 24px; margin-bottom: 16px;
}
.feat h3 { margin: 0 0 8px; font-size: 17px; }
.feat p { margin: 0; color: var(--ink-3); font-size: 13.5px; line-height: 1.7; }

/* ---------- CTA ---------- */
.cta {
  background: var(--grad); border-radius: 24px; color: #fff; text-align: center;
  padding: 56px 30px; position: relative; overflow: hidden;
}
.cta h2 { margin: 0 0 12px; font-size: 30px; }
.cta p { margin: 0 auto 26px; opacity: 0.95; max-width: 460px; line-height: 1.7; }
.cta .btn-white { background: #fff; color: var(--primary); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #fff1dd; border-top: 1px solid var(--line);
  color: var(--ink-2); padding: 54px 0 30px; margin-top: auto; /* 页脚始终贴底 */
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: var(--ink); font-size: 15px; margin: 0 0 16px; }
.footer-grid a, .footer-grid li { display: block; color: var(--ink-2); font-size: 13.5px; margin-bottom: 10px; list-style: none; }
.footer-grid a:hover { color: var(--primary); }
.footer-grid .about { color: var(--ink-3); font-size: 13.5px; line-height: 1.8; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; text-align: center; font-size: 12.5px; color: var(--ink-3); }

/* ---------- 登录 / 注册 ---------- */
.auth-body { min-height: 100vh; display: flex; flex-direction: column; }
.auth-body .site-nav { flex: 0 0 auto; }
.auth-wrap {
  flex: 1; display: grid; place-items: center; padding: 30px 16px;
  background:
    radial-gradient(800px 500px at 20% -10%, rgba(255, 140, 40, 0.3), transparent 55%),
    radial-gradient(700px 420px at 90% 110%, rgba(255, 190, 110, 0.35), transparent 55%),
    linear-gradient(180deg, #fff3e2 0%, #ffffff 100%);
}
.auth-card {
  width: 100%; max-width: 420px; background: #fff; border-radius: 20px; padding: 38px 36px 30px;
  box-shadow: var(--shadow-lg);
}
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.auth-brand .logo { width: 36px; height: 36px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; }
.auth-title { font-size: 24px; font-weight: 800; margin: 18px 0 4px; text-align: center; }
.auth-sub { color: var(--ink-3); font-size: 13.5px; margin-bottom: 24px; text-align: center; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }
.auth-foot a { color: var(--primary); font-weight: 600; }
.auth-tip { background: #fff3e6; border: 1px solid #ffd9ad; color: #c05621; font-size: 12.5px; padding: 8px 12px; border-radius: 8px; margin-bottom: 18px; }

/* ---------- 管理后台 ---------- */
.admin-body { background: var(--bg); }
.admin-subbar {
  background: #fff1dd; border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 10px 24px;
}
.admin-subbar .layui-icon { color: var(--primary); margin-right: 8px; }
.admin-top {
  background: #fff; border-bottom: 1px solid var(--line); color: var(--ink);
  padding: 0 24px; height: 60px;
  display: flex; align-items: center; gap: 18px;
}
.admin-top .title { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.admin-top .title .logo { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; }
.admin-top .spacer { flex: 1; }
.admin-main { max-width: 1200px; margin: 26px auto; padding: 0 20px 60px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.stat {
  background: #fff; border-radius: 14px; padding: 20px 22px; border: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px;
}
.stat .s-ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 20px; color: var(--primary); background: var(--tint);
}
.stat .s-num { font-size: 24px; font-weight: 800; }
.stat .s-lab { font-size: 12.5px; color: var(--ink-3); }
.panel { background: #fff; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.panel .panel-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; font-weight: 700; }
.panel .panel-body { padding: 20px; }
.layui-table-view { border-radius: 0; }
.filter-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar .layui-input { width: 220px; }
.filter-bar .layui-form-select { width: 200px; }

/* ===== 管理后台 · 控制台风格 ===== */
.adm-shell { display: flex; align-items: stretch; min-height: calc(100vh - 68px - 1px); }
.adm-side {
  width: 224px; flex: none; color: #e9d9c8;
  background: linear-gradient(180deg, #2b1809, #1a1108);
  display: flex; flex-direction: column;
  position: sticky; top: 68px; height: calc(100vh - 68px);
}
.adm-side-brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; font-weight: 800; color: #fff; font-size: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.adm-side-brand .logo { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; }
.adm-side-brand img { width: 18px; height: 18px; }
.adm-menu { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.adm-menu a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px; color: #cdbeab; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.18s; }
.adm-menu a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.adm-menu a.active { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(255, 122, 26, 0.35); }
.adm-menu a .layui-icon { font-size: 16px; }
.adm-badge { margin-left: auto; background: #f5505b; color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 8px; }
.adm-side-foot { padding: 14px 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.adm-side-foot a { color: #cdbeab; font-size: 13px; font-weight: 600; }
.adm-side-foot a:hover { color: #fff; }

.adm-main-area { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-topbar { height: 60px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 24px; position: sticky; top: 68px; z-index: 20; }
.adm-crumb { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.adm-crumb .layui-icon { color: var(--primary); }
.adm-top-actions { margin-left: auto; display: flex; gap: 10px; }
.adm-content { flex: 1; padding: 22px 24px 46px; }
.adm-page { animation: paneIn 0.25s ease; }

.adm-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; box-shadow: var(--shadow); }
.adm-card + .adm-card { margin-top: 18px; }
.adm-card-h { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.adm-card-h .adm-sub { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.adm-card-h .layui-icon { color: var(--primary); font-size: 17px; }

.adm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.adm-grid .adm-card { margin: 0; }
.stat-mini { display: flex; align-items: center; gap: 14px; }
.stat-mini .s-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; color: var(--primary); background: var(--tint); }
.stat-mini .s-num { font-size: 22px; font-weight: 800; }
.stat-mini .s-lab { font-size: 12.5px; color: var(--ink-3); }
.adm-cols2 { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; margin-top: 18px; }
.adm-cols2 .adm-card { margin: 0; }

.donut-wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.donut { width: 152px; height: 152px; border-radius: 50%; flex: none; position: relative; animation: donutIn 0.5s ease; }
@keyframes donutIn { from { transform: scale(0.85); opacity: 0; } to { transform: none; opacity: 1; } }
.donut-hole {
  position: absolute; inset: 28px; background: #fff; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  box-shadow: 0 0 0 1px var(--line), inset 0 2px 8px rgba(194, 65, 12, 0.05);
}
.donut-hole b { font-size: 22px; font-weight: 800; }
.donut-hole span { font-size: 11.5px; color: var(--ink-3); }
.donut-legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 210px; display: grid; gap: 4px; }
.donut-legend li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); padding: 6px 8px; border-radius: 8px; transition: background 0.15s; }
.donut-legend li:hover { background: var(--tint); }
.donut-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.donut-legend .pct { color: var(--ink-3); font-size: 12px; }
.donut-legend em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--ink); min-width: 28px; text-align: right; }

.adm-table {
  width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff;
}
.adm-table thead th {
  text-align: left; padding: 13px 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.4px; white-space: nowrap;
  color: #9a6b3f; background: linear-gradient(180deg, #fffcf6, #fcf1e2); border-bottom: 2px solid #f4dfc3;
}
.adm-table tbody td { padding: 14px 16px; font-size: 13.5px; color: var(--ink-2); border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
.adm-table tbody tr { transition: background 0.15s; }
.adm-table tbody tr:hover { background: #fff6ea; }
.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table tbody tr td:first-child { color: var(--ink); }
.adm-badge-st { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.adm-badge-st.st-pending { background: #fff3e6; color: #c05621; }
.adm-badge-st.st-proc    { background: #e8f1fb; color: #1d6fb8; }
.adm-badge-st.st-done    { background: #e8f7ee; color: #16a34a; }
.adm-badge-st.st-cancel  { background: #f1f2f4; color: #8a8f98; }
.btn-mini { padding: 5px 12px; font-size: 12.5px; border-radius: 8px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.btn-mini.primary { background: var(--grad); color: #fff; border: none; }
.btn-mini.ghost { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.btn-mini.ghost:hover { color: var(--primary); border-color: var(--primary); }
.btn-mini.danger { color: #e5484d; border: 1px solid #ffd2d3; background: #fff5f5; }

/* ---------- 产品编辑弹窗 ---------- */
.layui-layer-page { max-width: 96vw; }
.pef { padding: 22px 26px 6px; }
.pef-sec { margin-bottom: 18px; }
.pef-sec-head { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.pef-sec-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.pef-dot { width: 8px; height: 8px; flex: none; border-radius: 3px; background: var(--grad); }
.pef-grid { display: grid; gap: 14px 16px; }
.pef-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.pef-grid.c4 { grid-template-columns: repeat(4, 1fr); }
.pef-grid > .span2 { grid-column: span 2; }
.pef-field label { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.pef-field label i { font-style: normal; color: #f5505b; }
.pef-inp, .pef-txt, .pef-field select {
  width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font-size: 13.5px; font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pef-inp { height: 40px; padding: 0 12px; }
.pef-txt { padding: 10px 12px; line-height: 1.75; resize: vertical; min-height: 72px; }
.pef-field select {
  height: 40px; padding: 0 34px 0 12px; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%23907868' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.pef-inp:focus, .pef-txt:focus, .pef-field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.12); }
.pef-inp::placeholder { color: #b6a99c; }
.pef-hint { margin-top: 6px; font-size: 11.5px; line-height: 1.6; color: var(--ink-3); }
.pef-img-row { display: flex; gap: 10px; align-items: center; }
.pef-img-row .pef-inp { flex: 1; }
.pef-btn {
  flex: none; height: 40px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line); background: linear-gradient(180deg, #fff, #faf3ec);
  color: var(--ink-2); font-size: 13px; cursor: pointer; white-space: nowrap; transition: all 0.15s;
}
.pef-btn:hover { color: var(--primary); border-color: var(--primary); }
.pef-img-prev { flex: none; display: none; width: 100px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.pef-status-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 13px 16px;
  border: 1px dashed var(--line); border-radius: 12px; background: #fffcf7;
}
.pef-status-row .lab { font-size: 13px; font-weight: 700; color: var(--ink); }
.pef-status-row .desc { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.pef .layui-form-switch { border-radius: 20px; }
.pef .layui-form-switch.layui-form-onswitch { background: var(--grad); border-color: transparent; }
.pef-foot { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.pef-btn-cancel, .pef-btn-save { height: 40px; padding: 0 28px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; }
.pef-btn-cancel { background: #f2f4f6; border: 1px solid #e6e9ec; color: #55606b; }
.pef-btn-cancel:hover { background: #e9edf0; }
.pef-btn-save { border: none; background: linear-gradient(135deg, #ff7a1a, #ff9e3d); color: #fff; box-shadow: 0 6px 16px rgba(255, 122, 26, 0.28); }
.pef-btn-save:hover { filter: brightness(1.05); }
@media (max-width: 720px) {
  .pef-grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .pef-grid.c2 { grid-template-columns: 1fr; }
  .pef-grid > .span2 { grid-column: auto; }
}

@media (max-width: 992px) {
  .adm-shell { flex-direction: column; min-height: 0; }
  .adm-side { width: 100%; position: static; height: auto; flex-direction: row; align-items: center; }
  .adm-side-brand, .adm-side-foot { display: none; }
  .adm-menu { flex-direction: row; padding: 8px; overflow-x: auto; }
  .adm-menu a { white-space: nowrap; }
  .adm-topbar { position: static; }
  .adm-grid { grid-template-columns: repeat(2, 1fr); }
  .adm-cols2 { grid-template-columns: 1fr; }
}

/* ---------- 详情页 ---------- */
.detail-top {
  background:
    radial-gradient(1000px 480px at 85% -20%, rgba(255, 140, 40, 0.3), transparent 55%),
    linear-gradient(180deg, #fff3e2 0%, #fffaf3 100%);
  padding: 28px 0 54px;
  border-bottom: 1px solid var(--line);
}
.breadcrumb { font-size: 13px; color: var(--ink-3); margin-bottom: 22px; }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { color: var(--primary-dark); }

.detail-layout { max-width: none; margin: 0; } /* 与下方内容同宽（1200 容器）对齐 */
.d-badge-in {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #ff9e3d, #f5505b);
}

.d-gallery { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #fff7f0; display: flex; }
.d-media { flex: 1; min-height: 420px; display: grid; place-items: center; }
.d-media .pic, .d-media .no-pic { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.d-badge-lg {
  position: absolute; top: 18px; left: 18px; z-index: 2; display: inline-flex;
  padding: 7px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #ff9e3d, #f5505b); box-shadow: 0 8px 20px rgba(245, 80, 91, 0.35);
}
.d-level-chip {
  position: absolute; bottom: 18px; left: 18px; z-index: 2; display: inline-flex;
  padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: rgba(255, 255, 255, 0.88); color: var(--primary); border: 1px solid #ffd4a8; backdrop-filter: blur(6px);
}

/* ===== 产品详情 · 顶部主卡（完整设计） ===== */
.d-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 32px 24px; box-shadow: 0 14px 34px rgba(194, 65, 12, 0.10); overflow: hidden; }
.d-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
.d-cat { font-size: 12px; font-weight: 700; color: var(--primary); letter-spacing: 1px; }
.d-name {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; width: 100%;
  font-size: 28px; font-weight: 900; letter-spacing: -0.01em; line-height: 1.2;
  margin: 12px 0 8px; padding: 16px 24px; border-radius: 14px;
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 24px rgba(255, 122, 26, 0.24);
}
.d-name .d-badge-in { background: rgba(255, 255, 255, 0.24); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; box-shadow: none; }
.d-name .d-level { margin-left: auto; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.5); color: #fff; background: rgba(255, 255, 255, 0.18); }
.d-sub { color: var(--ink-3); font-size: 14.5px; }
.d-meta { margin: 12px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.d-meta .stars { color: #f59e0b; letter-spacing: 1px; }
.d-meta .rate { color: #d97706; font-weight: 700; }
.d-meta .sep { opacity: 0.55; }

.d-block-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 22px 0 12px; }
.d-block-title .layui-icon { color: var(--primary); font-size: 14px; }
.d-block-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); margin-left: 12px; }
.d-spec-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.d-spec-tile { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: linear-gradient(135deg, #fffcf6, #fff6ea); transition: all 0.15s; }
.d-spec-tile:hover { border-color: #ffd2a1; transform: translateY(-1px); }
.d-spec-tile span { display: block; font-size: 11px; color: var(--ink-3); font-weight: 600; }
.d-spec-tile b { display: block; margin-top: 2px; font-size: 14px; font-family: var(--font-display); font-weight: 800; color: var(--ink); }
.d-intro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 10px; margin-top: 18px; }
.d-intro-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: linear-gradient(135deg, #fffcf6, #fff6ea); }
.d-intro-item span { display: block; font-size: 11px; color: var(--ink-3); font-weight: 600; }
.d-intro-item b { display: block; margin-top: 2px; font-size: 13.5px; font-family: var(--font-display); font-weight: 800; color: var(--ink); overflow-wrap: anywhere; word-break: break-word; }

.d-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.d-tags .tag { font-size: 12px; padding: 4px 11px; }

.d-dur { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.d-dur-lab { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); flex: none; }
.d-dur-lab .layui-icon { color: var(--primary); }
.d-dur .cfg-durs { display: flex; gap: 8px; flex-wrap: wrap; }

.d-price-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 22px; padding: 18px 22px; border: 1px solid #ffdbb5; border-radius: 14px; background: linear-gradient(135deg, #fff8f0, #fff2e2); }
.d-price-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.d-price-line .now { font-size: 36px; font-weight: 800; color: var(--primary); line-height: 1; }
.d-price-line .unit { color: var(--ink-3); font-size: 15px; font-weight: 600; }
.d-price-line .old { color: var(--ink-3); text-decoration: line-through; font-size: 15px; }
.d-price-line .disc { font-size: 12px; font-weight: 800; color: #fff; padding: 4px 9px; border-radius: 8px; background: linear-gradient(135deg, #f5505b, #ff9e3d); }
.d-price-line .d-save { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.d-cta { display: flex; align-items: center; gap: 12px; }
.d-buy-btn {
  flex: 1; padding: 12px 20px; border-radius: 10px; font-size: 15px; font-weight: 700; white-space: nowrap;
  color: #fff; background: var(--grad); border: none; cursor: pointer; font-family: inherit;
  box-shadow: 0 6px 16px rgba(255, 122, 26, 0.25); transition: all 0.2s;
}
.d-buy-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255, 122, 26, 0.36); }
.d-consult { white-space: nowrap; }

.d-ensure-strip { display: flex; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px dashed #ffd2a1; }
.d-ensure-strip span { display: flex; align-items: center; gap: 7px; padding: 0 20px; border-right: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.d-ensure-strip span:first-child { padding-left: 0; }
.d-ensure-strip span:last-child { border-right: none; }
.d-ensure-strip .layui-icon { color: var(--primary); font-size: 13px; }

/* 购买配置面板 */
.d-config { margin: 14px 0 4px; padding: 12px 14px; background: var(--tint); border: 1px solid #ffdbb5; border-radius: 14px; }
.cfg-t { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--ink-2); margin-bottom: 10px; }
.cfg-t .layui-icon { color: var(--primary); font-size: 15px; }
.cfg-row { display: flex; gap: 10px; margin: 7px 0; align-items: center; }
.cfg-lab { flex: none; width: 62px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.cfg-durs { display: flex; gap: 6px; flex-wrap: wrap; }
.cfg-dur { padding: 6px 12px; border-radius: 9px; background: #fff; border: 1.5px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all 0.15s; }
.cfg-dur i { font-style: normal; color: var(--primary); font-size: 11px; margin-left: 4px; }
.cfg-dur.active { border-color: var(--primary); color: var(--primary); background: #fff6ea; box-shadow: 0 4px 12px rgba(255, 122, 26, 0.15); }
.cfg-pkgs { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.cfg-field-opts { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.cfg-fields { display: grid; gap: 12px 22px; }
.d-card .d-config .cfg-fields { grid-template-columns: 1fr 1fr; }   /* 卡片内两列并排，避免卡片过高 */
.cfg-fields .cfg-row { margin: 0; }
.co .d-config .cfg-fields { grid-template-columns: 1fr; }           /* 弹窗内单列 */
@media (max-width: 700px) {
  .d-card .d-config .cfg-fields { grid-template-columns: 1fr !important; }
}
.cfg-picker {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; cursor: pointer; font-family: inherit;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: 13px; color: var(--ink);
  transition: all 0.15s; max-width: 100%;
}
.cfg-picker:hover, .cfg-picker:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,122,26,.12); }
.cfg-lab { display: flex; align-items: center; gap: 6px; flex: none; width: 88px; white-space: nowrap; overflow: hidden; }
.cfg-lab-ico { display: flex; align-items: center; flex: none; }
.cfg-lab-ico svg { display: block; }
.cfg-dur .cfg-opt-ico { display: inline-flex; align-items: center; vertical-align: -2px; }
.cfg-opt-ico svg { display: block; width: 13px; height: 13px; }
.cfg-picker .cfg-pick-ico { display: flex; align-items: center; flex: none; }
.cfg-picker .cfg-pick-ico svg { display: block; }
.cfg-picker .cfg-pick-val { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfg-picker i { font-style: normal; font-weight: 700; color: var(--primary); font-size: 12px; }
.cfg-picker .layui-icon { color: var(--ink-3); font-size: 11px; }
.cfg-pick-list { list-style: none; margin: 0; padding: 8px; max-height: 320px; overflow-y: auto; }
.cfg-pick-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-radius: 8px; cursor: pointer; font-size: 13.5px; color: var(--ink);
  transition: all 0.12s;
}
.cfg-pick-list li:hover { background: var(--tint); }
.cfg-pick-list li i { font-style: normal; font-weight: 700; color: var(--primary); font-size: 12px; }
.cfg-pick-list li b { color: var(--primary); }
.cfg-pick-list li.on { background: linear-gradient(135deg, #ff7a1a, #ff9e3d); color: #fff; }
.cfg-pick-list li.on i { color: #fff; }
.cfg-pick-list li.on b { color: #fff; }
.cfg-pick-groups { padding: 6px 4px; max-height: 420px; overflow-y: auto; }
.cpg { margin-bottom: 14px; }
.cpg:last-child { margin-bottom: 4px; }
.cpg-name { font-size: 12px; font-weight: 800; color: var(--ink-3); display: flex; align-items: center; gap: 6px; margin: 0 2px 8px; }
.cpg-name svg { flex: none; display: block; }
.cpg-name i { font-style: normal; background: var(--tint); color: var(--primary); border-radius: 999px; padding: 0 7px; font-size: 11px; }
.cpg-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.cpg-item {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  font-size: 12.5px; color: var(--ink-2); transition: all 0.12s; min-width: 0;
}
.cpg-item:hover { border-color: var(--primary); }
.cpg-item.on { background: linear-gradient(135deg, #ff7a1a, #ff9e3d); border-color: transparent; color: #fff; }
.cpg-item.on b { color: #fff; }
.cpg-item b { color: var(--primary); flex: none; margin-left: auto; }
.cpg-item svg { flex: none; display: block; }
.cpg-item em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfg-pick-list li svg { flex: none; }
.cfg-pick-list li em { font-style: normal; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfg-pick-list li b { flex: none; }
.cfg-addons { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; flex: 1; min-width: 0; }
.cfg-addon input { display: none; } /* 隐藏原生 checkbox，只用自绘勾选框 */
.cfg-addon { display: flex; align-items: center; gap: 7px; padding: 7px 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 12.5px; color: var(--ink-2); transition: all 0.15s; }
.cfg-addon:hover { border-color: #ffd2a1; }
.cfg-addon .ca-box { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #d8cfc2; display: flex; align-items: center; justify-content: center; color: transparent; font-size: 11px; flex: none; transition: all 0.15s; }
.cfg-addon .ca-box .layui-icon { line-height: 1; font-size: 12px; }
.cfg-addon.checked .ca-box { background: var(--grad); border-color: transparent; color: #fff; }
.cfg-addon .ca-n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfg-addon .ca-p { font-family: var(--font-display); font-weight: 800; color: var(--primary); font-size: 12.5px; }
.cfg-addon .ca-p i { font-style: normal; color: var(--ink-3); font-weight: 500; font-size: 11px; }
.cfg-total { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #ffd2a1; font-size: 13px; color: var(--ink-3); }
.cfg-total b { font-size: 22px; color: var(--primary); font-family: var(--font-display); }
.cfg-total small { color: var(--ink-3); }
.d-infos li .layui-icon { color: var(--primary); font-size: 14px; }

/* 详情页主体：标签页文档 + 服务保障 + 订购流程（扁平风格） */
.d-details { padding: 34px 0 80px; }
.d-main-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.d-aside .serv-band { display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 16px 20px; }
.d-aside .serv-band .sv { border-right: none; width: auto; justify-content: flex-start; padding: 10px 0; }

.sec-title { display: flex; align-items: center; gap: 14px; margin: 8px 0 22px; }
.sec-title h2 { font-size: 22px; font-weight: 800; margin: 0; }
.sec-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 下划线标签页 */
.d-tabs { display: flex; flex-wrap: wrap; gap: 28px; row-gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 24px; }
.d-tabs a {
  padding: 12px 2px; font-size: 15px; font-weight: 600; color: var(--ink-3); cursor: pointer;
  white-space: nowrap; position: relative; transition: color 0.2s;
}
.d-tabs a:hover { color: var(--primary); }
.d-tabs a.active { color: var(--primary); }
.d-tabs a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  border-radius: 3px; background: var(--grad);
}

.d-tab-pane { display: none; }
.d-tab-pane.active { display: block; animation: paneIn 0.28s ease; }
@keyframes paneIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 产品介绍 */
.d-intro { font-size: 15.5px; line-height: 1.95; color: var(--ink-2); margin: 0; overflow-wrap: anywhere; word-break: break-word; }

/* 产品特性：扁平行 */
.d-feat-rows { list-style: none; margin: 0; padding: 0; }
.d-feat-rows li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 4px; border-bottom: 1px dashed var(--line); font-size: 15px; color: var(--ink-2); }
.d-feat-rows li > span:last-child { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.d-feat-rows li:last-child { border-bottom: none; }
.d-feat-rows .fi {
  width: 26px; height: 26px; flex: none; margin-top: 2px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint); color: var(--primary); font-size: 13px;
}

/* 详细规格：干净表格 */
.d-spec-table { width: 100%; border-collapse: collapse; }
.d-spec-table th, .d-spec-table td { text-align: left; padding: 13px 16px; font-size: 14px; word-break: break-word; overflow-wrap: anywhere; }
.d-spec-table th { color: var(--ink-3); font-weight: 600; border-bottom: 2px solid var(--line); }
.d-spec-table td { color: var(--ink); border-bottom: 1px solid var(--line); }
.d-spec-table tbody tr:nth-child(even) { background: #fffbf6; }
.d-spec-table tbody tr:hover { background: var(--tint); }

/* 服务保障：统一浅色条带，左右均匀对称分布 */
.serv-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 36px; padding: 20px 30px; background: linear-gradient(135deg, #fff8f0, #fff3e6);
  border: 1px solid var(--line); border-radius: 16px;
}
.serv-band .sv { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.serv-band .sv i { color: var(--primary); font-size: 19px; }

/* 订购流程：横向步骤条 */
.steps-h { list-style: none; margin: 4px 0 0; padding: 4px 0 0; display: flex; position: relative; }
.steps-h::before {
  content: ""; position: absolute; top: 23px; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent)); opacity: 0.28; border-radius: 2px;
}
.steps-h .st { position: relative; text-align: center; flex: 1; }
.steps-h .st b {
  position: relative; z-index: 1; width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 17px; font-weight: 800;
  background: var(--grad); box-shadow: 0 6px 14px rgba(255, 122, 26, 0.3);
}
.steps-h .st small { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.steps-h .st span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* 订购流程：独立整行面板 */
.d-order {
  margin-top: 24px; padding: 26px 30px 28px;
  background: linear-gradient(135deg, #fffcf6, #fff6ea);
  border: 1px solid var(--line); border-radius: 16px;
}
.d-order .steps-h { max-width: 820px; margin: 8px auto 0; }

/* 同类推荐 */
.related { padding: 20px 0 80px; }

/* ---------- 骨架 / 空状态 ---------- */
.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, #f7ede2 25%, #fff7f0 37%, #f7ede2 63%); background-size: 400% 100%; animation: sk 1.3s infinite; height: 320px; }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.empty { text-align: center; padding: 60px 0; color: var(--ink-3); }
.empty .layui-icon { font-size: 56px; color: #e7d5c0; }
.empty p { margin: 10px 0 0; font-size: 14px; }

/* ===== 原生控件兜底美化（防止默认外观太丑） ===== */
select, input, textarea {
  font-family: inherit; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; font-size: 14px; color: var(--ink); background: #fff;
  outline: none; transition: border-color 0.18s, box-shadow 0.18s;
}
select:focus, input:focus, textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.14);
}
select { cursor: pointer; }
textarea { resize: vertical; line-height: 1.7; }
button, a { -webkit-tap-highlight-color: transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #e5d3bf; border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #d4b99c; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ===== Layui 控件统一主题（登录输入框/下拉/弹窗/表格） ===== */
.layui-input, .layui-textarea { border-color: var(--line); }
.layui-input:focus, .layui-textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.14) !important;
}
.layui-form-select .layui-input { border-color: var(--line); }
.layui-table-view { border-color: var(--line); border-radius: 12px; overflow: hidden; }
.layui-table-header, .layui-table-body, .layui-table-tool, .layui-table-total { border-color: var(--line); }
.layui-table thead tr { background: linear-gradient(180deg, #fffcf6, #fcf1e2); }
.layui-table thead th { color: #9a6b3f; font-weight: 700; font-size: 12.5px; border-color: #f4dfc3; }
.layui-table td, .layui-table th { border-color: var(--line); padding: 12px 14px; }
.layui-table tbody tr { transition: background 0.15s; }
.layui-table tbody tr:hover, .layui-table tbody tr.layui-table-hover { background: #fff6ea !important; }
.layui-table-checkbox, .layui-form-checkbox[lay-skin="primary"] i { border-color: var(--line); }
.layui-form-checkbox[lay-skin="primary"]:hover i { border-color: var(--primary); }
.layui-form-checkbox[lay-skin="primary"]:checked i { background-color: var(--primary); border-color: var(--primary); }
.layui-laypage a, .layui-laypage span { border-color: var(--line); color: var(--ink-2); border-radius: 6px; min-width: 32px; height: 32px; line-height: 32px; }
.layui-laypage a:hover { color: var(--primary); border-color: var(--primary); }
.layui-laypage .layui-laypage-curr .layui-laypage-em { background-color: var(--primary); border-radius: 6px; }
.layui-laypage .layui-laypage-skip, .layui-laypage .layui-laypage-limits { font-size: 12.5px; color: var(--ink-3); }
.layui-laypage input { border-color: var(--line); border-radius: 6px; width: 42px; height: 30px; }
.layui-layer { border-radius: 16px; overflow: hidden; border: none; box-shadow: 0 24px 64px rgba(31, 18, 8, 0.22); }
.layui-layer-title { height: 54px; line-height: 54px; padding: 0 20px; font-size: 16px; font-weight: 700; background: var(--grad); color: #fff; border-bottom: none; }
.layui-layer-btn a.layui-layer-btn0 { border-color: var(--primary); background-color: var(--primary); }
.layui-layer-setwin { top: 12px; right: 14px; }
.layui-layer-setwin .layui-layer-close1 { width: 28px; height: 28px; line-height: 26px; text-align: center; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.25); color: #fff; }
.layui-layer-setwin .layui-layer-close1:hover { background: rgba(255, 255, 255, 0.45); }

/* ===== 用户中心 ===== */
.uc-shell { display: flex; gap: 24px; align-items: flex-start; }
.uc-side { width: 240px; flex: none; position: sticky; top: 92px; }
.uc-card { background: linear-gradient(135deg, #fff8f0, #fff3e6); border: 1px solid var(--line); border-radius: 16px; padding: 26px 20px; text-align: center; box-shadow: var(--shadow); }
.uc-ava { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 800; box-shadow: 0 8px 18px rgba(255, 122, 26, 0.3); }
.uc-name { font-size: 18px; font-weight: 800; }
.uc-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; display: grid; gap: 3px; justify-items: center; }
.uc-menu { margin-top: 16px; display: grid; gap: 6px; }
.uc-menu a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.18s; }
.uc-menu a .layui-icon { font-size: 16px; color: var(--ink-3); }
.uc-menu a:hover { border-color: var(--primary); color: var(--primary); }
.uc-menu a.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(255, 122, 26, 0.3); }
.uc-menu a.active .layui-icon { color: #fff; }
.uc-content { flex: 1; min-width: 0; }
.uc-page { animation: paneIn 0.25s ease; }

@media (max-width: 768px) {
  .uc-shell { flex-direction: column; }
  .uc-side { width: 100%; position: static; }
  .uc-menu { grid-template-columns: repeat(3, 1fr); }
}

/* ===== 收银台 · 微信 / 支付宝 ===== */
.layer-pay .layui-layer-content { padding: 18px 18px 10px; }
.co { padding: 2px 2px 4px; }
.co-order {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: linear-gradient(135deg, #fff8f0, #fff3e6); border: 1px solid var(--line); border-radius: 12px;
}
.co-thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; border: 1px solid #ffe4cf; background: #fff; flex: none; }
.co-info { flex: 1; min-width: 0; }
.co-name { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.co-amount { text-align: right; flex: none; }
.co-amount small { display: block; font-size: 11px; color: var(--ink-3); }
.co-amount b { font-size: 24px; color: var(--primary); line-height: 1.1; }
.co-amount i { font-style: normal; color: var(--ink-3); font-size: 12px; }
.co-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); margin: 18px 2px; }
.co-label { font-size: 13px; font-weight: 700; color: var(--ink-3); margin: 0 2px 10px; }
.co-methods { display: grid; gap: 10px; }
.co-method {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 2px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; font-family: inherit;
  transition: all 0.18s;
}
.co-method:hover { box-shadow: var(--shadow); }
.co-method.wx.active { border-color: #07c160; box-shadow: 0 8px 20px rgba(7, 193, 96, 0.16); }
.co-method.ali.active { border-color: #1677ff; box-shadow: 0 8px 20px rgba(22, 119, 255, 0.16); }
.co-method.bal.active { border-color: var(--primary); box-shadow: 0 8px 20px rgba(255, 122, 26, 0.16); }
.co-logo { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; }
.co-logo.wx { background: linear-gradient(135deg, #07c160, #06ad56); }
.co-logo.ali { background: linear-gradient(135deg, #1677ff, #0b5fe0); }
.co-logo.bal { background: linear-gradient(135deg, #ff9e3d, #f5505b); color: #fff; }
.co-logo.bal .layui-icon { font-size: 19px; }
.co-logo svg { width: 22px; height: 22px; }
.co-logo .z { color: #fff; font-size: 20px; font-weight: 800; font-style: normal; line-height: 1; }
.co-mi { flex: 1; min-width: 0; }
.co-mi b { display: block; font-size: 13.5px; color: var(--ink); }
.co-mi small { display: block; color: var(--ink-3); font-size: 11.5px; margin-top: 1px; }
.co-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d8cfc2; flex: none; position: relative; transition: all 0.15s; }
.co-method.wx.active .co-radio { border-color: #07c160; }
.co-method.wx.active .co-radio::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: #07c160; }
.co-method.ali.active .co-radio { border-color: #1677ff; }
.co-method.ali.active .co-radio::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: #1677ff; }
.co-method.bal.active .co-radio { border-color: var(--primary); }
.co-method.bal.active .co-radio::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--primary); }
.co-pay {
  width: 100%; margin-top: 16px; padding: 12px 0; border: none; border-radius: 10px;
  background: var(--grad); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
  box-shadow: 0 6px 16px rgba(255, 122, 26, 0.25); transition: all 0.18s;
}
.co-pay:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(255, 122, 26, 0.42); }
.co-secure { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 12px; color: #a4917c; margin-top: 12px; }
.co-secure .layui-icon { color: var(--primary); font-size: 13px; }

/* ===== 实例管理弹窗（云控制台风） ===== */
.layer-instance .layui-layer-content { padding: 0; }
.in { overflow: hidden; }
.in-hero {
  position: relative;
  background: linear-gradient(135deg, #ff7a1a, #f5505b 160%); color: #fff;
  display: flex; align-items: center; gap: 14px; padding: 18px 46px 18px 22px; /* 右侧留出关闭按钮空间 */
}
.in-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 200px at 90% -30%, rgba(255,255,255,.18), transparent); pointer-events: none; }
.in-close {
  position: absolute; top: 12px; right: 14px; z-index: 3; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.25); color: #fff; font-size: 18px; line-height: 1; display: grid; place-items: center;
  cursor: pointer; text-decoration: none; transition: background 0.15s;
}
.in-close:hover { background: rgba(255, 255, 255, 0.45); }
.in-thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; border: 1px solid rgba(255, 255, 255, 0.35); background: #fff; flex: none; z-index: 1; }
.in-htit { flex: 1; min-width: 0; z-index: 1; }
.in-name { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.in-sub { font-size: 12px; opacity: 0.85; margin-top: 2px; }
.in-status { z-index: 2; margin-left: auto; flex: none; position: relative; }
/* 实例状态：以字体颜色标识 */
.st-text { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.st-text i { width: 8px; height: 8px; border-radius: 50%; }
.st-text.st-run { color: #16a34a; } .st-text.st-run i { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14); }
.st-text.st-stop { color: #8a8f98; } .st-text.st-stop i { background: #8a8f98; }
.st-text.st-proc { color: #1d6fb8; } .st-text.st-proc i { background: #1d6fb8; box-shadow: 0 0 0 3px rgba(29, 111, 184, 0.14); }
.st-text.st-pending { color: #d97706; } .st-text.st-pending i { background: #d97706; box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.14); }
.in-status .st-text { color: #fff; }
.in-status .st-text.st-run { color: #b9f6d2; } .in-status .st-text.st-run i { background: #8ff0b6; box-shadow: 0 0 0 3px rgba(143, 240, 182, 0.22); }
.in-status .st-text.st-stop { color: #c9d3de; } .in-status .st-text.st-stop i { background: #c9d3de; }
.in-status .st-text.st-pending { color: #ffd9a6; } .in-status .st-text.st-pending i { background: #ffb45e; }
.in-body { padding: 22px 20px 18px; }
.in-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.in-tile { border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; background: #fffbf6; }
.in-tile span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); }
.in-tile span .layui-icon { color: var(--primary); font-size: 13px; }
.in-tile b { display: block; font-size: 13.5px; margin-top: 3px; color: var(--ink); }
.in-sec-title { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 800; color: var(--ink-2); margin: 18px 0 10px; }
.in-sec-title .layui-icon { color: var(--primary); font-size: 15px; }
.in-table { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.in-thead, .in-trow { display: flex; padding: 9px 14px; font-size: 13px; }
.in-thead { background: var(--tint); color: var(--ink-3); font-weight: 700; }
.in-thead span, .in-trow span { width: 50%; }
.in-thead b, .in-trow b { width: 50%; text-align: right; font-weight: 600; color: var(--ink); }
.in-trow { border-top: 1px solid var(--line); color: var(--ink-2); }
.in-trow:nth-child(even) { background: #fffbf6; }
.in-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.in-act { display: grid; place-items: center; gap: 6px; padding: 14px 6px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; font-family: inherit; transition: all 0.18s; }
.in-act .layui-icon { font-size: 18px; color: var(--primary); }
.in-act b { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.in-act:hover { border-color: #ffd2a1; box-shadow: var(--shadow); transform: translateY(-2px); }
.in-act.danger .layui-icon { color: #e5484d; }
.in-act.danger b { color: #e5484d; }
.in-note { text-align: center; font-size: 11.5px; color: #a4917c; margin: 14px 0 2px; }

/* ===== 表格字体精修（大厂级） ===== */
.adm-table, .layui-table { font-family: var(--font-family); }
.adm-table tbody td, .layui-table td {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.7; font-weight: 400;
}
.adm-table thead th, .layui-table thead th { font-family: var(--font-display); letter-spacing: 0.3px; }
.adm-table tbody td:first-child, .layui-table tbody td:first-child { font-weight: 600; color: var(--ink); }
/* 表格内数字 / 编号 / 价格 → 展示字体 */
.adm-table td b, .layui-table td b { font-family: var(--font-display); font-weight: 800; color: var(--ink); }
.adm-table td[style*="ff7a1a"], .layui-table td[style*="ff7a1a"] {
  font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: 0;
}
.adm-table td small, .layui-table td small { font-family: var(--font-family); font-weight: 500; font-size: 11.5px; color: var(--ink-3); }
.adm-table tbody td[style*="12px"], .layui-table tbody td[style*="12px"] { font-size: 12px; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .d-card-grid { grid-template-columns: 1fr; }
  .d-main-cols { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .serv-band { gap: 14px 24px; }
  .steps-h .st small { font-size: 12.5px; }
  .steps-h .st span { font-size: 11px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero-stats { gap: 26px; }
}
