/* ============================================================
   溪桥工作室官网
   配色沿用品牌规格 §10.4：墨 / 淡墨 / 花青 / 宣纸
   字体：思源宋体（标题）+ 思源黑体（正文），均为 SIL OFL 开源
   ============================================================ */

@font-face {
  font-family: 'XQ Serif';
  src: url('fonts/serif.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'XQ Sans';
  src: url('fonts/sans.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink:        #221E1A;   /* 墨 */
  --ink-soft:   #3A342D;
  --ink-faint:  #6E6458;   /* 淡墨 */
  --qing:       #6B9590;   /* 花青 */
  --qing-deep:  #3F6B67;
  --paper:      #F8F3E8;   /* 宣纸 */
  --paper-2:    #EAE0CA;
  --paper-3:    #F3EDDE;
  --line:       rgba(34, 30, 26, 0.14);

  --serif: 'XQ Serif', 'Source Han Serif SC', 'Noto Serif CJK SC', serif;
  --sans:  'XQ Sans', 'Source Han Sans SC', 'Noto Sans CJK SC', sans-serif;

  --wrap: 1080px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 宣纸颗粒 —— 极轻，只在氛围层 */
.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(107,149,144,0.05) 0, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(110,100,88,0.06) 0, transparent 50%);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}
.wrap--narrow { max-width: 760px; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(248, 243, 232, 0.86);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brandmark img { display: block; border-radius: 2px; }
.brandmark__text {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.14em;
}
.nav { display: flex; gap: 30px; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.14em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.nav a:hover { color: var(--qing-deep); border-bottom-color: var(--qing); }

/* ---------------- 首屏 ---------------- */
.hero {
  position: relative;
  z-index: 1;
  padding: 78px 32px 92px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 46% at 50% 12%, rgba(255,255,255,0.9) 0, transparent 70%);
}
.hero__inner { max-width: 820px; margin: 0 auto; }
.hero__logo-wrap { margin-bottom: 26px; }
.hero__logo {
  width: 210px;
  height: 210px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  animation: drift 9s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__logo { animation: none; }
  html { scroll-behavior: auto; }
}

.hero__eyebrow {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.62em;
  text-indent: 0.62em;
  color: var(--ink-faint);
  margin-bottom: 20px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 7vw, 62px);
  line-height: 1.32;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
  margin-bottom: 30px;
}
.hero__sep { color: var(--qing); }
.hero__lede {
  font-size: 17.5px;
  line-height: 2.15;
  color: var(--ink-soft);
  max-width: 660px;
  margin: 0 auto 30px;
}
.hero__seal-line {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 2.1;
  color: var(--qing-deep);
  letter-spacing: 0.06em;
  max-width: 640px;
  margin: 0 auto 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.16em;
  padding: 13px 30px;
  border: 1px solid var(--ink-faint);
  border-radius: 2px;
  transition: all .35s var(--ease);
}
.hero__cta:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.hero__cta-arrow { transition: transform .35s var(--ease); }
.hero__cta:hover .hero__cta-arrow { transform: translateY(3px); }

/* ---------------- 通用区块 ---------------- */
.section { position: relative; z-index: 1; padding: 96px 0; }
.section__eyebrow {
  font-size: 13px;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--qing-deep);
  margin-bottom: 16px;
}
.section__eyebrow--light { color: var(--qing); }
.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4.4vw, 40px);
  line-height: 1.45;
  letter-spacing: 0.09em;
  margin-bottom: 52px;
  padding-bottom: 20px;
  position: relative;
}
.section__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 2px;
  background: var(--qing);
}
.section__title--light { color: var(--paper); }

/* ---------------- 关于 ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.about-card {
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 34px 28px 30px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.about-card:hover {
  transform: translateY(-5px);
  border-color: rgba(107,149,144,0.55);
  box-shadow: 0 12px 30px -18px rgba(34,30,26,0.42);
}
.about-card__num {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--qing);
  margin-bottom: 16px;
  line-height: 1;
}
.about-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
}
.about-card p { font-size: 16px; line-height: 1.95; color: var(--ink-soft); }

/* ---------------- 认真（深墨底） ---------------- */
.section--ink {
  background: var(--ink);
  color: var(--paper);
  margin-top: 20px;
}
.section--ink::before,
.section--ink::after {
  content: '';
  display: block;
  max-width: var(--wrap);
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(234,224,202,0.22), transparent);
  padding: 0 32px;
}
.craft__intro {
  font-size: 17px;
  line-height: 2.1;
  color: rgba(248,243,232,0.82);
  max-width: 700px;
  margin-bottom: 44px;
}

/* 信条 */
.creed {
  margin: 0 0 52px;
  padding: 30px 34px;
  border-left: 2px solid var(--qing);
  background: rgba(107,149,144,0.09);
  max-width: 720px;
}
.creed p {
  font-family: var(--serif);
  font-size: clamp(22px, 3.2vw, 28px);
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: var(--paper);
  margin-bottom: 12px;
}
.creed cite {
  display: block;
  font-style: normal;
  font-size: 14.5px;
  line-height: 1.95;
  color: rgba(248,243,232,0.58);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  padding: 38px 0 44px;
  border-top: 1px solid rgba(234,224,202,0.16);
  border-bottom: 1px solid rgba(234,224,202,0.16);
  margin-bottom: 54px;
}
.stat { text-align: center; }
.stat__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(30px, 4.6vw, 42px);
  color: var(--qing);
  line-height: 1.2;
  margin-bottom: 8px;
}
.stat__label {
  display: block;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: rgba(248,243,232,0.62);
}

.gate-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.gate {
  padding: 30px 28px;
  border: 1px solid rgba(234,224,202,0.14);
  border-left: 2px solid var(--qing);
  border-radius: 2px;
  background: rgba(248,243,232,0.035);
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.gate:hover {
  background: rgba(248,243,232,0.07);
  border-left-color: var(--paper-3);
}
.gate__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--paper);
  margin-bottom: 16px;
}
.gate__why {
  font-size: 15.5px;
  line-height: 1.95;
  color: rgba(248,243,232,0.7);
  padding-left: 15px;
  border-left: 1px solid rgba(107,149,144,0.5);
  margin-bottom: 12px;
}
.gate__now {
  font-size: 15.5px;
  line-height: 1.95;
  color: rgba(248,243,232,0.9);
}
.craft__footnote {
  margin-top: 44px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2;
  color: rgba(248,243,232,0.56);
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* 诚实段 */
.honest {
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid rgba(234,224,202,0.16);
  max-width: 760px;
}
.honest__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.08em;
  color: var(--paper);
  margin-bottom: 22px;
}
.honest__body {
  font-size: 16px;
  line-height: 2.1;
  color: rgba(248,243,232,0.76);
  margin-bottom: 16px;
}
.honest__body strong { color: var(--paper); font-weight: 400; }
.honest__body em {
  font-style: normal;
  color: var(--qing);
}

/* ---------------- 方法 ---------------- */
.steps { display: flex; flex-direction: column; gap: 4px; }
.step {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 34px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__head { display: flex; align-items: baseline; gap: 14px; }
.step__idx {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--qing);
  line-height: 1;
}
.step__head h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: 0.06em;
}
.step p {
  font-size: 16px;
  line-height: 2.05;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.step__aside {
  font-size: 15px !important;
  color: var(--ink-faint) !important;
  padding-left: 15px;
  border-left: 2px solid var(--paper-2);
}

/* ---------------- 收束 ---------------- */
.section--closing { padding: 100px 0 92px; text-align: center; }
.closing__mark { margin-bottom: 34px; opacity: 0.9; }
.closing__mark img { display: block; margin: 0 auto; }
.closing__text {
  font-family: var(--serif);
  font-size: clamp(21px, 3.4vw, 28px);
  line-height: 2.1;
  letter-spacing: 0.09em;
  color: var(--ink);
  margin-bottom: 30px;
}
.closing__sig {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.44em;
  text-indent: 0.44em;
  color: var(--ink-faint);
}

/* ---------------- 页脚 ---------------- */
.footer {
  position: relative;
  z-index: 1;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding: 46px 0 54px;
  text-align: center;
}
.footer__name {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  margin-bottom: 12px;
}
.footer__line {
  font-size: 14.5px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.footer__note {
  font-size: 12.5px;
  color: var(--ink-faint);
  opacity: 0.8;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .gate-list { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .step { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar { padding: 12px 20px; }
  .nav { gap: 18px; }
  .nav a { font-size: 14px; letter-spacing: 0.08em; }
  .brandmark__text { font-size: 17px; letter-spacing: 0.1em; }
  .wrap { padding: 0 22px; }
  .hero { padding: 52px 22px 68px; }
  .hero__logo { width: 152px; height: 152px; }
  .hero__eyebrow { letter-spacing: 0.42em; text-indent: 0.42em; }
  .hero__lede { font-size: 16.5px; }
  .hero__seal-line { font-size: 17px; }
  .section { padding: 68px 0; }
  .section__title { margin-bottom: 38px; }
  .about-card { padding: 28px 22px 24px; }
  .stat { text-align: left; }
  .gate { padding: 24px 20px; }
  .step { padding: 26px 0; }
}
