@charset "utf-8";
/* ==========================================================================
   深圳豪莱广告有限公司 官网样式表
   配色方案：科技蓝（#003366 / #0099CC / #00CC66 / #FFFFFF / #CCFFFF / #000033）
   适配：桌面端 / 平板 / 手机端 响应式
   ========================================================================== */

:root {
  --c-primary: #003366;
  --c-primary-dark: #000033;
  --c-secondary: #0099CC;
  --c-accent: #00CC66;
  --c-light: #CCFFFF;
  --c-white: #FFFFFF;
  --c-text: #223344;
  --c-text-light: #5b6b7c;
  --c-border: #d8e6f0;
  --c-bg-soft: #f2f9ff;
  --c-footer: #001a33;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0, 51, 102, .10);
  --shadow-hover: 0 8px 24px rgba(0, 51, 102, .18);
  --max: 1200px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-text);
  background: var(--c-white);
  overflow-x: hidden;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

h1, h2, h3, h4, p, li, td, th, a, span, div { overflow-wrap: break-word; }

img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: var(--c-primary); text-decoration: none; transition: color .25s; }
a:hover { color: var(--c-secondary); }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.35; color: var(--c-primary); font-weight: 700; }

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

/* 通用：屏幕阅读器可见但视觉隐藏 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* 跳转到主内容（无障碍 + SEO） */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--c-primary); color: #fff; padding: 10px 18px;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------------------------------------------------------------- 顶部栏 */
.topbar {
  background: var(--c-primary-dark);
  color: #bcd8ee;
  font-size: 13px;
  line-height: 34px;
}
.topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; }
.topbar a { color: #bcd8ee; }
.topbar a:hover { color: var(--c-accent); }
.topbar .tb-right span { margin-left: 18px; }

/* ---------------------------------------------------------------- 头部 */
.site-header {
  background: var(--c-white);
  border-bottom: 3px solid var(--c-primary);
  position: relative;
  z-index: 60;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px; flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary) 100%);
  color: #fff; font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: -1px;
}
.logo-text b { display: block; font-size: 21px; color: var(--c-primary); letter-spacing: 1px; }
.logo-text span { display: block; font-size: 12px; color: var(--c-text-light); letter-spacing: .6px; }
.header-tel { text-align: right; font-size: 13px; color: var(--c-text-light); }
.header-tel b { display: block; font-size: 18px; color: var(--c-primary); }

/* 导航：窄屏默认折叠（按钮展开），宽度足够时自动显示为横向菜单
   注意：导航容器的关键布局同时写在 HTML 内联样式上（见各页 <nav class="main-nav">），
   以保证任何环境下主导航都可见；此处 CSS 负责悬停/选中态与窄屏适配。
   JS（assets/js/main.js）在窄屏下切换内联 display 实现折叠。 */
.nav-toggle {
  display: block; width: 46px; height: 42px; border: 1px solid var(--c-border);
  background: var(--c-bg-soft); border-radius: var(--radius); cursor: pointer;
  font-size: 20px; color: var(--c-primary); line-height: 1;
}
.main-nav {
  display: block;
  background: var(--c-primary);
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.main-nav > ul {
  display: none; flex-direction: column;
  margin: 0; padding: 0; list-style: none;
}
.main-nav.open > ul { display: flex; }
.main-nav > ul > li { position: relative; display: block; }
.main-nav > ul > li > a {
  display: block; padding: 12px 18px;
  color: #fff; font-size: 16px; font-weight: 600; line-height: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a { background: var(--c-secondary); color: #fff; }

/* 宽度足够（≥861px）时：隐藏折叠按钮，菜单常驻横向显示 */
@media (min-width: 861px) {
  .nav-toggle { display: none; }
  .main-nav > ul { display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch; }
  .main-nav > ul > li > a {
    padding: 14px 30px; min-height: 50px; line-height: 22px;
    border-top: 0; white-space: nowrap;
  }
}

/* ---------------------------------------------------------------- 首页横幅 */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background-color: var(--c-primary);
  background-image: linear-gradient(90deg, rgba(0, 26, 51, .92) 0%, rgba(0, 51, 102, .78) 55%, rgba(0, 153, 204, .42) 100%), url("../../images/site-hero-banner.jpg");
  background-size: cover, cover;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 26, 51, .90) 0%, rgba(0, 51, 102, .72) 55%, rgba(0, 153, 204, .35) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 86px 0 92px; max-width: 720px; width: 100%; }
.hero h1 { color: #fff; font-size: 40px; letter-spacing: 2px; margin-bottom: 16px; }
.hero h1 em { color: var(--c-accent); font-style: normal; }
.hero p { font-size: 16px; color: #dff1ff; margin-bottom: 26px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.hero-tags li {
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 20px;
  padding: 3px 16px; font-size: 13px; color: #eaf7ff;
}
.btn {
  display: inline-block; padding: 11px 30px; border-radius: var(--radius);
  background: var(--c-accent); color: #003322 !important; font-weight: 700; font-size: 15px;
}
.btn:hover { background: #00e673; }
.btn-ghost { background: transparent; border: 1px solid #fff; color: #fff !important; margin-left: 12px; }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }

/* ---------------------------------------------------------------- 内页 banner */
.page-banner {
  background: linear-gradient(120deg, var(--c-primary) 0%, var(--c-primary-dark) 55%, var(--c-secondary) 100%);
  color: #fff; padding: 46px 0;
}
.page-banner h1 { color: #fff; font-size: 30px; letter-spacing: 1px; }
.page-banner .crumb { font-size: 13px; color: #bfe0f5; margin-top: 10px; }
.page-banner .crumb a { color: #bfe0f5; }
.page-banner .crumb a:hover { color: var(--c-accent); }
.page-banner .lead { color: #d8edfb; margin-top: 12px; max-width: 900px; font-size: 14px; }

/* ---------------------------------------------------------------- 通用区块 */
.section { padding: 56px 0; }
.section-soft { background: var(--c-bg-soft); }
.section-dark { background: var(--c-primary-dark); color: #cfe6f7; }
.section-dark h2 { color: #fff; }

.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 { font-size: 28px; letter-spacing: 1px; display: inline-block; position: relative; padding-bottom: 12px; }
.section-title h2::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 56px; height: 3px; background: var(--c-accent); border-radius: 2px;
}
.section-title p { color: var(--c-text-light); font-size: 14px; margin-top: 10px; }
.section-title.left { text-align: left; }
.section-title.left h2::after { left: 0; transform: none; }

/* ---------------------------------------------------------------- 卡片网格 */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  overflow: hidden; transition: transform .28s, box-shadow .28s, border-color .28s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--c-secondary); }
.card-thumb { position: relative; overflow: hidden; background: var(--c-light); aspect-ratio: 4 / 3; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-thumb img { transform: scale(1.06); }
.card-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 17px; margin-bottom: 8px; }
.card-body h3 a { color: var(--c-primary); }
.card-body p { font-size: 13.5px; color: var(--c-text-light); flex: 1; }
.card-meta { font-size: 12.5px; color: #8fa3b5; margin-bottom: 8px; }
.card-more { margin-top: 12px; font-size: 13px; color: var(--c-secondary); font-weight: 600; }

/* 首页产品/案例小块 */
.tile-list { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.tile {
  display: block; background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); overflow: hidden; transition: box-shadow .28s, transform .28s;
}
.tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile span { display: block; padding: 12px 14px; font-size: 15px; font-weight: 600; color: var(--c-primary); text-align: center; }

/* ---------------------------------------------------------------- 优势/数据 */
.adv-list { display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); }
.adv {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(0, 204, 102, .35);
  border-radius: var(--radius); padding: 24px 20px; text-align: center;
}
.adv b { display: block; font-size: 20px; color: var(--c-accent); margin-bottom: 8px; }
.adv p { font-size: 13.5px; }

/* ---------------------------------------------------------------- 图文左右 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split h2 { font-size: 26px; margin-bottom: 16px; }
.split p { color: var(--c-text-light); margin-bottom: 12px; }
.about-text p { margin-bottom: 14px; color: var(--c-text-light); }
.about-text h2 { margin: 26px 0 14px; font-size: 22px; }
.about-text h3 { margin: 20px 0 10px; font-size: 17px; }
.about-text ul { margin: 0 0 14px 4px; }
.about-text ul li { position: relative; padding-left: 18px; margin-bottom: 8px; color: var(--c-text-light); }
.about-text ul li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent);
}

/* ---------------------------------------------------------------- 详情页布局 */
.detail-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: start; }
.detail-main { background: #fff; }
.detail-title {
  font-size: 27px; font-weight: 700; line-height: 1.35;
  color: var(--c-primary); margin-bottom: 12px;
}
.detail-main h1 { font-size: 27px; margin-bottom: 12px; }
.detail-meta {
  font-size: 13px; color: var(--c-text-light); border-bottom: 1px dashed var(--c-border);
  padding-bottom: 12px; margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 18px;
}
.detail-figure { margin: 0 0 24px; }
.detail-figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.detail-figure figcaption { font-size: 13px; color: var(--c-text-light); text-align: center; margin-top: 10px; }
.detail-main h2 { font-size: 20px; margin: 28px 0 12px; padding-left: 12px; border-left: 4px solid var(--c-accent); }
.detail-main h3 { font-size: 16.5px; margin: 20px 0 10px; }
.detail-main p { margin-bottom: 14px; color: #3c4d5e; }
.detail-main ul, .detail-main ol { margin: 0 0 16px 4px; }
.detail-main ul li { position: relative; padding-left: 20px; margin-bottom: 8px; color: #3c4d5e; }
.detail-main ul li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 6px; height: 6px; background: var(--c-secondary); border-radius: 50%;
}
.detail-main ol { counter-reset: n; }
.detail-main ol li { position: relative; padding-left: 26px; margin-bottom: 8px; color: #3c4d5e; counter-increment: n; }
.detail-main ol li::before {
  content: counter(n); position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px; line-height: 18px; text-align: center;
  background: var(--c-secondary); color: #fff; border-radius: 50%; font-size: 11px;
}
.detail-main table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 14px; }
.detail-main th, .detail-main td { border: 1px solid var(--c-border); padding: 10px 12px; text-align: left; }
.detail-main th { background: var(--c-bg-soft); color: var(--c-primary); width: 30%; }

/* 详情页标签 */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.tag-row a, .tag-row span {
  font-size: 12.5px; padding: 4px 12px; border-radius: 20px;
  background: var(--c-light); color: var(--c-primary);
}
.tag-row a:hover { background: var(--c-secondary); color: #fff; }

/* 上一篇 / 下一篇 */
.prev-next {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  border-top: 1px dashed var(--c-border); margin-top: 30px; padding-top: 18px; font-size: 14px;
}
.prev-next a { max-width: 48%; }

/* ---------------------------------------------------------------- 侧边栏 */
.sidebar { display: grid; gap: 22px; }
.widget { border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.widget-title {
  background: var(--c-primary); color: #fff; font-size: 15px; font-weight: 700;
  padding: 11px 16px; margin: 0;
}
.widget-body { padding: 14px 16px; }
.widget-list li { border-bottom: 1px dashed var(--c-border); padding: 9px 0; font-size: 13.5px; }
.widget-list li:last-child { border-bottom: 0; }
.widget-list li a { color: #3c4d5e; display: block; }
.widget-list li a:hover { color: var(--c-secondary); }
.widget-thumb-list li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--c-border); }
.widget-thumb-list li:last-child { border-bottom: 0; }
.widget-thumb-list img { width: 78px; height: 58px; object-fit: cover; border-radius: 4px; flex: 0 0 78px; }
.widget-thumb-list a { font-size: 13px; color: #3c4d5e; line-height: 1.5; }
.widget-thumb-list a:hover { color: var(--c-secondary); }
.widget-contact p { font-size: 13.5px; color: var(--c-text-light); margin-bottom: 8px; }
.widget-contact b { color: var(--c-primary); }

/* ---------------------------------------------------------------- 列表筛选 */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  border: 1px solid var(--c-border); background: var(--c-bg-soft);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 26px;
}
.filter-bar strong { color: var(--c-primary); font-size: 14px; }
.filter-bar a {
  font-size: 13.5px; padding: 4px 14px; border-radius: 20px;
  background: #fff; border: 1px solid var(--c-border); color: #3c4d5e;
}
.filter-bar a.on, .filter-bar a:hover { background: var(--c-secondary); border-color: var(--c-secondary); color: #fff; }

/* 列表行（新闻） */
.news-list li {
  display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px dashed var(--c-border);
}
.news-list li:first-child { padding-top: 0; }
.news-list .nl-thumb { flex: 0 0 220px; overflow: hidden; border-radius: var(--radius); }
.news-list .nl-thumb img { width: 100%; height: 150px; object-fit: cover; transition: transform .4s; }
.news-list li:hover .nl-thumb img { transform: scale(1.05); }
.news-list .nl-body { flex: 1; min-width: 0; }
.news-list h3 { font-size: 18px; margin-bottom: 8px; }
.news-list .nl-date { font-size: 12.5px; color: #8fa3b5; margin-bottom: 6px; }
.news-list p { font-size: 13.5px; color: var(--c-text-light); }

/* 分页 */
.pager { text-align: center; margin-top: 34px; }
.pager span, .pager a {
  display: inline-block; min-width: 36px; padding: 6px 12px; margin: 0 4px;
  border: 1px solid var(--c-border); border-radius: 4px; font-size: 14px; color: #3c4d5e;
}
.pager .cur, .pager a:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* ---------------------------------------------------------------- 表单 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13.5px; color: var(--c-primary); margin-bottom: 6px; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--c-border);
  border-radius: 4px; font-size: 14px; font-family: inherit; color: var(--c-text); background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--c-secondary); box-shadow: 0 0 0 3px rgba(0, 153, 204, .14);
}
.form-tip { font-size: 12.5px; color: #8fa3b5; margin-top: 12px; }
.form-msg { display: none; margin-top: 14px; padding: 10px 14px; border-radius: 4px; font-size: 14px; }
.form-msg.ok { display: block; background: #e6fff2; border: 1px solid var(--c-accent); color: #006633; }
.form-msg.err { display: block; background: #fff0f0; border: 1px solid #ff9999; color: #cc0000; }

/* ---------------------------------------------------------------- 联系我们 */
.contact-cards { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.contact-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 24px 20px; text-align: center; }
.contact-card b { display: block; color: var(--c-primary); font-size: 16px; margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--c-text-light); word-break: break-all; }
.contact-card a { color: var(--c-secondary); }
.map-box { border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.map-box img { width: 100%; }
.map-note { font-size: 13px; color: var(--c-text-light); padding: 12px 16px; background: var(--c-bg-soft); text-align: center; }

/* ---------------------------------------------------------------- 页脚 */
.site-footer { background: var(--c-footer); color: #a8c2d8; font-size: 13.5px; margin-top: 0; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding: 44px 0 34px; }
.footer-main h2, .footer-main h3 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-main p { color: #a8c2d8; margin-bottom: 8px; }
.footer-main a { color: #a8c2d8; }
.footer-main a:hover { color: var(--c-accent); }
.footer-main li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0 22px;
  text-align: center; font-size: 13px; color: #8fb0c9;
}
.footer-bottom .beian { color: #cfe6f7; }
.footer-bottom .beian a { color: #cfe6f7; }
.footer-bottom .beian a:hover { color: var(--c-accent); }
.footer-slogan { font-size: 13px; color: #8fb0c9; margin-top: 6px; }

/* 返回顶部 */
.to-top {
  position: fixed; right: 20px; bottom: 28px; width: 44px; height: 44px;
  border-radius: 50%; background: var(--c-primary); color: #fff; border: 0;
  font-size: 18px; cursor: pointer; display: none; z-index: 90;
  box-shadow: var(--shadow-hover);
}
.to-top:hover { background: var(--c-secondary); }
.to-top.show { display: block; }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1100px) {
  .grid-4, .tile-list { grid-template-columns: repeat(3, 1fr); }
  .adv-list { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 900px) {
  .detail-wrap { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .hero-inner { padding: 60px 0 66px; }
  .section { padding: 42px 0; }
}

@media (max-width: 760px) {
  .header-inner { padding: 12px 0; }
  .logo-text b { font-size: 17px; }
  .header-tel { display: none; }
  .grid-2, .grid-3, .grid-4, .tile-list, .adv-list { grid-template-columns: repeat(2, 1fr); }
  .news-list li { flex-direction: column; gap: 12px; }
  .news-list .nl-thumb { flex: none; }
  .news-list .nl-thumb img { height: 190px; }
  .form-grid { grid-template-columns: 1fr; }
  .page-banner h1 { font-size: 23px; }
  .detail-main h1 { font-size: 22px; }
  .detail-title { font-size: 22px; }
  .prev-next a { max-width: 100%; }
}

@media (max-width: 520px) {
  .grid-2, .grid-3, .grid-4, .tile-list, .adv-list { grid-template-columns: 1fr; }
  .topbar { font-size: 12px; }
  .topbar .tb-left { display: none; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 14px; }
  .section-title h2 { font-size: 22px; }
  .footer-main { grid-template-columns: 1fr; }
  .logo-mark { width: 44px; height: 44px; flex: 0 0 44px; font-size: 18px; }
}

@media print {
  .main-nav, .topbar, .to-top, .site-footer { display: none; }
  body { font-size: 12pt; }
}
