/* ============================================================
   江苏新量格能源科技有限公司 XINLIANGGE ENERGY — 全站样式
   设计规则见项目根目录 DESIGN.md（深海军蓝 + 铜色，工业 B2B 风）
   ============================================================ */

:root {
  --ink: #0C1420;
  --ink-2: #111C2C;
  --ink-3: #1A2A40;
  --line: rgba(148, 178, 215, .14);
  --copper: #C98A4B;
  --copper-2: #E3AE75;
  --steel: #8FA8C8;
  --paper: #EDF2F9;
  --font-zh: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-en: "Archivo", "Roboto", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-zh);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(12, 20, 32, .72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.site-header.scrolled {
  background: rgba(12, 20, 32, .96);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px; flex: none;
}
.brand-name { line-height: 1.2; }
.brand-name .zh { font-weight: 700; font-size: 1.05rem; letter-spacing: .12em; }
.brand-name .en {
  font-family: var(--font-en); font-size: .62rem; color: var(--steel);
  letter-spacing: .22em; text-transform: uppercase;
}

.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 8px 14px; font-size: .92rem; color: var(--steel);
  border-radius: 6px; transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--paper); background: rgba(148, 178, 215, .08); }
.main-nav a.active { color: var(--copper-2); }
.nav-cta {
  margin-left: 14px;
  border: 1px solid var(--copper);
  color: var(--copper-2) !important;
}
.nav-cta:hover { background: var(--copper) !important; color: #14100B !important; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 6px; width: 42px; height: 42px; cursor: pointer;
  color: var(--paper); font-size: 1.2rem;
}

/* ---------- Hero（首页） ---------- */
.hero {
  position: relative;
  padding: 176px 0 96px;
  background:
    linear-gradient(90deg, rgba(12,20,32,.96) 0%, rgba(12,20,32,.9) 42%, rgba(12,20,32,.38) 100%),
    radial-gradient(1000px 480px at 78% -10%, rgba(201, 138, 75, .2), transparent 60%),
    url("../img/port-hero.webp") center / cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 178, 215, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 178, 215, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 82%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 82%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 56px; align-items: center;
}
.kicker {
  font-family: var(--font-en); font-size: .74rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--copper-2); margin-bottom: 18px;
}
.kicker::before {
  content: ""; display: inline-block; width: 28px; height: 1px;
  background: var(--copper); vertical-align: middle; margin-right: 12px;
}
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.28;
  font-weight: 700; letter-spacing: .02em;
}
.hero h1 em { font-style: normal; color: var(--copper-2); }
.hero-sub {
  margin: 22px 0 34px; max-width: 34em; color: var(--steel); font-size: 1.02rem;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 6px; font-size: .95rem; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; transition: all .2s;
}
.btn-primary { background: var(--copper); color: #14100B; }
.btn-primary:hover { background: var(--copper-2); }
.btn-ghost { border-color: var(--copper); color: var(--copper-2); }
.btn-ghost:hover { background: rgba(201, 138, 75, .12); }

/* Hero 侧栏数据卡 */
.hero-panel {
  border: 1px solid var(--line); border-radius: 8px;
  background: rgba(17, 28, 44, .8);
  padding: 30px 30px 12px;
}
.hero-panel h3 {
  font-size: .82rem; color: var(--steel); font-weight: 500;
  letter-spacing: .14em; margin-bottom: 8px;
}
.stat-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.stat-row:last-child { border-bottom: none; }
.stat-num {
  font-family: var(--font-en); font-weight: 700; color: var(--copper-2);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem); letter-spacing: .01em;
}
.stat-label { color: var(--steel); font-size: .88rem; text-align: right; }

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 48px; max-width: 720px; }
.section-head h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 700; margin: 10px 0 14px;
}
.section-head p { color: var(--steel); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker::before { display: none; }

/* 卡片网格 */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  border: 1px solid var(--line); border-radius: 6px; background: var(--ink-2);
  padding: 30px; transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgba(201, 138, 75, .55); transform: translateY(-3px); }
.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card h3 .en {
  display: block; font-family: var(--font-en); font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--steel);
  margin-top: 4px; font-weight: 500;
}
.card p { color: var(--steel); font-size: .93rem; }
.card .card-icon {
  width: 44px; height: 44px; margin-bottom: 18px; color: var(--copper-2);
}
a.card { display: block; }
.card-link {
  display: inline-block; margin-top: 16px; color: var(--copper-2);
  font-size: .88rem; font-family: var(--font-en); letter-spacing: .08em;
}

/* 图片占位（实拍素材位，见 IMAGE-PROMPTS.md） */
.img-slot {
  position: relative; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 200px at 20% 0%, rgba(201, 138, 75, .22), transparent 65%),
    linear-gradient(150deg, #16243A 0%, #0D1624 70%);
  min-height: 240px;
  display: flex; align-items: flex-end;
}
.img-slot::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148,178,215,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,178,215,.07) 1px, transparent 1px);
  background-size: 36px 36px;
}
.img-slot .slot-tag {
  position: relative; margin: 14px; padding: 4px 10px;
  font-family: var(--font-en); font-size: .66rem; letter-spacing: .14em;
  color: var(--steel); border: 1px dashed rgba(148, 178, 215, .4);
  border-radius: 4px; background: rgba(12, 20, 32, .7);
}
.img-slot.img-slot-photo { display: block; background: var(--ink-3); }
.img-slot.img-slot-photo::before { display: none; }
.img-slot.img-slot-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

/* ---------- 产品规格表 ---------- */
.spec-table, .inv-table {
  width: 100%; border-collapse: collapse; font-size: .92rem;
}
.spec-table th, .spec-table td, .inv-table th, .inv-table td {
  padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line);
}
.spec-table th, .inv-table th {
  font-family: var(--font-en); font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--steel); font-weight: 600;
  background: rgba(26, 42, 64, .5);
}
.inv-table tbody tr { transition: background .2s; }
.inv-table tbody tr:hover { background: rgba(148, 178, 215, .05); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.table-scroll table { min-width: 760px; }

.tag {
  display: inline-block; padding: 2px 10px; border-radius: 4px;
  font-size: .78rem; letter-spacing: .04em;
  background: rgba(201, 138, 75, .14); color: var(--copper-2);
  border: 1px solid rgba(201, 138, 75, .35);
}
.tag.blue { background: rgba(143, 168, 200, .12); color: var(--steel); border-color: rgba(143, 168, 200, .3); }

.price-ask { color: var(--copper-2); font-weight: 500; white-space: nowrap; }

/* 库存筛选 */
.inv-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.inv-filters button {
  padding: 8px 18px; border-radius: 6px; cursor: pointer; font-size: .9rem;
  background: none; border: 1px solid var(--line); color: var(--steel);
  transition: all .2s; font-family: var(--font-zh);
}
.inv-filters button:hover { border-color: var(--copper); color: var(--copper-2); }
.inv-filters button.on { background: var(--copper); border-color: var(--copper); color: #14100B; }

/* ---------- 信任条 / 资质墙 ---------- */
.trust-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden;
}
.trust-item { background: var(--ink-2); padding: 26px 24px; }
.trust-item .t-num {
  font-family: var(--font-en); font-size: 1.9rem; font-weight: 700;
  color: var(--copper-2);
}
.trust-item .t-label { color: var(--steel); font-size: .88rem; margin-top: 4px; }

.cred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cred-card {
  border: 1px solid var(--line); border-radius: 6px; padding: 26px;
  background: var(--ink-2);
}
.cred-card .cred-no {
  font-family: var(--font-en); font-size: .72rem; color: var(--steel);
  letter-spacing: .12em; margin-top: 12px;
}

/* 流程步骤 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative; border: 1px solid var(--line); border-radius: 6px;
  background: var(--ink-2); padding: 54px 24px 26px;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 18px; left: 24px;
  font-family: var(--font-en); font-weight: 700; font-size: 1.1rem;
  color: var(--copper-2);
}
.step h4 { font-size: 1rem; margin-bottom: 8px; }
.step p { color: var(--steel); font-size: .88rem; }

/* ---------- 资讯卡 ---------- */
.news-card { display: flex; flex-direction: column; }
.news-card time {
  font-family: var(--font-en); font-size: .76rem; color: var(--steel);
  letter-spacing: .1em; margin-bottom: 10px;
}
.news-card h3 { font-size: 1.05rem; line-height: 1.5; }

/* 行情快照条 */
.ticker {
  display: flex; gap: 34px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 8px; background: var(--ink-2);
  padding: 18px 26px; font-family: var(--font-en);
}
.ticker .tk { display: flex; align-items: baseline; gap: 10px; }
.ticker .tk-name { color: var(--steel); font-size: .8rem; letter-spacing: .1em; }
.ticker .tk-val { font-weight: 700; font-size: 1.05rem; }
.ticker .up { color: #6FBF8F; }
.ticker .down { color: #D97A6C; }
.ticker-note { font-size: .74rem; color: var(--steel); width: 100%; font-family: var(--font-zh); }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; color: var(--steel); }
.field label .req { color: var(--copper-2); }
.field input, .field select, .field textarea {
  background: var(--ink); border: 1px solid var(--line); border-radius: 6px;
  padding: 12px 14px; color: var(--paper); font-size: .95rem;
  font-family: var(--font-zh); transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--copper);
}
.form-note { font-size: .82rem; color: var(--steel); }

/* ---------- CTA 区 ---------- */
.cta-band {
  border-radius: 10px; padding: 56px 48px;
  background:
    radial-gradient(600px 260px at 85% 20%, rgba(201, 138, 75, .3), transparent 65%),
    linear-gradient(120deg, #1A2A40, #101B2B);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.cta-band p { color: var(--steel); margin-top: 8px; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line); background: #0A111B;
  padding: 64px 0 28px; margin-top: 88px; font-size: .9rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  margin-bottom: 44px;
}
.site-footer h4 {
  font-size: .8rem; letter-spacing: .16em; color: var(--steel);
  text-transform: uppercase; font-family: var(--font-en); margin-bottom: 16px;
}
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--steel); transition: color .2s; }
.site-footer a:hover { color: var(--copper-2); }
.footer-brand p { color: var(--steel); margin-top: 14px; max-width: 26em; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--steel); font-size: .8rem;
}

/* ---------- WhatsApp 悬浮按钮 ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- 内页头 ---------- */
.page-head {
  padding: 150px 0 64px;
  background:
    radial-gradient(800px 320px at 85% -20%, rgba(201, 138, 75, .14), transparent 60%),
    linear-gradient(180deg, #0E1826, var(--ink));
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-top: 10px; }
.page-head p { color: var(--steel); margin-top: 14px; max-width: 44em; }
.crumb {
  font-size: .8rem; color: var(--steel); font-family: var(--font-en);
  letter-spacing: .1em;
}
.crumb a:hover { color: var(--copper-2); }

/* 两栏图文 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .img-slot { min-height: 320px; }

.checklist li {
  padding-left: 28px; position: relative; margin-bottom: 12px; color: var(--steel);
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--copper-2); border-bottom: 2px solid var(--copper-2);
  transform: rotate(-45deg);
}
.checklist strong { color: var(--paper); }

/* 通知条（表单提交演示） */
.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%) translateY(20px);
  background: var(--ink-3); border: 1px solid var(--copper);
  color: var(--paper); padding: 14px 26px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: all .3s; z-index: 200;
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid-4, .cred-grid, .steps, .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav {
    position: fixed; top: 72px; left: 0; right: 0;
    background: #0E1826; border-bottom: 1px solid var(--line);
    display: none; padding: 12px 24px 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 12px 10px; }
  .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
  .nav-toggle { display: block; }
}

@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .hero { padding: 130px 0 64px; }
  .grid-2, .grid-3, .grid-4, .cred-grid, .steps, .form-grid { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 26px; }
}
