:root {
  --blue: #1e6fd9;
  --blue-dark: #165bb8;
  --teal: #39b5a2;
  --teal-dark: #2d9a8a;
  --nav: #2b2b2b;
  --text: #333;
  --muted: #888;
  --line: #eee;
  --bg: #f3f5f7;
  --card: #fff;
  --max: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  background: #d7ebf7;
  overflow: hidden;
}

.header-skyline {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.header-skyline svg {
  width: 100%;
  height: 100%;
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 118px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 58px;
  height: 58px;
  border-radius: 6px;
  background: linear-gradient(160deg, #c62828, #8e1b1b);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  box-shadow: 0 4px 10px rgba(160, 20, 20, 0.25);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-size: 26px;
  color: #222;
  letter-spacing: 2px;
}

.logo-text em {
  font-style: normal;
  font-size: 13px;
  color: #555;
  margin-top: 2px;
}

.logo-text small {
  margin-top: 4px;
  color: #6a7c8d;
  font-size: 12px;
}

.main-nav {
  background: var(--nav);
  color: #fff;
  padding: 0;
}

.nav-row {
  display: flex;
  justify-content: stretch;
  list-style: none;
}

.nav-row li {
  flex: 1;
}

.nav-row a {
  display: block;
  color: #f2f2f2;
  white-space: nowrap;
  padding: 16px 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
}

.nav-row a:hover,
.nav-row a.is-active {
  background: var(--blue);
  color: #fff;
}

.sub-banner {
  background: linear-gradient(90deg, #dceef8, #eaf4fb 45%, #d3e8f5);
  border-bottom: 1px solid #d5e6f1;
}

.sub-banner-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.banner-buildings {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 70px;
  opacity: 0.45;
}

.banner-buildings span {
  display: block;
  width: 18px;
  background: #7aa8c9;
}

.banner-buildings span:nth-child(1) { height: 36px; }
.banner-buildings span:nth-child(2) { height: 58px; width: 24px; }
.banner-buildings span:nth-child(3) { height: 44px; }
.banner-buildings span:nth-child(4) { height: 66px; width: 28px; }
.banner-buildings span:nth-child(5) { height: 40px; }

.banner-slogan {
  text-align: right;
  color: #3d6d93;
  padding: 16px 0;
}

.banner-slogan p {
  font-size: 12px;
  letter-spacing: 1.5px;
}

.banner-slogan h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 4px;
}

.main {
  padding: 18px 0 40px;
}

.breadcrumb {
  color: #777;
  font-size: 13px;
  margin-bottom: 12px;
}

.breadcrumb i {
  color: var(--blue);
  margin-right: 6px;
}

.breadcrumb a:hover {
  color: var(--blue);
}

.article-detail h1,
.case-detail-page h1 {
  font-size: 22px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.detail-meta {
  color: #999;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.detail-body p {
  color: #555;
  text-align: justify;
  margin-bottom: 14px;
}

.detail-body .rich-content img {
  max-width: 100%;
  height: auto;
}

.back-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--blue);
}

.back-link:hover {
  text-decoration: underline;
}

.panel {
  background: var(--card);
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  padding: 24px 28px 28px;
  margin-bottom: 18px;
  scroll-margin-top: 12px;
}

.profile {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
}

.portrait {
  background: #f7f8fa;
  border: 1px solid #ececec;
  overflow: hidden;
}

.portrait-art svg {
  width: 100%;
  height: auto;
  display: block;
}

.profile-side {
  min-width: 0;
}

.portrait-name {
  text-align: center;
  padding: 8px 0 10px;
  font-weight: 700;
  color: #1c2b4a;
}

a.consult-btn {
  color: #fff;
}

.consult-btn {
  width: 100%;
  margin-top: 0;
  height: 44px;
  border: 0;
  background: var(--teal);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.consult-btn:hover {
  background: var(--teal-dark);
}

.side-meta {
  list-style: none;
  margin-top: 14px;
  color: #666;
  font-size: 13px;
}

.side-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed #ececec;
}

.side-meta i {
  color: var(--blue);
  width: 16px;
}

.profile-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 8px;
}

.profile-head h1 {
  font-size: 28px;
  letter-spacing: 2px;
  white-space: nowrap;
}

.contact-list {
  list-style: none;
  color: #666;
  font-size: 13px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.contact-list i {
  color: #9aa3ad;
  width: 16px;
  margin-top: 4px;
}

.contact-list a:hover {
  color: var(--blue);
}

.info-block {
  padding: 12px 0;
}

.info-block h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.info-block p {
  color: #555;
  text-align: justify;
}

.info-block p + p {
  margin-top: 8px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tags span {
  background: #eef5ff;
  color: var(--blue);
  border: 1px solid #d5e6fb;
  padding: 2px 10px;
  font-size: 12px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #1e6fd9;
  padding-bottom: 8px;
  margin-bottom: 6px;
}

.section-head h2 {
  font-size: 18px;
  position: relative;
  padding-left: 12px;
}

.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--blue);
}

.section-head span,
.more {
  color: var(--muted);
  font-size: 12px;
}

.more:hover {
  color: var(--blue);
}

.consult-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding-top: 16px;
}

.consult-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.consult-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f7fafc;
  border: 1px solid #edf1f4;
  padding: 14px;
}

.consult-card i {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.consult-card h3 {
  font-size: 14px;
}

.consult-card p {
  color: #777;
  font-size: 13px;
}

.consult-form {
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-row label {
  font-weight: 700;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid #ddd;
  padding: 9px 12px;
  outline: none;
  background: #fff;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--blue);
}

.submit-btn {
  width: 160px;
  height: 40px;
  border: 0;
  background: var(--teal);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.submit-btn:hover {
  background: var(--teal-dark);
}

.form-tip {
  color: #999;
  font-size: 12px;
}

.news-list {
  list-style: none;
}

.news-list li {
  border-bottom: 1px solid #f0f0f0;
}

.news-list button,
.news-list a.row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 2px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: #333;
  font-size: 14px;
}

.news-list .qa-tag {
  display: inline-block;
  min-width: 22px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  color: #fff;
  background: #e67e22;
  margin-right: 8px;
  vertical-align: middle;
}

.news-list .title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qa-block {
  padding: 16px 18px;
  margin-bottom: 16px;
  border: 1px solid #edf1f4;
  background: #f9fbfd;
}

.qa-block.qa-answer {
  background: #f3fbf8;
  border-color: #d7efe8;
}

.qa-block h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  margin-bottom: 10px;
}

.qa-block .qa-tag {
  display: inline-block;
  min-width: 26px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  font-size: 13px;
  color: #fff;
  background: #e67e22;
  flex-shrink: 0;
}

.qa-block.qa-answer .qa-tag {
  background: var(--teal);
}

.qa-asker {
  color: #999;
  font-size: 13px;
  margin-bottom: 8px;
}

.news-list .date {
  color: #999;
  flex-shrink: 0;
  font-size: 13px;
}

.news-list button:hover .title,
.news-list a.row:hover .title {
  color: var(--blue);
}

.case-detail {
  display: none;
  padding: 0 2px 14px 18px;
  color: #666;
  font-size: 13px;
  background: #fafbfc;
}

.case-detail.is-open {
  display: block;
}

.pager {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 16px;
}

.pager button {
  min-width: 32px;
  height: 28px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  color: #555;
  padding: 0 8px;
}

.pager button.is-active,
.pager button:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.friend-links {
  background: #eef6fb;
  padding: 22px 0 28px;
  border-top: 1px solid #dceaf3;
}

.friend-links h3 {
  color: var(--blue);
  font-size: 16px;
  margin-bottom: 12px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px 16px;
}

.link-grid a {
  color: #3a6ea5;
  font-size: 13px;
}

.link-grid a:hover {
  text-decoration: underline;
}

.site-footer {
  background: #2b2b2b;
  color: #cfcfcf;
  text-align: center;
  padding: 22px 0 28px;
  font-size: 12px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-bottom: 10px;
}

.footer-nav a {
  padding: 0 12px;
  border-right: 1px solid #666;
}

.footer-nav a:last-child {
  border-right: 0;
}

.footer-nav a:hover {
  color: #fff;
}

.float-bar {
  position: fixed;
  right: 0;
  top: 42%;
  z-index: 20;
  width: 52px;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.08);
}

.float-bar a,
.float-bar button {
  width: 100%;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  border-bottom: 1px solid #eee;
  background: #fff;
  cursor: pointer;
  color: #555;
  font-size: 11px;
}

.float-bar i {
  font-size: 16px;
  color: var(--blue);
}

.float-bar a:hover,
.float-bar button:hover {
  background: var(--blue);
  color: #fff;
}

.float-bar a:hover i,
.float-bar button:hover i {
  color: #fff;
}

.modal[hidden],
.toast[hidden],
.popover[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.modal-box {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100% - 32px));
  margin: 16vh auto 0;
  background: #fff;
  padding: 28px 24px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.modal-close {
  position: absolute;
  right: 10px;
  top: 6px;
  border: 0;
  background: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
}

.modal-lead {
  color: #666;
  margin: 8px 0 12px;
}

.modal-phone {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #222;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  background: rgba(30, 30, 30, 0.9);
  color: #fff;
  padding: 10px 18px;
  z-index: 50;
  border-radius: 4px;
}

.popover {
  position: fixed;
  right: 60px;
  top: 46%;
  z-index: 25;
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.qr {
  width: 150px;
  text-align: center;
  color: #2aae67;
}

.qr i {
  font-size: 42px;
}

.qr p {
  color: #666;
  font-size: 12px;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .header-inner,
  .profile,
  .consult-grid,
  .profile-head {
    flex-direction: column;
    display: flex;
  }

  .profile,
  .consult-grid {
    display: block;
  }

  .profile-side {
    max-width: 240px;
    margin: 0 auto 20px;
  }

  .link-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-row a {
    padding: 14px 18px;
    font-size: 14px;
    letter-spacing: 1px;
  }
}

@media (max-width: 640px) {
  .nav-row {
    width: 100%;
  }

  .nav-row li {
    flex: 1;
  }

  .nav-row a {
    padding: 12px 4px;
    font-size: 13px;
    letter-spacing: 0;
    text-align: center;
  }

  .banner-slogan h2 {
    font-size: 16px;
    letter-spacing: 2px;
  }

  .panel {
    padding: 16px;
  }

  .news-list .date {
    display: none;
  }

  .float-bar {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    display: flex;
  }

  .float-bar a,
  .float-bar button {
    border-bottom: 0;
    border-right: 1px solid #eee;
  }
}
