/* ===== 沈阳巨华电器 H5 自适应样式（替代旧 table 布局） ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy: #10324A;
  --blue: #14507E;
  --blue-2: #2E6FA6;
  --accent: #E8833A;
  --bg: #F3F6F9;
  --card: #FFFFFF;
  --line: #E4EAF0;
  --text: #26333D;
  --muted: #6B7A86;
  --radius: 10px;
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; border: 0; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 顶部信息条 ===== */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; max-width: 1200px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { height: 56px; width: auto; }
.brand-name { font-size: 18px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.topbar-contact { display: flex; gap: 24px; align-items: center; color: var(--muted); font-size: 14px; }
.topbar-contact b { color: var(--navy); font-weight: 600; }
.topbar-contact .ico { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; fill: var(--blue); }

/* ===== 导航 ===== */
.navbar { background: var(--navy); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(16,50,74,.18); }
.navbar-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-menu { display: flex; flex-wrap: wrap; }
.nav-menu a { display: block; color: #EAF2F8; padding: 16px 20px; font-size: 15px; }
.nav-menu a:hover, .nav-menu a.active { color: #fff; background: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 14px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

/* ===== 公告条 ===== */
.notice { background: #EAF3FA; border-bottom: 1px solid var(--line); }
.notice-inner { max-width: 1200px; margin: 0 auto; padding: 10px 20px; color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 10px; }
.notice-label { color: var(--blue); font-weight: 700; flex-shrink: 0; }
.notice marquee { flex: 1; }

/* ===== Hero ===== */
.hero { background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 60%, var(--blue-2) 100%); color: #fff; }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 70px 20px; }
.hero h1 { font-size: 34px; font-weight: 700; margin-bottom: 16px; letter-spacing: 1px; }
.hero p { font-size: 16px; max-width: 640px; opacity: .92; }
.hero-actions { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 11px 26px; border-radius: 6px; font-size: 15px; border: 0; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #D6732C; color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: #fff; color: #fff; }

/* 内页小横幅 */
.page-hero { background: linear-gradient(120deg, var(--navy), var(--blue-2)); color: #fff; }
.page-hero-inner { max-width: 1200px; margin: 0 auto; padding: 36px 20px; }
.page-hero h1 { font-size: 24px; font-weight: 700; }
.breadcrumb { font-size: 13px; opacity: .85; margin-top: 6px; }
.breadcrumb a { color: #DCEAF4; }

/* ===== 主体布局 ===== */
.main-wrap { max-width: 1200px; margin: 0 auto; padding: 36px 20px; display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.sidebar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.side-title { background: var(--blue); color: #fff; font-weight: 700; padding: 14px 18px; font-size: 16px; }
.side-links { padding: 10px 0; }
.side-links a { display: block; padding: 11px 18px; color: var(--text); border-left: 3px solid transparent; }
.side-links a:hover, .side-links a.active { color: var(--blue); border-left-color: var(--accent); background: #F5F9FC; }
.side-promo { padding: 14px 18px; display: grid; gap: 10px; }
.side-promo a { font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; text-align: center; }

.content { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.content-head { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.content-head h2 { font-size: 20px; color: var(--navy); }
.content-body { padding: 24px; }
.rich { font-size: 15px; line-height: 1.9; color: var(--text); }
.rich p { margin-bottom: 12px; }
.rich img { max-width: 100%; }

/* ===== 首页区块 ===== */
.section { padding: 44px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.section-head h2 { font-size: 24px; color: var(--navy); position: relative; padding-left: 14px; }
.section-head h2::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; background: var(--accent); border-radius: 2px; }
.more-link { font-size: 14px; color: var(--muted); }
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

/* 新闻 */
.news-top { display: flex; gap: 18px; margin-bottom: 18px; }
.news-top .pic { width: 160px; height: 120px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.news-top .pic img { width: 100%; height: 100%; object-fit: cover; }
.news-top .tm { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.news-top .kj { color: var(--muted); font-size: 13px; line-height: 1.7; }
.news-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.news-row .date { color: var(--muted); flex-shrink: 0; }

/* 产品卡片 */
.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; transition: .25s; }
.product-card:hover { box-shadow: 0 8px 22px rgba(16,50,74,.12); transform: translateY(-3px); }
.product-card .pic { height: 210px; background: #F7F9FB; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card .pic img { max-height: 100%; object-fit: contain; }
.product-card .info { padding: 16px; }
.product-card .info h3 { font-size: 16px; margin-bottom: 6px; }
.product-card .info p { color: var(--muted); font-size: 13px; line-height: 1.6; }

/* 资质/荣誉图片墙 */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.gallery-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.gallery-card .pic { height: 240px; display: flex; align-items: center; justify-content: center; background: #F7F9FB; }
.gallery-card .pic img { max-height: 100%; object-fit: contain; }
.gallery-card .cap { padding: 12px 16px; text-align: center; font-size: 14px; }

/* 分页 */
.pager { margin-top: 26px; display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.pager a, .pager span { display: inline-block; min-width: 34px; text-align: center; padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); }
.pager a:hover { border-color: var(--blue); color: var(--blue); }
.pager .cur { background: var(--blue); color: #fff; border-color: var(--blue); }
.pager .stat { border: 0; }

/* 表单 */
.form-box { max-width: 680px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; margin-bottom: 18px; }
.form-row label { text-align: right; color: var(--text); }
.form-row label .red { color: #E23B3B; }
.form-row input[type=text], .form-row input[type=email], .form-row textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #C9D4DC; border-radius: 6px; font-size: 15px; background: #FBFCFD;
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--blue-2); }
.form-actions { grid-column: 2; display: flex; gap: 14px; }
.yzm-box { display: flex; align-items: center; gap: 10px; }
.yzm-box .yzm-code { background: #FFF7E8; border: 1px dashed #E8B86A; border-radius: 6px; padding: 10px 14px; font-weight: 700; color: var(--accent); letter-spacing: 2px; }

/* 留言 / 招聘 */
.msg-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; background: #fff; }
.msg-card .q { font-weight: 700; margin-bottom: 8px; }
.msg-card .a { color: var(--muted); }
.job-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; background: #fff; }
.job-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; margin-bottom: 12px; }
.job-grid .item b { color: var(--navy); }
.job-desc { border-top: 1px dashed var(--line); padding-top: 12px; }
.job-desc p { margin-bottom: 8px; }

/* 联系信息 */
.contact-list { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .ico { width: 38px; height: 38px; border-radius: 8px; background: #EAF3FA; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item .ico svg { width: 20px; height: 20px; fill: var(--blue); }
.contact-item h4 { font-size: 15px; color: var(--navy); margin-bottom: 2px; }
.contact-item p { color: var(--muted); }

/* ===== 页脚 ===== */
.footer { background: var(--navy); color: #C8D6E0; margin-top: 40px; }
.footer-main { max-width: 1200px; margin: 0 auto; padding: 40px 20px 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer p, .footer a { color: #C8D6E0; font-size: 14px; line-height: 1.9; }
.footer a:hover { color: #fff; }
.footer-nav a { display: inline-block; margin-right: 16px; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom-inner { max-width: 1200px; margin: 0 auto; padding: 16px 20px; font-size: 13px; text-align: center; color: #93A8B6; }
.footer-bottom a { color: #93A8B6; }
.footer select { background: #1C425C; color: #C8D6E0; border: 1px solid #355A73; border-radius: 6px; padding: 6px 10px; }

/* 返回顶部 */
.back-top { position: fixed; right: 22px; bottom: 30px; width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(16,50,74,.3); }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .main-wrap { grid-template-columns: 1fr; }
  .home-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .topbar-contact { display: none; }
  .brand-name { font-size: 15px; }
  .nav-toggle { display: block; }
  .nav-menu { display: none; position: absolute; left: 0; right: 0; background: var(--navy); flex-direction: column; }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 13px 22px; border-top: 1px solid rgba(255,255,255,.08); }
  .hero-inner { padding: 44px 20px; }
  .hero h1 { font-size: 26px; }
  .product-grid, .gallery-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 6px; }
  .form-row label { text-align: left; }
  .form-actions { grid-column: 1; }
  .job-grid { grid-template-columns: 1fr; }
  .news-top .pic { width: 110px; height: 90px; }
}
