/* ============================================================
   河南正耀建设有限公司 官网样式
   zhengyaojt.com · style.css
   目录：基础 / 布局 / 头部导航 / 轮播 / 区块 / 业务 / 案例 / 荣誉 /
        时间轴 / 新闻 / 分页 / 侧栏 / 面包屑 / 页脚 / 页面内页 / 响应式
   ============================================================ */

/* ---------- 基础 ---------- */
:root {
  --blue: #14345e;
  --blue2: #1b4d8f;
  --blue3: #2a67b8;
  --gold: #c8a24b;
  --gold2: #d8b968;
  --bg: #f5f7fa;
  --line: #e6e9ef;
  --text: #333a45;
  --muted: #7a8494;
  --radius: 8px;
  --shadow: 0 4px 18px rgba(20, 52, 94, .08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  color: var(--text);
  background: #fff;
  font-size: 15px;
  line-height: 1.8;
}
a { color: var(--blue2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn {
  display: inline-block; padding: 10px 28px; border-radius: 4px;
  font-size: 14px; line-height: 1.6; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--blue2); color: #fff; }
.btn-primary:hover { background: var(--blue3); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold2); color: #fff; }
.btn-outline { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-outline-dark { border-color: var(--blue2); color: var(--blue2); }
.btn-outline-dark:hover { background: var(--blue2); color: #fff; }
.section { padding: 64px 0; }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head h2 { font-size: 28px; color: var(--blue); position: relative; padding-bottom: 14px; }
.sec-head h2::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 52px; height: 3px; background: var(--gold); }
.sec-head p { color: var(--muted); margin-top: 10px; }
.sec-more { text-align: center; margin-top: 34px; }
.note { color: var(--muted); font-size: 13px; margin-top: 14px; }

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; box-shadow: 0 2px 10px rgba(20,52,94,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { width: 48px; height: 48px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text strong { font-size: 22px; color: var(--blue); letter-spacing: 2px; }
.logo-text small { font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav li a { display: block; padding: 8px 16px; color: var(--text); font-size: 15px; border-radius: 4px; }
.main-nav li a:hover { color: var(--blue2); background: #f0f4fa; }
.main-nav li.active a { color: var(--blue2); background: #eef3fa; font-weight: 600; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 0 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--blue); border-radius: 2px; }

/* ---------- 轮播 ---------- */
.hero { position: relative; height: 560px; overflow: hidden; background: var(--blue); }
.hero-slider, .hero-slider .slide { position: absolute; inset: 0; }
.hero-slider .slide { opacity: 0; transition: opacity 1s; }
.hero-slider .slide.on { opacity: 1; }
.hero-slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slider .slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,28,54,.72), rgba(10,28,54,.18)); }
.hero-caption { position: absolute; z-index: 5; top: 50%; transform: translateY(-50%); width: 100%; }
.hero-caption h1 { font-size: 44px; color: #fff; letter-spacing: 3px; margin-bottom: 14px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.hero-caption p { color: rgba(255,255,255,.9); font-size: 17px; margin-bottom: 26px; }
.hero-caption .btn { margin-right: 12px; }
.hero-dots { position: absolute; z-index: 6; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.hero-dots i.on { background: var(--gold); }

/* ---------- 首页简介 ---------- */
.intro-sec { background: #fff; }
.intro-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.intro-img { position: relative; min-height: 320px; }
.intro-img > img:first-child { width: 82%; border-radius: var(--radius); box-shadow: var(--shadow); }
.intro-img2 { position: absolute; right: 0; bottom: -24px; width: 46%; border-radius: var(--radius); border: 6px solid #fff; box-shadow: var(--shadow); }
.intro-text h2 { font-size: 28px; color: var(--blue); margin-bottom: 18px; }
.intro-text p { margin-bottom: 14px; color: #4a5568; }

/* ---------- 数据统计 ---------- */
.stats-sec { background: var(--blue); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-size: 34px; color: var(--gold2); font-weight: 700; }
.stat span { color: rgba(255,255,255,.85); font-size: 14px; }

/* ---------- 业务卡片 ---------- */
.biz-sec { background: var(--bg); }
.biz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.biz-card { background: #fff; border-radius: var(--radius); padding: 26px 22px; border-top: 3px solid var(--gold); box-shadow: var(--shadow); transition: transform .25s; }
.biz-card:hover { transform: translateY(-6px); }
.biz-card h3 { font-size: 17px; color: var(--blue); margin-bottom: 10px; }
.biz-card p { color: var(--muted); font-size: 13.5px; line-height: 1.75; }

/* ---------- 案例网格 ---------- */
.case-sec { background: #fff; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; height: 220px; box-shadow: var(--shadow); }
.case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.case-card:hover img { transform: scale(1.06); }
.case-mask { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; background: linear-gradient(transparent, rgba(10,28,54,.82)); color: #fff; }
.case-mask h3 { font-size: 16px; margin-bottom: 2px; }
.case-mask p { font-size: 12.5px; color: var(--gold2); }

/* ---------- 资质荣誉 ---------- */
.honor-sec { background: var(--bg); }
.honor-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.honor-text h2 { font-size: 28px; color: var(--blue); margin-bottom: 20px; }
.honor-text li { padding: 7px 0 7px 24px; position: relative; color: #4a5568; }
.honor-text li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 8px; height: 8px; background: var(--gold); border-radius: 2px; transform: rotate(45deg); }
.honor-text .btn { margin-top: 16px; }
.honor-img { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.honor-img img { border-radius: var(--radius); height: 260px; width: 100%; object-fit: cover; box-shadow: var(--shadow); }

/* ---------- 时间轴 ---------- */
.timeline-sec { background: #fff; }
.timeline { position: relative; max-width: 900px; margin: 0 auto; padding-left: 0; }
.timeline::before { content: ""; position: absolute; left: 110px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 110px 24px 1fr; align-items: start; gap: 8px; padding: 14px 0; }
.tl-date { text-align: right; font-weight: 700; color: var(--blue2); padding-top: 2px; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gold); margin-top: 7px; justify-self: center; }
.tl-text { color: #4a5568; }

/* ---------- 首页新闻 ---------- */
.news-sec { background: var(--bg); }
.home-news .news-item { background: #fff; }

/* ---------- CTA ---------- */
.cta-sec { background: linear-gradient(120deg, var(--blue), var(--blue2)); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-text h2 { color: #fff; font-size: 26px; margin-bottom: 6px; }
.cta-text p { color: rgba(255,255,255,.85); }

/* ---------- 面包屑 ---------- */
.breadcrumb { background: #fafbfd; border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue2); }
.breadcrumb a + a::before { content: "›"; margin: 0 8px; color: #c3cad6; }

/* ---------- 内页横幅 ---------- */
.page-banner { padding: 56px 0; color: #fff; background-size: cover; background-position: center; }
.page-banner h1 { font-size: 32px; letter-spacing: 2px; }
.page-banner p { color: rgba(255,255,255,.85); margin-top: 8px; }
.page-banner-news { background: linear-gradient(120deg, var(--blue), var(--blue3)); }
.page-banner-about { background: linear-gradient(120deg, var(--blue), #35619e); }
.page-banner-biz { background: linear-gradient(120deg, #1a4a8a, #2a67b8); }
.page-banner-qua { background: linear-gradient(120deg, var(--blue), #5a7fb8); }
.page-banner-case { background: linear-gradient(120deg, #2c4a7c, #3d6aa8); }
.page-banner-contact { background: linear-gradient(120deg, var(--blue2), #3d6aa8); }

/* ---------- 页面主体两栏 ---------- */
.page-main { display: grid; grid-template-columns: 1fr 300px; gap: 32px; padding-top: 36px; padding-bottom: 56px; align-items: start; }
.content-main { min-width: 0; }
.article-box { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); margin-bottom: 26px; }
.box-title { font-size: 21px; color: var(--blue); margin-bottom: 14px; padding-left: 12px; border-left: 4px solid var(--gold); }
.article-title { font-size: 26px; color: var(--blue); margin-bottom: 14px; }
.article-body p { margin-bottom: 14px; text-align: justify; }
.article-img { border-radius: var(--radius); margin: 8px 0 18px; }

/* 分类标签页签 */
.cat-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.cat-tabs a { padding: 7px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--text); font-size: 14px; }
.cat-tabs a:hover { border-color: var(--blue2); color: var(--blue2); }
.cat-tabs a.on { background: var(--blue2); color: #fff; border-color: var(--blue2); }

/* ---------- 新闻列表 ---------- */
.news-item { display: flex; gap: 20px; background: #fff; border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); transition: transform .2s; }
.news-item:hover { transform: translateY(-3px); }
.news-thumb { flex: 0 0 220px; height: 132px; border-radius: 6px; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item-body { flex: 1; min-width: 0; }
.news-item-title { font-size: 17px; line-height: 1.5; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-item-title a { color: var(--blue); }
.news-item-title a:hover { color: var(--blue2); }
.news-item-summary { color: var(--muted); font-size: 13.5px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.news-item-meta { display: flex; gap: 14px; align-items: center; font-size: 12.5px; color: var(--muted); }
.news-item-meta .cat { background: #eef3fa; color: var(--blue2); padding: 1px 10px; border-radius: 10px; }
.news-item-meta .cat.tag-real { background: #fdf3e3; color: #b07c1a; }

/* ---------- 分页 ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 28px; }
.pagination a, .pagination .page-cur, .pagination .page-ellipsis, .pagination .page-prev, .pagination .page-next {
  min-width: 36px; height: 36px; line-height: 36px; text-align: center; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 14px; color: var(--text);
}
.pagination a:hover { border-color: var(--blue2); color: var(--blue2); }
.pagination .page-cur { background: var(--blue2); color: #fff; border-color: var(--blue2); font-weight: 600; }
.pagination .disabled { color: #c3cad6; cursor: not-allowed; background: #f7f8fa; }
.pagination .page-ellipsis { border: 0; }
.pagination .page-info { margin-left: 10px; color: var(--muted); font-size: 13px; }

/* ---------- 侧栏 ---------- */
.side-box { background: #fff; border-radius: var(--radius); padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
.side-box h3 { font-size: 17px; color: var(--blue); margin-bottom: 12px; padding-left: 10px; border-left: 3px solid var(--gold); }
.side-news li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.side-news li:last-child { border-bottom: 0; }
.side-news a { display: block; color: var(--text); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-news a:hover { color: var(--blue2); }
.side-news span { font-size: 12px; color: var(--muted); }
.side-cat li { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.side-cat li:last-child { border-bottom: 0; }
.side-cat a { color: var(--text); }
.side-cat a:hover { color: var(--blue2); }
.side-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.side-tags a { background: var(--bg); padding: 4px 12px; border-radius: 12px; font-size: 12.5px; color: var(--text); }
.side-tags a:hover { background: #eef3fa; color: var(--blue2); }
.tel-big { font-size: 24px; color: var(--gold); font-weight: 700; margin-bottom: 12px; }
.msg-form input, .msg-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; margin-bottom: 10px; font-size: 14px; font-family: inherit; }
.msg-form input:focus, .msg-form textarea:focus { outline: none; border-color: var(--blue2); }
.msg-tip { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ---------- 详情页 ---------- */
.article-page .article-title { font-size: 28px; }
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.article-meta a { color: var(--muted); }
.article-meta .tag-real { background: #fdf3e3; color: #b07c1a; padding: 0 8px; border-radius: 4px; }
.article-source { background: #f7f9fc; border-radius: 6px; padding: 10px 14px; font-size: 12.5px; color: var(--muted); word-break: break-all; }
.article-source a { color: var(--blue2); }
.article-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.article-nav p { flex: 1 1 45%; }
.article-nav a { color: var(--blue2); }
.related-box { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.related-box h3 { font-size: 17px; color: var(--blue); margin-bottom: 12px; padding-left: 10px; border-left: 3px solid var(--gold); }
.related-box li { padding: 8px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 14px; font-size: 14px; }
.related-box li:last-child { border-bottom: 0; }
.related-box a { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-box a:hover { color: var(--blue2); }
.related-box span { color: var(--muted); font-size: 12.5px; flex-shrink: 0; }

/* ---------- 内页业务/案例列表 ---------- */
.biz-list, .case-list { display: flex; flex-direction: column; gap: 18px; }
.biz-detail, .case-detail { display: flex; gap: 22px; background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); align-items: center; }
.biz-detail img, .case-detail img { width: 260px; height: 170px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.biz-detail h3, .case-detail h3 { font-size: 18px; color: var(--blue); margin-bottom: 6px; }
.biz-detail p, .case-detail p { color: #4a5568; font-size: 14px; }
.case-tag { color: var(--gold); font-size: 13px !important; }

/* ---------- 资质表格 ---------- */
.qual-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 4px; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.q-name { color: var(--blue); font-weight: 600; }
.q-org { color: var(--muted); font-size: 13px; flex-shrink: 0; }
.honor-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.honor-table th, .honor-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; font-size: 13.5px; }
.honor-table th { background: #eef3fa; color: var(--blue); font-weight: 600; }
.honor-table th:nth-child(1) { width: 32%; }
.honor-table th:nth-child(2) { width: 26%; }
.honor-table th:nth-child(3) { width: 42%; }

/* ---------- 联系页 ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.c-card { background: var(--bg); border-radius: var(--radius); padding: 20px; text-align: center; }
.c-card h3 { color: var(--blue2); font-size: 15px; margin-bottom: 6px; }
.c-card p { font-size: 13.5px; color: #4a5568; }

/* ---------- 价值卡片（关于页） ---------- */
.val-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.val-card { background: var(--bg); border-radius: var(--radius); padding: 20px 16px; text-align: center; }
.val-card h3 { color: var(--blue2); font-size: 17px; margin-bottom: 6px; }
.val-card p { color: var(--muted); font-size: 13px; }

/* ---------- 时间轴列表（关于页） ---------- */
.tl-list li { display: flex; gap: 18px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.tl-list .t { flex: 0 0 90px; color: var(--blue2); font-weight: 700; }
.tl-list .c { color: #4a5568; }

/* ---------- 404 ---------- */
.err-box { text-align: center; padding: 110px 20px; }
.err-box h1 { font-size: 90px; color: var(--blue); line-height: 1; }
.err-box p { color: var(--muted); margin: 16px 0 26px; }
.err-box .btn { margin: 0 8px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--blue); color: rgba(255,255,255,.8); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 48px 20px 36px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; position: relative; padding-bottom: 8px; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--gold); }
.footer-col p { font-size: 13.5px; line-height: 1.9; }
.footer-col li { padding: 5px 0; font-size: 13.5px; }
.footer-col a { color: rgba(255,255,255,.8); }
.footer-col a:hover { color: var(--gold2); }
.contact-list li { position: relative; padding-left: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; text-align: center; font-size: 13px; }
.footer-bottom a { color: rgba(255,255,255,.8); }
.footer-bottom .icp { margin-top: 4px; opacity: .7; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .honor-grid, .intro-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-main { grid-template-columns: 1fr; }
  .side { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .side .side-box { margin-bottom: 0; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; box-shadow: 0 8px 16px rgba(20,52,94,.1); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 12px 20px; }
  .main-nav li a { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .hero { height: 420px; }
  .hero-caption h1 { font-size: 30px; }
  .intro-grid, .honor-grid { grid-template-columns: 1fr; }
  .intro-img2 { display: none; }
  .timeline::before { left: 70px; }
  .timeline li { grid-template-columns: 70px 20px 1fr; }
  .news-item { flex-direction: column; }
  .news-thumb { flex: none; width: 100%; height: 180px; }
  .biz-detail, .case-detail { flex-direction: column; align-items: flex-start; }
  .biz-detail img, .case-detail img { width: 100%; height: 200px; }
  .footer-grid { grid-template-columns: 1fr; }
  .side { grid-template-columns: 1fr; }
  .side .side-box { margin-bottom: 20px; }
  .contact-cards { grid-template-columns: 1fr; }
  .val-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid, .biz-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 44px 0; }
  .article-box { padding: 22px; }
  .article-title { font-size: 22px; }
  /* 移动端可读性：正文小字提到14px，表单控件16px（避免iOS聚焦缩放） */
  .biz-card p, .case-detail p, .news-item-summary, .article-source,
  .side-news a, .side-cat li, .c-card p, .footer-col p, .footer-col li,
  .honor-text li, .tl-list .c, .intro-text p { font-size: 14px; }
  .msg-form input, .msg-form textarea { font-size: 16px; }
}
