/* ============ 基础 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 14px;
  color: #333;
  background: #f2f5f9;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; border: 0; }
.wrap { width: 1200px; margin: 0 auto; }
.main-wrap { padding: 20px 0 40px; }

/* ============ 顶部条 ============ */
.topbar { background: #0d3157; color: #cfe0f0; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar b { color: #ffd479; font-weight: 700; }

/* ============ 头部 ============ */
.site-header { background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo img { height: 58px; width: auto; }
.logo-text em { display: block; font-style: normal; font-size: 23px; font-weight: 700; color: #12406e; letter-spacing: 1px; white-space: nowrap; }
.logo-text i { display: block; font-style: normal; font-size: 11px; color: #8a97a6; letter-spacing: 1px; white-space: nowrap; }

.nav { display: flex; flex-shrink: 0; white-space: nowrap; }
.nav a {
  position: relative; padding: 10px 16px; font-size: 16px; color: #2c3a4b; white-space: nowrap;
}
.nav a:hover, .nav a.active { color: #12406e; font-weight: 700; }
.nav a.active::after, .nav a:hover::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 2px; height: 3px; background: #c8a15a;
}

/* ============ 顶部电话组（logo 同排 / 电话条通用） ============ */
.top-phones { display: flex; align-items: center; flex-wrap: wrap; }
.tp-group {
  display: flex; align-items: center; gap: 11px;
  padding: 7px 18px; margin: 3px 0;
  background: #fff; border: 1px solid #e1e9f3; border-radius: 8px;
}
.tp-group + .tp-group { margin-left: 12px; }
.tp-icon {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  background: #12406e; color: #fff; font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 7px rgba(18, 64, 110, .22);
}
.tp-body { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.tp-label { font-size: 12px; color: #7b8797; letter-spacing: .5px; white-space: nowrap; }
.tp-nums { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 14px; }
.tp-nums a {
  font: 700 18px/1.35 Arial, "Microsoft YaHei", sans-serif;
  color: #c0392b; white-space: nowrap; text-decoration: none;
}
.tp-nums a.tp-sub { font-size: 15px; font-weight: 600; color: #12406e; }
.tp-nums a:hover { text-decoration: underline; }
/* 可选：给 .tp-nums 加 tp-stack，两个号码改为上下两行整齐对齐 */
.tp-nums.tp-stack { flex-direction: column; gap: 0; }
.tp-nums.tp-stack a { line-height: 1.25; }

/* ============ 电话/搜索条 ============ */
.phone-bar { background: #e9eef5; border-bottom: 1px solid #dbe3ec; }
.phone-bar .wrap { display: flex; align-items: center; gap: 10px; min-height: 66px; padding: 8px 0; }
.phone-bar .tag { background: #12406e; color: #fff; padding: 3px 10px; border-radius: 3px; font-size: 12px; }
.phone-bar .tel-group { display: inline-flex; gap: 18px; flex-wrap: wrap; }
.site-search { margin-left: auto; display: flex; flex: none; }
.site-search input { width: 220px; height: 34px; border: 1px solid #cbd5e1; padding: 0 10px; outline: none; }
.site-search button { height: 34px; padding: 0 20px; border: 0; background: #12406e; color: #fff; cursor: pointer; }
.site-search button:hover { background: #0d3157; }

/* 顶栏右侧标语 */
.top-slogan { color: #9fb6cf; letter-spacing: 2px; font-size: 12px; }

/* ============ 轮播 ============ */
.slider { position: relative; height: 420px; overflow: hidden; background: #12406e; }
.slides, .slide { height: 420px; }
.slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .6s;
}
.slide.on { opacity: 1; }
.slide-title {
  position: absolute; left: 0; right: 0; bottom: 46px; text-align: center;
  color: #fff; font-size: 26px; font-weight: 700; text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}
.slider .arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 62px; line-height: 62px;
  text-align: center; background: rgba(0, 0, 0, .35); color: #fff; font-size: 22px; cursor: pointer; z-index: 3;
}
.slider .arrow:hover { background: rgba(0, 0, 0, .55); }
.slider .prev { left: 0; } .slider .next { right: 0; }
.dots { position: absolute; bottom: 14px; width: 100%; text-align: center; z-index: 3; }
.dots span {
  display: inline-block; width: 12px; height: 12px; margin: 0 5px; border-radius: 50%;
  background: rgba(255, 255, 255, .5); cursor: pointer;
}
.dots span.on { background: #c8a15a; }

/* ============ 区块通用 ============ */
.section { background: #fff; border: 1px solid #e6ecf3; margin-bottom: 20px; padding: 22px 26px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #e6ecf3; padding-bottom: 10px; margin-bottom: 16px;
}
.section-head h2 {
  font-size: 20px; color: #12406e; padding-left: 12px; border-left: 4px solid #c8a15a; line-height: 1.2;
}
.section-head .sub { color: #8895a5; font-size: 13px; }
.more { color: #8a97a6; font-size: 13px; }
.more:hover { color: #c8a15a; }

/* ============ 公司简介 ============ */
.about-grid { display: flex; gap: 24px; margin-bottom: 20px; }
.about-pic { width: 400px; flex: none; }
.about-pic img { width: 100%; height: 260px; object-fit: cover; }
.about-text h3 { font-size: 20px; color: #12406e; margin-bottom: 10px; }
.about-text .rich-text { color: #555; margin-bottom: 16px; }
.btn-primary {
  display: inline-block; background: #12406e; color: #fff; padding: 9px 26px; border: 0; cursor: pointer; font-size: 14px;
}
.btn-primary:hover { background: #0d3157; }

.card-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.mini-card {
  background: #f7f9fc; border: 1px solid #e6ecf3; padding: 16px 12px; text-align: center; transition: .2s;
}
.mini-card:hover { background: #12406e; transform: translateY(-3px); }
.mini-card:hover h4, .mini-card:hover p { color: #fff; }
.mini-card .ico {
  display: inline-block; width: 42px; height: 42px; line-height: 42px; border-radius: 50%;
  background: #12406e; color: #fff; font-size: 18px; margin-bottom: 8px;
}
.mini-card:hover .ico { background: #c8a15a; }
.mini-card h4 { font-size: 15px; color: #12406e; margin-bottom: 6px; }
.mini-card p { font-size: 12px; color: #7b8797; line-height: 1.5; }


.img-pair { display: flex; flex-wrap: wrap; gap: 16px; }
.img-pair img { flex: 0 1 450px; max-width: 100%; height: auto; display: block; }




/* ============ 新闻区 ============ */
.news-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.news-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 0; border-bottom: 1px dashed #e6ecf3;
}
.news-list li a { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.news-list li a:hover { color: #c8a15a; }
.news-list .date { color: #9aa5b3; font-size: 12px; }
.news-list .empty { color: #9aa5b3; justify-content: center; }
.news-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 26px; }

/* ============ 执业记录 ============ */
.practice-grid { display: flex; gap: 24px; }
.practice-pic { width: 420px; flex: none; }
.practice-pic img { width: 100%; height: 240px; object-fit: cover; }
.practice-text { color: #555; }

/* ============ 内页通用 ============ */
.crumb { padding: 10px 0; color: #8895a5; font-size: 13px; }
.crumb a:hover { color: #12406e; }
.page-box { background: #fff; border: 1px solid #e6ecf3; padding: 22px 26px; margin-bottom: 20px; }
.two-box { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.purpose-text { font-size: 18px; color: #12406e; letter-spacing: 2px; padding: 12px 0; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid #e6ecf3; padding-bottom: 12px; margin-bottom: 8px; }
.tabs a { padding: 5px 16px; background: #f2f5f9; color: #55606e; }
.tabs a.on, .tabs a:hover { background: #12406e; color: #fff; }

.article-item { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px dashed #e6ecf3; }
.article-item .thumb { width: 200px; flex: none; }
.article-item .thumb img { width: 100%; height: 124px; object-fit: cover; }
.article-main h3 { font-size: 17px; color: #12406e; margin-bottom: 8px; }
.article-main h3 a:hover { color: #c8a15a; }
.article-main .sum { color: #7b8797; font-size: 13px; margin-bottom: 8px; }
.article-main .meta { font-size: 12px; color: #9aa5b3; display: flex; gap: 16px; }
.cat-tag { background: #12406e; color: #fff; padding: 1px 8px; }

.pager { display: flex; gap: 6px; justify-content: center; padding: 24px 0 8px; }
.pager a { padding: 6px 12px; border: 1px solid #dbe3ec; background: #fff; color: #55606e; }
.pager a.on, .pager a:hover { background: #12406e; color: #fff; border-color: #12406e; }

/* ============ 详情页 ============ */
.detail-title { font-size: 26px; color: #12406e; text-align: center; padding: 8px 0 14px; }
.detail-meta { text-align: center; color: #9aa5b3; font-size: 13px; border-bottom: 1px solid #e6ecf3; padding-bottom: 14px; margin-bottom: 20px; }
.detail-meta span { margin: 0 10px; }
.detail-content { font-size: 15px; color: #444; }
.detail-content img { max-width: 100%; margin: 12px auto; }
.detail-content p { margin-bottom: 14px; }
.detail-nav { margin-top: 26px; border-top: 1px dashed #e6ecf3; padding-top: 14px; color: #66707e; }
.detail-nav a:hover { color: #c8a15a; }

.rich-text p { margin-bottom: 12px; }
.rich-text img { max-width: 100%; }
.rich-text ul { padding-left: 22px; list-style: disc; }

/* ============ 团队 / 服务 ============ */
.talent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.talent { background: #f7f9fc; border-top: 3px solid #c8a15a; padding: 16px; }
.talent .t-num { display: block; font-size: 17px; color: #12406e; font-weight: 700; margin-bottom: 6px; }
.talent p { color: #7b8797; font-size: 13px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery img { width: 100%; height: 200px; object-fit: cover; }
.tip { color: #9aa5b3; font-size: 12px; margin-top: 10px; }

.field-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.field-tag { background: #f2f5f9; border: 1px solid #e1e8f0; padding: 6px 14px; color: #55606e; }
.field-tag:hover { background: #12406e; color: #fff; }
.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.client { border: 1px solid #e6ecf3; padding: 16px; }
.client span { display: block; font-size: 16px; color: #12406e; font-weight: 700; margin-bottom: 6px; }
.client p { color: #7b8797; font-size: 13px; }

/* ============ 联系我们 ============ */
.contact-box { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.contact-table { width: 100%; border-collapse: collapse; }
.contact-table th { width: 120px; text-align: right; color: #7b8797; font-weight: 400; padding: 10px 14px 10px 0; }
.contact-table td { padding: 10px 0; color: #444; }
.contact-table td.big { font-size: 20px; color: #c0392b; font-family: Arial; font-weight: 700; }
/* 联系我们：办公地址侧栏 */
.contact-side { min-width: 0; }
.addr-card { border-left: 3px solid #12406e; padding: 4px 0 4px 14px; margin-bottom: 18px; }
.addr-card h4 { color: #12406e; font-size: 15px; margin-bottom: 6px; }
.addr-card p { color: #55606e; font-size: 14px; line-height: 1.8; }
.qr-inline { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.qr-inline img { width: 92px; height: 92px; border: 1px solid #e3e8ef; }
.qr-inline span { color: #9aa5b3; font-size: 13px; }

/* 腾讯地图容器（客户提供的 830×500，按屏幕自适应） */
.contact-map #container { width: 830px; max-width: 100%; height: 500px; margin: 0 auto; background: #eef2f7; }
.mail-line a { color: #12406e; text-decoration: none; }
.mail-line a:hover { text-decoration: underline; }
.map-hint { color: #7b8797; font-size: 13px; margin-top: 12px; }
.map-hint b { color: #444; font-weight: 600; }
.map-fallback { box-sizing: border-box; width: 100%; height: 100%; padding: 20px 26px; display: flex; flex-direction: column; justify-content: center; background: #f4f7fb; color: #7b8797; line-height: 2; border: 1px dashed #cbd5e1; }
.map-fallback b { color: #444; font-weight: 600; }
.copyright .icp-link a { color: #9fb6cf; text-decoration: none; }
.copyright .icp-link a:hover { color: #ffd479; text-decoration: underline; }
.msg-form .row { display: flex; margin-bottom: 14px; align-items: flex-start; }
.msg-form label { width: 100px; text-align: right; padding-right: 14px; line-height: 34px; color: #55606e; }
.msg-form label i { color: #c0392b; font-style: normal; }
.msg-form input, .msg-form textarea {
  flex: 1; border: 1px solid #cbd5e1; padding: 7px 10px; outline: none; font-family: inherit; font-size: 14px;
}
.msg-form input:focus, .msg-form textarea:focus { border-color: #12406e; }
.msg-form .btn-primary { margin-left: 100px; }
.contact-static { padding: 6px 0; }
.contact-static p { color: #55606e; margin-bottom: 10px; }
.contact-static .big-tel b { color: #c0392b; font-size: 22px; font-family: Arial; margin: 0 4px; }
.contact-static .hint { color: #9aa5b3; font-size: 13px; }

.alert { padding: 12px 16px; margin-bottom: 16px; }
.alert.success { background: #eaf6ec; color: #2e7d32; border-left: 4px solid #2e7d32; }
.alert.error { background: #fdecea; color: #c0392b; border-left: 4px solid #c0392b; }

/* ============ 404 ============ */
.notfound { text-align: center; padding: 60px 0; }
.notfound h1 { font-size: 80px; color: #12406e; }
.notfound p { color: #7b8797; margin: 10px 0 20px; }

/* ============ 友情链接 & 页脚 ============ */
.links-section { background: #fff; border-top: 1px solid #e6ecf3; padding: 18px 0; }
.links-title { color: #12406e; font-weight: 700; margin-bottom: 10px; padding-left: 10px; border-left: 4px solid #c8a15a; }
.links-list { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.links-list a { color: #66707e; font-size: 13px; }
.links-list a:hover { color: #c8a15a; }

.site-footer { background: #0d3157; color: #b9cade; margin-top: 30px; }
.footer-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding: 34px 0; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 12px; font-weight: 700; }
.footer-col p { font-size: 13px; line-height: 2; }
.footer-col b { color: #ffd479; font-size: 16px; font-family: Arial; white-space: nowrap; }
.footer-col a:hover { color: #ffd479; }
.footer-col .sub { color: #8ea6c0; }
.footer-col .sub-phone { padding-left: 2em; margin-top: -6px; }
.copyright .visit-count b { color: #9fb6cf; font-family: Arial; }
.qr-col img { width: 96px; background: #fff; padding: 4px; }
.copyright { background: #092741; font-size: 12px; color: #7c93ad; }
.copyright .wrap { display: flex; justify-content: space-between; height: 46px; align-items: center; }
.admin-entry a { color: #7c93ad; }
.admin-entry a:hover { color: #ffd479; }

/* ============ 响应式 ============ */
@media (max-width: 1220px) {
  .wrap { width: 96%; }
}
@media (max-width: 900px) {
  .header-inner { flex-direction: column; height: auto; padding: 14px 0; gap: 10px; }
  .nav { flex-shrink: 1; min-width: 0; width: 100%; flex-wrap: wrap; justify-content: center; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .news-cols, .news-bottom, .two-box, .contact-box { grid-template-columns: 1fr; }
  .contact-map #container { height: 360px; }
  .about-grid, .practice-grid { flex-direction: column; }
  .about-pic, .practice-pic { width: 100%; }
  .talent-grid, .client-grid, .gallery, .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .slider, .slides, .slide { height: 240px; }
  .phone-bar .wrap { flex-wrap: wrap; min-height: 0; padding: 10px 0; }
  .top-phones { width: 100%; }
  .tp-group { padding: 7px 14px; }
  .tp-group + .tp-group { margin-left: 0; }
  .site-search { margin-left: 0; width: 100%; }
  .site-search input { flex: 1; width: auto; }
  .header-inner .top-phones { margin-left: 0; }
}

@media (max-width: 600px) {
  .logo { gap: 10px; }
  .logo img { height: 42px; }
  .logo-text em { font-size: 16px; white-space: normal; line-height: 1.35; letter-spacing: 0; }
  .logo-text i { font-size: 9px; white-space: normal; letter-spacing: 0; }
  .news-cols > *, .news-bottom > *, .two-box > * { min-width: 0; }
  .top-phones { flex-wrap: nowrap; }
  .tp-group { flex: 1 1 0; min-width: 0; padding: 6px 8px; gap: 6px; }
  .tp-group + .tp-group { margin-left: 6px; }
  .tp-icon { width: 26px; height: 26px; font-size: 13px; }
  .tp-label { font-size: 11px; }
  .tp-nums { flex-direction: column; align-items: flex-start; gap: 0; }
  .tp-nums a { font-size: 13px; line-height: 1.3; }
  .tp-nums a.tp-sub { font-size: 12px; }
}
