/* =========================================================================
 * 明纬电源产品展示站 - 全局样式
 * 主题：明纬绿 (#00833E) + 深色 (#16261f) + 浅灰背景
 * ========================================================================= */

:root {
  --green: #00833e;
  --green-dark: #00612e;
  --green-light: #e6f3ec;
  --ink: #16261f;
  --ink-soft: #45564e;
  --muted: #7a8a82;
  --bg: #f5f8f6;
  --card: #ffffff;
  --line: #e3eae6;
  --warn: #c8741a;
  --radius: 14px;
  --shadow: 0 6px 22px rgba(22, 38, 31, 0.08);
  --shadow-lg: 0 14px 40px rgba(22, 38, 31, 0.14);
  --maxw: 1180px;
}

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

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .5px; }
.brand .logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--green); color: #fff;
  display: grid; place-items: center; font-size: 18px; font-weight: 900;
}
.brand .name { font-size: 19px; }
.brand .name small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 1px; }

.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  padding: 9px 15px; border-radius: 9px; font-size: 15px; font-weight: 600; color: var(--ink-soft);
  transition: .2s;
}
.nav-links a:hover { background: var(--green-light); color: var(--green-dark); }
.nav-links a.active { background: var(--green); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: .2s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: #fff; color: var(--green-dark); border-color: var(--green); }
.btn-ghost:hover { background: var(--green-light); }
.btn-light { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-light:hover { background: rgba(255,255,255,.28); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0c1f17 0%, #00833e 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 60%);
}
.hero .container { position: relative; z-index: 1; padding: 84px 22px 92px; }
.hero .eyebrow {
  display: inline-block; background: rgba(255,255,255,.16); color: #fff;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: 1px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.15; font-weight: 850; margin-bottom: 18px; }
.hero h1 span { color: #9fe6c0; }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: #d8efe2; max-width: 640px; margin-bottom: 32px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 38px; margin-top: 50px; flex-wrap: wrap; }
.hero-stats .stat .num { font-size: 34px; font-weight: 850; color: #fff; }
.hero-stats .stat .lab { font-size: 14px; color: #b9ddca; }

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .tag { color: var(--green); font-weight: 800; letter-spacing: 1.5px; font-size: 13px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 10px 0 12px; font-weight: 850; }
.section-head p { color: var(--ink-soft); font-size: 16px; }

/* ---------- 分类卡片 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: .22s; box-shadow: var(--shadow);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green); }
.cat-card .ic {
  width: 54px; height: 54px; border-radius: 12px; background: var(--green-light);
  display: grid; place-items: center; margin-bottom: 16px; color: var(--green);
}
.cat-card .ic svg { width: 28px; height: 28px; }
.cat-card h3 { font-size: 18px; margin-bottom: 6px; }
.cat-card .cnt { font-size: 13px; color: var(--green); font-weight: 700; margin-bottom: 10px; }
.cat-card p { font-size: 14px; color: var(--muted); min-height: 66px; }

/* ---------- 特性条 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow);
}
.feature .ic { width: 46px; height: 46px; border-radius: 11px; background: var(--green-light); color: var(--green); display: grid; place-items: center; margin-bottom: 14px; font-size: 22px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--ink-soft); }

/* ---------- 产品筛选 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-weight: 700; font-size: 14px; color: var(--ink-soft); cursor: pointer; transition: .2s;
}
.chip:hover { border-color: var(--green); color: var(--green-dark); }
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: .22s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-thumb {
  height: 150px; position: relative;
  display: grid; place-items: center; border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #e9f4ee, #d6e9dd);
}
.product-thumb .badge {
  position: absolute; top: 12px; left: 12px; background: var(--green); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.product-thumb .pw {
  font-size: 30px; font-weight: 850; color: var(--green-dark);
}
.product-thumb .pw small { font-size: 14px; font-weight: 700; }
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 19px; margin-bottom: 4px; }
.product-body .cat { font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.product-spec { list-style: none; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 16px; }
.product-spec li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.product-spec li span:first-child { color: var(--muted); }
.product-card .more { margin-top: auto; font-weight: 700; color: var(--green); font-size: 14px; }

/* ---------- 面包屑 ---------- */
.crumbs { font-size: 14px; color: var(--muted); padding: 22px 0 0; }
.crumbs a:hover { color: var(--green); }

/* ---------- 产品详情 ---------- */
.detail-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.detail-thumb {
  background: linear-gradient(135deg, #e9f4ee, #d6e9dd); border-radius: var(--radius);
  height: 320px; display: grid; place-items: center; border: 1px solid var(--line);
}
.detail-thumb .pw { font-size: 56px; font-weight: 850; color: var(--green-dark); }
.detail-info h1 { font-size: 34px; margin-bottom: 6px; }
.detail-info .cat { color: var(--green); font-weight: 800; margin-bottom: 16px; }
.detail-info .desc { color: var(--ink-soft); margin-bottom: 22px; font-size: 16px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 22px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec-table th { color: var(--muted); font-weight: 700; width: 130px; background: #fafcfb; }
.spec-table td { color: var(--ink); font-weight: 600; }
.feat-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.feat-list li { background: var(--green-light); color: var(--green-dark); padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 关于 / 数据卡 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.about-grid .lead-text { font-size: 17px; color: var(--ink-soft); margin-bottom: 18px; }
.stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.stat-card .n { font-size: 32px; font-weight: 850; color: var(--green); }
.stat-card .t { font-size: 14px; color: var(--ink-soft); }

/* ---------- 联系表单 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info h3 { font-size: 20px; margin-bottom: 16px; }
.contact-info .row { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.contact-info .row .ic { color: var(--green); font-size: 20px; }
.contact-info .row b { display: block; font-size: 15px; }
.contact-info .row span { color: var(--ink-soft); font-size: 14px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 9px;
  font-size: 14.5px; font-family: inherit; color: var(--ink); background: #fafcfb; transition: .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--green); background: #fff; }
.field textarea { resize: vertical; min-height: 96px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 8px; }
.form-ok { display: none; background: var(--green-light); color: var(--green-dark); border: 1px solid var(--green); padding: 13px 16px; border-radius: 9px; font-weight: 700; margin-bottom: 14px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: #cfe2d8; padding: 52px 0 26px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }
.footer-top .brand .logo { background: var(--green); }
.footer-top .brand .name { color: #fff; }
.footer-top .brand .name small { color: #8fb5a3; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: #aecabd; padding: 5px 0; transition: .2s; }
.footer-col a:hover { color: #fff; }
.footer-about { font-size: 14px; color: #aecabd; margin-top: 14px; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: 13px; color: #8fb5a3; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom .disc { max-width: 760px; }

/* ---------- 通用工具 ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.muted { color: var(--muted); }

/* ---------- 响应式 ---------- */
@media (max-width: 920px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-wrap, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column;
    padding: 12px 22px; border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .cat-grid, .product-grid, .stat-cards { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .section { padding: 52px 0; }
}
