/* 酒未来供应链 — 香槟金品牌风格 */
:root {
  --gold: #b8860b;
  --gold-deep: #8a6508;
  --gold-light: #d4af37;
  --gold-bg: #faf6ec;
  --ink: #2b2118;
  --ink-soft: #5a4a3a;
  --line: #e8ddc4;
  --white: #ffffff;
  --danger: #c0392b;
  --ok: #1e7e34;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--white); line-height: 1.7;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ===== 头部 ===== */
.site-header { background: var(--white); border-bottom: 2px solid var(--gold-light); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 46px; width: 46px; object-fit: contain; }
.brand-text strong { display: block; font-size: 18px; letter-spacing: 2px; color: var(--ink); }
.brand-text em { display: block; font-style: normal; font-size: 10px; color: var(--gold-deep); letter-spacing: 1px; }
.main-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.main-nav a { padding: 6px 2px; color: var(--ink-soft); border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.on { color: var(--gold-deep); border-bottom-color: var(--gold); }
.main-nav .nav-cta { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #fff; padding: 8px 18px; border-radius: 20px; border: none; }
.main-nav .nav-cta:hover { opacity: .9; }
/* 导航中的「AI 赋能」入口：金框高亮，突出 AI 能力 */
.main-nav .nav-ai {
  color: var(--gold-deep); font-weight: 600;
  padding: 6px 14px; border-radius: 16px; border: 1px solid rgba(212,175,55,.55);
  background: linear-gradient(135deg, rgba(212,175,55,.14), rgba(184,134,11,.05));
  border-bottom-color: rgba(212,175,55,.55);
  transition: all .25s ease;
}
.main-nav .nav-ai:hover { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--gold-light), var(--gold)); }

/* ===== 首页横幅 ===== */
.hero {
  position: relative;
  background-color: #17110b;
  color: #fff; text-align: left;
  min-height: 620px; display: flex; align-items: center;
  overflow: hidden;
}
/* 轮播背景层：交叉淡入淡出 */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center right;
  opacity: 0; transform: scale(1.05);
  transition: opacity 1.3s ease, transform 7s linear;   /* 缓慢放大（Ken Burns 微动效） */
}
.hero-bg.active { opacity: 1; transform: scale(1); }
.hero-bg-1 { background-position: center; }   /* 全国辐射图：居中构图 */
/* 左深右浅的渐变遮罩：文字区域压暗，右侧保留画面质感 */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(92deg,
    rgba(20,14,8,.90) 0%,
    rgba(20,14,8,.72) 42%,
    rgba(20,14,8,.28) 74%,
    rgba(20,14,8,.10) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 40px; display: grid; }
/* 内容双屏层叠：同一网格单元，淡入切换 */
.hero-slide {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(22px); visibility: hidden;
  transition: opacity .9s ease .25s, transform .9s ease .25s, visibility 0s .9s;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition-delay: .2s, .2s, .2s; }
@keyframes heroUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.hero-kicker {
  display: inline-block; font-size: 13px; letter-spacing: 6px;
  color: var(--gold-light); border: 1px solid rgba(212,175,55,.45);
  padding: 6px 16px; border-radius: 20px; margin-bottom: 26px;
  background: rgba(212,175,55,.08);
}
.hero h1 { font-size: 46px; letter-spacing: 5px; margin-bottom: 18px; text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.hero p.sub { font-size: 19px; color: #e9dcbe; letter-spacing: 3px; margin-bottom: 28px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 38px; }
.hero-chips .chip {
  font-size: 14px; color: #f3e9cf; letter-spacing: 1px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(212,175,55,.35);
  backdrop-filter: blur(2px);
  padding: 8px 18px; border-radius: 22px;
}
.hero .btns .btn { margin: 0 12px 0 0; }
/* 底部金色光带 + 下滑提示 */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  opacity: .7;
}
/* 轮播圆点指示器 */
.hero-dots { position: absolute; left: 50%; bottom: 66px; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero-dots .dot {
  width: 26px; height: 4px; border-radius: 2px; border: none; cursor: pointer;
  background: rgba(243,233,207,.32); transition: background .3s, width .3s; padding: 0;
}
.hero-dots .dot.active { background: var(--gold-light); width: 40px; }
.hero-dots .dot:hover { background: rgba(243,233,207,.6); }
.hero-scroll {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: 22px; height: 34px; border: 2px solid rgba(243,233,207,.55);
  border-radius: 12px; z-index: 1;
}
.hero-scroll::before {
  content: ""; position: absolute; left: 50%; top: 7px; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 2px; background: var(--gold-light);
  animation: scrollHint 1.6s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translate(-50%, 0); opacity: 1; }
  50% { transform: translate(-50%, 9px); opacity: .35; }
}
.btn { display: inline-block; padding: 12px 34px; border-radius: 26px; font-size: 16px; transition: all .2s; }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #fff; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(184,134,11,.35); }
.btn-line { border: 1px solid var(--gold-light); color: var(--gold-deep); }
.btn-line:hover { background: rgba(212,175,55,.12); }
/* hero 深色背景下的浅色变体 */
.hero .btn-line { border-color: rgba(243,233,207,.65); color: #f3e9cf; }
.hero .btn-line:hover { background: rgba(243,233,207,.14); }

/* ===== 滚动入场动画（仅在有 JS 时隐藏元素，避免脚本失败导致内容不可见） ===== */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.68,.32,1); }
.js .reveal.in { opacity: 1; transform: none; }
/* 卡片类入场：轻微放大 + 上浮 */
.js .card.reveal { transform: translateY(30px) scale(.97); }
.js .card.reveal.in { transform: none; }
/* 箭头类入场：从左侧滑入 */
.js .flow .arrow.reveal { transform: translateX(-14px); }
.js .flow .arrow.reveal.in { transform: none; }
/* 尊重系统「减少动态效果」偏好 */
@media (prefers-reduced-motion: reduce) {
  .reveal, .card.reveal, .flow .arrow.reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-inner, .hero-scroll::before, .flow .arrow, .btn-shine::after, .stat-line, .pb-line::after, .flow .step.hot, .ai-loop i { animation: none !important; }
}

/* ===== 区块 ===== */
.section { padding: 70px 0; }
.section.alt { background: var(--gold-bg); }
.sec-head { text-align: center; margin-bottom: 46px; }
.sec-head h2 { font-size: 30px; letter-spacing: 3px; }
.sec-head .en { color: var(--gold); font-size: 13px; letter-spacing: 4px; text-transform: uppercase; }
.sec-head .divider { width: 60px; height: 3px; background: var(--gold); margin: 14px auto 0; transition: width .9s cubic-bezier(.22,.68,.32,1) .15s; }
.js .sec-head.reveal .divider { width: 0; }
.js .sec-head.reveal.in .divider { width: 60px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 28px 24px; transition: box-shadow .25s, transform .25s, border-color .25s; position: relative; overflow: hidden; }
/* 卡片顶部金色描边：hover 时展开 */
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  transition: width .45s ease;
}
.card:hover::after { width: 100%; }
.card:hover { box-shadow: 0 8px 24px rgba(138,101,8,.12); transform: translateY(-3px); border-color: rgba(212,175,55,.5); }
.card h3 { font-size: 18px; margin-bottom: 10px; color: var(--ink); }
.card .num { font-size: 34px; font-weight: 700; color: var(--gold); }
.card p { font-size: 14px; color: var(--ink-soft); }
.card .icon { font-size: 30px; margin-bottom: 12px; display: inline-block; transition: transform .3s ease; }
.card:hover .icon { transform: translateY(-4px) scale(1.1); }

/* 优势卡片：编号半透明水印 + 悬浮高亮 */
.card.adv { overflow: hidden; }
.card.adv .num {
  position: absolute; right: 14px; top: 6px; font-size: 54px; line-height: 1;
  color: rgba(184,134,11,.13); transition: color .3s ease, transform .3s ease;
}
.card.adv:hover .num { color: rgba(184,134,11,.22); transform: translateY(-3px); }
.card.adv h3 { position: relative; }
/* 品牌矩阵卡片：hover 时左侧金色竖条 */
.card.pcard { border-left: 3px solid transparent; }
.card.pcard:hover { border-left-color: var(--gold); }

/* 数据带 */
.stats-band { background: linear-gradient(135deg, #3a2c1e, #221a12); color: #fff; padding: 56px 0; }
.stats-band .grid-4 { text-align: center; }
.stats-band .num { font-size: 40px; color: var(--gold-light); font-weight: 700; }
.stats-band .num .unit { font-size: 18px; }
.stats-band p { color: #cbbfa8; font-size: 14px; margin-top: 4px; }
.stat { position: relative; padding-bottom: 14px; }
/* 数字下方金色进度线：入场时从左展开 */
.stat-line {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  height: 2px; width: 0; background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}
.stat.reveal.in .stat-line { animation: statLine 1.1s ease-out .2s forwards; }
@keyframes statLine { to { width: 72%; } }

/* 流程图（商业模式） */
.flow { display: flex; align-items: stretch; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.flow .step { background: var(--white); border: 1.5px solid var(--gold-light); border-radius: 8px; padding: 18px 16px; text-align: center; flex: 1; min-width: 150px; max-width: 190px; transition: transform .3s ease, box-shadow .3s ease; }
.flow .step:hover { transform: translateY(-5px); box-shadow: 0 10px 22px rgba(138,101,8,.16); }
.flow .step.hot { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #fff; animation: hotGlow 2.8s ease-in-out infinite; }
.flow .step h4 { font-size: 15px; margin-bottom: 6px; }
.flow .step p { font-size: 12px; color: var(--ink-soft); }
.flow .step.hot p { color: rgba(255,255,255,.9); }
@keyframes hotGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(184,134,11,0); }
  50% { box-shadow: 0 6px 22px rgba(184,134,11,.45); }
}
/* 箭头：持续向右流动 + 呼吸感 */
.flow .arrow { align-self: center; color: var(--gold); font-size: 20px; animation: arrowFlow 1.8s ease-in-out infinite; }
.flow .arrow:nth-child(2) { animation-delay: .18s; }
.flow .arrow:nth-child(4) { animation-delay: .36s; }
.flow .arrow:nth-child(6) { animation-delay: .54s; }
.flow .arrow:nth-child(8) { animation-delay: .72s; }
@keyframes arrowFlow {
  0%, 100% { transform: translateX(-3px); opacity: .45; }
  50% { transform: translateX(3px); opacity: 1; }
}

/* ===== AI 赋能供应链（深色科技板块） ===== */
.ai-empower {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(148deg, #241a11 0%, #17110b 52%, #2a1f14 100%);
  padding: 76px 0 72px;
  scroll-margin-top: 88px;   /* 锚点跳转时避开吸顶导航 */
}
/* 顶部金色光晕（radial），右下弱光补一层 */
.ai-empower::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(50% 74% at 50% -4%, rgba(212,175,55,.20), transparent 72%),
    radial-gradient(36% 56% at 94% 104%, rgba(212,175,55,.11), transparent 72%);
}
/* 细网格纹理：中心清晰、四周淡出，营造科技感 */
.ai-empower::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .15;
  background-image:
    linear-gradient(rgba(212,175,55,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,.5) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(72% 68% at 50% 42%, #000 0%, transparent 80%);
  mask-image: radial-gradient(72% 68% at 50% 42%, #000 0%, transparent 80%);
}
.ai-empower .container { position: relative; z-index: 1; }
.ai-empower .sec-head { margin-bottom: 18px; }
.ai-empower .sec-head .en { color: var(--gold-light); }
.ai-empower .sec-head h2 { color: #fff; }
.ai-empower .sec-head .divider { background: var(--gold-light); }
.ai-lead { text-align: center; max-width: 780px; margin: 0 auto 42px; color: #cbbfa8; font-size: 15px; letter-spacing: 1px; }
.ai-grid { gap: 22px; }
.ai-card {
  position: relative; overflow: hidden;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(212,175,55,.24);
  border-radius: 12px; padding: 26px 22px;
  backdrop-filter: blur(3px);
  transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.ai-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,175,55,.62);
  background: rgba(212,175,55,.075);
  box-shadow: 0 14px 32px rgba(0,0,0,.38);
}
/* 卡片顶部金色扫描线：hover 时铺满 */
.ai-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  transition: width .6s ease;
}
.ai-card:hover::after { width: 100%; }
.ai-ico {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 15px;
  display: flex; align-items: center; justify-content: center; font-size: 21px;
  background: linear-gradient(135deg, rgba(212,175,55,.30), rgba(184,134,11,.14));
  border: 1px solid rgba(212,175,55,.35);
  transition: transform .3s ease, box-shadow .3s ease;
}
.ai-card:hover .ai-ico { transform: translateY(-3px) scale(1.06); box-shadow: 0 6px 18px rgba(184,134,11,.34); }
.ai-card h3 { font-size: 17px; color: #fff; letter-spacing: 1px; margin-bottom: 9px; }
.ai-card p { font-size: 13.5px; color: #b6a992; }
/* 数据闭环链路 */
.ai-loop {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px 12px; margin-top: 36px; font-size: 13.5px; color: #cbbfa8; letter-spacing: 1px;
}
.ai-loop span { padding: 6px 16px; border: 1px solid rgba(212,175,55,.28); border-radius: 20px; background: rgba(212,175,55,.06); }
.ai-loop span.hot { color: #17110b; font-weight: 600; border-color: transparent; background: linear-gradient(135deg, var(--gold-light), var(--gold)); }
.ai-loop i { font-style: normal; color: rgba(212,175,55,.7); animation: loopFlow 1.8s ease-in-out infinite; }
.ai-loop i.loop { color: var(--gold-light); font-size: 16px; animation: loopSpin 3.4s linear infinite; }
@keyframes loopFlow {
  0%, 100% { transform: translateX(-2px); opacity: .45; }
  50% { transform: translateX(2px); opacity: 1; }
}
@keyframes loopSpin { to { transform: rotate(360deg); } }
.ai-note { text-align: center; margin-top: 22px; font-size: 12.5px; color: #8d8271; letter-spacing: 1px; }

/* 底部 CTA 区域 */
.cta-wrap { text-align: center; margin-top: 34px; }
/* 金色按钮扫光 */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg); animation: btnShine 3.2s ease-in-out infinite;
}
@keyframes btnShine {
  0% { left: -60%; }
  55%, 100% { left: 130%; }
}

/* ===== 内页横幅（与首页 hero 呼应的轻量版） ===== */
.page-banner {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  padding: 96px 20px 82px;
  background-color: #17110b;
  background-image: linear-gradient(rgba(18,12,7,.88), rgba(18,12,7,.70)), url('../images/hero-bg.jpg');
  background-size: cover; background-position: center 28%;
  background-attachment: scroll;
}
/* 顶部金色光晕 */
.page-banner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(58% 90% at 50% 0%, rgba(212,175,55,.20), transparent 72%),
    radial-gradient(40% 60% at 88% 100%, rgba(212,175,55,.10), transparent 70%);
}
/* 底部金色光带 */
.page-banner::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  opacity: .75;
}
.page-banner-inner { position: relative; z-index: 1; }
.page-banner h1 {
  font-size: 38px; letter-spacing: 6px; margin: 16px 0 14px;
  text-shadow: 0 2px 20px rgba(0,0,0,.55);
}
/* EN 徽标：两侧金线 */
.pb-kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: 6px; color: var(--gold-light);
  text-transform: uppercase;
}
.pb-kicker::before, .pb-kicker::after {
  content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,175,55,.75));
}
.pb-kicker::after { background: linear-gradient(90deg, rgba(212,175,55,.75), transparent); }
.page-banner .pb-sub { color: #e9dcbe; font-size: 15px; letter-spacing: 3px; }
/* 底部扫光分隔线 */
.pb-line {
  display: block; position: relative; width: 64px; height: 3px; margin: 24px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  overflow: hidden;
}
.pb-line::after {
  content: ""; position: absolute; top: 0; left: 0; width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, #fff6d8, transparent);
  animation: pbShine 3.4s ease-in-out infinite;
}
@keyframes pbShine {
  0% { transform: translateX(-120%); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateX(230%); opacity: 0; }
}
.breadcrumb { font-size: 13px; color: var(--ink-soft); padding: 14px 0 0; }
.breadcrumb a { color: var(--gold-deep); }

/* 表单 */
.form-card { max-width: 460px; margin: 40px auto; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 34px 32px; }
.form-card h2 { text-align: center; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 14px; background: var(--gold-bg); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.form-actions { text-align: center; margin-top: 24px; }
.form-actions .btn { width: 100%; }
.form-tip { text-align: center; font-size: 13px; color: var(--ink-soft); margin-top: 14px; }
.form-tip a { color: var(--gold-deep); }
.msg-ok { background: #e8f6ec; color: var(--ok); border: 1px solid #bfe5c8; padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.msg-err { background: #fdecea; color: var(--danger); border: 1px solid #f5c6c0; padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }

/* ===== 分销平台 ===== */
.platform-wrap { display: flex; min-height: calc(100vh - 72px); background: var(--gold-bg); }
.side-nav { width: 210px; background: #2b2118; color: #d8cbb0; padding: 24px 0; flex-shrink: 0; }
.side-nav .user-box { padding: 0 20px 18px; border-bottom: 1px solid #453623; margin-bottom: 12px; }
.side-nav .user-box strong { color: var(--gold-light); display: block; font-size: 15px; }
.side-nav .user-box span { font-size: 12px; color: #a89877; }
.side-nav a { display: block; padding: 12px 22px; font-size: 14px; border-left: 3px solid transparent; }
.side-nav a:hover, .side-nav a.on { background: #3a2c1e; color: var(--gold-light); border-left-color: var(--gold); }
.platform-main { flex: 1; padding: 30px 34px; min-width: 0; }
.platform-main h1 { font-size: 22px; margin-bottom: 6px; }
.platform-main .page-sub { color: var(--ink-soft); font-size: 13px; margin-bottom: 26px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.kpi .label { font-size: 13px; color: var(--ink-soft); }
.kpi .val { font-size: 26px; font-weight: 700; color: var(--gold-deep); margin-top: 6px; }
.kpi .val small { font-size: 13px; font-weight: 400; }

/* 表格 */
.tbl { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tbl th, .tbl td { padding: 12px 14px; font-size: 14px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { background: var(--gold-bg); color: var(--gold-deep); font-weight: 600; }
.tbl tr:hover td { background: #fdfaf2; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; }
.tag-gold { background: #f5ecd4; color: var(--gold-deep); }
.tag-ok { background: #e8f6ec; color: var(--ok); }
.tag-warn { background: #fdf3e0; color: #b26a00; }

/* AI 模块 */
.ai-panel { background: linear-gradient(135deg, #fffdf6, #faf3dd); border: 1.5px solid var(--gold-light); border-radius: 12px; padding: 24px; margin-bottom: 26px; }
.ai-panel h3 { color: var(--gold-deep); margin-bottom: 12px; }
.ai-panel h3::before { content: "✦ "; }
.ai-answer { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-top: 14px; font-size: 14px; white-space: pre-wrap; }
/* AI 加载中指示 */
.ai-loading { display: flex; align-items: center; gap: 12px; color: var(--gold-deep); font-size: 14px; }
.ai-spinner {
  width: 22px; height: 22px; flex-shrink: 0;
  border: 3px solid rgba(212,175,55,.25); border-top-color: var(--gold);
  border-radius: 50%;
  animation: aiSpin .8s linear infinite;
}
@keyframes aiSpin { to { transform: rotate(360deg); } }
.ai-badge { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 8px; margin-left: 8px; vertical-align: middle; }
.ai-badge.real { background: #e8f6ec; color: var(--ok); }
.ai-badge.fallback { background: #fdf3e0; color: #b26a00; }

/* AI 选品结果卡（结构化输出 → 一键订货车） */
.card.ai-item { padding: 18px; display: flex; flex-direction: column; }
.ai-item .ai-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ai-item .ai-item-head h3 { font-size: 16px; margin: 0; line-height: 1.45; }
.ai-item .ai-item-head .tag { flex-shrink: 0; }
.ai-item .ai-item-meta { font-size: 12px; color: var(--gold-deep); margin: 8px 0 0; }
.ai-item .ai-item-why { font-size: 13px; color: var(--ink-soft); margin: 8px 0 0; padding-left: 10px; border-left: 2px solid var(--gold-light); }
.ai-item .ai-item-price { font-size: 13px; color: var(--ink-soft); margin: 10px 0 0; }
.ai-item .ai-item-qty { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--ink-soft); }
.ai-item .ai-item-qty input { width: 74px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; }
.ai-item .ai-item-qty input:focus { outline: none; border-color: var(--gold); }
.ai-item .ai-item-qty b { color: var(--gold-deep); }
.ai-cart-bar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(135deg, #fffdf6, #f7eeda); border: 1.5px solid var(--gold-light); border-radius: 10px; padding: 14px 18px; font-size: 14px; }
.ai-cart-bar b { color: var(--gold-deep); }

/* 订货页：AI 带入的行高亮 */
tr.row-ai td { background: #fffaf0; }
tr.row-ai td:first-child::before { content: "AI "; color: var(--gold-deep); font-size: 11px; font-weight: 700; }

/* AI 效能度量（管理端） */
.metric-note { font-size: 13px; color: var(--ink-soft); margin: -6px 0 16px; }

/* 后台长表单的分组小标题（商品管理 / 知识库） */
.kb-subhead { font-size: 14px; font-weight: 600; color: var(--gold-deep); margin: 26px 0 12px; padding-left: 10px; border-left: 3px solid var(--gold); letter-spacing: .5px; }
.kb-subhead:first-of-type { margin-top: 6px; }
/* 宽表单：标题左对齐、内边距收窄（.form-card 默认是窄登录卡样式） */
.form-card-wide { max-width: none; margin: 0 0 26px; padding: 26px 28px; }
.form-card-wide h2 { text-align: left; margin-bottom: 18px; }
.kpi .val.metric-ok { color: var(--ok); }
.kpi .val.metric-warn { color: #b26a00; }

/* 分页 */
.pagination { text-align: center; margin: 26px 0; font-size: 14px; }
.pagination a, .pagination .cur { display: inline-block; min-width: 34px; padding: 6px 10px; margin: 0 3px; border: 1px solid var(--line); border-radius: 4px; }
.pagination .cur { background: var(--gold); color: #fff; border-color: var(--gold); }
.pagination a:hover { border-color: var(--gold); }

/* 页脚 */
.site-footer { background: #221a12; color: #b3a58c; padding: 46px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 30px; padding-bottom: 30px; }
.site-footer h4 { color: var(--gold-light); margin-bottom: 12px; font-size: 16px; }
.site-footer a:hover { color: var(--gold-light); }
.copyright { border-top: 1px solid #3a2c1e; text-align: center; padding: 16px 20px; font-size: 12px; color: #7a6d55; }

/* 响应式 */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner { flex-direction: column; height: auto; padding: 12px 0; gap: 10px; }
  .main-nav { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .hero { min-height: 520px; }
  .hero::before { background: rgba(20,14,8,.78); }
  .hero h1 { font-size: 30px; letter-spacing: 3px; }
  .hero p.sub { font-size: 15px; letter-spacing: 2px; }
  .hero-kicker { letter-spacing: 4px; }
  .page-banner { padding: 76px 20px 66px; background-position: center 24%; }
  .page-banner h1 { font-size: 28px; letter-spacing: 4px; }
  .page-banner .pb-sub { font-size: 14px; letter-spacing: 2px; }
  .platform-wrap { flex-direction: column; }
  .side-nav { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .kpi-grid { grid-template-columns: 1fr; }
  .hero { min-height: 480px; }
  .hero h1 { font-size: 25px; }
  .hero-chips .chip { font-size: 12px; padding: 6px 13px; }
  .hero .btns .btn { display: block; width: 100%; margin: 0 0 12px; text-align: center; }
  .hero-scroll { display: none; }
  .hero-dots { bottom: 14px; }
  .page-banner { padding: 62px 16px 54px; }
  .page-banner h1 { font-size: 23px; letter-spacing: 3px; }
  .pb-kicker::before, .pb-kicker::after { width: 20px; }
  .ai-empower { padding: 58px 0 54px; }
  .ai-lead { font-size: 14px; margin-bottom: 32px; }
  .ai-card { padding: 22px 18px; }
  .ai-loop { margin-top: 28px; font-size: 12.5px; }
  .ai-loop span { padding: 5px 12px; }
}
