/* ============ Shengke B2B 全局样式 ============ */
:root {
  --steel-900: #101820;
  --steel-800: #16222e;
  --steel-700: #1e2f40;
  --steel-500: #3d5468;
  --steel-300: #9fb2c4;
  --steel-100: #eef2f6;
  --gold: #d4a943;
  --gold-dark: #b8912f;
  --blue: #2f7fd1;
  --red: #e04545;
  --green: #2e9e63;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(16, 24, 32, .08);
  --shadow-lg: 0 12px 40px rgba(16, 24, 32, .16);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Arial, sans-serif; color: var(--steel-800); background: #fff; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 14px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部信息条 ---------- */
.topbar { background: var(--steel-900); color: var(--steel-300); font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; flex-wrap: wrap; }
.topbar a { color: var(--gold); }
.topbar a:hover { text-decoration: underline; }

/* ---------- 主导航 ---------- */
.header { background: #fff; border-bottom: 1px solid var(--steel-100); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 0 rgba(0,0,0,.03); }
.header .container { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: var(--steel-900); letter-spacing: .5px; white-space: nowrap; }
.logo .mark { width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(135deg, var(--steel-900), var(--steel-500)); color: var(--gold); display: grid; place-items: center; font-size: 18px; font-weight: 900; }
.logo small { display: block; font-size: 11px; font-weight: 600; color: var(--steel-500); letter-spacing: 2px; }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a { padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14.5px; color: var(--steel-700); white-space: nowrap; }
.nav a:hover, .nav a.active { background: var(--steel-100); color: var(--steel-900); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 8px; font-weight: 700; font-size: 14px; border: 1px solid transparent; transition: .18s; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff; }
.btn-gold:hover { filter: brightness(1.08); box-shadow: 0 6px 16px rgba(212,169,67,.4); }
.btn-dark { background: var(--steel-900); color: #fff; }
.btn-dark:hover { background: var(--steel-700); }
.btn-outline { border-color: var(--steel-300); color: var(--steel-700); background: #fff; }
.btn-outline:hover { border-color: var(--steel-900); color: var(--steel-900); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.cart-btn { position: relative; padding: 9px 16px; }
.cart-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }

/* ---------- 轮播图 ---------- */
.hero { position: relative; overflow: hidden; background: var(--steel-900); }
.carousel { position: relative; height: clamp(440px, 32vw, 640px); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none; background: #0b0f14; }
.slide.active { opacity: 1; pointer-events: auto; }
/* 整幅平铺：图片铺满整个轮播区，不再做左右分栏 */
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.slide .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,11,15,.58) 0%, rgba(8,11,15,.34) 26%, rgba(8,11,15,.08) 46%, rgba(8,11,15,0) 62%); }
.slide .caption { position: absolute; top: 0; bottom: 0; left: 0; right: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; color: #fff; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.slide .eyebrow { color: var(--gold); font-weight: 700; letter-spacing: 3px; font-size: 13px; margin-bottom: 14px; }
.slide h2 { font-size: 44px; line-height: 1.15; max-width: 560px; margin-bottom: 16px; font-weight: 800; }
.slide p { font-size: 17px; max-width: 520px; color: #dfe7ee; margin-bottom: 28px; }
/* 浅色海报（自动识别）：深色文字 + 白色柔光，避免压出黑块 */
.slide-light .shade { background: linear-gradient(90deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,.18) 26%, rgba(255,255,255,0) 52%); }
.slide-light .caption { color: #17242f; }
.slide-light h2 { color: #17242f; }
.slide-light p { color: #384956; }
.slide-light .eyebrow { color: #8a6a1f; }
.carousel .arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.35); font-size: 20px; z-index: 5; backdrop-filter: blur(4px); transition: .2s; }
.carousel .arrow:hover { background: rgba(255,255,255,.32); }
.carousel .arrow.prev { left: 18px; }
.carousel .arrow.next { right: 18px; }
.carousel .dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.carousel .dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.45); border: none; transition: .2s; }
.carousel .dot.active { background: var(--gold); transform: scale(1.2); }

/* ---------- 区块通用 ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--steel-100); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .kicker { color: var(--gold-dark); font-weight: 700; letter-spacing: 3px; font-size: 13px; text-transform: uppercase; }
.section-head h2 { font-size: 32px; color: var(--steel-900); margin-top: 6px; }
.section-head p { color: var(--steel-500); max-width: 640px; margin: 10px auto 0; }

/* ---------- 分类卡片 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 280px; display: block; transition: .25s; }
.cat-card img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .4s; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,16,22,.08) 0%, rgba(10,16,22,.55) 38%, rgba(10,16,22,.94) 78%, rgba(10,16,22,.97) 100%); }
.cat-card .label { position: absolute; left: 26px; right: 26px; bottom: 24px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.cat-card .label h3 { font-size: 24px; }
.cat-card .label h3 span { display: block; font-size: 14px; color: var(--gold); font-weight: 600; margin-top: 4px; }
.cat-card .label p { font-size: 14px; color: #e2eaf2; margin: 8px 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-card .label .btn { padding: 8px 18px; font-size: 13px; }

/* ---------- 商品卡片 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; }
.p-card { background: #fff; border: 1px solid #e6ecf2; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: .22s; }
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.p-card .img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--steel-100); }
.p-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.p-card:hover .img img { transform: scale(1.05); }
.badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge { font-size: 11px; font-weight: 800; color: #fff; padding: 3px 9px; border-radius: 5px; letter-spacing: .5px; width: max-content; }
.badge.hot { background: var(--red); }
.badge.new { background: var(--blue); }
.badge.off { background: var(--gold-dark); }
.p-card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-card .sku { font-size: 11px; color: var(--steel-300); font-weight: 700; letter-spacing: 1px; }
.p-card h3 { font-size: 15px; line-height: 1.35; color: var(--steel-900); min-height: 40px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card h3 a:hover { color: var(--blue); }
.p-card .meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--steel-500); }
.p-card .stars { color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.p-card .price-row { display: flex; align-items: baseline; gap: 6px; margin-top: auto; }
.p-card .from { font-size: 12px; color: var(--steel-500); }
.p-card .price { font-size: 21px; font-weight: 800; color: var(--steel-900); }
.p-card .price .per { font-size: 12px; color: var(--steel-300); font-weight: 600; }
.p-card .tiers { font-size: 12px; color: var(--steel-500); margin-top: -2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-card .actions { display: flex; gap: 8px; margin-top: 10px; }
.p-card .actions .btn { flex: 1; }

/* ---------- 促销活动 ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.promo-card { border-radius: var(--radius); padding: 30px 28px; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow); min-height: 200px; display: flex; flex-direction: column; gap: 10px; transition: .22s; }
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.promo-card.pg1 { background: linear-gradient(135deg, #7c1f24, #e04545); }
.promo-card.pg2 { background: linear-gradient(135deg, #123f6b, #2f7fd1); }
.promo-card.pg3 { background: linear-gradient(135deg, #6b4c0d, #d4a943); }
.promo-card .ribbon { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.45); font-size: 11px; font-weight: 800; letter-spacing: 1px; padding: 4px 12px; border-radius: 20px; text-transform: uppercase; backdrop-filter: blur(2px); }
.promo-card .tag { font-size: 12px; font-weight: 700; opacity: .9; letter-spacing: 1px; }
.promo-card h3 { font-size: 21px; line-height: 1.3; }
.promo-card p { font-size: 14px; opacity: .92; flex: 1; }
.promo-card .btn { background: #fff; color: var(--steel-900); align-self: flex-start; }
.promo-card .btn:hover { box-shadow: 0 6px 16px rgba(0,0,0,.25); }

/* ---------- 优势条 ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.feature { background: #fff; border: 1px solid #e6ecf2; border-radius: var(--radius); padding: 22px; display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--shadow); }
.feature .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--steel-100); display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.feature h4 { font-size: 15px; color: var(--steel-900); }
.feature p { font-size: 13px; color: var(--steel-500); }

/* ---------- 页脚 ---------- */
.footer { background: var(--steel-900); color: var(--steel-300); padding: 56px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer a { display: block; font-size: 14px; margin-bottom: 8px; color: var(--steel-300); }
.footer a:hover { color: var(--gold); }
.footer p { font-size: 14px; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer .social { display: flex; gap: 10px; margin-top: 16px; }
.footer .social a { width: 34px; height: 34px; border-radius: 50%; background: var(--steel-700); display: grid; place-items: center; margin: 0; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 13px; text-align: center; color: var(--steel-500); }

/* ---------- 询价车抽屉 ---------- */
.rfq-fab { position: fixed; right: 22px; bottom: 22px; z-index: 120; }
.rfq-fab .btn { box-shadow: var(--shadow-lg); padding: 12px 22px; }
.rfq-overlay { position: fixed; inset: 0; background: rgba(10,16,22,.5); z-index: 130; display: none; }
.rfq-overlay.open { display: block; }
.rfq-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: #fff; z-index: 140; transform: translateX(105%); transition: transform .3s ease; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.rfq-drawer.open { transform: translateX(0); }
.rfq-head { padding: 18px 22px; background: var(--steel-900); color: #fff; display: flex; justify-content: space-between; align-items: center; }
.rfq-head h3 { font-size: 17px; }
.rfq-head button { background: none; border: none; color: #fff; font-size: 22px; }
.rfq-items { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 12px; }
.rfq-item { display: flex; gap: 12px; border: 1px solid #e6ecf2; border-radius: 8px; padding: 10px; align-items: center; }
.rfq-item img { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.rfq-item .info { flex: 1; min-width: 0; }
.rfq-item .name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rfq-item .qty-row { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.rfq-item .qty-row label { font-size: 12px; color: var(--steel-500); }
.rfq-item .qty-row input { width: 70px; padding: 4px 8px; border: 1px solid var(--steel-300); border-radius: 6px; }
.rfq-item .rm { background: none; border: none; color: var(--red); font-size: 16px; }
.rfq-foot { padding: 18px 22px; border-top: 1px solid #e6ecf2; display: flex; flex-direction: column; gap: 12px; }
.rfq-foot textarea { width: 100%; border: 1px solid var(--steel-300); border-radius: 8px; padding: 10px; min-height: 72px; resize: vertical; }
.rfq-empty { text-align: center; color: var(--steel-300); padding: 60px 0; }
.empty-note { padding: 50px 0; text-align: center; color: var(--steel-500); }

/* ---------- 表单页 ---------- */
.auth-wrap { min-height: calc(100vh - 120px); display: flex; align-items: center; justify-content: center; background: var(--steel-100); padding: 50px 20px; }
.auth-card { background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); width: 420px; max-width: 100%; padding: 36px; }
.auth-card h1 { font-size: 24px; color: var(--steel-900); text-align: center; }
.auth-card .sub { text-align: center; color: var(--steel-500); font-size: 14px; margin: 6px 0 24px; }
.tabs { display: flex; background: var(--steel-100); border-radius: 8px; padding: 4px; margin-bottom: 22px; }
.tabs button { flex: 1; border: none; background: none; padding: 10px; border-radius: 6px; font-weight: 700; color: var(--steel-500); }
.tabs button.active { background: #fff; color: var(--steel-900); box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--steel-700); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--steel-300); border-radius: 8px; padding: 11px 12px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form-error { background: #fdecec; color: var(--red); border: 1px solid #f5c6c6; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; display: none; }
.form-error.show { display: block; }
.form-ok { background: #e8f7ef; color: var(--green); border: 1px solid #bfe7d0; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; display: none; }
.form-ok.show { display: block; }
.hint { font-size: 12px; color: var(--steel-300); margin-top: 12px; text-align: center; }

/* ---------- 商品列表页 ---------- */
.page-head { background: var(--steel-900); color: #fff; padding: 42px 0; }
.page-head h1 { font-size: 30px; }
.page-head .crumb { font-size: 13px; color: var(--steel-300); margin-bottom: 8px; }
.page-head .crumb a { color: var(--gold); }
.toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 26px 0; }
.toolbar select, .toolbar input.search { border: 1px solid var(--steel-300); border-radius: 8px; padding: 10px 12px; }
.toolbar input.search { flex: 1; min-width: 220px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { padding: 8px 18px; border-radius: 20px; border: 1px solid var(--steel-300); font-weight: 700; font-size: 14px; background: #fff; color: var(--steel-700); }
.chip.active { background: var(--steel-900); color: #fff; border-color: var(--steel-900); }

/* ---------- 商品详情 ---------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 40px 0; }
.detail .img { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1; background: var(--steel-100); }
.detail .img img { width: 100%; height: 100%; object-fit: cover; }
.detail h1 { font-size: 28px; color: var(--steel-900); line-height: 1.25; }
.detail .sku { color: var(--steel-300); font-size: 13px; font-weight: 700; letter-spacing: 1px; margin: 6px 0 12px; }
.detail .rating { color: var(--gold); margin-bottom: 14px; font-size: 14px; }
.detail .rating span { color: var(--steel-500); margin-left: 8px; }
.price-box { background: var(--steel-100); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.price-box table { width: 100%; border-collapse: collapse; }
.price-box th { text-align: left; font-size: 12px; color: var(--steel-500); text-transform: uppercase; letter-spacing: 1px; padding-bottom: 8px; }
.price-box td { padding: 6px 0; font-weight: 700; color: var(--steel-900); border-top: 1px solid #dfe7ee; }
.price-box td .per { font-weight: 500; color: var(--steel-500); font-size: 12px; }
.price-box .moq-line { font-size: 13px; color: var(--steel-500); margin-top: 8px; }
.price-box .moq-line b { color: var(--steel-900); }
.spec-table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.spec-table td { padding: 10px 12px; border-bottom: 1px solid #e6ecf2; font-size: 14px; }
.spec-table td:first-child { width: 180px; color: var(--steel-500); font-weight: 700; background: #f8fafc; }
.feat-list { margin: 14px 0 18px; padding-left: 22px; }
.feat-list li { margin-bottom: 8px; font-size: 14.5px; color: var(--steel-700); }
.detail .actions { display: flex; gap: 12px; margin: 20px 0; flex-wrap: wrap; }

/* ---------- 账户页 ---------- */
.account { max-width: 900px; margin: 40px auto; }
.account .card { background: #fff; border: 1px solid #e6ecf2; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-bottom: 24px; }
.account .card h2 { font-size: 20px; color: var(--steel-900); margin-bottom: 16px; }
.inq-table { width: 100%; border-collapse: collapse; }
.inq-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--steel-500); padding: 8px 10px; border-bottom: 2px solid var(--steel-100); }
.inq-table td { padding: 10px; border-bottom: 1px solid #e6ecf2; font-size: 14px; vertical-align: top; }
.status { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 12px; }
.status.open { background: #fff4e0; color: #b8860b; }
.status.done { background: #e8f7ef; color: var(--green); }
.toast { position: fixed; top: 80px; right: 22px; background: var(--steel-900); color: #fff; padding: 14px 22px; border-radius: 8px; box-shadow: var(--shadow-lg); z-index: 200; font-size: 14px; opacity: 0; transform: translateY(-8px); transition: .25s; pointer-events: none; max-width: 340px; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.err { background: var(--red); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: 1fr; }
  .nav { display: none; }
  .slide h2 { font-size: 30px; }
  .carousel { height: 340px; }
  /* 窄屏文字通栏，横向渐变失效 → 改为上下压暗，保证白字可读 */
  .slide .shade { background: linear-gradient(180deg, rgba(10,16,22,.80) 0%, rgba(10,16,22,.66) 58%, rgba(10,16,22,.88) 100%); }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .slide h2 { font-size: 24px; }
  .topbar .container { justify-content: center; height: auto; padding: 6px 0; gap: 2px; text-align: center; }
  .header .container { height: auto; padding: 10px 16px; flex-wrap: wrap; gap: 10px; }
  .header .cart-btn { display: none; }
  .header-actions .btn { padding: 7px 12px; font-size: 13px; white-space: nowrap; }
  .logo { font-size: 19px; }
  .carousel .arrow { display: none; }
  .carousel { height: 380px; }
  .slide .caption { padding: 0 18px; }
  .section { padding: 44px 0; }
  .section-head h2 { font-size: 25px; }
  .cat-card { min-height: 240px; }
}

/* ---------- 语言切换按钮 ---------- */
.lang-btn { border: 1px solid var(--steel-300); border-radius: 8px; padding: 7px 14px; font-weight: 700; font-size: 13px; background: #fff; cursor: pointer; color: var(--steel-700); white-space: nowrap; transition: .15s; }
.lang-btn:hover { border-color: var(--steel-900); color: var(--steel-900); }

/* ---------- 后台管理 ---------- */
.admin-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.admin-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--steel-500); padding: 14px 14px; background: var(--steel-100); border-bottom: 2px solid #dfe7ee; white-space: nowrap; }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid #e6ecf2; font-size: 14px; vertical-align: middle; }
.admin-table tr:hover td { background: #f8fafc; }
.admin-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; border: 1px solid #e6ecf2; }
.a-name { font-weight: 700; color: var(--steel-900); max-width: 320px; }
.a-sku { font-size: 12px; color: var(--steel-300); font-weight: 700; letter-spacing: 1px; }

/* ---------- 后台弹窗 ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(10,16,22,.55); z-index: 150; display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: 14px; width: 760px; max-width: 100%; box-shadow: var(--shadow-lg); animation: pop .18s ease; }
@keyframes pop { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 26px; border-bottom: 1px solid #e6ecf2; position: sticky; top: 0; background: #fff; border-radius: 14px 14px 0 0; }
.modal-head h3 { font-size: 19px; color: var(--steel-900); }
.modal-head button { background: none; border: none; font-size: 20px; color: var(--steel-500); cursor: pointer; }
.modal-body { padding: 22px 26px 26px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #e6ecf2; }

.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.img-row { display: flex; gap: 14px; align-items: flex-start; }
.img-row img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; border: 1px solid #e6ecf2; background: var(--steel-100); }
.upload-label { display: inline-flex; cursor: pointer; width: fit-content; }
.tier-rows { display: flex; flex-direction: column; gap: 8px; }
.tier-row { display: flex; gap: 10px; align-items: center; }
.tier-row input { width: 130px; padding: 8px 10px; border: 1px solid var(--steel-300); border-radius: 8px; }
.tier-row .rm { background: none; border: none; color: var(--red); font-size: 16px; cursor: pointer; }
.check-row { display: flex; gap: 22px; margin: 14px 0 6px; flex-wrap: wrap; }
.check-row label { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--steel-700); cursor: pointer; }
.check-row input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--gold-dark); }
@media (max-width: 700px) { .fgrid { grid-template-columns: 1fr; } .modal { width: 100%; } }

/* ---------- 新闻资讯 / 播客卡片 ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.post-card { background: #fff; border: 1px solid #e6ecf2; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .22s; box-shadow: var(--shadow); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d5dee8; }
.post-card .cover { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--steel-100); }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: .5s; display: block; }
.post-card:hover .cover img { transform: scale(1.04); }
.post-card .audio-flag { position: absolute; left: 12px; bottom: 12px; background: rgba(16,24,32,.84); color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: 1.5px; padding: 4px 9px; border-radius: 4px; }
.post-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.meta-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--steel-500); }
.meta-row .tagline { color: var(--gold-dark); font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; }
.meta-row .sep { color: var(--steel-300); }
.post-card h3 { font-size: 18px; line-height: 1.35; color: var(--steel-900); }
.post-card h3 a:hover { color: var(--gold-dark); }
.post-card p { font-size: 14px; color: var(--steel-500); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: var(--steel-300); border-top: 1px solid #eef2f6; padding-top: 12px; margin-top: 2px; flex-wrap: wrap; }
.post-card .foot .more { color: var(--steel-900); font-weight: 700; font-size: 13px; white-space: nowrap; }
.post-card .foot .more:hover { color: var(--gold-dark); }

/* ---------- 文章详情页 ---------- */
.crumb { font-size: 13px; color: var(--steel-300); }
.crumb a { color: var(--gold-dark); }
.article-wrap { max-width: 780px; margin: 0 auto; }
.article-head .meta-row { margin-bottom: 10px; }
.article-head h1 { font-size: 38px; line-height: 1.22; color: var(--steel-900); letter-spacing: -.4px; }
.article-head .byline { display: flex; gap: 9px; font-size: 13.5px; color: var(--steel-500); margin-top: 14px; padding-bottom: 22px; border-bottom: 1px solid #e6ecf2; }
.article-head .byline .sep { color: var(--steel-300); }
.article-cover { margin: 26px 0 8px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.article-cover img { width: 100%; max-height: 400px; object-fit: cover; object-position: center; display: block; }
.audio-box { margin: 26px 0 6px; background: var(--steel-100); border: 1px solid #e0e8f0; border-left: 4px solid var(--gold); border-radius: 10px; padding: 16px 18px; }
.audio-box .audio-label { font-size: 11px; font-weight: 800; letter-spacing: 1.6px; color: var(--gold-dark); margin-bottom: 10px; text-transform: uppercase; }
.audio-box audio { width: 100%; }
.audio-box .hint { text-align: left; margin-top: 6px; }
.article-body { margin-top: 24px; font-size: 16.5px; line-height: 1.78; color: #26313c; }
.article-body p { margin-bottom: 18px; }
.article-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; padding-top: 24px; border-top: 1px solid #e6ecf2; flex-wrap: wrap; }

/* ---------- 后台标签页 ---------- */
.admin-tabs { display: flex; gap: 6px; margin: 26px 0 4px; border-bottom: 2px solid #e6ecf2; flex-wrap: wrap; }
.admin-tabs button { background: none; border: none; padding: 12px 18px; font-weight: 700; font-size: 14px; color: var(--steel-500); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.admin-tabs button.active { color: var(--steel-900); border-bottom-color: var(--gold); }
.admin-tabs button:hover { color: var(--steel-900); }
.panel { display: none; }
.panel.active { display: block; }
.article-body-input { min-height: 190px; }

@media (max-width: 700px) {
  .post-grid { grid-template-columns: 1fr; }
  .article-head h1 { font-size: 27px; }
  .article-body { font-size: 16px; }
}

/* ---------- 后台面板工具条 ---------- */
.panel-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 26px 0 16px; flex-wrap: wrap; }
.panel-note { font-size: 13px; color: var(--steel-500); }
.panel-note { max-width: 60%; }
@media (max-width: 700px) { .panel-note { max-width: 100%; } }

/* ---------- 细节修正 ---------- */
.btn { white-space: nowrap; }
.header-actions { flex-shrink: 0; }
.header-actions .btn { white-space: nowrap; }

/* ---------- 主导航下拉（All Products → 三大系列） ---------- */
.nav-drop { position: relative; display: flex; align-items: center; height: 68px; }
.nav-drop-toggle::after { content: "▾"; font-size: 10px; margin-left: 5px; opacity: .55; display: inline-block; transform: translateY(-1px); }
.nav-sub { position: absolute; top: 100%; left: 0; min-width: 236px; background: #fff; border: 1px solid var(--steel-100); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 8px; display: flex; flex-direction: column; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s; z-index: 20; }
.nav-drop:hover .nav-sub, .nav-drop:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-sub a { display: block; padding: 10px 12px; border-radius: 7px; font-size: 14px; color: var(--steel-700); }
.nav-sub a:hover { background: var(--steel-100); color: var(--steel-900); }

/* ---------- 公司介绍 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-copy .kicker { color: var(--gold-dark); font-weight: 700; letter-spacing: 3px; font-size: 13px; text-transform: uppercase; }
.about-copy h2 { font-size: 30px; line-height: 1.2; color: var(--steel-900); margin: 6px 0 16px; }
.about-copy p { color: var(--steel-500); font-size: 15px; margin-bottom: 12px; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; padding-top: 22px; border-top: 1px solid #e6ecf2; }
.about-stats b { display: block; font-size: 24px; color: var(--steel-900); letter-spacing: -.5px; }
.about-stats span { font-size: 12px; color: var(--steel-500); line-height: 1.35; display: block; }

/* ---------- 页脚联系方式 ---------- */
.footer .contact-lines { line-height: 1.9; }
.footer .contact-lines a { display: inline; margin: 0; font-size: 14px; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 26px; }
  /* 移动端保留导航：第二行横向滚动；下拉收起，点击 All Products 进入列表页 */
  .header .container { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 8px; }
  .nav { display: flex; order: 10; flex: 0 0 100%; width: 100%; overflow-x: auto; gap: 4px; padding-top: 6px; border-top: 1px solid var(--steel-100); -webkit-overflow-scrolling: touch; }
  .nav-drop { height: auto; }
  .nav-sub { display: none; }
}
@media (max-width: 560px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
  .about-copy h2 { font-size: 24px; }
}

/* ---------- 手机端轮播：图上文下，整幅铺满宽度 ---------- */
@media (max-width: 640px) {
  .carousel { height: 556px; }
  .slide { display: flex; flex-direction: column; background: #0b0f14; }
  .slide-light { background: #f4f3f0; }
  .slide img { width: 100%; height: 296px; object-fit: cover; object-position: 70% center; }
  .slide .shade { display: none; }
  .slide .caption { position: static; max-width: 100%; padding: 18px 20px 30px; justify-content: flex-start; }
  .slide .eyebrow { font-size: 11px; letter-spacing: 2px; margin-bottom: 8px; }
  .slide h2 { font-size: 22px; margin-bottom: 8px; }
  .slide p { font-size: 13.5px; line-height: 1.55; margin-bottom: 16px; }
}

/* ============ About Us 页面 ============ */
.ab-hero { position: relative; height: clamp(360px, 38vw, 540px); overflow: hidden; background: var(--steel-900); }
.ab-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.ab-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,13,19,.92) 0%, rgba(8,13,19,.72) 34%, rgba(8,13,19,.22) 68%, rgba(8,13,19,.08) 100%); }
.ab-hero-inner { position: relative; height: 100%; display: flex; align-items: center; }
.ab-hero-copy { max-width: 640px; color: #fff; }
.ab-kicker { color: var(--gold); font-weight: 700; letter-spacing: 3px; font-size: 13px; text-transform: uppercase; margin-bottom: 14px; }
.ab-hero-copy h2 { font-size: clamp(30px, 3.8vw, 50px); line-height: 1.12; font-weight: 800; margin-bottom: 14px; }
.ab-hero-copy p { color: #dfe7ee; font-size: 17px; margin-bottom: 26px; }
.ab-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-outline-light { border: 1px solid rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

.ab-intro { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: start; }
.ab-intro-side h2 { font-size: 30px; line-height: 1.25; color: var(--steel-900); margin: 6px 0 0; }
.ab-lead { font-size: 17px; line-height: 1.85; color: var(--steel-700); margin: 0; }
.ab-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; padding-top: 24px; border-top: 1px solid #e6ecf2; }
.ab-stat b { display: block; font-size: 26px; color: var(--gold-dark); letter-spacing: -.5px; line-height: 1.2; }
.ab-stat span { display: block; font-size: 12px; color: var(--steel-500); line-height: 1.4; margin-top: 4px; }

.ab-body { max-width: 860px; }
.ab-body p { font-size: 16px; line-height: 1.9; color: var(--steel-700); margin-bottom: 18px; }
.ab-body p:first-child { font-size: 17.5px; color: var(--steel-900); }

.ab-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.ab-gallery-item { position: relative; margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--steel-100); cursor: zoom-in; box-shadow: 0 2px 10px rgba(16,24,32,.08); }
.ab-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.ab-gallery-item:hover img { transform: scale(1.06); }
.ab-gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; color: #fff; font-size: 13px; font-weight: 600; background: linear-gradient(180deg, rgba(8,13,19,0), rgba(8,13,19,.82)); }

.ab-video-frame { position: relative; width: 100%; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; background: #080c11; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 34px rgba(16,24,32,.18); }
.ab-video-frame video, .ab-video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.ab-video-frame video { object-fit: contain; }
.ab-video-cap { text-align: center; color: var(--steel-500); font-size: 14px; margin-top: 16px; }

.ab-cta { background: var(--steel-900); color: #fff; padding: 56px 0; }
.ab-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.ab-cta h2 { font-size: 30px; margin: 6px 0 8px; }
.ab-cta p { color: var(--steel-300); margin: 0; }
.ab-cta .kicker { color: var(--gold); font-weight: 700; letter-spacing: 3px; font-size: 13px; text-transform: uppercase; }
.ab-cta .btn { flex: 0 0 auto; }

.ab-lightbox { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; align-content: center; background: rgba(6,10,14,.94); padding: 24px; }
.ab-lightbox.open { display: grid; }
.ab-lightbox img { max-width: 92vw; max-height: 78vh; object-fit: contain; border-radius: 8px; }
.ab-lb-cap { color: #fff; font-size: 14px; text-align: center; margin-top: 16px; }
.ab-lb-close { position: absolute; top: 20px; right: 24px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: #fff; font-size: 18px; cursor: pointer; }

/* ============ 后台：About Us 编辑 ============ */
.ab-sect { border: 1px solid #e6ecf2; border-radius: 10px; padding: 20px; margin-bottom: 22px; background: #fff; }
.ab-sect h3 { font-size: 17px; color: var(--steel-900); margin-bottom: 4px; }
.ab-sect .ab-desc { font-size: 13px; color: var(--steel-500); margin-bottom: 18px; }
.ab-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.ab-admin-grid .span2 { grid-column: span 2; }
.ab-admin-grid .field { margin-bottom: 14px; }
.ab-hint { font-size: 12px; color: var(--steel-500); margin-top: -6px; margin-bottom: 12px; }
.ab-msg { display: none; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.ab-msg.ok { display: block; background: #e9f6ee; color: #1c6b3c; }
.ab-msg.err { display: block; background: #fdeaea; color: #a32626; }
.ab-img-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.ab-img-card { border: 1px solid #e6ecf2; border-radius: 10px; overflow: hidden; background: #fff; }
.ab-img-card > img { width: 100%; height: 124px; object-fit: cover; display: block; background: var(--steel-100); }
.ab-img-body { padding: 10px; }
.ab-img-body input { width: 100%; font-size: 12px; padding: 6px 8px; margin-bottom: 6px; border: 1px solid #dbe3ea; border-radius: 6px; }
.ab-img-ops { display: flex; gap: 6px; }
.ab-img-ops button { flex: 1; font-size: 12px; padding: 5px 4px; border-radius: 6px; border: 1px solid #dbe3ea; background: #fff; color: var(--steel-700); cursor: pointer; }
.ab-img-ops button:hover { background: var(--steel-100); }
.ab-img-ops button.danger { color: #a32626; }
.ab-video-preview { margin-top: 12px; max-width: 420px; aspect-ratio: 16 / 9; background: #080c11; border-radius: 8px; overflow: hidden; }
.ab-video-preview video, .ab-video-preview iframe { width: 100%; height: 100%; border: 0; display: block; }
.ab-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.ab-toolbar .ab-note { font-size: 13px; color: var(--steel-500); }
.ab-save-bar { display: flex; align-items: center; gap: 14px; margin: 8px 0 24px; }

@media (max-width: 900px) {
  .ab-intro { grid-template-columns: 1fr; gap: 20px; }
  .ab-stats { grid-template-columns: repeat(2, 1fr); }
  .ab-cta-inner { flex-direction: column; align-items: flex-start; }
  .ab-admin-grid { grid-template-columns: 1fr; }
  .ab-admin-grid .span2 { grid-column: span 1; }
}
@media (max-width: 560px) {
  .ab-hero { height: 420px; }
  .ab-hero-copy h2 { font-size: 28px; }
  .ab-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ab-cta h2 { font-size: 24px; }
}

/* 导航项增加到 6 个后，窄屏改为换行显示，保证每个栏目都看得到 */
@media (max-width: 900px) {
  .nav { flex-wrap: wrap; overflow-x: visible; row-gap: 2px; padding-top: 8px; }
  .nav a { padding: 6px 10px; font-size: 14px; }
}
