/* 国华科技官网 —— 蓝色商务风（2026-10-14 重写版） */
:root {
  --brand: #0b5fa5;
  --brand-dark: #084a82;
  --brand-deep: #063a68;
  --brand-light: #e8f2fb;
  --accent: #f0a028;
  --ink: #1a2b3c;
  --muted: #5b6b7c;
  --bg: #f5f8fb;
  --card: #ffffff;
  --line: #dfe7ef;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(11, 95, 165, .07), 0 8px 24px rgba(11, 95, 165, .06);
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.7; font-size: 16px; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部 ---------- */
.topbar { background: var(--brand-deep); color: #cfe3f5; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar a { color: #fff; }
.topbar .tb-right { display: flex; gap: 18px; align-items: center; }

/* ---------- 导航 ---------- */
.nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand img { height: 40px; width: auto; }
.brand b { font-size: 19px; letter-spacing: .5px; display: block; line-height: 1.2; }
.brand span { font-size: 12px; color: var(--muted); display: block; line-height: 1.2; }
.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-menu > .nav-item { position: relative; }
.nav-menu a.nav-link { display: block; padding: 10px 15px; color: var(--ink); font-size: 15.5px; border-radius: 8px; white-space: nowrap; }
.nav-menu a.nav-link:hover, .nav-menu a.nav-link.on { color: var(--brand); background: var(--brand-light); }
.nav-cta { background: var(--brand); color: #fff !important; padding: 9px 18px; border-radius: 8px; font-size: 15px; margin-left: 10px; white-space: nowrap; }
.nav-cta:hover { background: var(--brand-dark); }
.nav-drop { display: none; position: absolute; left: 0; top: 100%; min-width: 150px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; z-index: 60; }
.nav-item:hover .nav-drop { display: block; }
.nav-drop a { display: block; padding: 8px 14px; font-size: 14.5px; color: var(--ink); border-radius: 7px; white-space: nowrap; }
.nav-drop a:hover { background: var(--brand-light); color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; }
.nav-toggle i, .nav-toggle i::before, .nav-toggle i::after { display: block; width: 22px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; }
.nav-toggle i::before, .nav-toggle i::after { content: ""; position: absolute; left: 0; }
.nav-toggle i::before { top: -7px; }
.nav-toggle i::after { top: 7px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 60%, #1479c9 100%); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.hero::before { content: ""; position: absolute; left: -80px; bottom: -160px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .05); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 38px; line-height: 1.3; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: #ffd58f; }
.hero .lead { font-size: 17px; color: #dbe9f7; margin-bottom: 28px; max-width: 560px; }
.hero .btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 26px; border-radius: 10px; font-size: 16px; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; font-weight: 600; }
.btn-primary:hover { background: #d88f1d; color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.hero-card { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius); padding: 24px; backdrop-filter: blur(4px); }
.hero-card .title { font-size: 15px; color: #cfe3f5; margin-bottom: 14px; }
.hero-card ul { list-style: none; }
.hero-card li { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 15px; align-items: baseline; }
.hero-card li:first-child { border-top: 0; }
.hero-card .no { color: #ffd58f; font-weight: 700; }
.hero-card b { font-weight: 600; }

/* ---------- 区块 ---------- */
.section { padding: 56px 0; }
.section.alt { background: #fff; }
.section.tight { padding: 36px 0; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.kicker { color: var(--brand); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.sec-head h2 { font-size: 28px; margin-bottom: 10px; }
.sec-head p { color: var(--muted); }
.grid { display: grid; gap: 22px; }
.c2 { grid-template-columns: repeat(2, 1fr); }
.c3 { grid-template-columns: repeat(3, 1fr); }
.c4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
a.card { display: block; color: var(--ink); }
a.card:hover { transform: translateY(-3px); box-shadow: 0 2px 6px rgba(11, 95, 165, .1), 0 14px 34px rgba(11, 95, 165, .12); color: var(--ink); }
.card .ico { font-size: 30px; margin-bottom: 12px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .tag { display: inline-block; background: var(--brand-light); color: var(--brand); font-size: 12.5px; padding: 2px 10px; border-radius: 99px; margin-bottom: 10px; }
.mini { list-style: none; margin-top: 12px; }
.mini li { font-size: 13.5px; color: var(--muted); padding-left: 18px; position: relative; }
.mini li::before { content: "·"; position: absolute; left: 4px; color: var(--brand); font-weight: 700; }

/* ---------- 分组标题 ---------- */
.group-title { display: flex; align-items: baseline; gap: 12px; margin: 34px 0 18px; }
.group-title:first-child { margin-top: 0; }
.group-title h3 { font-size: 20px; }
.group-title .en { color: var(--muted); font-size: 13px; letter-spacing: 1px; }
.group-title .line { flex: 1; height: 1px; background: var(--line); }

/* ---------- 产品卡（硬件） ---------- */
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.pcard .pic { display: block; height: 170px; background: #f2f6fa; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pcard .pic img { max-height: 160px; width: auto; object-fit: contain; }
.pcard .body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.pcard h4 { font-size: 15.5px; margin-bottom: 6px; }
.pcard .go { margin-top: auto; font-size: 14px; color: var(--brand); font-weight: 600; }

/* ---------- 列表页（新闻/案例） ---------- */
.page-head { background: linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #fff; padding: 40px 0; }
.page-head h1 { font-size: 30px; }
.page-head p { color: #cfe3f5; margin-top: 6px; }
.crumb { font-size: 13px; color: #cfe3f5; margin-bottom: 10px; }
.crumb a { color: #fff; }
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; padding: 40px 0; align-items: start; }
.news-list { list-style: none; }
.news-list li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.news-list .date { color: var(--muted); font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.news-list a { font-size: 16.5px; color: var(--ink); flex: 1; }
.news-list a:hover { color: var(--brand); }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
.side-box h4 { font-size: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.side-box ul { list-style: none; }
.side-box li { padding: 7px 0; font-size: 14.5px; }
.side-box li a { color: var(--ink); }
.side-box li a:hover { color: var(--brand); }
.side-contact { background: linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #fff; }
.side-contact h4 { color: #fff; border-color: rgba(255, 255, 255, .25); }
.side-contact .tel { font-size: 24px; font-weight: 700; letter-spacing: 1px; }
.side-contact p { font-size: 13.5px; color: #cfe3f5; margin-top: 6px; }

/* ---------- 文章/详情正文 ---------- */
.article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; box-shadow: var(--shadow); }
.article h1 { font-size: 25px; text-align: center; line-height: 1.4; margin-bottom: 8px; }
.article .meta { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.article .content { font-size: 15.5px; overflow-wrap: break-word; }
.article .content p { margin: 0 0 .9em; }
.article .content img { border-radius: 8px; margin: 8px 0; }
.article .content table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 14px; }
.article .content table td, .article .content table th { border: 1px solid var(--line); padding: 8px 10px; }
.article .content table th { background: var(--brand-light); }
.article .content ol, .article .content ul { margin: 0 0 .9em 1.4em; }
.article .content h3, .article .content h4 { margin: 1.2em 0 .5em; }
.sec-block { margin-top: 30px; }
.sec-block > h3 { font-size: 18px; color: var(--brand-dark); padding-left: 12px; border-left: 4px solid var(--brand); margin-bottom: 14px; }
.prod-hero { display: grid; grid-template-columns: 340px 1fr; gap: 30px; margin-bottom: 26px; }
.prod-hero .pic { background: #f2f6fa; border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; align-items: center; justify-content: center; min-height: 220px; }
.prod-hero .pic img { max-height: 200px; object-fit: contain; }
.prod-hero .info { display: flex; flex-direction: column; justify-content: center; }
.prod-hero .info h1 { text-align: left; font-size: 24px; margin-bottom: 10px; }
.prod-hero .info .cat { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.prod-hero .info .btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 客户 ---------- */
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.client-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: var(--shadow); }
.client-card .logo { height: 90px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.client-card .logo img { max-height: 84px; max-width: 100%; object-fit: contain; }
.client-card .logo .ph { width: 84px; height: 84px; border-radius: 50%; background: var(--brand-light); color: var(--brand); font-size: 30px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.client-card h4 { font-size: 15.5px; }
.client-card .type { font-size: 12.5px; color: var(--muted); }

/* ---------- CTA 条 ---------- */
.cta { background: linear-gradient(135deg, var(--brand-deep), var(--brand)); border-radius: var(--radius); color: #fff; padding: 34px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h3 { font-size: 22px; margin-bottom: 6px; }
.cta p { color: #cfe3f5; font-size: 15px; }

/* ---------- 页脚 ---------- */
.foot { background: var(--brand-deep); color: #b9cfe6; padding: 48px 0 0; margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 34px; }
.foot .logo-line { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.foot .logo-line img { height: 36px; }
.foot .logo-line b { color: #fff; font-size: 17px; }
.foot h4 { color: #fff; font-size: 15.5px; margin-bottom: 14px; }
.foot a { color: #b9cfe6; display: block; padding: 5px 0; font-size: 14px; }
.foot a:hover { color: #fff; }
.foot .about p { font-size: 13.5px; line-height: 1.8; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding: 18px 0; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-bottom a { display: inline; padding: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .c4 { grid-template-columns: repeat(2, 1fr); }
  .c3 { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .topbar { display: none; }
  .nav-toggle { display: block; }
  .nav-menu { display: none; position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 2px; box-shadow: var(--shadow); }
  .nav-menu.open { display: flex; }
  .nav-menu a.nav-link { padding: 12px 10px; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .nav-drop { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 4px 18px; }
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: 28px; }
  .section { padding: 40px 0; }
  .c2, .c3, .c4 { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .article { padding: 24px 20px; }
  .prod-hero { grid-template-columns: 1fr; }
  .news-list li { flex-direction: column; gap: 2px; }
  .cta { padding: 26px; }
}
