/* ==========================================================
   中招必联官网 - 前台样式（白 + 红）
   ========================================================== */
:root {
  --red: #e60012;
  --red-dark: #b8000e;
  --red-light: #fff1f2;
  --ink: #22252a;
  --muted: #6b7280;
  --line: #ececef;
  --bg: #f7f8fa;
  --white: #fff;
  --shadow: 0 8px 30px rgba(0, 0, 0, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 15px;
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 14px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.35; }

.container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- 顶部 ---------- */
.topbar { background: #fafafa; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar b { color: var(--red); font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(0,0,0,.03); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 20px; }
.logo img { width: 230px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > li > a { display: block; padding: 10px 18px; border-radius: 4px; font-size: 16px; font-weight: 600; position: relative; }
.nav > li > a:hover, .nav > li.active > a { color: var(--red); }
.nav > li.active > a::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: 2px; height: 3px; background: var(--red); border-radius: 2px; }
.has-sub { position: relative; }
.submenu { display: none; position: absolute; left: 50%; transform: translateX(-50%); top: 100%; min-width: 150px; background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); padding: 6px 0; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu { display: block; }
.submenu a { display: block; padding: 9px 18px; font-size: 14px; font-weight: 400; white-space: nowrap; }
.submenu a:hover { background: var(--red-light); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; padding: 9px; }
.nav-toggle span { display: block; height: 2px; background: var(--red); margin: 5px 0; transition: .25s; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 24px; border: 1px solid var(--red); border-radius: 4px; background: var(--red); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: .2s; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-white-outline { background: transparent; border-color: rgba(255,255,255,.75); color: #fff; }
.btn-white-outline:hover { background: #fff; color: var(--red); border-color: #fff; }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13px; }

/* ---------- 首页首屏 ---------- */
.hero { position: relative; overflow: hidden; color: var(--ink); background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.92) 30%, rgba(255,255,255,.42) 62%, rgba(255,255,255,.06) 100%), url('../img/banner.jpg') center 38% / cover no-repeat; border-bottom: 1px solid var(--line); }
.hero .container { position: relative; z-index: 1; padding: 86px 0 90px; }
.hero-copy { max-width: 660px; }
.hero h1 { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: 1px; line-height: 1.35; color: #1f2328; }
.hero h1 span { display: block; font-size: .36em; font-weight: 600; color: var(--red); margin-bottom: 14px; letter-spacing: 2px; }
.hero-sub { margin: 20px 0 30px; max-width: 560px; font-size: 16px; line-height: 1.9; color: #4b5158; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 通用区块 ---------- */
.section { padding: 70px 0; }
.section.bg { background: var(--bg); }
.section-head { text-align: center; margin-bottom: 38px; }
.section-title { font-size: 30px; position: relative; display: inline-block; padding-bottom: 14px; }
.section-title::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 46px; height: 3px; background: var(--red); border-radius: 2px; }
.section-sub { color: var(--muted); margin-top: 12px; font-size: 15px; }
.more { color: var(--red); font-size: 14px; font-weight: 600; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature { background: #fff; padding: 26px 20px; text-align: center; }
.feature h3 { color: var(--red); font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 13px; margin: 0; }

.service-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 30px 24px; transition: .25s; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--red); transform: scaleX(0); transition: .25s; transform-origin: left; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #f5c9cd; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 48px; height: 48px; border-radius: 10px; background: var(--red-light); color: var(--red); display: grid; place-items: center; font-size: 22px; font-weight: 700; margin-bottom: 18px; }
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 14px; margin: 0; }

.news-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.column-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--line); padding-bottom: 12px; margin-bottom: 8px; }
.column-head h3 { font-size: 19px; border-left: 4px solid var(--red); padding-left: 10px; }
.news-list li { display: flex; gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.news-list li:last-child { border-bottom: 0; }
.news-list .date { color: #9aa0a6; font-size: 13px; flex: 0 0 84px; font-variant-numeric: tabular-nums; }
.news-list .title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-list li:hover .title { color: var(--red); }

.about-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-visual { background: linear-gradient(135deg, var(--red), #ff5b68); color: #fff; border-radius: 10px; min-height: 290px; padding: 40px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.about-visual::after { content: 'BID'; position: absolute; right: -10px; bottom: -40px; font-size: 150px; font-weight: 800; color: rgba(255,255,255,.08); }
.about-visual h3 { font-size: 26px; margin-bottom: 14px; }
.about-visual p { color: rgba(255,255,255,.9); margin: 0; max-width: 380px; }
.about-text h3 { font-size: 22px; margin-bottom: 14px; }
.about-text p { color: #555; }

.contact-band { background: linear-gradient(100deg, #c90010, #e60012); color: #fff; }
.contact-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 42px 0; }
.contact-band h2 { font-size: 26px; }
.contact-band p { margin: 6px 0 0; color: rgba(255,255,255,.9); }
.contact-band .phone { font-size: 28px; font-weight: 700; letter-spacing: 1px; }

/* ---------- 内页 ---------- */
.page-banner { background: linear-gradient(110deg, #c90010, #e60012); color: #fff; padding: 46px 0; }
.page-banner h1 { font-size: 30px; }
.page-banner p { margin: 8px 0 0; color: rgba(255,255,255,.85); font-size: 14px; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.8); margin-top: 10px; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

.content-box { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 40px 46px; margin: 38px 0 70px; }
.rich { color: #3d4147; font-size: 15.5px; line-height: 2; }
.rich h3 { font-size: 19px; color: var(--red); margin: 24px 0 10px; }
.rich p { margin-bottom: 16px; }
.service-grid-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.service-grid-inner .service-item { background: var(--bg); border-left: 3px solid var(--red); padding: 18px 20px; border-radius: 0 6px 6px 0; }
.service-grid-inner .service-item h3 { margin: 0 0 6px; font-size: 17px; }
.service-grid-inner .service-item p { margin: 0; color: #666; font-size: 14px; }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 8px 0 28px; }
.contact-card { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px; }
.contact-card span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.contact-card strong { font-size: 17px; color: var(--ink); word-break: break-all; }

.tabs { display: flex; gap: 8px; border-bottom: 2px solid var(--line); margin-bottom: 10px; }
.tabs a { padding: 12px 22px; font-size: 16px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a.active, .tabs a:hover { color: var(--red); border-bottom-color: var(--red); }
.news-page-list { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 60px; }
.news-page-list .item { display: block; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.news-page-list .item:last-child { border-bottom: 0; }
.news-page-list .item:hover { background: #fffafb; }
.news-page-list h3 { font-size: 18px; margin-bottom: 6px; }
.news-page-list .meta { color: #9aa0a6; font-size: 13px; margin-bottom: 6px; }
.news-page-list p { color: var(--muted); font-size: 14px; margin: 0; }
.pagination { display: flex; justify-content: center; gap: 8px; padding: 24px; }
.pagination a, .pagination span { min-width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; font-size: 14px; padding: 0 8px; }
.pagination .active { background: var(--red); border-color: var(--red); color: #fff; }

.article { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 40px 46px; margin: 38px 0 30px; }
.article h1 { font-size: 27px; text-align: center; margin-bottom: 14px; }
.article .meta { text-align: center; color: #9aa0a6; font-size: 13px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.article .rich { min-height: 220px; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--red); font-size: 14px; }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); }

/* ---------- 页脚 ---------- */
.site-footer { background: #22252a; color: #bbb; padding: 50px 0 0; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.site-footer .logo img { width: 210px; background: #fff; border-radius: 4px; padding: 6px; }
.footer-links li { margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #3a3d42; padding: 18px 0; text-align: center; font-size: 13px; color: #888; }
.footer-bottom a { color: #aaa; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .service-cards, .features { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .container { width: calc(100% - 30px); }
  .topbar { display: none; }
  .site-header .container { min-height: 62px; }
  .logo img { width: 180px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 62px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 15px 14px; box-shadow: 0 12px 20px rgba(0,0,0,.08); }
  .nav.open { display: flex; }
  .nav > li > a { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .nav > li.active > a::after { display: none; }
  .submenu { display: block; position: static; transform: none; min-width: 0; border: 0; box-shadow: none; padding: 0 0 6px 14px; }
  .submenu a { padding: 8px 10px; font-size: 13px; }
  .hero { background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.82) 100%), url('../img/banner.jpg') center 38% / cover no-repeat; }
  .hero .container { padding: 54px 0 58px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 14px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 24px; }
  .service-cards, .features, .news-columns, .about-preview, .contact-grid, .service-grid-inner { grid-template-columns: 1fr; gap: 16px; }
  .content-box, .article { padding: 24px 20px; margin: 24px 0 40px; }
  .contact-band .container { flex-direction: column; align-items: flex-start; padding: 32px 0; }
  .contact-band .phone { font-size: 23px; }
  .page-banner { padding: 32px 0; }
  .page-banner h1 { font-size: 24px; }
  .news-page-list .item { padding: 18px; }
  .footer-top { grid-template-columns: 1fr; }
  .site-footer { padding-top: 36px; }
}
