/* 上海惠安仪表官网 - 简约大气风格 */
:root {
  --navy: #0d2c54;
  --navy-2: #123a6d;
  --steel: #5b7fa6;
  --accent: #1f6feb;
  --bg: #f7f9fb;
  --text: #1f2d3d;
  --muted: #6b7a8d;
  --line: #e3e9f0;
  --white: #ffffff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* 顶部导航 */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo-mark {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; letter-spacing: 1px;
}
.brand .logo-img {
  width: 46px; height: 46px; border-radius: 10px;
  object-fit: cover; display: block;
  border: 1px solid var(--line);
}
.brand-text .cn { font-size: 19px; font-weight: 700; color: var(--navy); letter-spacing: 1px; }
.brand-text .en { font-size: 11px; color: var(--muted); letter-spacing: .5px; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 8px 16px; border-radius: 8px; font-size: 15px; color: var(--text);
  transition: all .2s;
}
.main-nav a:hover { background: #eef3f9; color: var(--accent); }
.main-nav a.active { color: var(--accent); font-weight: 600; }
.nav-user { margin-left: 10px; display: flex; gap: 8px; align-items: center; }
.btn {
  display: inline-block; padding: 9px 22px; border-radius: 8px; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: all .2s; text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #1a5fd0; }
.btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: #eaf2ff; }
.btn-sm { padding: 7px 16px; font-size: 14px; }
.btn-ghost { color: var(--muted); background: transparent; }
.btn-ghost:hover { color: var(--accent); }

/* Hero */
.hero {
  background: linear-gradient(135deg, #0d2c54 0%, #123a6d 55%, #1f6feb 140%);
  color: #fff; padding: 110px 0 120px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.10), transparent 65%);
}
.hero h1 { font-size: 44px; letter-spacing: 2px; margin-bottom: 18px; font-weight: 700; }
.hero p.sub { font-size: 19px; opacity: .92; max-width: 640px; margin-bottom: 40px; }
.hero .tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero .tag {
  padding: 6px 16px; border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px; font-size: 14px; opacity: .95;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.hero .btn-outline:hover { background: rgba(255,255,255,.12); }

/* 区块 */
.section { padding: 80px 0; }
.section.alt { background: var(--white); }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head .kicker { color: var(--accent); font-size: 14px; letter-spacing: 4px; font-weight: 600; }
.section-head h2 { font-size: 32px; color: var(--navy); margin: 10px 0 14px; letter-spacing: 1px; }
.section-head p { color: var(--muted); max-width: 720px; margin: 0 auto; }

/* 卡片网格 */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 32px 28px; transition: all .25s; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(13,44,84,.10); border-color: #cdd9e8; }
.card .icon {
  width: 54px; height: 54px; border-radius: 12px; margin-bottom: 20px;
  background: #eaf2ff; display: flex; align-items: center; justify-content: center;
}
.card .icon svg { width: 28px; height: 28px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.card h3 { font-size: 18px; color: var(--navy); margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--muted); }
.card .link { display: inline-block; margin-top: 16px; color: var(--accent); font-size: 14px; font-weight: 600; }

/* 数字统计 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-size: 40px; font-weight: 700; color: var(--navy); }
.stat .num span { color: var(--accent); }
.stat .label { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* 产品列表页 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; justify-content: center; }
.filter-bar button {
  padding: 8px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); cursor: pointer; font-size: 14px; transition: all .2s;
}
.filter-bar button.active, .filter-bar button:hover { border-color: var(--accent); color: var(--accent); background: #eaf2ff; }
.product-card { display: flex; flex-direction: column; }
.card-img { margin: -4px 0 14px; border-radius: 10px; overflow: hidden; background: #f2f6fb; }
.card-img img { display: block; width: 100%; height: 180px; object-fit: contain; background: #fff; padding: 6px; transition: transform .3s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.product-card .card-img img { height: 200px; }
.param-head { font-weight: 700; color: var(--navy); font-size: 14.5px; margin: 14px 0 2px; }
.param-head span { font-weight: 500; color: #93a3bc; font-size: 12px; margin-left: 6px; }
.param-list li { margin: 7px 0; line-height: 1.6; }.product-card .cat { font-size: 12px; color: var(--accent); letter-spacing: 2px; font-weight: 600; margin-bottom: 8px; }
.product-card ul { margin: 12px 0 0 18px; color: var(--muted); font-size: 14px; }
.product-card ul li { margin: 4px 0; }

/* 表单 */
.form-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 40px; max-width: 520px; margin: 0 auto;
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; color: var(--text); margin-bottom: 6px; font-weight: 600; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; outline: none; transition: border .2s; background: #fbfcfe;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--accent); background: #fff; }
.form-row textarea { min-height: 110px; resize: vertical; }
.form-msg { font-size: 14px; margin-top: 14px; min-height: 20px; }
.form-msg.ok { color: #178a50; }
.form-msg.err { color: #d64545; }
.form-tabs { display: flex; margin-bottom: 28px; border-bottom: 2px solid var(--line); }
.form-tabs button {
  flex: 1; padding: 12px; background: none; border: none; font-size: 16px;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.form-tabs button.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

/* 联系页 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.contact-info .item { display: flex; gap: 14px; margin-bottom: 26px; }
.contact-info .item .ico {
  width: 44px; height: 44px; border-radius: 10px; background: #eaf2ff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info .item .ico svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.contact-info .item h4 { font-size: 15px; color: var(--navy); }
.contact-info .item p { font-size: 14px; color: var(--muted); }

/* 会员中心 */
.member-head {
  background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff;
  padding: 56px 0 48px;
}
.member-head h1 { font-size: 28px; margin-bottom: 8px; }
.member-head p { opacity: .85; }
.inquiry-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 24px; margin-bottom: 14px;
}
.inquiry-item .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.inquiry-item .prod { font-weight: 700; color: var(--navy); }
.badge { font-size: 12px; padding: 3px 12px; border-radius: 999px; background: #fff4e0; color: #b26a00; }
.badge.done { background: #e2f6ea; color: #178a50; }
.inquiry-item .time { font-size: 12px; color: var(--muted); }
.inquiry-item .body { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* 页脚 */
.site-footer { background: var(--navy); color: rgba(255,255,255,.82); padding: 56px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer p, .site-footer a { font-size: 14px; line-height: 2; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 18px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.55); }

/* 响应式 */
@media (max-width: 900px) {
  .grid-3, .grid-4, .stats, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .main-nav a { padding: 8px 10px; font-size: 14px; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .stats { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; height: auto; padding: 12px 0; gap: 8px; }
  .hero { padding: 70px 0; }
}
