/* ==========================================================================
   冠亚达电子 GuanYada Electronics — 全站样式
   设计语言：深绿暗色系 · 绿色主强调 · 橙色行动色 · 浅色穿插段
   ========================================================================== */

:root {
  --bg: #0a120c;
  --bg-2: #0d1a10;
  --bg-3: #102015;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --green: #4ade80;
  --green-bright: #57f287;
  --green-deep: #16a34a;
  --green-dim: rgba(74, 222, 128, 0.14);
  --orange: #f79e36;
  --orange-deep: #ea8a1a;
  --text: #eef4ee;
  --muted: #93a39a;
  --faint: #6d7d74;
  --light-bg: #f1f2ef;
  --light-text: #171d18;
  --radius: 14px;
  --radius-sm: 9px;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
  --sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; }
::selection { background: rgba(74, 222, 128, 0.35); }

.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }

/* ============ 顶部公告条 ============ */
.topbar {
  background: #060a07;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 34px;
}
.topbar a:hover { color: var(--green); }

/* ============ 头部导航 ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9, 16, 11, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img {
  width: 46px; height: 46px; border-radius: 12px; padding: 4px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2);
}
.brand-text {
  display: flex; flex-direction: column; gap: 3px;
  border-left: 1px solid var(--line-2); padding-left: 12px;
}
.site-header .brand-name { white-space: nowrap; }
.brand-name { font-size: 16px; font-weight: 800; letter-spacing: 0.5px; line-height: 1.25; }
.brand-en {
  font-family: var(--mono); font-size: 10.5px; color: var(--green);
  letter-spacing: 1.5px; text-transform: uppercase;
}

.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; color: #cdd8cf;
  transition: 0.2s;
}
.main-nav a:hover { color: #fff; background: var(--panel-2); }
.main-nav a.active { color: var(--green-bright); font-weight: 600; }

/* 导航下拉菜单 */
.nav-item { position: relative; display: inline-block; }
.nav-item > a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 8px; font-size: 15px; color: #cdd8cf;
  transition: 0.2s; cursor: pointer;
}
.nav-item > a:hover { color: #fff; background: var(--panel-2); }
.nav-item > a.active { color: var(--green-bright); font-weight: 600; }
.nav-item > a .caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; transition: transform 0.2s; }
.nav-item:hover > a .caret { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: 100%; left: 6px; min-width: 180px; z-index: 300;
  background: #0d1a10; border: 1px solid var(--line-2); border-radius: 12px;
  padding: 8px; box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: 0.18s;
}
.nav-item:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block; padding: 9px 12px; border-radius: 8px;
  font-size: 13.5px; color: #c3cfc6; white-space: nowrap; transition: 0.15s;
}
.dropdown-menu a:hover { background: rgba(74,222,128,0.12); color: var(--green-bright); }

.header-search {
  flex: 1; max-width: 380px; margin-left: auto;
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2); border-radius: 10px;
  padding: 3px 4px 3px 14px; gap: 8px;
}
.header-search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 13px; min-width: 0;
}
.header-search input::placeholder { color: var(--faint); }
.header-search .btn-qs { padding: 7px 18px; border-radius: 7px; font-size: 13px; }

.btn-qs {
  background: var(--green-bright); color: #06210f; font-weight: 700;
  transition: 0.2s;
}
.btn-qs:hover { background: #79ffa3; }

.btn-inquiry {
  background: linear-gradient(135deg, #fbaf49, var(--orange));
  color: #2b1703; font-weight: 700; font-size: 14px;
  padding: 10px 22px; border-radius: 10px; flex-shrink: 0;
  transition: 0.2s; box-shadow: 0 4px 18px rgba(247, 158, 54, 0.25);
}
.btn-inquiry:hover { filter: brightness(1.08); transform: translateY(-1px); }

.menu-toggle { display: none; font-size: 24px; padding: 6px 10px; color: var(--text); }

/* ============ 页面 Hero（内页头部） ============ */
.page-hero {
  background:
    radial-gradient(900px 380px at 15% 0%, rgba(74, 222, 128, 0.10), transparent 60%),
    linear-gradient(180deg, #0c1810 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: 34px 0 40px;
}
.breadcrumb { font-size: 13px; color: var(--faint); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { margin: 0 8px; color: var(--faint); opacity: 0.6; }
.page-hero h1 { font-size: 34px; font-weight: 800; letter-spacing: 1px; margin-bottom: 10px; }
.page-hero .sub { color: var(--muted); font-size: 14px; }

/* ============ 区块通用 ============ */
.section { padding: 78px 0; }
.section-tag {
  font-family: var(--mono); font-size: 12px; letter-spacing: 2px;
  color: var(--green); display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px; text-transform: uppercase;
}
.section-tag .dash { width: 36px; height: 1px; background: rgba(74, 222, 128, 0.5); }
h2.sec-title { font-size: 32px; font-weight: 800; letter-spacing: 1px; margin-bottom: 12px; }
.sec-sub { color: var(--muted); font-size: 14px; margin-bottom: 44px; }

/* ============ 首页 Hero ============ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 560px at 78% 30%, rgba(22, 90, 48, 0.55), transparent 65%),
    radial-gradient(700px 400px at 10% 90%, rgba(74, 222, 128, 0.07), transparent 60%),
    linear-gradient(160deg, #0c1a10 0%, #081009 60%, #070d08 100%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px;
  padding: 88px 0 72px; align-items: start;
}
.hero-copy .eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 2.5px;
  color: var(--green); margin-bottom: 26px; display: flex; gap: 14px; align-items: center;
}
.hero-copy .eyebrow .dash { width: 34px; height: 1px; background: rgba(74, 222, 128, 0.5); }
.hero-copy h1 {
  font-size: 46px; font-weight: 900; line-height: 1.28; letter-spacing: 1px;
  margin-bottom: 24px;
}
.hero-copy .lede { color: var(--muted); font-size: 15px; max-width: 560px; margin-bottom: 34px; }

.hero-search {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2); border-radius: 12px;
  padding: 6px 6px 6px 16px; max-width: 520px;
}
.hero-search input {
  flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 14px;
}
.hero-search .btn-qs { padding: 10px 28px; border-radius: 9px; font-size: 14px; }
.hot-words { margin: 14px 2px 30px; font-size: 12px; color: var(--faint); font-family: var(--mono); }
.hot-words a { color: var(--muted); margin-right: 10px; }
.hot-words a:hover { color: var(--green); }

.hero-cta { display: flex; gap: 14px; margin-bottom: 26px; }
.btn-primary {
  background: var(--green-bright); color: #06210f; font-weight: 700; font-size: 15px;
  padding: 13px 30px; border-radius: 11px; transition: 0.2s;
  box-shadow: 0 6px 24px rgba(87, 242, 135, 0.22);
}
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--line-2); color: var(--text); font-weight: 600;
  padding: 13px 28px; border-radius: 11px; font-size: 15px; transition: 0.2s;
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green-bright); }
.hero-trust { font-size: 12px; color: var(--faint); display: flex; gap: 18px; }
.hero-trust span + span::before { content: "|"; margin-right: 18px; opacity: 0.4; }

.hero-side .hero-img {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-2); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.hero-side .hero-img img { width: 100%; height: 232px; object-fit: cover; }
.hero-metrics { margin-top: 34px; }
.hero-metrics .row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.hero-metrics .row:first-child { border-top: 1px solid var(--line); }
.hero-metrics b { font-size: 21px; font-weight: 800; color: var(--text); letter-spacing: 0.5px; }
.hero-metrics b.green { color: var(--green-bright); }

/* ============ 数据带（圆角面板，不贴边） ============ */
.stats-band { padding: 44px 0 18px; }
.stats-band .grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.stat { padding: 34px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat b { display: block; font-size: 32px; font-weight: 800; letter-spacing: 1px; margin-bottom: 4px; }
.stat b.green { color: var(--green-bright); }
.stat span { font-size: 13px; color: var(--muted); }

/* ============ 品类八宫格 ============ */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px; }
.cat-card {
  background: var(--bg-2); padding: 30px 26px 26px; min-height: 172px;
  transition: 0.25s; position: relative; display: flex; flex-direction: column;
}
.cat-card:hover { background: #122417; }
.cat-card .no { font-family: var(--mono); font-size: 12px; color: var(--green); opacity: 0.85; margin-bottom: 18px; }
.cat-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.cat-card p { font-size: 12px; color: var(--faint); margin-top: auto; }
.cat-card .arrow {
  position: absolute; top: 24px; right: 22px; color: var(--faint); font-size: 16px;
  opacity: 0; transition: 0.25s;
}
.cat-card:hover .arrow { opacity: 1; color: var(--green); transform: translateX(3px); }

/* ============ 四大核心优势 ============ */
.why-list { border-top: 1px solid var(--line); }
.why-row {
  display: grid; grid-template-columns: 70px 300px 1fr 40px; gap: 24px; align-items: center;
  padding: 30px 6px; border-bottom: 1px solid var(--line); transition: 0.25s;
}
.why-row:hover { background: rgba(255, 255, 255, 0.02); padding-left: 16px; }
.why-row .no { font-family: var(--mono); font-size: 13px; color: var(--green); }
.why-row h3 { font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.why-row p { color: var(--muted); font-size: 14px; }
.why-row .arrow { color: var(--faint); text-align: right; font-size: 18px; transition: 0.25s; }
.why-row:hover .arrow { color: var(--green); transform: translateX(4px); }

/* ============ 公司实力（浅色段） ============ */
.light-section { background: var(--light-bg); color: var(--light-text); }
.light-section .section-tag { color: #1c9d4e; }
.light-section .section-tag .dash { background: rgba(28, 157, 78, 0.5); }
.light-section .sec-sub { color: #5b655d; }
.strength-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.strength-grid .photo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 50px rgba(20, 30, 22, 0.18); }
.strength-grid .photo img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.strength-grid .intro { font-size: 14px; color: #3d453f; margin-bottom: 34px; }
.fact-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 4px; border-bottom: 1px solid #dfe2dc; font-size: 14px; color: #5b655d;
}
.fact-row:first-child { border-top: 1px solid #dfe2dc; }
.fact-row b { font-size: 16px; font-weight: 800; color: var(--light-text); letter-spacing: 0.5px; text-align: right; }

/* ============ BOM 报价段 ============ */
.bom-section { background: #060b07; }
.bom-card {
  border: 1px solid var(--line); border-radius: 18px; background:
    radial-gradient(700px 320px at 12% 0%, rgba(74, 222, 128, 0.06), transparent 60%),
    var(--bg-2);
  padding: 58px 60px; display: grid; grid-template-columns: 1fr 400px; gap: 70px;
}
.bom-left h2 { font-size: 30px; font-weight: 800; letter-spacing: 1px; margin-bottom: 14px; }
.bom-left .lede { color: var(--muted); font-size: 14px; margin-bottom: 34px; }
.bom-step { display: flex; gap: 18px; align-items: baseline; padding: 12px 0; font-size: 14px; }
.bom-step .no { font-family: var(--mono); color: var(--green); font-size: 12px; }
.bom-contact {
  margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line);
  color: var(--faint); font-size: 13px;
}
.bom-contact b { color: var(--text); font-size: 20px; letter-spacing: 1px; margin: 0 6px; }
.bom-form { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.bom-form label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 7px 2px; }
.bom-form label i { color: var(--orange); font-style: normal; }
.bom-form .field { margin-bottom: 18px; }
.bom-form input, .bom-form textarea, .bom-form select {
  width: 100%; background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2); border-radius: 9px;
  color: var(--text); padding: 11px 14px; outline: none; transition: 0.2s;
}
.bom-form input:focus, .bom-form textarea:focus { border-color: rgba(74, 222, 128, 0.6); background: rgba(255, 255, 255, 0.07); }
.bom-form textarea { min-height: 96px; resize: vertical; }
.upload-box {
  width: 100%; border: 1px dashed var(--line-2); border-radius: 9px;
  padding: 12px; text-align: center; font-size: 13px; color: var(--green);
  background: rgba(74, 222, 128, 0.05); transition: 0.2s; margin-bottom: 16px; display: block;
}
.upload-box:hover { background: rgba(74, 222, 128, 0.12); }
.form-note { text-align: center; font-size: 12px; color: var(--faint); margin-top: 12px; }
.btn-block { width: 100%; padding: 13px; font-size: 15px; border-radius: 10px; }

/* ============ 页脚 ============ */
.site-footer { background: #070c08; border-top: 1px solid var(--line); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.9fr 1.1fr; gap: 48px; padding-bottom: 48px; }
.footer-grid h4 { font-size: 15px; font-weight: 700; margin-bottom: 20px; letter-spacing: 1px; }
.footer-grid .f-brand-en { font-family: var(--mono); font-size: 12px; color: var(--green); margin: 6px 0 14px; }
.footer-grid .f-desc { font-size: 13px; color: var(--muted); margin-bottom: 20px; max-width: 320px; }
.footer-grid .f-tel { font-size: 26px; font-weight: 800; letter-spacing: 1px; margin-bottom: 8px; }
.footer-grid .f-hours { font-size: 12px; color: var(--faint); }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.footer-grid li a:hover { color: var(--green); }
.footer-grid .f-label { color: var(--faint); margin-right: 8px; }
.copyright-bar { border-top: 1px solid var(--line); padding: 20px 0; }
.copyright-bar .inner { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); }

/* ============ 产品列表页 ============ */
.catalog-layout { display: grid; grid-template-columns: 262px 1fr; gap: 34px; padding: 44px 0 70px; }
.filter-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; margin-bottom: 22px; }
.filter-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.cat-tree { list-style: none; }
.cat-tree > li { margin-bottom: 4px; }
.cat-tree a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; border-radius: 8px; font-size: 13.5px; color: #c3cfc6; transition: 0.15s;
}
.cat-tree a:hover { background: var(--panel-2); color: #fff; }
.cat-tree a.active { background: rgba(74, 222, 128, 0.13); color: var(--green-bright); font-weight: 600; }
.cat-tree a .cnt { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.cat-tree a.active .cnt { color: var(--green); }
.cat-tree .sub { list-style: none; margin: 4px 0 8px; }
.cat-tree .sub a { font-size: 12.5px; color: var(--muted); padding: 6px 12px 6px 24px; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 7px 2px; font-size: 13px; color: #c3cfc6; cursor: pointer; }
.check-row input { accent-color: var(--green-bright); width: 15px; height: 15px; cursor: pointer; }
.check-row .cnt { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }

.toolbar {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 18px; margin-bottom: 20px;
}
.toolbar .total { font-size: 13px; color: var(--muted); }
.toolbar .total b { color: var(--text); }
.sort-group { display: flex; gap: 8px; }
.sort-btn { font-size: 12.5px; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); transition: 0.15s; }
.sort-btn:hover { color: var(--text); }
.sort-btn.active { background: rgba(74, 222, 128, 0.14); color: var(--green-bright); border-color: rgba(74, 222, 128, 0.4); font-weight: 600; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: 0.25s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(74, 222, 128, 0.35); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4); }
.product-card .thumb { aspect-ratio: 4 / 3; background: #142419; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .thumb .ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #16281b, #0e1a12); color: var(--faint); font-size: 13px; letter-spacing: 2px;
}
.product-card .body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.product-card .model { font-family: var(--mono); font-size: 14.5px; font-weight: 600; margin-bottom: 6px; letter-spacing: 0.3px; }
.product-card .meta { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.product-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.stock-tag { font-size: 11.5px; padding: 4px 9px; border-radius: 6px; font-weight: 600; }
.stock-tag.in { color: var(--green-bright); background: rgba(74, 222, 128, 0.12); }
.stock-tag.future { color: var(--orange); background: rgba(247, 158, 54, 0.12); }
.btn-quote-sm {
  background: linear-gradient(135deg, #fbaf49, var(--orange)); color: #2b1703;
  font-size: 12.5px; font-weight: 700; padding: 7px 18px; border-radius: 8px; transition: 0.2s;
}
.btn-quote-sm:hover { filter: brightness(1.08); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 34px; flex-wrap: wrap; }
.page-btn {
  min-width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center; font-size: 13.5px; color: var(--muted);
  transition: 0.15s; padding: 0 6px;
}
.page-btn:hover { color: var(--text); border-color: var(--green); }
.page-btn.active { background: var(--green-bright); color: #06210f; font-weight: 700; border-color: var(--green-bright); }
.page-btn.ellipsis { border: none; }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.page-btn:disabled:hover { color: var(--muted); border-color: var(--line-2); }

/* ============ 产品详情页 ============ */
.detail-layout { display: grid; grid-template-columns: 460px 1fr; gap: 52px; padding: 44px 0 30px; }
.gallery .main-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); background: #142419; }
.gallery .main-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.thumb-row { display: flex; gap: 12px; margin-top: 14px; }
.thumb-row button {
  width: 72px; height: 72px; border-radius: 10px; overflow: hidden;
  border: 2px solid var(--line); opacity: 0.65; transition: 0.2s; padding: 0; background: #142419;
}
.thumb-row button img { width: 100%; height: 100%; object-fit: cover; }
.thumb-row button.active, .thumb-row button:hover { border-color: var(--green-bright); opacity: 1; }

.badge-row { display: flex; gap: 10px; margin-bottom: 16px; }
.badge { font-size: 12px; padding: 5px 12px; border-radius: 7px; font-weight: 600; }
.badge.brand { color: var(--green-bright); background: rgba(74, 222, 128, 0.12); }
.badge.origin { color: var(--orange); background: rgba(247, 158, 54, 0.13); }
.detail-info h1 { font-size: 34px; font-weight: 800; letter-spacing: 1px; margin-bottom: 12px; font-family: var(--mono); }
.detail-info .desc { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.kv-strip { display: grid; grid-template-columns: repeat(4, auto); gap: 40px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.kv-strip .k { font-size: 12px; color: var(--faint); margin-bottom: 5px; }
.kv-strip .v { font-size: 15px; font-weight: 700; }
.kv-strip .v.green { color: var(--green-bright); }
.price-tiers {
  display: flex; gap: 44px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 26px; margin-bottom: 26px;
}
.price-tiers .tier .q { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-bottom: 4px; }
.price-tiers .tier .p { font-size: 16px; font-weight: 700; color: var(--muted); }
.price-tiers .tier .p.big { color: var(--green-bright); }
.price-tiers .note { margin-left: auto; font-size: 12px; color: var(--faint); max-width: 180px; }
.detail-cta { display: flex; gap: 14px; margin-bottom: 22px; }
.btn-orange {
  background: linear-gradient(135deg, #fbaf49, var(--orange)); color: #2b1703;
  font-weight: 700; font-size: 15px; padding: 13px 40px; border-radius: 11px; transition: 0.2s;
  box-shadow: 0 6px 22px rgba(247, 158, 54, 0.25);
}
.btn-orange:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-outline-green {
  border: 1px solid rgba(74, 222, 128, 0.5); color: var(--green-bright); font-weight: 600;
  padding: 13px 28px; border-radius: 11px; font-size: 15px; transition: 0.2s;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-outline-green:hover { background: rgba(74, 222, 128, 0.1); }
.promise-line { font-size: 12.5px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 8px; }
.promise-line span + span::before { content: "·"; margin-right: 8px; opacity: 0.6; }

.stock-table-wrap { margin: 26px 0 60px; }
.stock-table-wrap .cap { font-size: 13px; color: var(--green); margin-bottom: 12px; font-family: var(--mono); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data-table { width: 100%; border-collapse: collapse; min-width: 860px; }
.data-table thead th {
  background: #12251a; text-align: left; font-size: 12.5px; color: #9db3a4; font-weight: 600;
  padding: 13px 18px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.data-table tbody td { padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: #cdd8cf; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.data-table .mono { font-family: var(--mono); }
.data-table .green { color: var(--green-bright); font-weight: 600; }
.data-table .orange { color: var(--orange); font-weight: 600; }

.related-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.related-head h2 { font-size: 24px; font-weight: 800; letter-spacing: 1px; }
.related-head a { font-size: 13px; color: var(--green); }
.related-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; padding-bottom: 70px; }
.related-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: 0.25s; }
.related-card:hover { border-color: rgba(74, 222, 128, 0.4); transform: translateY(-3px); }
.related-card .t { aspect-ratio: 4/3; background: linear-gradient(160deg, #16281b, #0e1a12); overflow: hidden; }
.related-card .t img { width: 100%; height: 100%; object-fit: cover; }
.related-card .b { padding: 12px 13px; }
.related-card .m { font-family: var(--mono); font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.related-card .s { font-size: 11.5px; color: var(--faint); }

/* ============ 关于我们 ============ */
.about-intro { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: start; }
.about-intro h2 { font-size: 26px; font-weight: 800; margin-bottom: 22px; letter-spacing: 1px; }
.about-intro p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.about-intro .photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); }
.about-intro .photo img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 54px 0 60px; }
.about-stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.about-stat b { display: block; font-size: 30px; font-weight: 800; color: var(--green-bright); margin-bottom: 4px; letter-spacing: 0.5px; }
.about-stat span { font-size: 13px; color: var(--muted); }

.timeline h2 { font-size: 26px; font-weight: 800; margin-bottom: 28px; letter-spacing: 1px; }
.timeline-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.timeline-item { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.timeline-item .yr { font-family: var(--mono); font-size: 19px; font-weight: 700; color: var(--green-bright); margin-bottom: 10px; }
.timeline-item p { font-size: 12.5px; color: var(--muted); }

.about-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 60px 0 70px; }
.contact-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 34px 30px; }
.contact-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 22px; }
.contact-line { display: flex; gap: 14px; padding: 10px 0; font-size: 14px; color: var(--muted); }
.contact-line .k { color: var(--faint); flex-shrink: 0; }
.contact-line b { color: var(--text); font-weight: 600; }
.map-placeholder {
  margin-top: 22px; height: 150px; border-radius: 10px; background: #0a150e;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--faint); font-size: 12.5px;
}
.msg-form label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 7px 2px; }
.msg-form .field { margin-bottom: 16px; }
.msg-form input, .msg-form textarea {
  width: 100%; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2);
  border-radius: 9px; color: var(--text); padding: 11px 14px; outline: none; transition: 0.2s;
}
.msg-form input:focus, .msg-form textarea:focus { border-color: rgba(74, 222, 128, 0.6); }
.msg-form textarea { min-height: 110px; resize: vertical; }

/* ============ 文章 / 资讯页 ============ */
.article-count { font-size: 13px; color: var(--faint); margin-bottom: 16px; }
.article-count b { color: var(--green-bright); font-weight: 700; }
.article-list { display: grid; gap: 18px; }
.article-item {
  display: block; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px; transition: 0.2s;
}
.article-item:hover { border-color: rgba(74, 222, 128, 0.4); transform: translateY(-2px); }
.article-item .d { font-family: var(--mono); font-size: 12px; color: var(--green); margin-bottom: 10px; }
.article-item h3 { font-size: 19px; font-weight: 700; line-height: 1.5; margin-bottom: 10px; }
.article-item p { font-size: 13.5px; color: var(--muted); line-height: 1.8; margin-bottom: 12px; }
.article-item .more { font-size: 13px; color: var(--green-bright); }
.article-item .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.article-item .tags span { font-size: 11.5px; color: var(--faint); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 11px; }

.article-body { max-width: 840px; }
.article-body h1 { font-size: 27px; font-weight: 800; line-height: 1.5; letter-spacing: 0.5px; margin-bottom: 16px; }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--faint); padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.article-meta .src { color: var(--green); }
.article-body h2 { font-size: 19px; font-weight: 700; margin: 34px 0 14px; padding-left: 12px; border-left: 3px solid var(--green); }
.article-body h3 { font-size: 16px; font-weight: 700; margin: 22px 0 10px; color: var(--green-bright); }
.article-body p { font-size: 14.5px; line-height: 2; color: #c6d2c9; margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; }
.article-body li { font-size: 14.5px; line-height: 2; color: #c6d2c9; }
.article-body li b, .article-body p b { color: var(--text); }
.article-body .callout {
  background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--green);
  border-radius: 10px; padding: 18px 22px; margin: 22px 0;
}
.article-body .callout p { margin-bottom: 0; font-size: 14px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 13.5px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.article-body th { background: rgba(255, 255, 255, 0.03); color: var(--muted); font-weight: 600; }
.article-body td { color: #c6d2c9; }
.article-foot-cta {
  margin-top: 40px; padding: 24px 26px; border: 1px solid var(--line-2);
  border-radius: var(--radius); background: var(--bg-2); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.article-foot-cta p { font-size: 14px; color: var(--muted); margin: 0; }
.article-nav { margin-top: 30px; font-size: 13px; color: var(--faint); }

/* ============ 登录页 ============ */
/* 背景铺满整屏，内容壳居中收窄，左右两栏靠近 */
.login-body {
  background:
    radial-gradient(900px 620px at 17% 80%, rgba(22, 90, 48, 0.42), transparent 62%),
    linear-gradient(160deg, #0c1a10, #070d08);
}
.login-page {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  max-width: 1140px; margin: 0 auto; position: relative;
}
/* 中间竖向分隔线 */
.login-page::after {
  content: ""; position: absolute; left: 50%; top: 10%; bottom: 10%; width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-2), transparent);
}
.login-left {
  padding: 32px 48px; display: flex; flex-direction: column;
}
.login-left .brand img { width: 52px; height: 52px; }
.login-left .hero-block { margin-top: auto; margin-bottom: auto; padding: 24px 0; }
.login-left h1 { font-size: 34px; font-weight: 900; line-height: 1.35; letter-spacing: 2px; margin-bottom: 14px; }
.login-left .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 24px; }
.login-left .points { list-style: none; margin-bottom: 22px; }
.login-left .points li { color: #b9c7bd; font-size: 13.5px; padding: 6px 0; display: flex; gap: 12px; }
.login-left .points li::before { content: "•"; color: var(--green); }
.login-left .foot { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.login-right { display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-card {
  width: min(420px, 100%); background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-2); border-radius: 16px; padding: 34px 38px;
}
.login-card h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.login-card .sub { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.login-card .field { margin-bottom: 16px; }
.login-card label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.login-card input {
  width: 100%; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2);
  border-radius: 9px; color: var(--text); padding: 11px 14px; outline: none; transition: 0.2s;
}
.login-card input:focus { border-color: rgba(74, 222, 128, 0.6); }
.login-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.login-row label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.login-row input { accent-color: var(--green-bright); }
.login-row a { color: var(--green); }
.login-card .btn-block { margin-bottom: 16px; }
.login-card .note { text-align: center; font-size: 12px; color: var(--faint); }

/* ============ 管理后台 ============ */
.admin-body { display: grid; grid-template-columns: 224px 1fr; min-height: 100vh; background: var(--bg); }
.admin-side {
  background: linear-gradient(180deg, #0c1810, #080f0a); border-right: 1px solid var(--line);
  padding: 22px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.admin-side .brand { padding: 0 8px 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.admin-side .brand img { width: 38px; height: 38px; }
.admin-side .brand-name { font-size: 14.5px; }
.admin-side .brand-en { font-size: 10px; }
.admin-side .menu-label { font-size: 11px; color: var(--faint); padding: 0 10px; margin-bottom: 10px; letter-spacing: 1px; }
.admin-nav { list-style: none; flex: 1; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px;
  font-size: 13.5px; color: #aebbad; margin-bottom: 3px; transition: 0.15s;
}
.admin-nav a:hover { background: var(--panel-2); color: #fff; }
.admin-nav a.active { background: rgba(74, 222, 128, 0.14); color: var(--green-bright); font-weight: 600; }
.admin-logout {
  border: 1px solid var(--line-2); border-radius: 9px; padding: 10px; font-size: 13px;
  color: var(--muted); text-align: center; transition: 0.2s;
}
.admin-logout:hover { color: #ff8f8f; border-color: rgba(255, 120, 120, 0.4); }

.admin-main { display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 64px; border-bottom: 1px solid var(--line);
  background: rgba(10, 18, 12, 0.85); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px);
}
.admin-topbar .title { font-size: 15.5px; font-weight: 700; }
.admin-topbar .crumb { font-size: 12px; color: var(--faint); }
.admin-topbar .right { display: flex; align-items: center; gap: 18px; }
.admin-search {
  display: flex; align-items: center; gap: 8px; background: var(--panel);
  border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 14px; width: 250px;
}
.admin-search input { background: none; border: none; outline: none; color: var(--text); font-size: 13px; width: 100%; }
.admin-user { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--green-bright); color: #06210f;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
}
.admin-content { padding: 26px 28px 40px; flex: 1; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.admin-stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.admin-stat .k { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.admin-stat .v { font-size: 28px; font-weight: 800; letter-spacing: 0.5px; }
.admin-stat .v.orange { color: var(--orange); }
.admin-stat .v.green { color: var(--green-bright); }
.admin-stat .v.dim { color: #7f8f85; }

.panel-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-head h3 { font-size: 15.5px; font-weight: 700; }
.panel-actions { display: flex; gap: 10px; }
.btn-sm { font-size: 12.5px; padding: 8px 16px; border-radius: 8px; font-weight: 600; transition: 0.2s; }
.btn-sm.primary { background: var(--green-bright); color: #06210f; font-weight: 700; }
.btn-sm.primary:hover { filter: brightness(1.08); }
.btn-sm.outline { border: 1px solid var(--line-2); color: var(--muted); }
.btn-sm.outline:hover { color: var(--text); border-color: var(--green); }
.panel-filters { display: flex; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-filters input[type="text"] {
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px;
  color: var(--text); padding: 8px 13px; font-size: 12.5px; outline: none; width: 200px;
}
.panel-filters select {
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px;
  color: var(--muted); padding: 8px 13px; font-size: 12.5px; outline: none; cursor: pointer;
}
.panel-filters select:focus { color: var(--text); }
.data-table.compact th, .data-table.compact td { padding: 11px 16px; }
.status-badge {
  font-size: 11px; font-weight: 700; color: var(--green-bright);
  background: rgba(74, 222, 128, 0.12); border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 2.5px 8px; border-radius: 6px; margin-right: 8px; white-space: nowrap;
}
.data-table .link-edit { color: var(--green); font-size: 12.5px; }
.data-table .link-edit:hover { text-decoration: underline; }
.data-table input[type="checkbox"] { accent-color: var(--green-bright); cursor: pointer; }
.panel-foot { display: flex; justify-content: space-between; align-items: center; padding: 15px 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }
.pagination.mini .page-btn { min-width: 32px; height: 32px; font-size: 12.5px; }

/* ---- 后台：状态标签 ---- */
.tag { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 6px; white-space: nowrap; display: inline-block; }
.tag.on { color: var(--green-bright); background: rgba(74, 222, 128, 0.12); border: 1px solid rgba(74, 222, 128, 0.3); }
.tag.off { color: #9aa8a0; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2); }
.tag.wait { color: var(--orange); background: rgba(247, 158, 54, 0.13); border: 1px solid rgba(247, 158, 54, 0.32); }
.tag.info { color: #8fd0ff; background: rgba(90, 170, 255, 0.12); border: 1px solid rgba(90, 170, 255, 0.3); }

/* ---- 后台：表格内产品单元格 ---- */
.cell-prod { display: flex; align-items: center; gap: 10px; }
.cell-prod img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.cell-prod .n { font-size: 13px; color: var(--text); line-height: 1.4; }
.cell-prod .s { font-size: 11.5px; color: var(--faint); }
.row-actions { display: flex; gap: 12px; white-space: nowrap; }

/* ---- 后台：面板内容区 ---- */
.panel-body { padding: 20px 22px; }

/* ---- 后台：表单 ---- */
.admin-form { display: grid; gap: 18px; }
.admin-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-form label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; }
.admin-form input, .admin-form select, .admin-form textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--line-2); border-radius: 9px;
  color: var(--text); padding: 10px 13px; font-size: 13px; outline: none; transition: 0.2s;
}
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: rgba(74, 222, 128, 0.6); }
.admin-form textarea { min-height: 84px; resize: vertical; }
.admin-form .hint { font-size: 11.5px; color: var(--faint); margin-top: 6px; }
.admin-form .form-actions { display: flex; gap: 12px; padding-top: 4px; }

/* 后台：图片上传预览框 */
.img-upload .img-preview {
  width: 96px; height: 96px; margin-top: 8px;
  border: 1px dashed var(--line-2); border-radius: 10px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel); color: var(--faint);
}
.img-upload .img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-upload .img-preview .ph { font-size: 11px; color: var(--faint); text-align: center; padding: 4px; }

/* ---- 后台：开关 ---- */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.switch-row:last-child { border-bottom: none; padding-bottom: 0; }
.switch-row .t { font-size: 13.5px; color: var(--text); margin-bottom: 4px; }
.switch-row .d { font-size: 12px; color: var(--faint); line-height: 1.55; }
.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.12); border: 1px solid var(--line-2); transition: 0.2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #93a39a; transition: 0.2s; }
.switch input:checked + span { background: rgba(74, 222, 128, 0.28); border-color: rgba(74, 222, 128, 0.5); }
.switch input:checked + span::after { transform: translateX(20px); background: var(--green-bright); }

/* ---- 后台：信息列表（账号 / 备份） ---- */
.info-list { display: grid; gap: 12px; }
.info-list .it { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; }
.info-list .it .k { color: var(--faint); }
.info-list .it .v { color: var(--text); font-weight: 600; }

/* ---- 后台：设置页双列 ---- */
.settings-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.settings-col { display: grid; gap: 20px; }

/* ---- 后台：仪表盘 KPI 卡 ---- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; transition: 0.2s; }
a.kpi-card:hover { border-color: rgba(74, 222, 128, 0.42); transform: translateY(-2px); }
.kpi-card .top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.kpi-card .ico {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  background: rgba(74, 222, 128, 0.12); color: var(--green-bright);
}
.kpi-card .ico.orange { background: rgba(247, 158, 54, 0.13); color: var(--orange); }
.kpi-card .ico.dim { background: rgba(255, 255, 255, 0.06); color: #9aa8a0; }
.kpi-card .k { font-size: 12.5px; color: var(--muted); }
.kpi-card .v { font-size: 30px; font-weight: 800; letter-spacing: 0.5px; line-height: 1.15; margin-bottom: 12px; }
.kpi-card .v small { font-size: 13px; font-weight: 600; color: var(--faint); margin-left: 5px; letter-spacing: 0; }
.kpi-card .v.green { color: var(--green-bright); }
.kpi-card .v.orange { color: var(--orange); }
.kpi-card .f { font-size: 12px; color: var(--faint); border-top: 1px solid var(--line); padding-top: 11px; }
.kpi-card .f b { color: var(--green-bright); font-weight: 600; }
.kpi-card .f span { margin-right: 10px; }

/* ---- 后台：仪表盘分栏 ---- */
.dash-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; align-items: start; }
.dash-col { display: grid; gap: 20px; }

/* ---- 后台：待办列表 ---- */
.todo-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.todo-item:last-child { border-bottom: none; padding-bottom: 0; }
.todo-item .n { font-size: 13px; color: var(--text); }
.todo-item .d { font-size: 11.5px; color: var(--faint); margin-top: 3px; }

/* ---- 后台：快捷入口 ---- */
.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.quick-links a {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line-2); font-size: 13px; color: var(--muted); transition: 0.2s;
}
.quick-links a:hover { border-color: var(--green); color: var(--green-bright); }

/* ---- 后台：流程步骤条 ---- */
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 20px 22px; }
.flow-step { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.flow-step .i { font-family: var(--mono); font-size: 11px; color: var(--green); margin-bottom: 8px; }
.flow-step .t { font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.flow-step .d { font-size: 11.5px; color: var(--faint); line-height: 1.6; }

/* ============ 移动端底部标签栏 ============ */
.mobile-tabbar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: rgba(8, 14, 9, 0.96); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-2);
  grid-template-columns: repeat(4, 1fr); padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}
.mobile-tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 11px; color: var(--faint); padding: 4px 0;
}
.mobile-tabbar a svg { width: 21px; height: 21px; }
.mobile-tabbar a.active { color: var(--green-bright); }

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
  .detail-layout { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .bom-card { grid-template-columns: 1fr; padding: 40px; gap: 40px; }
  .strength-grid, .about-intro { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .timeline-grid { grid-template-columns: repeat(3, 1fr); }
  .about-contact-grid { grid-template-columns: 1fr; }
  .why-row { grid-template-columns: 50px 1fr 40px; }
  .why-row p { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .kv-strip { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .settings-grid { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 14px; }
  .container { width: calc(100% - 32px); }
  .topbar { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .main-nav, .header-search, .header-cta { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: #0a130d; border-bottom: 1px solid var(--line); padding: 12px 20px 18px; gap: 2px;
  }
  .main-nav.open .nav-item, .main-nav.open .nav-item > a { display: block; width: 100%; }
  .main-nav.open .nav-item > a .caret { display: none; }
  .main-nav.open .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: none; box-shadow: none; padding: 0 0 0 12px; min-width: 0;
  }
  .main-nav.open .dropdown-menu a { padding: 7px 12px; font-size: 13px; color: var(--muted); }
  .hero-inner { padding: 52px 0 48px; }
  .hero-copy h1 { font-size: 30px; }
  .hero-search { max-width: none; }
  .hero-cta { flex-wrap: wrap; }
  .stats-band { padding: 30px 0 12px; }
  .stats-band .grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: none; border-top: 1px solid var(--line); padding: 22px 20px; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card { min-height: 140px; padding: 22px 18px; }
  .why-row { grid-template-columns: 40px 1fr 30px; gap: 12px; padding: 24px 4px; }
  .why-row h3 { font-size: 17px; }
  .why-row p { font-size: 13px; }
  .section { padding: 54px 0; }
  h2.sec-title, .bom-left h2 { font-size: 24px; }
  .bom-card { padding: 30px 22px; }
  .filters-col { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .toolbar { flex-direction: column; gap: 12px; align-items: flex-start; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-info h1 { font-size: 26px; }
  .price-tiers { flex-wrap: wrap; gap: 20px; }
  .price-tiers .note { margin-left: 0; width: 100%; }
  .detail-cta { flex-wrap: wrap; }
  .about-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 40px 0; }
  .timeline-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .copyright-bar .inner { flex-direction: column; gap: 6px; }
  .page-hero h1 { font-size: 26px; }
  .mobile-tabbar { display: grid; }
  body.has-tabbar { padding-bottom: 68px; }
  .login-page { grid-template-columns: 1fr; }
  .login-page::after { display: none; }
  .login-left { display: none; }
  .admin-body { grid-template-columns: 1fr; }
  .admin-side { position: fixed; z-index: 300; width: 240px; transform: translateX(-100%); transition: 0.3s; }
  .admin-form .row-2 { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr; padding: 18px; }
  .panel-head { flex-wrap: wrap; gap: 12px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .kpi-card { padding: 16px; }
  .kpi-card .v { font-size: 24px; }
  .quick-links { grid-template-columns: 1fr; }
  .admin-side.open { transform: translateX(0); }
  .admin-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .admin-content { padding: 18px 14px 30px; }
  .admin-topbar { padding: 0 14px; }
  .admin-search { display: none; }
  .panel-filters input[type="text"] { width: 100%; }
}

/* ============ 现货查询页 ============ */
.search-panel {
  margin: 40px 0 30px; padding: 30px 32px;
  background: radial-gradient(700px 300px at 8% 0%, rgba(74, 222, 128, 0.06), transparent 60%), var(--bg-2);
  border: 1px solid var(--line); border-radius: 18px;
}
.search-main { display: flex; gap: 12px; }
.search-main input {
  flex: 1; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2);
  border-radius: 12px; color: var(--text); padding: 14px 18px; font-size: 15px; outline: none; transition: 0.2s;
}
.search-main input:focus { border-color: rgba(74, 222, 128, 0.6); background: rgba(255, 255, 255, 0.07); }
.search-main .btn-primary { padding: 14px 34px; font-size: 15px; white-space: nowrap; }
.search-hints {
  margin-top: 15px; font-size: 12.5px; color: var(--faint);
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.hint-chip {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  border: 1px solid var(--line-2); padding: 4px 12px; border-radius: 999px; transition: 0.15s;
}
.hint-chip:hover { color: var(--green-bright); border-color: rgba(74, 222, 128, 0.45); }
.batch-trigger { margin-left: auto; font-size: 12.5px; color: var(--green); }
.batch-trigger:hover { text-decoration: underline; }
.batch-panel { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.batch-panel textarea {
  width: 100%; min-height: 120px; background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2); border-radius: 10px; color: var(--text);
  padding: 14px 16px; outline: none; resize: vertical; font-family: var(--mono); font-size: 13px; margin-bottom: 12px;
}
.batch-panel textarea:focus { border-color: rgba(74, 222, 128, 0.6); }
.batch-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.batch-actions .upload-box { width: auto; flex: 1; min-width: 240px; margin-bottom: 0; padding: 12px 18px; }

.filter-chips { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.chip {
  font-size: 12.5px; padding: 7px 17px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted); transition: 0.15s;
}
.chip:hover { color: var(--text); }
.chip.active { background: rgba(74, 222, 128, 0.14); color: var(--green-bright); border-color: rgba(74, 222, 128, 0.4); font-weight: 600; }

.result-block { margin-bottom: 10px; }
.kw-echo { color: var(--green-bright); font-family: var(--mono); }
.empty-state {
  padding: 56px 24px; text-align: center; font-size: 14px; color: var(--muted);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.empty-state b { color: var(--green-bright); }
.empty-state .btn-primary { display: inline-block; margin-top: 20px; }

.cta-strip {
  display: flex; justify-content: space-between; align-items: center; gap: 26px; flex-wrap: wrap;
  margin: 40px 0 70px; padding: 28px 34px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(120deg, #102114, #0a130d);
}
.cta-strip h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; letter-spacing: 0.5px; }
.cta-strip p { font-size: 13px; color: var(--muted); }

@media (max-width: 760px) {
  .search-panel { padding: 22px 18px; margin: 26px 0 20px; }
  .search-main { flex-direction: column; }
  .search-main .btn-primary { width: 100%; text-align: center; }
  .batch-trigger { margin-left: 0; }
  .cta-strip { padding: 24px 20px; margin-bottom: 50px; }
  .cta-strip .btn-primary { width: 100%; text-align: center; }
}

/* ============ 服务页组件 ============ */
.note-box {
  border-left: 2px solid var(--green); padding: 6px 0 6px 20px;
  color: var(--muted); font-size: 14px; margin: 30px 0 0;
}
.note-box b { color: var(--text); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; padding: 20px 4px; font-size: 15px; font-weight: 600;
  display: flex; align-items: center; gap: 12px; list-style: none; transition: 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "＋"; color: var(--green); font-size: 16px; flex-shrink: 0; }
.faq-item[open] summary::before { content: "－"; }
.faq-item summary:hover { color: var(--green-bright); }
.faq-item .a { padding: 0 4px 22px 32px; color: var(--muted); font-size: 14px; }
.section-tight { padding: 54px 0; }

/* 两列宫格（用于 2 个卡片） */
.cat-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .cat-grid.cols-2 { grid-template-columns: 1fr; } }

/* 中等宽度：隐藏头部搜索框，避免导航竖排 */
@media (max-width: 1180px) and (min-width: 761px) {
  .header-search { display: none; }
  .header-inner { gap: 16px; }
  .brand-name { font-size: 15px; }
  .main-nav a { padding: 8px 10px; }
}

/* 后台侧栏品牌区不做分隔线 */
.admin-side .brand-text { border-left: none; padding-left: 0; }

/* 无侧栏筛选时的产品页布局 */
.catalog-layout.no-side { grid-template-columns: 1fr; }

/* ============================================================
   表单与后台打磨（统一深色主题输入控件）
   ============================================================ */
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 12.5px; color: var(--muted);
  margin-bottom: 7px; font-weight: 500;
}
.field input, .field textarea, .field select {
  width: 100%; background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2); border-radius: 9px;
  color: var(--text); padding: 10px 13px; font-size: 13.5px;
  outline: none; transition: 0.18s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(74, 222, 128, 0.55);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.12);
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field textarea { resize: vertical; }
.field input[type="checkbox"] { width: auto; margin-right: 7px; accent-color: var(--green-bright); transform: translateY(1px); }

/* 面板内搜索/筛选输入框统一宽度 */
.panel-filters input[type="text"] { width: 220px; }

/* 后台表格行操作链接 */
.row-actions { color: var(--green); }
.row-actions a { color: var(--green); font-size: 12.5px; margin-right: 12px; }
.row-actions a:hover { text-decoration: underline; }

/* 后台新增面板 details 展开更柔和 */
details { border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.02); padding: 12px 16px; }
details summary { cursor: pointer; color: var(--green-bright); font-size: 13.5px; font-weight: 600; outline: none; }
details[open] { margin-bottom: 16px; }

/* 后台按钮统一圆角 */
.admin-content .btn-primary, .admin-content .btn-outline-green,
.admin-content .btn-sm { display: inline-flex; align-items: center; gap: 6px; }

/* 后台面板卡片阴影与圆角统一 */
.panel-card { box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.kpi-card { box-shadow: 0 8px 24px rgba(0,0,0,0.22); }

/* 前台表单（联系/询价）输入框聚焦 */
.msg-form input, .msg-form textarea { transition: 0.18s; }
.msg-form input:focus, .msg-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.12);
}

/* 表格 hover 行更明显 */
.data-table tbody tr { transition: background 0.15s; }

/* 滚动条美化（webkit） */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0c160f; }
::-webkit-scrollbar-thumb { background: #22402c; border-radius: 6px; border: 2px solid #0c160f; }
::-webkit-scrollbar-thumb:hover { background: #2f543a; }

/* 后台消息提示 */
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 13.5px; border: 1px solid; }
.flash-ok { background: rgba(74, 222, 128, 0.10); border-color: rgba(74, 222, 128, 0.35); color: var(--green-bright); }
.flash-err { background: rgba(255, 120, 120, 0.10); border-color: rgba(255, 120, 120, 0.35); color: #ff9d9d; line-height: 1.8; }

/* ============================================================
   浅色主题（body.theme-light 时启用，覆盖核心变量 + 硬编码底色）
   ============================================================ */
body.theme-light {
  --bg: #f4f6f3;
  --bg-2: #ffffff;
  --bg-3: #e9ede8;
  --panel: rgba(0, 0, 0, 0.03);
  --panel-2: rgba(0, 0, 0, 0.05);
  --line: rgba(0, 0, 0, 0.09);
  --line-2: rgba(0, 0, 0, 0.16);
  --green: #16a34a;
  --green-bright: #15803d;
  --green-deep: #16a34a;
  --green-dim: rgba(22, 163, 74, 0.12);
  --orange: #e07a12;
  --text: #1b231e;
  --muted: #55615a;
  --faint: #7d887f;
  color: var(--text);
  background: var(--bg);
}
body.theme-light ::selection { background: rgba(22, 163, 74, 0.25); }
body.theme-light ::-webkit-scrollbar-track { background: #eef1ec; }
body.theme-light ::-webkit-scrollbar-thumb { background: #c2cac4; border-color: #eef1ec; }
body.theme-light ::-webkit-scrollbar-thumb:hover { background: #a8b2ab; }

/* 顶部公告条 / 头部 / 页脚 */
body.theme-light .topbar { background: #eef1ec; }
body.theme-light .site-header { background: rgba(255, 255, 255, 0.92); }
body.theme-light .site-footer { background: #eef1ec; }
body.theme-light .copyright-bar { background: #e9ede8; }
body.theme-light .copyright-bar, body.theme-light .site-footer { color: var(--muted); }

/* 首页 Hero */
body.theme-light .hero {
  background:
    radial-gradient(1100px 560px at 78% 30%, rgba(22, 163, 74, 0.14), transparent 65%),
    radial-gradient(700px 400px at 10% 90%, rgba(22, 163, 74, 0.08), transparent 60%),
    linear-gradient(160deg, #ffffff 0%, #eef4ee 60%, #e8efe9 100%);
}
body.theme-light .hero-copy h1 { color: var(--text); }
body.theme-light .hero-metrics b { color: var(--text); }

/* 数据带 / 卡底色（继承 var 自动变浅，只需修分隔线阴影观感） */
body.theme-light .stats-band .grid { box-shadow: 0 8px 24px rgba(0,0,0,0.04); }

/* 深色专用区块改浅 */
body.theme-light .bom-section { background: #eef1ec; }
body.theme-light .search-panel { background: radial-gradient(700px 300px at 8% 0%, rgba(22,163,74,0.08), transparent 60%), #ffffff; }

/* 产品卡片占位图 / 详情主图背景 */
body.theme-light .product-card .thumb { background: #eef1ec; }
body.theme-light .product-card .thumb .ph { background: linear-gradient(160deg, #e6ebe6, #dde3dd); color: #9aa69d; }
body.theme-light .gallery .main-img, body.theme-light .thumb-row button { background: #eef1ec; }
body.theme-light .related-card .t { background: linear-gradient(160deg, #e6ebe6, #dde3dd); }

/* 表格表头 */
body.theme-light .data-table thead th { background: #eef2ed; color: #55615a; }
body.theme-light .data-table tbody td { color: #3a443e; }
body.theme-light .data-table tbody tr:hover { background: rgba(0,0,0,0.025); }

/* 导航下拉 / 移动端菜单 */
body.theme-light .dropdown-menu { background: #ffffff; }
body.theme-light .main-nav.open { background: #ffffff; }
body.theme-light .main-nav a { color: #4a544e; }
body.theme-light .main-nav a:hover { background: var(--panel-2); }
body.theme-light .cat-tree a { color: #4a544e; }

/* 浅色段在浅色主题下略微加边，避免融为一体 */
body.theme-light .light-section { background: #e9ede8; }
body.theme-light .light-section .sec-sub { color: #5b655d; }

/* 浅色主题：绿底按钮文字改为白色（深绿背景 + 白字才可读） */
body.theme-light .btn-primary,
body.theme-light .btn-qs,
body.theme-light .btn-sm.primary,
body.theme-light .page-btn.active,
body.theme-light .btn-quote-sm,
body.theme-light .btn-block.btn-primary { color: #ffffff; }
body.theme-light .btn-primary:hover,
body.theme-light .btn-qs:hover { color: #ffffff; }

/* 浅色主题：CTA 条背景改浅（原为深绿渐变，浅色下大字被吞） */
body.theme-light .cta-strip {
  background: linear-gradient(120deg, #ffffff, #e8f0ea);
  border-color: var(--line);
}
body.theme-light .cta-strip h3 { color: var(--text); }
body.theme-light .cta-strip p { color: var(--muted); }

/* 浅色主题：分类宫格悬停背景改浅（原 hover 为深绿 #122417，深字被吞） */
body.theme-light .cat-card:hover { background: #e6ede7; }
body.theme-light .cat-card .arrow { color: var(--muted); }
body.theme-light .cat-card:hover .arrow { color: var(--green); }

/* 表单控件在浅色下 */
body.theme-light .field input, body.theme-light .field textarea, body.theme-light .field select,
body.theme-light .msg-form input, body.theme-light .msg-form textarea,
body.theme-light .bom-form input, body.theme-light .bom-form textarea, body.theme-light .bom-form select,
body.theme-light .login-card input, body.theme-light .panel-filters input, body.theme-light .panel-filters select {
  background: #ffffff;
  color: var(--text);
}
body.theme-light .field input::placeholder, body.theme-light .msg-form input::placeholder { color: #9aa69d; }

/* 顶部公告条切换按钮 */
.theme-switch {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 12px; color: var(--muted); padding: 3px 10px;
  border: 1px solid var(--line-2); border-radius: 999px; transition: 0.2s; background: none;
}
.theme-switch:hover { color: var(--green-bright); border-color: rgba(74,222,128,0.5); }

/* 浅色主题：后台适配（侧栏/顶栏/表头等硬编码深色改浅） */
body.theme-light .admin-body { background: var(--bg); }
body.theme-light .admin-side { background: linear-gradient(180deg, #ffffff, #eef3ee); }
body.theme-light .admin-nav a { color: #4a544e; }
body.theme-light .admin-nav a:hover { background: var(--panel-2); }
body.theme-light .admin-topbar { background: rgba(255,255,255,0.9); }
body.theme-light .admin-logout { color: var(--muted); }
body.theme-light .avatar { background: var(--green-bright); color: #fff; }
