/* ============================================================
   互联网文艺复兴
   当代编辑排版 × 文艺复兴画册与古籍气质
   ============================================================ */

:root {
  --paper: #f3eedf;
  --paper-light: #fbf8ef;
  --paper-deep: #e7deca;
  --ink: #241d17;
  --ink-soft: #5d5146;
  --ink-faded: #857669;
  --umber: #6e4c34;
  --red: #8f392f;
  --blue: #29495b;
  --gold: #b68b3f;
  --olive: #586249;
  --line: rgba(36, 29, 23, 0.23);
  --line-strong: rgba(36, 29, 23, 0.68);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --latin: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --content: 1320px;
  --gutter: clamp(22px, 5.8vw, 88px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 16% 7%, rgba(255,255,255,.65), transparent 30%),
    repeating-linear-gradient(90deg, rgba(80,61,43,.012) 0, rgba(80,61,43,.012) 1px, transparent 1px, transparent 5px),
    repeating-linear-gradient(0deg, rgba(80,61,43,.01) 0, rgba(80,61,43,.01) 1px, transparent 1px, transparent 4px);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ol, ul { list-style: none; }
::selection { color: var(--paper-light); background: var(--red); }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 8px 13px;
  color: var(--paper-light);
  background: var(--ink);
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------------- 极简页头 ---------------- */

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: min-height .25s ease, background .25s ease, border-color .25s ease;
}

.site-header.scrolled {
  min-height: 64px;
  background: rgba(243,238,223,.93);
  border-color: var(--line);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
}

.brand-sun {
  width: 31px;
  height: 31px;
  overflow: visible;
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-linecap: round;
}

.brand:hover .brand-sun { animation: turn 8s linear infinite; }

.site-byline {
  color: var(--ink-faded);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .14em;
}

/* ---------------- 首屏 ---------------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, .72fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: center;
  max-width: var(--content);
  min-height: 100svh;
  margin: 0 auto;
  padding: 130px var(--gutter) 76px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.hero::before {
  left: var(--gutter);
  right: var(--gutter);
  bottom: 28px;
  height: 4px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.hero::after {
  top: 98px;
  left: 42%;
  width: 1px;
  height: 56px;
  background: var(--line);
}

.hero-copy { position: relative; z-index: 2; }

.hero-kicker {
  width: fit-content;
  margin-bottom: clamp(30px, 5vh, 58px);
  padding: 7px 12px 6px;
  color: var(--paper-light);
  background: var(--blue);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .16em;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: clamp(76px, 10.2vw, 144px);
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: .9;
}
.hero h1 span:first-child { margin-left: -.06em; }
.hero h1 span:last-child {
  position: relative;
  width: fit-content;
  margin-top: .17em;
  color: var(--red);
}
.hero h1 span:last-child::after {
  content: "";
  position: absolute;
  right: -.16em;
  bottom: .1em;
  width: .09em;
  height: .09em;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 .035em var(--paper), 0 0 0 .045em var(--gold);
}

.renaissance-arch {
  position: relative;
  width: min(100%, 410px);
  aspect-ratio: .69;
  justify-self: end;
  border: 1px solid var(--line-strong);
  border-radius: 230px 230px 2px 2px;
  background:
    linear-gradient(to right, transparent 49.8%, rgba(36,29,23,.13) 50%, transparent 50.2%),
    linear-gradient(to bottom, transparent 66%, rgba(36,29,23,.12) 66.2%, transparent 66.4%),
    var(--paper-light);
  box-shadow:
    inset 0 0 0 10px var(--paper-light),
    inset 0 0 0 11px var(--line),
    14px 16px 0 var(--paper-deep);
  overflow: hidden;
}

.renaissance-arch::before,
.renaissance-arch::after {
  content: "";
  position: absolute;
  left: 50%;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translateX(-50%);
}
.renaissance-arch::before {
  top: 9%;
  width: 80%;
  aspect-ratio: 1;
}
.renaissance-arch::after {
  top: 17%;
  width: 63%;
  aspect-ratio: 1;
}

.arch-sun {
  position: absolute;
  z-index: 2;
  top: 27%;
  left: 50%;
  width: 32%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
  border: 1px solid var(--ink);
  transform: translateX(-50%);
  box-shadow: 5px 5px 0 rgba(143,57,47,.92);
}

.arch-sun::before,
.arch-sun::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.arch-sun::before {
  inset: 17%;
  border: 1px solid rgba(36,29,23,.28);
}
.arch-sun::after {
  inset: 40%;
  background: var(--red);
}

.arch-horizon {
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 24%;
  height: 21%;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: repeating-linear-gradient(0deg, transparent 0 13px, rgba(36,29,23,.09) 13px 14px);
}

.arch-mark {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 5.5%;
  color: var(--olive);
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 58px);
  transform: translateX(-50%);
}

/* ---------------- 缘起 ---------------- */

.origin {
  display: grid;
  grid-template-columns: minmax(190px, .36fr) minmax(0, 1fr);
  gap: clamp(48px, 9vw, 150px);
  padding: clamp(94px, 11vw, 156px) var(--gutter);
  color: var(--paper-light);
  background-color: var(--blue);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.04), transparent 26%),
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(255,255,255,.012) 5px 6px);
  border-block: 1px solid var(--ink);
}

.origin-heading,
.origin-text {
  width: 100%;
  max-width: 920px;
}
.origin-heading { justify-self: end; }

.section-number {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-family: var(--latin);
  font-size: 15px;
  font-style: italic;
}

.origin-heading h2,
.section-head h2,
.about-heading h2 {
  font-family: var(--serif);
  font-weight: 900;
}

.origin-heading h2 {
  font-size: clamp(46px, 5.6vw, 78px);
  letter-spacing: -.04em;
  line-height: 1;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 112px;
  margin-top: 25px;
  color: var(--gold);
}
.ornament i { flex: 1; height: 1px; background: currentColor; }
.ornament b { font-size: 9px; }

.origin-text { max-width: 800px; }
.origin-text p {
  margin-bottom: 1.45em;
  color: rgba(251,248,239,.83);
  font-family: var(--serif);
  font-size: clamp(17px, 1.55vw, 23px);
  letter-spacing: .035em;
  line-height: 2;
  text-wrap: pretty;
}
.origin-text p:first-child { color: var(--paper-light); font-size: clamp(22px, 2.2vw, 31px); line-height: 1.75; }
.origin-text p:first-child::first-letter {
  float: left;
  margin: .08em .18em 0 0;
  padding: .08em .16em .12em;
  color: var(--paper-light);
  background: var(--red);
  font-size: 2.35em;
  line-height: .9;
}
.origin-text p:last-child { margin-bottom: 0; }

/* ---------------- 作品 ---------------- */

.works-section {
  padding: clamp(88px, 10vw, 138px) var(--gutter);
  scroll-margin-top: 60px;
}
.works-kid {
  background: var(--paper-deep);
  border-block: 1px solid var(--line-strong);
}

.section-head {
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 58px);
  max-width: var(--content);
  margin: 0 auto clamp(45px, 6vw, 76px);
  padding: 0 0 30px;
  border-bottom: 3px double var(--line-strong);
}
.section-head .section-number {
  flex: 0 0 34px;
  margin: 7px 0 0;
  color: var(--red);
}
.section-head h2 {
  font-size: clamp(46px, 5.5vw, 76px);
  letter-spacing: -.055em;
  line-height: 1;
}
.section-head p {
  margin-top: 14px;
  color: var(--ink-faded);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .05em;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: var(--content);
  margin: 0 auto;
}

.work-card {
  --accent: var(--olive);
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 7px 22px;
  min-height: 218px;
  padding: 27px 28px 25px;
  color: var(--ink);
  background: rgba(251,248,239,.68);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  transition: color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.work-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 56px;
  height: 5px;
  background: var(--accent);
}
.work-card:hover,
.work-card:focus-visible {
  outline: none;
  background: var(--paper-light);
  transform: translateY(-4px);
  box-shadow: 7px 8px 0 rgba(36,29,23,.12);
}

.theme-green  { --accent: #52654a; }
.theme-cyan   { --accent: #3e6d73; }
.theme-pink   { --accent: #9b5352; }
.theme-violet { --accent: #65547c; }
.theme-amber  { --accent: #a8712d; }

.card-icon-wrap {
  grid-column: 1;
  grid-row: 1 / -1;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  align-self: start;
  margin-top: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.42);
}
.card-icon {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 29px;
  filter: saturate(.78);
  transition: transform .25s ease;
}
.work-card:hover .card-icon { transform: rotate(-7deg) scale(1.08); }

.card-heading {
  grid-column: 2;
}
.card-title {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.35;
}
.card-desc {
  grid-column: 2;
  align-self: start;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.85;
}

.card-foot {
  grid-column: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.card-tags { display: flex; flex-wrap: wrap; gap: 5px 13px; }
.tag { color: var(--ink-faded); font-size: 9px; letter-spacing: .08em; }
.tag::before { content: "·"; margin-right: 4px; color: var(--accent); }
.card-enter {
  flex-shrink: 0;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
}
.card-enter span { display: inline-block; margin-left: 4px; transition: transform .2s ease; }
.work-card:hover .card-enter span { transform: translate(2px, -2px); }
.is-placeholder .card-enter { color: var(--ink-faded); }

/* ---------------- 关于 ---------------- */

.about-section {
  display: grid;
  grid-template-columns: minmax(190px, .45fr) minmax(300px, 1.05fr) minmax(290px, .72fr);
  gap: clamp(40px, 6vw, 92px);
  padding: clamp(90px, 10vw, 142px) var(--gutter);
  color: var(--paper-light);
  background: var(--ink);
}

.about-heading .section-number { color: var(--gold); }
.about-heading h2 {
  font-size: clamp(43px, 4.8vw, 68px);
  letter-spacing: -.05em;
  line-height: 1;
}
.about-text {
  padding-left: clamp(24px, 3.5vw, 48px);
  border-left: 1px solid rgba(251,248,239,.23);
}
.about-text p {
  margin-bottom: 18px;
  color: rgba(251,248,239,.72);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 2;
}
.about-text p:first-child { color: var(--paper-light); font-size: 19px; }
.about-text strong { color: var(--gold); }

.contact {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 20px;
  align-items: center;
  align-self: start;
  padding: 19px;
  color: var(--ink);
  background: var(--paper-light);
  border: 1px solid rgba(251,248,239,.7);
  box-shadow: 7px 7px 0 var(--red);
}
.contact img {
  width: 118px;
  aspect-ratio: 1;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
}
.contact b { font-family: var(--serif); font-size: 18px; }
.contact p { margin-top: 5px; color: var(--ink-soft); font-family: var(--serif); font-size: 12px; }
.contact small { display: block; margin-top: 9px; color: var(--ink-faded); font-size: 8px; letter-spacing: .05em; }

/* ---------------- Footer / Toast / Motion ---------------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px var(--gutter) 42px;
  color: var(--ink-faded);
  background: var(--paper);
  border-top: 5px solid var(--gold);
  font-size: 10px;
  letter-spacing: .08em;
}
.site-footer a { color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--ink); }

.toast {
  position: fixed;
  z-index: 300;
  left: 50%;
  bottom: 28px;
  width: min(520px, calc(100vw - 40px));
  padding: 14px 18px;
  color: var(--paper-light);
  background: var(--blue);
  border: 1px solid var(--paper-light);
  box-shadow: 6px 6px 0 var(--gold);
  font-family: var(--serif);
  font-size: 13px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 16px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.work-card.reveal {
  transition: opacity .7s ease, transform .25s ease, box-shadow .25s ease, background .25s ease;
  transition-delay: var(--reveal-delay, 0ms), 0ms, 0ms, 0ms;
}
.work-card.reveal.in:hover,
.work-card.reveal.in:focus-visible { transform: translateY(-4px); }

@keyframes turn { to { transform: rotate(360deg); } }

/* ---------------- Responsive ---------------- */

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr minmax(270px, .55fr); gap: 38px; }
  .hero h1 { font-size: clamp(68px, 10.5vw, 108px); }
  .renaissance-arch { max-width: 330px; }
  .about-section { grid-template-columns: .55fr 1.1fr; }
  .contact { grid-column: 2; width: min(380px, 100%); }
}

@media (max-width: 760px) {
  :root { --gutter: clamp(20px, 5vw, 34px); }
  .site-header { min-height: 64px; }
  .site-byline { display: none; }
  .brand { font-size: 13px; }
  .brand-sun { width: 28px; height: 28px; }
  .hero {
    grid-template-columns: 1fr;
    gap: 58px;
    min-height: auto;
    padding-top: 116px;
    padding-bottom: 82px;
  }
  .hero::after { display: none; }
  .hero::before { bottom: 24px; }
  .hero h1 { font-size: clamp(66px, 18vw, 102px); }
  .renaissance-arch { justify-self: center; width: min(82vw, 360px); }
  .origin { grid-template-columns: 1fr; gap: 48px; }
  .origin-heading { justify-self: start; }
  .works-grid { grid-template-columns: 1fr; }
  .about-section { grid-template-columns: 1fr; }
  .about-text { padding-left: 24px; }
  .contact { grid-column: 1; }
}

@media (max-width: 500px) {
  .hero-kicker { font-size: 10px; }
  .hero h1 { font-size: clamp(58px, 19vw, 80px); }
  .origin-text p { font-size: 16px; line-height: 1.95; }
  .section-head { gap: 15px; }
  .section-head .section-number { flex-basis: 26px; }
  .section-head h2 { font-size: 48px; }
  .work-card {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 6px 14px;
    min-height: 0;
    padding: 22px 18px;
  }
  .card-icon-wrap { width: 50px; height: 50px; }
  .card-icon { font-size: 23px; }
  .card-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .card-title { font-size: 20px; }
  .card-foot { align-items: flex-start; flex-direction: column; }
  .contact { grid-template-columns: 96px 1fr; }
  .contact img { width: 96px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
