/* 山东张弛电气 - 简约大气工业风 */
:root {
  --ink: #101820;
  --ink-2: #2a3642;
  --brand: #c8102e;
  --brand-dark: #9d0c24;
  --steel: #eef1f4;
  --line: #dfe4e9;
  --muted: #6b7683;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 24, 32, .08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--white); 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; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section.alt { background: var(--steel); }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.sec-head h2 { font-size: 34px; font-weight: 700; letter-spacing: .02em; }
.sec-head .bar { width: 56px; height: 4px; background: var(--brand); margin: 18px auto; border-radius: 2px; }
.sec-head p { color: var(--muted); font-size: 16px; }

/* ===== 导航 ===== */
header.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; height: 68px; gap: 32px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-badge {
  width: 44px; height: 44px; border-radius: 10px; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px;
  font-style: italic; letter-spacing: -.5px;
}
.logo-txt { min-width: 0; }
.logo-txt b {
  display: block; font-size: 15px; letter-spacing: .02em; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px;
}
.logo-txt span {
  display: block; font-size: 10px; color: var(--muted); letter-spacing: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px;
}
.hero-brand {
  font-size: 15px; letter-spacing: .16em; color: rgba(255,255,255,.78);
  margin-bottom: 14px; text-transform: uppercase;
}
nav.menu { display: flex; gap: 28px; margin-left: auto; }
nav.menu a { font-size: 15px; color: var(--ink-2); padding: 6px 2px; border-bottom: 2px solid transparent; transition: .2s; }
nav.menu a:hover, nav.menu a.active { color: var(--brand); border-color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px;
  font-size: 13px; color: var(--ink-2); transition: .2s;
}
.lang-btn:hover { border-color: var(--brand); color: var(--brand); }
.btn {
  display: inline-block; border: none; border-radius: 999px; padding: 10px 24px;
  font-size: 15px; font-weight: 600; transition: .2s; text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.nav-user { font-size: 14px; color: var(--ink-2); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 620px; display: flex; align-items: center;
  background: #0d1319 url("../img/hero.jpg") center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,12,18,.88) 0%, rgba(8,12,18,.62) 46%, rgba(8,12,18,.18) 100%);
}
.hero-inner { position: relative; z-index: 2; color: #fff; max-width: 720px; }
.hero-badge {
  display: inline-block; font-size: 13px; letter-spacing: .14em;
  border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 6px 16px; margin-bottom: 22px;
}
.hero h1 { font-size: 44px; line-height: 1.25; font-weight: 800; }
.hero h1 em { font-style: normal; color: #ff5a6e; }
.hero p { margin-top: 18px; font-size: 17px; color: rgba(255,255,255,.82); max-width: 620px; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== 统计条 ===== */
.stats { background: var(--ink); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 34px 10px; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: none; }
.stat b { display: block; font-size: 40px; font-weight: 800; color: #fff; }
.stat b i { font-style: normal; color: #ff5a6e; }
.stat span { font-size: 14px; color: rgba(255,255,255,.65); }

/* ===== 分类卡片 ===== */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: .25s; position: relative; overflow: hidden;
}
.cat-card::before {
  content: attr(data-no); position: absolute; right: 14px; top: 4px;
  font-size: 60px; font-weight: 800; color: rgba(16,24,32,.05);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.cat-card .no { font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: .2em; }
.cat-card h3 { font-size: 19px; margin: 8px 0 10px; }
.cat-card p { font-size: 14px; color: var(--muted); }
.cat-card .link { display: inline-block; margin-top: 16px; color: var(--brand); font-size: 14px; font-weight: 600; }

/* ===== 优势 ===== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why { background: #fff; border-radius: var(--radius); padding: 30px 24px; border: 1px solid var(--line); }
.why .ico {
  width: 46px; height: 46px; border-radius: 12px; background: #fdeef0; color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px;
}
.why h3 { font-size: 17px; margin-bottom: 8px; }
.why p { font-size: 14px; color: var(--muted); }

/* ===== 定制能力 ===== */
.custom-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.custom-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; transition: .25s;
}
.custom-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.custom-card .cno { font-size: 13px; font-weight: 800; color: var(--brand); letter-spacing: .18em; }
.custom-card h3 { font-size: 17px; margin: 8px 0 8px; }
.custom-card p { font-size: 14px; color: var(--muted); }
.flow { margin-top: 44px; background: var(--steel); border-radius: var(--radius); padding: 26px 30px; }
.flow-t { text-align: center; font-size: 15px; font-weight: 700; color: var(--ink-2); margin-bottom: 20px; }
.flow-steps { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fstep { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; min-width: 110px; position: relative; }
.fstep i {
  width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700;
}
.fstep span { font-size: 13.5px; color: var(--ink-2); text-align: center; }
.fstep:not(:last-child)::after {
  content: ""; position: absolute; right: -6px; top: 18px; width: 12px; height: 2px;
  background: var(--line);
}
.custom-note {
  background: #fdf4f5; border-left: 4px solid var(--brand); border-radius: 0 10px 10px 0;
  padding: 14px 20px; margin-bottom: 34px; font-size: 14.5px; color: var(--ink-2);
}
.custom-block h3 { font-size: 22px; margin-bottom: 12px; }
.custom-block p { font-size: 15.5px; color: var(--ink-2); }
.custom-block ul { list-style: none; margin-top: 16px; }
.custom-block li { font-size: 14.5px; color: var(--ink-2); padding: 7px 0 7px 22px; position: relative; }
.custom-block li::before {
  content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700;
}

/* ===== 询盘工作台 ===== */
.dash-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 26px;
}
.dash-bar h3 { font-size: 22px; }
.dash-bar .acct { font-size: 14px; color: var(--muted); }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.dash-stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 16px; text-align: center;
}
.dash-stat b { display: block; font-size: 30px; color: var(--brand); font-weight: 800; }
.dash-stat span { font-size: 13.5px; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.dash-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 860px; }
.dash-table th {
  background: var(--ink); color: #fff; text-align: left; padding: 12px 14px;
  font-weight: 600; white-space: nowrap;
}
.dash-table td { border-bottom: 1px solid var(--line); padding: 12px 14px; vertical-align: top; }
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: #fafbfc; }
.dash-table .msg { max-width: 280px; white-space: pre-wrap; word-break: break-word; }
.status-badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.st-new { background: #fdeef0; color: var(--brand); }
.st-processing { background: #fff4e0; color: #a86500; }
.st-replied { background: #e6f6ec; color: #148a4c; }
.status-select {
  border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px;
  font-size: 13px; background: #fff; color: var(--ink-2);
}
.dash-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.dash-empty h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.dash-toast {
  position: fixed; right: 24px; bottom: 24px; background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: 10px; font-size: 14px; opacity: 0;
  transition: .3s; pointer-events: none; z-index: 300;
}
.dash-toast.show { opacity: 1; }

/* ===== CTA 条 ===== */
.cta-band { background: linear-gradient(110deg, var(--ink) 55%, #1c2833); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 58px 0; flex-wrap: wrap; }
.cta-inner h2 { font-size: 28px; }
.cta-inner p { color: rgba(255,255,255,.7); margin-top: 6px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== 页面头（内页 hero） ===== */
.page-head {
  background: linear-gradient(100deg, #101820 30%, #232f3b), var(--ink);
  color: #fff; padding: 72px 0 64px;
}
.page-head h1 { font-size: 38px; font-weight: 800; }
.page-head .bar { width: 56px; height: 4px; background: var(--brand); border-radius: 2px; margin: 16px 0 14px; }
.page-head p { color: rgba(255,255,255,.7); font-size: 16px; }

/* ===== 关于页 ===== */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-txt p { color: var(--ink-2); margin-bottom: 16px; font-size: 15.5px; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.value {
  background: #fff; border-top: 4px solid var(--brand); border-radius: 0 0 var(--radius) var(--radius);
  padding: 24px 20px; box-shadow: var(--shadow);
}
.value h4 { font-size: 14px; color: var(--muted); font-weight: 600; }
.value p { font-size: 16px; font-weight: 700; margin-top: 6px; }

/* ===== 产品页 ===== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 18px;
  font-size: 14px; color: var(--ink-2); transition: .2s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prod-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .25s; display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.prod-card .ph { background: #f6f8fa; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.prod-card .ph img { width: 100%; height: 100%; object-fit: contain; padding: 18px; transition: .3s; }
.prod-card:hover .ph img { transform: scale(1.04); }
.prod-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.prod-body .model { font-size: 12.5px; font-weight: 700; color: var(--brand); letter-spacing: .1em; }
.prod-body h3 { font-size: 18px; margin: 6px 0 8px; }
.prod-body p { font-size: 13.5px; color: var(--muted); flex: 1; }
.prod-body .more { margin-top: 16px; color: var(--ink); font-weight: 600; font-size: 14px; }
.prod-body .more:hover { color: var(--brand); }

/* 产品弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(10,14,20,.55); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-mask.open { display: flex; }
.modal {
  background: #fff; border-radius: 18px; max-width: 860px; width: 100%; max-height: 88vh;
  overflow: auto; padding: 36px 38px; position: relative;
}
.modal .close {
  position: absolute; right: 18px; top: 14px; font-size: 26px; color: var(--muted);
  background: none; border: none; line-height: 1;
}
.modal .m-img { float: right; width: 320px; margin: 4px 0 16px 26px; background: #f6f8fa; border-radius: 12px; }
.modal h3.m-title { font-size: 24px; }
.modal .m-model { color: var(--brand); font-weight: 700; letter-spacing: .08em; margin-bottom: 4px; }
.modal h4 { margin: 20px 0 8px; font-size: 15.5px; color: var(--ink); border-left: 4px solid var(--brand); padding-left: 10px; }
.modal p { font-size: 14.5px; color: var(--ink-2); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; clear: both; }
.spec-table td { border: 1px solid var(--line); padding: 9px 14px; }
.spec-table td:first-child { background: var(--steel); width: 46%; color: var(--ink-2); }
.m-actions { margin-top: 22px; display: flex; gap: 12px; }

/* ===== 联系页 ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.info-card h3 { font-size: 20px; margin-bottom: 20px; }
.info-row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.info-row:last-child { border-bottom: none; }
.info-row .k { min-width: 110px; color: var(--muted); font-size: 14px; }
.info-row a:hover { color: var(--brand); text-decoration: underline; }
.contact-group { margin-top: 22px; }
.contact-group h4 {
  font-size: 15px; color: var(--brand); font-weight: 700;
  padding-bottom: 8px; margin-bottom: 2px; border-bottom: 2px solid var(--brand);
}
.form-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 34px 32px; }
.form-card h3 { font-size: 20px; margin-bottom: 22px; }
.f-row { margin-bottom: 16px; }
.f-row input, .f-row textarea {
  width: 100%; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.07);
  border-radius: 10px; color: #fff; padding: 12px 14px; font-size: 15px; font-family: inherit;
}
.f-row input::placeholder, .f-row textarea::placeholder { color: rgba(255,255,255,.5); }
.f-row input:focus, .f-row textarea:focus { outline: 2px solid var(--brand); border-color: transparent; }
.f-row textarea { min-height: 110px; resize: vertical; }
.f-msg { font-size: 14px; margin-top: 10px; display: none; }
.f-msg.ok { display: block; color: #7ee2a0; }
.f-msg.err { display: block; color: #ff8a96; }

/* ===== 登录/用户中心 ===== */
.auth-wrap { min-height: calc(100vh - 68px); display: flex; align-items: center; justify-content: center; padding: 60px 20px; background: var(--steel); }
.auth-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); width: 100%; max-width: 420px; padding: 40px 38px; }
.auth-card h2 { font-size: 24px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.auth-card label { display: block; font-size: 13.5px; color: var(--ink-2); margin: 14px 0 6px; font-weight: 600; }
.auth-card input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px; font-size: 15px;
}
.auth-card input:focus { outline: 2px solid var(--brand); border-color: transparent; }
.auth-card .btn { width: 100%; margin-top: 24px; padding: 12px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-switch a { color: var(--brand); font-weight: 600; cursor: pointer; }
.auth-msg { display: none; margin-top: 14px; font-size: 14px; }
.auth-msg.err { display: block; color: var(--brand); }
.auth-msg.ok { display: block; color: #148a4c; }
.user-panel { display: none; }
.user-panel.show { display: block; }
.dl-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-top: 12px; font-size: 14.5px;
}
.dl-item a { color: var(--brand); font-weight: 600; white-space: nowrap; }

/* ===== Footer ===== */
footer { background: #0b1117; color: rgba(255,255,255,.75); padding: 56px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.foot-grid h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: .06em; }
.foot-grid a, .foot-grid li { display: block; font-size: 14px; padding: 4px 0; list-style: none; color: rgba(255,255,255,.6); }
.foot-grid a:hover { color: #fff; }
.foot-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: #fff; font-weight: 700; font-size: 16px; }
.foot-logo .logo-badge { width: 36px; height: 36px; font-size: 16px; }
.foot-bar { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.45); }

/* ===== 响应式 ===== */
@media (max-width: 980px) {
  .cat-grid, .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .custom-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 34px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  nav.menu { display: none; }
}
@media (max-width: 600px) {
  .cat-grid, .prod-grid, .why-grid, .values-grid, .custom-grid { grid-template-columns: 1fr; }
  .hero { min-height: 520px; }
  .hero h1 { font-size: 28px; }
  .modal { padding: 26px 22px; }
  .modal .m-img { float: none; width: 100%; margin: 0 0 16px; }
  .sec-head h2 { font-size: 27px; }
  .section { padding: 60px 0; }
}
