/* 首屏标题在不同屏幕上保持克制的阅读尺寸 */
:root {
  --brand-wash: #e2f2f8;
  --paper-wash: #f7fbfc;
  --accent: #2f9eca;
}

body {
  background: var(--paper-wash);
}

.band,
.band-soft {
  background: var(--brand-wash);
}

.services {
  background: var(--paper-wash);
  box-shadow: 0 0 0 100vmax var(--paper-wash);
  clip-path: inset(0 -100vmax);
}

.hero h1 {
  font-size: clamp(2.9rem, 6vw, 5.7rem);
  line-height: 1.22;
}

.hero-line {
  display: block;
  width: max-content;
  max-width: 100%;
}

.hero-line-second {
  margin-left: auto;
  text-align: right;
}

/* 服务卡片使用与页面背景协调的暖灰悬浮色 */
.service-card:hover {
  background: #d3ebf3;
}

.light-button {
  background: #2f9eca;
  color: #fff;
}

.light-button:hover {
  background: #2585ad;
  color: #fff;
}

.quote-mark {
  color: #2f9eca;
}

.quote-band p {
  color: #58c2e2;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.7;
  font-family: "STKaiti", "KaiTi", "Noto Serif SC", serif;
  letter-spacing: .06em;
}

.hero h1 em,
.section-heading h2 em,
.intro-copy h2 span,
.project-intro h2 em,
.heading-row h2 em,
.contact-hero h1 em {
  color: #2f9eca;
}

/* 文章详情页按微信公众号正文阅读习惯排版 */
.post-article {
  max-width: 680px;
  padding-top: 26px;
}

.back-link {
  margin-bottom: 40px;
}

.post-article h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.35;
  letter-spacing: -.045em;
  margin: 24px 0 18px;
}

.post-lead {
  font-size: 16px;
  line-height: 1.85;
  margin: 8px 0 0;
}

.post-summary {
  margin: 24px 0 42px;
  padding: 16px 20px;
  border-left: 3px solid #2f9eca;
  background: #f7fbfc;
}

.post-views {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: .04em;
}

.post-views svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.summary-label {
  display: block;
  color: #2f9eca;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.article-qr {
  margin-top: 58px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.author-bio {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 38px;
  align-items: center;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.author-bio h2 {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.4;
}

.author-bio p {
  margin: 0 0 20px;
  color: #333;
  font-family: "Noto Serif SC", "Noto Sans SC", serif;
  font-size: 16px;
  line-height: 1.9;
}

.author-bio p:last-child {
  margin-bottom: 0;
}

.author-bio {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 36px;
  align-items: center;
  padding-bottom: 0;
  border-bottom: 0;
}

.personal-qr {
  text-align: center;
}

.personal-qr-code,
.personal-qr-code img,
.personal-qr-code canvas {
  display: block;
  width: 150px !important;
  height: 150px !important;
}

.personal-qr-code {
  margin: 0 auto 10px;
}

.personal-qr strong {
  color: #2f9eca;
  font-size: 14px;
}

.qr-side {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.qr-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.qr-copy {
  text-align: center;
}

.qr-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding-top: 0;
}

.qr-copy p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 15px;
}

.article-qr-code {
  width: 180px;
  height: 180px;
  margin: 0 auto 14px;
}

.article-qr-code img,
.article-qr-code canvas {
  display: block;
  width: 180px !important;
  height: 180px !important;
}

.article-qr strong {
  color: #2f9eca;
  font-size: 15px;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #2f9eca;
  font-size: 14px;
}

.post-navigation a:hover {
  color: #2585ad;
}

.post-body {
  border-top: 0;
  padding-top: 0;
  color: #333;
  font-family: "Noto Serif SC", "Noto Sans SC", serif;
  font-size: 16px;
  line-height: 1.95;
}

.post-body p {
  margin: 0 0 1.35em;
}

.post-body h2 {
  font-size: 22px;
  line-height: 1.45;
  margin: 2em 0 .8em;
}

.post-body blockquote {
  margin: 2em 0;
  font-size: 18px;
  line-height: 1.8;
}

.post-placeholder {
  margin: 0 0 34px;
}

.post-placeholder img {
  height: auto;
  border-radius: 0;
}

@media (max-width: 800px) {
  .post-article {
    padding-top: 24px;
  }

  .back-link {
    margin-bottom: 30px;
  }

  .post-article h1 {
    font-size: clamp(1.85rem, 8vw, 2.6rem);
  }

  .post-body {
    font-size: 16px;
    line-height: 1.95;
  }

  .post-summary {
    margin: 20px 0 34px;
  }

  .article-qr {
    margin-top: 42px;
  }

  .qr-row {
    flex-direction: column;
    gap: 22px;
  }

  .author-bio {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .article-qr-code {
    margin-left: 0;
  }
}

.stat-highlight {
  color: var(--ink);
  font-size: 1.7em;
  font-weight: 900;
}

.icp-link {
  color: #77746d;
  font: 11px "DM Sans", sans-serif;
}

.icp-link:hover {
  color: var(--paper);
}

.footer-email {
  display: inline-block;
  margin-top: 14px;
  color: var(--paper);
  font: 13px "DM Sans", sans-serif;
  border-bottom: 1px solid rgba(245, 243, 239, .35);
}

.wechat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #95928b;
  font-size: 12px;
}

.qr-wrap {
  position: relative;
  width: 144px;
  height: 144px;
  padding: 5px;
  background: var(--paper);
}

#wechat-qr,
#wechat-qr img,
#wechat-qr canvas {
  display: block;
  width: 134px !important;
  height: 134px !important;
}

.qr-mark {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 32px;
  height: 32px;
  padding: 5px;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  background: var(--paper);
}

.qr-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: #2baf5d;
}

@media (max-width: 800px) {
  .main-nav {
    background: #2f9eca;
    border-color: #2f9eca;
  }

  .main-nav a,
  .main-nav a:hover {
    color: #fff;
  }

  .main-nav .nav-link {
    border-color: rgba(255, 255, 255, .65);
  }

  .hero h1 {
    font-size: clamp(1.35rem, 7.5vw, 3.8rem);
    line-height: 1.28;
  }

  .hero-line {
    max-width: none;
    white-space: nowrap;
  }

  .hero-line-second {
    margin-left: auto;
  }

  .wechat-block {
    align-items: flex-start;
  }
}
