:root {
  --ink: #20242a;
  --muted: #65717d;
  --line: #d9e0e4;
  --paper: #f7f4ee;
  --white: #ffffff;
  --green: #21483f;
  --blue: #24506a;
  --brick: #9a5d43;
  --gold: #bd9450;
  --shadow: 0 18px 42px rgba(31, 40, 48, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "FangSong", "FangSong_GB2312", "Noto Serif SC", "Songti SC", serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
textarea,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(217, 224, 228, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 6px;
  color: var(--white);
  background: var(--green);
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  border-radius: 6px;
  padding: 8px 11px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--ink);
  background: var(--paper);
}

.profile-hero,
.qa-section,
.services-section,
.nodes-section {
  padding: clamp(48px, 7vw, 88px) clamp(18px, 5vw, 72px);
}

.profile-hero {
  display: grid;
  min-height: calc(100vh - 68px);
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background: var(--white);
}

.profile-intro {
  min-width: 0;
}

.identity-column {
  display: grid;
  gap: 18px;
}

.portrait-card {
  position: relative;
  min-height: min(72vh, 680px);
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #d8d3ca;
}

.portrait-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.portrait-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(25, 37, 42, 0.76), rgba(25, 37, 42, 0.08) 58%);
}

.portrait-note {
  position: absolute;
  right: calc(30% + 46px);
  bottom: 22px;
  left: 22px;
  z-index: 1;
  color: var(--white);
}

.portrait-note span {
  display: block;
  max-width: 92%;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.portrait-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(25px, 3.2vw, 38px);
  line-height: 1.2;
}

.portrait-contact {
  position: absolute;
  right: 22px;
  top: auto;
  bottom: 22px;
  z-index: 2;
  display: grid;
  width: min(30%, 178px);
  height: 100%;
  max-height: 214px;
  gap: 7px;
  align-content: stretch;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 13px 12px 10px;
  color: var(--white);
  background: rgba(18, 28, 32, 0.58);
  backdrop-filter: blur(10px);
}

.portrait-contact span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  line-height: 1.25;
}

.portrait-contact a {
  display: block;
  margin-top: 2px;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.wechat-qr {
  display: grid;
  gap: 3px;
  justify-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.46);
  border-radius: 6px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.94);
  text-align: center;
}

.wechat-qr img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.wechat-qr span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.identity-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 2px solid rgba(154, 93, 67, 0.38);
  border-radius: 8px;
  padding: 18px 20px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(31, 40, 48, 0.08);
}

.identity-link strong,
.identity-link small {
  display: block;
}

.identity-link strong {
  font-size: 20px;
}

.identity-link small {
  color: var(--muted);
  font-size: 14px;
}

.identity-link b {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--white);
  background: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.identity-link:hover {
  border-color: var(--brick);
  transform: translateY(-1px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brick);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 100%;
  margin-bottom: 20px;
  font-size: clamp(34px, 3.8vw, 58px);
  line-height: 1.12;
  letter-spacing: 0;
}

h1 span {
  display: block;
  white-space: nowrap;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.35;
}

.intro-text {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
}

.intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.intro-tags span {
  border: 1px solid rgba(36, 80, 106, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--blue);
  background: #f5fafb;
  font-size: 14px;
}

.hero-actions,
.ask-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button,
.file-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 16px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover,
.file-button:hover {
  transform: translateY(-1px);
}

.primary {
  border-color: var(--green);
  color: var(--white);
  background: var(--green);
}

.secondary {
  color: var(--ink);
  background: var(--white);
}

.section-head,
.ask-layout,
.service-stack,
.node-stack {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.section-head {
  margin-bottom: 26px;
}

.ask-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 22px;
  align-items: stretch;
}

.question-panel,
.service-row,
.nonlit-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(32, 36, 42, 0.04);
}

.question-panel {
  display: flex;
  flex-direction: column;
  padding: 26px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fffdf8;
}

.question-fields {
  margin-bottom: 12px;
}

textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  color: var(--ink);
  background: #fffdf8;
}

#questionText {
  min-height: 260px;
}

textarea:focus {
  outline: 2px solid rgba(33, 72, 63, 0.18);
  border-color: var(--green);
}

input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ask-actions {
  display: grid;
  grid-template-columns: repeat(4, auto) minmax(0, 1fr);
  margin-top: 14px;
  align-items: center;
}

.ask-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.question-summary {
  margin-top: 16px;
  border: 1px solid rgba(33, 72, 63, 0.22);
  border-radius: 8px;
  padding: 14px;
  background: #f5fafb;
}

.question-summary strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
}

.question-summary p {
  margin-bottom: 0;
  color: var(--muted);
}

.faq-strip {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(32, 36, 42, 0.04);
}

.faq-strip::before,
.faq-strip::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 72px;
  pointer-events: none;
  content: "";
}

.faq-strip::before {
  left: 0;
  background: linear-gradient(90deg, var(--white), rgba(255, 255, 255, 0));
}

.faq-strip::after {
  right: 0;
  background: linear-gradient(270deg, var(--white), rgba(255, 255, 255, 0));
}

.strip-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.strip-head strong {
  display: block;
  font-size: 18px;
}

.strip-head small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.mini-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--green);
  background: var(--white);
  cursor: pointer;
}

.featured-faq {
  position: relative;
  z-index: 3;
  margin-bottom: 18px;
  border: 1px solid rgba(33, 72, 63, 0.16);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 16px 18px;
  background: #f8faf7;
}

.featured-faq span {
  display: inline-flex;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--white);
  background: var(--green);
  font-size: 12px;
}

.featured-faq h3 {
  margin-bottom: 6px;
  font-size: 21px;
}

.featured-faq p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.ticker,
.case-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: scroll-ltr 58s linear infinite;
}

.ticker:hover,
.case-track:hover {
  animation-play-state: paused;
}

.ticker.is-paused,
.case-track.is-paused {
  animation-play-state: paused;
}

.faq-card {
  width: 320px;
  min-height: 190px;
  flex: 0 0 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  background: var(--white);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.faq-card:hover,
.service-case:hover,
.nonlit-list article:hover {
  border-color: rgba(33, 72, 63, 0.45);
  transform: translateY(-2px);
}

.faq-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
}

.faq-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.services-section {
  background: var(--white);
}

.nodes-section {
  background: var(--paper);
}

.service-stack,
.node-stack {
  display: grid;
  gap: 18px;
}

.service-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  overflow: hidden;
}

.node-panel {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(32, 36, 42, 0.04);
}

.service-count {
  display: grid;
  align-content: center;
  min-height: 250px;
  padding: 24px;
  color: var(--white);
  background: var(--green);
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.service-count:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.service-count.execution {
  background: var(--blue);
}

.service-count.retainer {
  background: var(--brick);
}

.service-count.nonlit {
  background: #3d4851;
}

.service-count span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.service-count strong {
  display: block;
  margin: 8px 0;
  font-size: 54px;
  line-height: 1;
}

.service-count .count-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.service-count .count-line em {
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
}

.service-count small {
  color: rgba(255, 255, 255, 0.78);
}

.service-count b {
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 5px 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.case-window {
  overflow: hidden;
  padding: 22px;
}

.case-track {
  animation-duration: 48s;
}

.service-case {
  width: 340px;
  min-height: 206px;
  flex: 0 0 340px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fffdf8;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.service-case .tag {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--white);
  background: var(--gold);
  font-size: 13px;
}

.service-case p {
  color: var(--muted);
}

.service-case dl {
  margin: 0;
}

.service-case dt {
  color: var(--muted);
  font-size: 13px;
}

.service-case dd {
  margin: 0 0 6px;
}

.nonlit-panel {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  overflow: hidden;
}

.nonlit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 22px;
}

.nonlit-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fffdf8;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.nonlit-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.node-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 22px;
}

.node-preview article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fffdf8;
}

.node-preview em {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-style: normal;
  font-weight: 700;
}

.node-preview strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.node-preview p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.78);
  background: #1b252a;
}

.footer-inner {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
}

.site-footer strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font-size: 18px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-disclaimer {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 14px;
  font-size: 13px;
  line-height: 1.7;
}

.site-footer > p {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.detail-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: min(82vh, 760px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.detail-dialog.list-dialog {
  width: min(980px, calc(100% - 32px));
}

.detail-dialog::backdrop {
  background: rgba(24, 32, 38, 0.38);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
}

.detail-dialog h3 {
  margin-right: 34px;
  font-size: 28px;
}

.detail-dialog p {
  color: var(--muted);
}

.detail-dialog dl {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.detail-dialog dl div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.detail-dialog dt {
  color: var(--green);
  font-weight: 700;
}

.detail-dialog dd {
  margin: 3px 0 0;
  color: var(--muted);
}

.service-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.service-list-grid span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fffdf8;
}

.service-list-grid em {
  flex: 0 0 auto;
  color: var(--gold);
  font-style: normal;
  font-weight: 700;
}

.service-list-grid strong {
  display: block;
  font-size: 15px;
  line-height: 1.45;
}

.service-list-grid small {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.service-list-notice {
  margin: 16px 0 0;
  border: 1px solid rgba(154, 93, 67, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--brick);
  background: #fff8f2;
  font-size: 14px;
}

@keyframes scroll-ltr {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@media (max-width: 1280px) {
  h1 {
    font-size: clamp(32px, 3.5vw, 48px);
  }
}

@media (max-width: 1080px) {
  h1 {
    font-size: 40px;
  }

  h1 span {
    white-space: normal;
  }
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .profile-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .portrait-card {
    min-height: 420px;
  }

  .portrait-contact {
    right: 18px;
    bottom: 18px;
    width: min(38%, 168px);
  }

  .portrait-note {
    right: calc(40% + 40px);
  }

  .ask-layout,
  .service-row,
  .node-panel,
  .nonlit-panel {
    grid-template-columns: 1fr;
  }

  .ask-actions {
    grid-template-columns: auto auto;
  }

  .ask-note {
    grid-column: 1 / -1;
  }

  .service-count {
    min-height: auto;
  }

  .nonlit-list {
    grid-template-columns: 1fr;
  }

  .node-preview {
    grid-template-columns: 1fr;
  }

  .service-list-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .profile-hero,
  .qa-section,
  .services-section,
  .nodes-section {
    padding-inline: 14px;
  }

  h1 {
    font-size: 36px;
  }

  h1 span {
    white-space: normal;
  }

  .portrait-card {
    min-height: 330px;
  }

  .portrait-contact {
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: auto;
    height: auto;
    max-height: none;
    grid-template-columns: minmax(0, 1fr) 112px;
    align-items: center;
  }

  .portrait-note {
    right: 14px;
    bottom: 138px;
  }

  .portrait-contact a {
    font-size: 18px;
  }

  .wechat-qr {
    padding: 6px;
  }

  .intro-text {
    font-size: 17px;
  }

  .faq-card {
    width: 280px;
    flex-basis: 280px;
  }

  .question-panel,
  .faq-strip {
    padding: 18px;
  }

  .ask-actions {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  #questionText {
    min-height: 220px;
  }

  .service-case {
    width: 292px;
    flex-basis: 292px;
  }
}
