/* ——————————————————————————————————————————
   昕书杭网络科技工作室 · 共享样式
   意象：昕 —— 破晓。墨夜、晨光、朱砂日、远山。
   —————————————————————————————————————————— */

:root {
  --paper: #f4edde;
  --paper-deep: #eadfc6;
  --ink: #26212b;
  --ink-soft: #6f6455;
  --line: #d6cab0;

  --night: #17141f;
  --night-2: #231c2e;
  --dusk: #5a2f38;
  --dawn: #7c4038;
  --line-night: rgba(244, 237, 222, 0.16);
  --on-night: #f4edde;
  --on-night-soft: #bfb2a0;

  --seal: #bf3b26;
  --seal-deep: #8f2917;
  --sun: #d84b2f;
  --gold: #d29a3f;

  --serif: Georgia, "Source Han Serif SC", "Noto Serif CJK SC",
    "Songti SC", "STSong", "SimSun", serif;
  --shell: min(1120px, calc(100vw - 3rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(38, 33, 43, 0.016) 0px,
    rgba(38, 33, 43, 0.016) 1px,
    transparent 1px,
    transparent 5px
  );
}

::selection {
  background: var(--seal);
  color: var(--paper);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* ————— 朱砂双栏线（粗细双线，古籍界栏） ————— */

.rule {
  height: 9px;
  border-top: 4px solid var(--seal);
  border-bottom: 1.5px solid var(--seal);
}

/* ————— 顶部 ————— */

.site-header {
  background: var(--night);
  border-bottom: 1px solid var(--line-night);
}

.site-header .shell {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.35rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--on-night);
  text-decoration: none;
}

.brand-dot {
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--sun), var(--seal-deep));
  box-shadow: 0 0 10px rgba(216, 75, 47, 0.55);
  transform: translateY(0.05em);
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--on-night-soft);
  letter-spacing: 0.22em;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: clamp(1rem, 3vw, 2.4rem);
}

.site-nav a {
  position: relative;
  font-size: 0.92rem;
  letter-spacing: 0.3em;
  color: var(--on-night-soft);
  text-decoration: none;
  padding-bottom: 0.2rem;
  transition: color 0.25s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.site-nav a:hover {
  color: var(--on-night);
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav a[aria-current="page"] {
  color: var(--on-night);
}

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ————— 通用 ————— */

.label {
  font-size: 0.75rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}

.label::before {
  content: "";
  display: inline-block;
  width: 2.2em;
  height: 1px;
  background: var(--gold);
  vertical-align: 0.32em;
  margin-right: 1em;
}

/* ————— 首页 hero：破晓 ————— */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--on-night);
  background:
    radial-gradient(120% 65% at 50% 108%, rgba(224, 122, 61, 0.38), transparent 62%),
    linear-gradient(180deg,
      #110f19 0%,
      var(--night) 22%,
      var(--night-2) 46%,
      var(--dusk) 76%,
      var(--dawn) 100%);
}

/* 星点 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 55% 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 30%, rgba(244, 237, 222, 0.7), transparent 100%),
    radial-gradient(1px 1px at 28% 62%, rgba(244, 237, 222, 0.45), transparent 100%),
    radial-gradient(1.5px 1.5px at 43% 22%, rgba(244, 237, 222, 0.6), transparent 100%),
    radial-gradient(1px 1px at 61% 48%, rgba(244, 237, 222, 0.4), transparent 100%),
    radial-gradient(1.5px 1.5px at 74% 18%, rgba(244, 237, 222, 0.55), transparent 100%),
    radial-gradient(1px 1px at 88% 40%, rgba(244, 237, 222, 0.45), transparent 100%),
    radial-gradient(1px 1px at 52% 75%, rgba(244, 237, 222, 0.3), transparent 100%),
    radial-gradient(1.2px 1.2px at 7% 70%, rgba(244, 237, 222, 0.4), transparent 100%);
  pointer-events: none;
}

.sun {
  position: absolute;
  right: clamp(4%, 12vw, 16%);
  bottom: 8%;
  width: clamp(200px, 30vw, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #e8623f, var(--sun) 45%, var(--seal-deep));
  box-shadow:
    0 0 60px 18px rgba(216, 75, 47, 0.4),
    0 0 160px 60px rgba(216, 75, 47, 0.22);
  pointer-events: none;
}

.hero-ghost {
  position: absolute;
  right: -0.06em;
  top: 45%;
  transform: translateY(-50%);
  font-size: clamp(16rem, 36vw, 30rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 237, 222, 0.13);
  pointer-events: none;
  user-select: none;
}

.mountains {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(90px, 16vw, 180px);
  display: block;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: start;
  padding: clamp(4.5rem, 11vw, 8.5rem) 0 clamp(7rem, 16vw, 12rem);
}

.hero h1 {
  font-size: clamp(2.9rem, 8vw, 6rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.32;
  margin-top: 1.6rem;
  text-shadow: 0 2px 30px rgba(17, 15, 25, 0.5);
}

.hero-lead {
  margin-top: 2.2rem;
  max-width: 30em;
  color: var(--on-night-soft);
  font-size: 1.02rem;
}

.hero-aside {
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
  padding-top: 0.6rem;
}

/* 竖排文字 */
.vertical {
  writing-mode: vertical-rl;
  font-size: 0.88rem;
  letter-spacing: 0.5em;
  color: var(--on-night-soft);
  border-left: 1px solid var(--line-night);
  padding-left: 1.1rem;
  min-height: 15rem;
}

/* 朱印 */
.seal {
  writing-mode: vertical-rl;
  display: block;
  width: 4.6rem;
  height: 4.6rem;
  background: linear-gradient(150deg, var(--seal), var(--seal-deep));
  color: var(--paper);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 2.3rem;
  text-align: center;
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(244, 237, 222, 0.18) inset,
    2px 4px 16px rgba(143, 41, 23, 0.45);
  user-select: none;
}

/* ————— 首页三栏索引 ————— */

.index-wrap {
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}

.index-grid > a {
  position: relative;
  display: block;
  padding: clamp(1.8rem, 3.5vw, 2.6rem) clamp(1.4rem, 3vw, 2rem);
  color: inherit;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--seal);
  box-shadow: 0 1px 0 var(--line);
  transition: background 0.35s ease, color 0.35s ease,
    transform 0.35s ease, box-shadow 0.35s ease;
}

.index-grid > a:hover {
  background: var(--night);
  color: var(--on-night);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(23, 20, 31, 0.22);
}

.index-num {
  font-size: 0.85rem;
  color: var(--seal);
  letter-spacing: 0.3em;
  transition: color 0.35s ease;
}

.index-grid > a:hover .index-num {
  color: var(--gold);
}

.index-grid h2 {
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  margin: 1rem 0 0.6rem;
}

.index-grid p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: color 0.35s ease;
}

.index-grid > a:hover p {
  color: var(--on-night-soft);
}

.index-arrow {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--seal);
  transition: transform 0.3s ease, color 0.35s ease;
}

.index-grid > a:hover .index-arrow {
  transform: translateX(0.5em);
  color: var(--gold);
}

/* ————— 深色宣言横幅 ————— */

.statement {
  position: relative;
  overflow: hidden;
  color: var(--on-night);
  background:
    radial-gradient(90% 130% at 12% 120%, rgba(216, 75, 47, 0.35), transparent 55%),
    linear-gradient(160deg, #110f19 0%, var(--night-2) 60%, var(--dusk) 100%);
}

.statement .shell {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.statement-text {
  margin-top: 1.4rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.9;
  letter-spacing: 0.08em;
  max-width: 30em;
}

.statement-text em {
  font-style: normal;
  color: var(--gold);
}

.statement .ghost {
  font-size: clamp(9rem, 20vw, 15rem);
}

/* ————— 通用字牌网格（流程、理念） ————— */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.8rem);
  margin-top: 2rem;
}

.tile {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 1.7rem 1.5rem;
}

.tile-num {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--seal);
}

.tile h3 {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin: 0.7rem 0 0.5rem;
}

.tile p {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.tile-section {
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem);
}

.tile-section h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  margin-top: 1rem;
}

/* ————— 副页题头：晨色横幅 ————— */

.page-head {
  position: relative;
  overflow: hidden;
  color: var(--on-night);
  background:
    radial-gradient(90% 120% at 85% 115%, rgba(216, 75, 47, 0.45), transparent 58%),
    linear-gradient(165deg, #110f19 0%, var(--night-2) 55%, var(--dusk) 100%);
  border-bottom: 4px solid var(--seal);
}

.page-head .shell {
  position: relative;
  padding: clamp(3.2rem, 8vw, 5.5rem) 0 clamp(2.6rem, 6vw, 4.2rem);
}

.page-head h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.35;
  margin-top: 1.2rem;
}

.page-head .page-note {
  margin-top: 1.2rem;
  max-width: 34em;
  color: var(--on-night-soft);
}

.ghost {
  position: absolute;
  right: -0.04em;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(11rem, 24vw, 19rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 237, 222, 0.15);
  pointer-events: none;
  user-select: none;
}

/* ————— 业务页 ————— */

.service-list {
  border-bottom: 1px solid var(--line);
}

.service-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) 1fr;
  gap: 2rem;
  padding: clamp(2.6rem, 5.5vw, 4rem) 0;
}

.service-item + .service-item {
  border-top: 1px solid var(--line);
}

.service-num {
  font-size: clamp(4.5rem, 9vw, 7.5rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(191, 59, 38, 0.55);
  letter-spacing: 0.04em;
  user-select: none;
}

@supports not (-webkit-text-stroke: 1px red) {
  .service-num {
    color: rgba(191, 59, 38, 0.28);
  }
}

.service-item h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.16em;
}

.service-item h2::after {
  content: "";
  display: block;
  width: 2.6em;
  height: 3px;
  margin-top: 0.7rem;
  background: linear-gradient(90deg, var(--seal), var(--gold));
}

.service-en {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.9rem;
}

.service-item .service-copy {
  margin-top: 1rem;
  max-width: 36em;
  color: var(--ink-soft);
}

.scope-note {
  padding: 1.8rem 0 clamp(3rem, 6vw, 4.5rem);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.scope-note p::before {
  content: "※";
  color: var(--seal);
  margin-right: 0.6em;
}

/* ————— 关于页 ————— */

.about-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.about-copy .opening {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  line-height: 2;
  letter-spacing: 0.08em;
  max-width: 26em;
}

.about-copy .opening strong {
  font-weight: 600;
  background: linear-gradient(transparent 68%, rgba(210, 154, 63, 0.4) 68%);
}

.about-copy p + p {
  margin-top: 1.6rem;
}

.about-copy .detail {
  max-width: 36em;
  color: var(--ink-soft);
}

.about-copy .detail strong {
  color: var(--ink);
  font-weight: 600;
}

.about-copy a {
  color: var(--seal);
  text-decoration-color: rgba(191, 59, 38, 0.4);
  text-underline-offset: 0.25em;
}

.about-mark {
  align-self: start;
  display: flex;
  gap: 1.6rem;
}

.about-mark .vertical {
  color: var(--ink-soft);
  border-left-color: var(--line);
}

/* 名字释义三枚字牌 */
.name-cards {
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem);
}

.name-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: 2rem;
}

.name-card {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 1.8rem 1.6rem;
  text-align: center;
}

.name-card .char {
  display: inline-grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--paper);
  background: linear-gradient(150deg, var(--night-2), var(--night));
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(23, 20, 31, 0.3);
}

.name-card:first-child .char {
  background: linear-gradient(150deg, var(--seal), var(--seal-deep));
}

.name-card p {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ————— 信息页 ————— */

.info-wrap {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}

.info-list dl {
  max-width: 46rem;
}

.info-list .row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.info-list .row:first-child {
  border-top: 3px solid var(--seal);
}

.info-list dt {
  font-size: 0.88rem;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  padding-top: 0.15rem;
}

.info-list dt::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  background: var(--seal);
  margin-right: 0.8em;
  transform: rotate(45deg) translateY(-0.05em);
}

.info-list dd {
  letter-spacing: 0.06em;
  font-size: 1.05rem;
}

.info-mark {
  display: flex;
  gap: 1.6rem;
  padding-top: 1rem;
}

.info-mark .vertical {
  color: var(--ink-soft);
  border-left-color: var(--line);
}

/* ————— 页脚：夜幕收束 ————— */

.site-footer {
  background:
    radial-gradient(80% 130% at 50% 135%, rgba(216, 75, 47, 0.28), transparent 60%),
    var(--night);
  color: var(--on-night-soft);
  border-top: 4px solid var(--seal);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem 2rem;
  padding: clamp(2.2rem, 5vw, 3.2rem) 0 1.6rem;
  border-bottom: 1px solid var(--line-night);
}

.seal-small {
  width: 3.4rem;
  height: 3.4rem;
  font-size: 1.05rem;
  line-height: 1.7rem;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--on-night);
}

.footer-line {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

.footer-main a {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--on-night-soft);
  text-decoration: none;
  letter-spacing: 0.2em;
  transition: color 0.25s ease;
}

.footer-main a:hover {
  color: var(--gold);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2.5rem;
  padding: 1.3rem 0 1.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: rgba(191, 178, 160, 0.75);
}

.footer-meta .sep {
  margin: 0 0.9em;
  color: rgba(191, 178, 160, 0.4);
}

.footer-meta a,
.footer-meta a:visited {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-meta a:hover {
  color: var(--gold);
}

/* ————— 入场动画 ————— */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.7s ease forwards;
  }
  .rise-1 { animation-delay: 0.05s; }
  .rise-2 { animation-delay: 0.15s; }
  .rise-3 { animation-delay: 0.25s; }
  .rise-4 { animation-delay: 0.35s; }

  @keyframes rise {
    to {
      opacity: 1;
      transform: none;
    }
  }

  .sun {
    animation: sunrise 1.6s cubic-bezier(0.22, 0.9, 0.35, 1) both;
  }

  @keyframes sunrise {
    from {
      transform: translateY(12%);
      opacity: 0;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }
}

/* ————— 响应式 ————— */

@media (max-width: 760px) {
  .site-header .shell {
    flex-wrap: wrap;
    row-gap: 0.6rem;
  }

  .site-nav {
    width: 100%;
    margin-left: 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-bottom: clamp(8rem, 30vw, 11rem);
  }

  .hero-aside {
    order: -1;
    justify-content: flex-end;
  }

  .vertical {
    min-height: 10rem;
  }

  .sun {
    right: 6%;
    bottom: 4%;
    width: clamp(150px, 44vw, 220px);
  }

  .hero-ghost {
    font-size: clamp(11rem, 60vw, 16rem);
    top: 38%;
  }

  .index-grid,
  .name-grid {
    grid-template-columns: 1fr;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .service-num {
    font-size: 3.6rem;
  }

  .about-body,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-list .row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .ghost {
    font-size: clamp(8rem, 42vw, 12rem);
  }
}
