/* ============ 北京领标智研官网 公共样式 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #1e50ae;
  --primary-dark: #163a80;
  --primary-light: #3b6ecc;
  --accent: #f0a500;
  --text: #333333;
  --text-light: #666666;
  --bg-gray: #f5f7fa;
  --border: #e0e5ec;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  background: var(--white);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============ 顶部信息栏 ============ */
.topbar { background: var(--primary-dark); color: #cdd9f0; font-size: 12px; height: 34px; line-height: 34px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-links a { margin-left: 15px; color: #cdd9f0; transition: color .2s; }
.topbar-links a:hover { color: var(--white); }

/* ============ 头部 ============ */
.header { background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; }
.logo { display: flex; align-items: center; gap: 14px; }
.logo img { height: 52px; width: auto; }
.logo-text h1 { font-size: 21px; color: var(--primary-dark); letter-spacing: 1px; }
.logo-text p { font-size: 11px; color: #999; margin-top: 2px; }

.header-phone { display: flex; align-items: center; gap: 10px; }
.phone-icon { font-size: 30px; color: var(--primary); }
.header-phone p { font-size: 12px; color: #999; }
.header-phone strong { font-size: 20px; color: var(--accent); }

/* ============ 导航 ============ */
.nav { background: var(--primary); }
.nav-list { display: flex; }
.nav-list li { flex: 1; text-align: center; }
.nav-list a { display: block; color: var(--white); padding: 13px 0; font-size: 15px; letter-spacing: 1px; transition: background .25s; }
.nav-list a:hover, .nav-list a.active { background: var(--primary-dark); }
/* 二级子菜单 */
.nav-list .nav-item { position: relative; }
.nav-list .nav-sub {
  position: absolute; top: 100%; left: 0; min-width: 100%;
  background: var(--primary); z-index: 50;
  display: none; box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.nav-list .nav-sub li { text-align: center; }
.nav-list .nav-sub a { padding: 11px 8px; font-size: 14px; letter-spacing: 0; }
.nav-list .nav-sub a:hover { background: var(--primary-dark); }
.nav-list .nav-item:hover .nav-sub,
.nav-list .nav-item:focus-within .nav-sub { display: block; }
.nav-list .has-sub > a::after { content: "▾"; margin-left: 4px; font-size: 11px; }

/* ============ 首页 Banner 轮播 ============ */
.banner {
  position: relative; height: 440px;
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 45%, var(--primary-light) 100%);
  color: var(--white); display: flex; align-items: center; overflow: hidden;
}
.banner::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 420px; height: 420px; background: rgba(255,255,255,.06); border-radius: 50%;
}
.banner::before {
  content: ""; position: absolute; right: 120px; bottom: -140px;
  width: 360px; height: 360px; background: rgba(255,255,255,.05); border-radius: 50%;
}
.banner-inner { position: relative; z-index: 2; display: flex; align-items: center; width: 100%; }
.banner-slides { position: relative; width: 100%; min-height: 440px; }
.banner-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s;
}
.banner-slide.active { opacity: 1; visibility: visible; }
.banner-slide-inner { display: flex; align-items: center; gap: 40px; width: 100%; }
.banner-text { flex: 1.2; }
.banner-text h2 { font-size: 44px; letter-spacing: 4px; margin-bottom: 16px; }
.banner-text p { font-size: 19px; line-height: 1.8; color: #dbe6f7; margin-bottom: 30px; }
.banner-img-slot { flex: 1; }
.banner-img-slot img.banner-img {
  width: 100%; height: 300px; object-fit: cover; border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
}
.btn { display: inline-block; padding: 11px 32px; border-radius: 4px; font-size: 15px; cursor: pointer; transition: all .25s; border: none; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #d89400; }
.btn-outline { background: transparent; color: var(--white); border: 1px solid var(--white); margin-left: 12px; }
.btn-outline:hover { background: rgba(255,255,255,.15); }
.banner-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 3; }
.banner-dots span { display: inline-block; width: 34px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.4); margin: 0 4px; cursor: pointer; transition: background .3s; }
.banner-dots span.active { background: var(--accent); }

/* ============ 内页 Banner ============ */
.page-banner {
  height: 200px; color: var(--white);
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.page-banner h2 { font-size: 32px; letter-spacing: 6px; }
.page-banner p { margin-top: 8px; font-size: 13px; letter-spacing: 3px; color: #c9d8f2; text-transform: uppercase; }

/* 面包屑 */
.crumb { padding: 14px 0; border-bottom: 1px solid var(--border); background: var(--bg-gray); }
.crumb .wrap { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-light); }
.crumb a { color: var(--primary); }
.crumb a:hover { text-decoration: underline; }

/* ============ 图片占位框（图片后续补充） ============ */
.img-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; background: repeating-linear-gradient(45deg, #eef2f8, #eef2f8 12px, #e4eaf4 12px, #e4eaf4 24px);
  border: 2px dashed #b8c6dd; border-radius: 6px; color: #8296b5;
  min-height: 160px; text-align: center; padding: 12px;
}
.img-placeholder .ph-icon { font-size: 34px; line-height: 1; }
.img-placeholder .ph-text { font-size: 13px; }
.img-placeholder.large { min-height: 300px; }
.img-placeholder.medium { min-height: 220px; }
.img-placeholder.small { min-height: 140px; }

/* ============ 通用 Section ============ */
.section { padding: 60px 0; }
.section-gray { background: var(--bg-gray); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h3 { font-size: 30px; color: var(--primary-dark); letter-spacing: 2px; }
.section-title p { font-size: 13px; color: #b0b8c5; letter-spacing: 4px; margin-top: 6px; text-transform: uppercase; }
.section-title.left { text-align: left; }

/* ============ 关于我们 ============ */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; }
.about-text h4 { font-size: 20px; color: var(--primary); margin-bottom: 16px; }
.about-text p { margin-bottom: 12px; color: var(--text-light); text-align: justify; }
.about-list { margin-top: 16px; }
.about-list li { padding: 6px 0 6px 22px; position: relative; color: var(--text); }
.about-list li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.about-side { display: flex; flex-direction: column; gap: 20px; }
.about-card { background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: 6px; padding: 20px; }
.about-card h4 { font-size: 16px; color: var(--primary-dark); margin-bottom: 12px; }
.about-card p { color: var(--text-light); margin-bottom: 8px; font-size: 13px; }
.about-card strong { color: var(--text); }
.about-card li { padding: 5px 0; color: var(--text-light); font-size: 13px; border-bottom: 1px dashed var(--border); }
.about-card li:last-child { border-bottom: none; }

/* 执照与工商信息 */
.license-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.license-grid img { width: 100%; border-radius: 6px; border: 1px solid var(--border); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { border: 1px solid var(--border); padding: 10px 14px; font-size: 13px; text-align: left; vertical-align: top; }
.info-table th { background: var(--bg-gray); color: var(--primary-dark); white-space: nowrap; width: 120px; }
.info-table td { color: var(--text-light); }

/* ============ 核心业务 ============ */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.biz-item { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 30px 24px; text-align: center; transition: all .3s; }
.section .biz-item { background: var(--white); }
.section-gray .biz-item { background: var(--white); }
.biz-item:hover { transform: translateY(-6px); box-shadow: 0 10px 24px rgba(30,80,174,.12); border-color: var(--primary-light); }
.biz-icon { font-size: 42px; margin-bottom: 14px; }
.biz-item h4 { font-size: 17px; color: var(--primary-dark); margin-bottom: 10px; }
.biz-item p { color: var(--text-light); font-size: 13px; text-align: justify; }
.biz-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 26px; }
.biz-detail .biz-item { text-align: left; display: flex; gap: 16px; align-items: flex-start; }
.biz-detail .biz-icon { flex-shrink: 0; margin-bottom: 0; }
.biz-detail h4 { margin-bottom: 8px; }
.biz-flow { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.flow-step { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 14px 18px; text-align: center; min-width: 130px; position: relative; }
.flow-step b { display: block; color: var(--primary); font-size: 15px; margin-bottom: 4px; }
.flow-step span { font-size: 12px; color: var(--text-light); }

/* ============ 成果案例 ============ */
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 34px; }
.case-card { display: block; background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: transform .25s, box-shadow .25s; text-decoration: none; color: inherit; cursor: pointer; }
.case-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(30,80,174,.12); }
.case-img { height: 140px; background: repeating-linear-gradient(45deg, #f0f4fb, #f0f4fb 12px, #e8eef8 12px, #e8eef8 24px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.case-img span { font-size: 12px; color: #9aa9c4; }
.case-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-body { padding: 16px; }
.case-body h4 { font-size: 15px; color: var(--text); margin-bottom: 8px; }
.case-body p { font-size: 13px; color: var(--text-light); line-height: 1.7; }
.flow-arrow { align-self: center; color: var(--primary-light); font-size: 20px; font-weight: bold; }

/* ============ 专家智库 ============ */
.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.expert-item { text-align: center; padding: 24px 10px; background: var(--white); border: 1px solid var(--border); border-radius: 6px; transition: all .3s; }
.expert-item:hover { box-shadow: 0 8px 20px rgba(30,80,174,.12); transform: translateY(-4px); }
.expert-avatar {
  width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white); font-size: 34px; display: flex; align-items: center; justify-content: center;
}
.expert-item h4 { font-size: 16px; color: var(--primary-dark); }
.expert-item p { color: var(--text-light); font-size: 13px; margin-top: 4px; }
.expert-item .field { color: #99a6bb; font-size: 12px; }
.expert-note { text-align: center; color: #b0b8c5; font-size: 12px; margin-top: 18px; }

/* ============ 新闻中心 ============ */
.news-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.news-tab { padding: 9px 28px; border: 1px solid var(--primary); background: var(--white); color: var(--primary); font-size: 14px; cursor: pointer; border-radius: 4px; transition: all .25s; }
.news-tab.active, .news-tab:hover { background: var(--primary); color: var(--white); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-col { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 20px; }
.news-col-title { font-size: 16px; color: var(--primary-dark); padding-bottom: 10px; border-bottom: 2px solid var(--primary); margin-bottom: 14px; }
.news-list li { border-bottom: 1px dashed var(--border); }
.news-list li:last-child { border-bottom: none; }
.news-list a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; color: var(--text); font-size: 13px; transition: color .2s; }
.news-list a .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 75%; }
.news-list a span.date { color: #b0b8c5; font-size: 12px; flex-shrink: 0; margin-left: 10px; }
.news-list a:hover { color: var(--primary); }

/* 新闻列表页（行式） */
.news-rows { max-width: 900px; margin: 0 auto; }
.news-row { display: flex; gap: 20px; background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 18px; margin-bottom: 16px; transition: all .25s; }
.news-row:hover { box-shadow: 0 8px 20px rgba(30,80,174,.1); }
.news-row .news-thumb { width: 170px; flex-shrink: 0; }
.news-row .news-body { flex: 1; min-width: 0; }
.news-row h4 { font-size: 16px; color: var(--primary-dark); margin-bottom: 6px; }
.news-row h4 a:hover { color: var(--primary); }
.news-row p { color: var(--text-light); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-row .meta { margin-top: 8px; font-size: 12px; color: #b0b8c5; display: flex; gap: 14px; }
.news-row .meta .cat { color: var(--primary-light); }
.empty-tip { text-align: center; color: #b0b8c5; padding: 40px 0; }

/* 新闻详情 */
.article { max-width: 860px; margin: 0 auto; background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 36px 40px; }
.article h1 { font-size: 24px; color: var(--primary-dark); line-height: 1.5; margin-bottom: 12px; }
.article .article-meta { color: #b0b8c5; font-size: 13px; padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 22px; display: flex; gap: 18px; }
.article .article-content { color: var(--text); font-size: 15px; line-height: 2; white-space: pre-wrap; text-align: justify; }
.article .article-img-slot { margin: 20px 0; }

/* ============ 标准工作 ============ */
.std-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.std-tab { padding: 9px 28px; border: 1px solid var(--primary); background: var(--white); color: var(--primary); font-size: 14px; cursor: pointer; border-radius: 4px; transition: all .25s; }
.std-tab.active, .std-tab:hover { background: var(--primary); color: var(--white); }
.std-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.std-item { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 20px; border-left: 4px solid var(--primary-light); transition: all .25s; }
.std-item:hover { box-shadow: 0 6px 16px rgba(30,80,174,.1); }
.std-item h4 { font-size: 15px; color: var(--primary-dark); margin: 8px 0 6px; }
.std-item p { color: var(--text-light); font-size: 13px; }
.std-badge { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 12px; color: var(--white); background: var(--primary-light); }
.std-badge.published { background: #2e9e5b; }
.std-badge.apply { background: var(--accent); }

/* ============ 服务客户 ============ */
.clients-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.client-logo { height: 80px; display: flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--border); border-radius: 6px; color: var(--text-light); font-size: 14px; text-align: center; transition: all .25s; padding: 8px; }
.client-logo:hover { border-color: var(--primary); color: var(--primary); box-shadow: 0 6px 14px rgba(30,80,174,.1); }
.client-logo img { max-width: 100%; max-height: 64px; object-fit: contain; display: block; }
.clients-note { text-align: center; color: #b0b8c5; font-size: 12px; margin-top: 16px; }

/* ============ 联系我们 ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; }
.contact-info { background: var(--primary); color: var(--white); border-radius: 6px; padding: 30px; }
.contact-info h4 { font-size: 18px; margin-bottom: 20px; }
.contact-info li { padding: 8px 0; font-size: 14px; }
.contact-info strong { color: #ffe08a; }
.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 4px;
  font-size: 14px; font-family: inherit; margin-bottom: 16px; outline: none; transition: border .2s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); }
.contact-form textarea { height: 120px; resize: vertical; }
.form-msg { font-size: 13px; margin-top: 10px; display: none; }
.form-msg.ok { display: block; color: #2e9e5b; }
.form-msg.err { display: block; color: #d9534f; }
.map-slot { margin-top: 30px; }

/* ============ 友情链接 ============ */
.links-bar { background: var(--bg-gray); border-top: 1px solid var(--border); padding: 16px 0; font-size: 13px; }
.links-label { color: var(--primary-dark); font-weight: bold; }
.links-bar a { color: var(--text-light); font-size: 13px; margin-right: 16px; }
.links-bar a:hover { color: var(--primary); }

/* ============ 底部 ============ */
.footer { background: var(--primary-dark); color: #a9bfe0; text-align: center; padding: 24px 0; font-size: 13px; }
.footer p { margin: 4px 0; }
.footer a { color: #a9bfe0; }
.footer a:hover { color: var(--white); }

/* ============ 首页附加区块 ============ */
.stats-bar { background: var(--primary-dark); color: var(--white); padding: 34px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-grid b { font-size: 34px; color: var(--accent); display: block; }
.stats-grid span { font-size: 14px; color: #c9d8f2; }
.cta-band { background: linear-gradient(120deg, var(--primary) 0%, var(--primary-light) 100%); color: var(--white); padding: 44px 0; text-align: center; }
.cta-band h3 { font-size: 26px; margin-bottom: 10px; letter-spacing: 2px; }
.cta-band p { color: #dbe6f7; margin-bottom: 22px; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .about-grid, .contact-grid, .license-grid, .biz-detail { grid-template-columns: 1fr; }
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid, .std-list { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .banner-text h2 { font-size: 32px; }
  .banner-img-slot { display: none; }
  .header-phone { display: none; }
  .nav-list { flex-wrap: wrap; }
  .nav-list a { padding: 10px 8px; font-size: 13px; }
}

@media (max-width: 560px) {
  .biz-grid, .expert-grid, .clients-grid, .form-row { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .logo-text h1 { font-size: 16px; }
  .banner { height: 380px; }
  .banner-text h2 { font-size: 26px; }
  .news-row { flex-direction: column; }
  .news-row .news-thumb { width: 100%; }
}
