﻿/* ==========================================================================
   白鹭亭 · 站点样式
   设计基调：宣纸底、墨色字、朱砂点。与游戏 UI（深蓝琥珀）刻意区分。
   所有尺寸用 clamp 做流式，断点只有一个：720px。
   ========================================================================== */

:root {
  /* 色 */
  --paper: #f6f2ea;
  --paper-2: #efe8db;
  --paper-3: #e7dfd0;
  --ink: #20242a;
  --ink-2: #4c525b;
  --ink-3: #7d838c;
  --line: #d9d0bf;
  --line-soft: #e8e0d2;
  --seal: #a8462f;
  --jade: #3f5d5b;

  /* 字 */
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", SimSun, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;

  /* 版心 */
  --wrap: 1080px;
  --gap: clamp(20px, 4vw, 48px);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------- 基础 */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 纸纹：极轻的噪点，避免大面积纯色发死 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--seal); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  letter-spacing: .02em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--seal); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--wrap), 100% - var(--gap) * 2);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

.tbd {
  color: var(--ink-3);
  font-size: .9em;
  border-bottom: 1px dashed var(--line);
  white-space: nowrap;
}

/* --------------------------------------------------------------- 页头 */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 234, .86);
  backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-right: auto;
}
.brand:hover { color: var(--ink); }

.brand-mark {
  height: 38px;
  width: auto;
  align-self: center;
  flex: none;
  display: block;
}

.brand-word {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .22em;
  padding-left: .22em; /* 抵消末字后多出的字距 */
}

.brand-latin {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .34em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
}

.site-nav a {
  font-size: 13.5px;
  letter-spacing: .12em;
  color: var(--ink-2);
  padding: 6px 0;
  position: relative;
  transition: color .2s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--seal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}

.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--ink); }

.nav-toggle {
  display: none;
  font: inherit;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 9px 14px;
  cursor: pointer;
}

/* --------------------------------------------------------------- 首页主视觉 */

.hero {
  padding: clamp(36px, 5vw, 68px) 0 clamp(36px, 5vw, 64px);
  overflow: hidden;
  position: relative;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(18px, 3vw, 30px);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--ink-3);
}
.hero-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--seal);
}

/* 徽记做极淡的水印，右侧出血衬底；不占版面、不抢标题 */
.hero-watermark {
  position: absolute;
  top: 50%;
  right: -7%;
  width: clamp(240px, 32vw, 470px);
  height: auto;
  transform: translateY(-48%);
  opacity: .085;
  pointer-events: none;
  user-select: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero-watermark {
    right: -18%;
    width: 64vw;
    opacity: .055;
  }
}

.hero h1 {
  font-size: clamp(60px, 13vw, 132px);
  line-height: 1;
  letter-spacing: .08em;
  margin-left: -.04em;
}

.hero-sub {
  margin-top: clamp(22px, 3vw, 34px);
  max-width: 30em;
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--ink-2);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--ink-3);
}
.hero-meta b {
  font-weight: 500;
  color: var(--ink-2);
  margin-left: 8px;
  letter-spacing: .02em;
}

/* 徽记在主视觉里靠右对齐，见上 */

/* --------------------------------------------------------------- 栏目标题 */

.sec {
  padding: clamp(24px, 4vw, 40px) 0;
}

.sec-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(24px, 3.4vw, 40px);
}

.sec-no {
  font-family: var(--serif);
  font-size: 12px;
  color: var(--seal);
  letter-spacing: .1em;
  flex: none;
}

.sec-head h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  white-space: nowrap;
}

.sec-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.sec-more {
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--ink-3);
  white-space: nowrap;
}
.sec-more:hover { color: var(--seal); }

/* --------------------------------------------------------------- 作品卡 */

.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 36px);
}

.work {
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
  transition: border-color .25s var(--ease);
  min-height: 220px;
}
.work:hover { border-color: var(--seal); }

.work-kind {
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.work h3 {
  font-size: clamp(21px, 2.2vw, 26px);
  margin: 10px 0 12px;
}

.work p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.85;
}

.work-foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ink-3);
}
.work-foot .arrow {
  color: var(--seal);
  transition: transform .25s var(--ease);
}
.work:hover .arrow { transform: translateX(5px); }

.badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--seal);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 2px 9px;
  line-height: 1.6;
  white-space: nowrap;
}

/* --------------------------------------------------------------- 世界条 */

.world-strip {
  margin-top: clamp(20px, 4vw, 40px);
  padding: clamp(32px, 5vw, 56px) 0;
  border-block: 1px solid var(--line);
  background: linear-gradient(var(--paper-2), var(--paper-2));
}

.tri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 36px);
}

.tri-cell h3 {
  font-size: 15px;
  letter-spacing: .16em;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 10px;
}

.tri-cell p {
  font-family: var(--serif);
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--ink);
  letter-spacing: .06em;
  line-height: 1.7;
}

.world-lead {
  font-family: var(--serif);
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.95;
  letter-spacing: .05em;
  color: var(--ink);
  max-width: 34em;
  margin: 0;
}

.world-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 24px;
}

.world-tags a {
  font-size: 13px;
  letter-spacing: .08em;
  padding: 7px 13px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.world-tags a:hover {
  border-color: var(--seal);
  color: var(--seal);
}

/* --------------------------------------------------------------- 日志 */

.log-list {
  border-top: 1px solid var(--line);
}

.log-item {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 3vw, 40px);
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: color .2s var(--ease);
}
.log-item:hover h3 { color: var(--seal); }

.log-date {
  flex: none;
  width: 8.2em;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.log-item h3 {
  font-size: 17px;
  font-weight: 500;
  transition: color .2s var(--ease);
}

.log-tag {
  margin-left: auto;
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--ink-3);
  white-space: nowrap;
}

/* --------------------------------------------------------------- 空状态 */

.empty {
  padding: clamp(44px, 7vw, 76px) 24px;
  border: 1px dashed var(--line);
  text-align: center;
  color: var(--ink-3);
  background: rgba(255, 255, 255, .28);
}
.empty strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 8px;
  letter-spacing: .06em;
}
.empty p { font-size: 13.5px; }

/* --------------------------------------------------------------- 内页 */

.page-head {
  position: relative;
  padding: clamp(44px, 7vw, 84px) 0 clamp(26px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* 内页标题右侧的淡徽记水印 */
.page-head::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-46%);
  width: 168px;
  height: 178px;
  background: url("../img/logo.png") no-repeat center / contain;
  opacity: .05;
  pointer-events: none;
}

.page-head .hero-eyebrow { margin-bottom: 18px; }

.page-head h1 {
  font-size: clamp(36px, 6vw, 58px);
  letter-spacing: .06em;
}

.page-head .lead {
  margin-top: 16px;
  max-width: 34em;
  color: var(--ink-2);
  font-size: 15px;
}

.crumb {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-3);
  margin-bottom: 22px;
}
.crumb a:hover { color: var(--seal); }

/* 两栏：正文 + 侧栏 */
.cols {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.prose { max-width: 40em; }
.prose h2 {
  font-size: clamp(21px, 2.2vw, 26px);
  margin: clamp(30px, 4vw, 44px) 0 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 17px;
  margin: 26px 0 10px;
}
.prose p, .prose li { color: var(--ink-2); font-size: 15px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose blockquote {
  margin: 22px 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--seal);
  font-family: var(--serif);
  color: var(--ink-2);
}

.card {
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 28px);
  background: rgba(255, 255, 255, .3);
}

.card h3 {
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 14px;
}

.meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13.5px;
}
.meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line-soft);
  color: var(--ink-2);
}
.meta-list li:last-child { border-bottom: 0; }
.meta-list span:first-child { color: var(--ink-3); }

/* 封面占位 */
.cover-ph {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink-3);
  font-family: var(--serif);
  letter-spacing: .2em;
  font-size: 13px;
  background:
    linear-gradient(135deg, transparent 49.6%, var(--line-soft) 49.6%, var(--line-soft) 50.4%, transparent 50.4%),
    linear-gradient(45deg, transparent 49.6%, var(--line-soft) 49.6%, var(--line-soft) 50.4%, transparent 50.4%),
    var(--paper-2);
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 26px 0;
}
.shot {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: .14em;
  background: var(--paper-2);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .14em;
  padding: 12px 24px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 2px;
  transition: background .2s var(--ease), color .2s var(--ease);
  cursor: pointer;
  font-family: var(--sans);
}
.btn:hover { background: var(--seal); border-color: var(--seal); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.btn[aria-disabled="true"],
.btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* 作品页公用 */
.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.aside-stack {
  display: grid;
  gap: 18px;
}

/* --------------------------------------------------------------- 关于页 */

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 5vw, 64px);
}

.about-grid h2 {
  font-size: clamp(20px, 2.2vw, 24px);
  margin-bottom: 12px;
}

/* --------------------------------------------------------------- 页脚 */

.site-foot {
  margin-top: clamp(64px, 10vw, 120px);
  padding: clamp(36px, 5vw, 56px) 0 40px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.foot-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.foot-seal {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 2px;
}

.foot-brand {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .2em;
  color: var(--ink);
  margin-bottom: 8px;
}
.foot-brand-row .foot-brand { margin-bottom: 0; }

@media (max-width: 900px) {
  .page-head::after { display: none; }
}

.foot-title {
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.foot-links {
  display: grid;
  gap: 6px;
}
.foot-links a { color: var(--ink-2); }
.foot-links a:hover { color: var(--seal); }

.foot-bottom {
  margin-top: clamp(30px, 5vw, 48px);
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 11.5px;
  letter-spacing: .04em;
}

/* --------------------------------------------------------------- 动效 */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* --------------------------------------------------------------- 窄屏 */

@media (max-width: 720px) {
  .head-inner { min-height: 60px; }
  .brand-latin { display: none; }
  .brand-mark { height: 32px; }

  .nav-toggle { display: inline-block; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gap) 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 15px;
  }
  .site-nav a::after { display: none; }

  .works,
  .tri-grid,
  .about-grid,
  .cols,
  .foot-grid { grid-template-columns: 1fr; }

  .work { min-height: 0; }
  .shots { grid-template-columns: 1fr; }
  .log-item { flex-wrap: wrap; gap: 4px 16px; }
  .log-tag { margin-left: 0; width: 100%; }
  .cover-ph { max-width: 320px; }
  .hero h1 { letter-spacing: .04em; }
}

/* ---------- 世界页页头配图 ---------- */
.page-head--art { overflow: hidden; }
.page-head--art::after { display: none; }
.page-head--art .lead { max-width: 24em; }

.page-art {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(300px, 34vw, 520px);
  height: auto;
  opacity: .95;
  pointer-events: none;
}

@media (max-width: 900px) {
  .page-art { display: none; }
}

/* ---------- 关于页：徽记落款 ---------- */
.mark-figure {
  margin: clamp(44px, 6vw, 76px) 0 0;
  padding-top: clamp(32px, 4.5vw, 52px);
  border-top: 1px solid var(--line);
  text-align: center;
}

.mark-stage {
  position: relative;
  display: inline-block;
}

.mark-stage > img:first-child {
  display: block;
  height: clamp(180px, 22vw, 250px);
  width: auto;
}

.mark-stamp {
  position: absolute;
  right: -20px;
  bottom: 8px;
  width: 52px;
  height: 52px;
}

.mark-figure figcaption {
  margin-top: 18px;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--ink-3);
}

/* ---------- 页脚上方的远山带 ---------- */
.mist-band {
  height: clamp(120px, 14vw, 190px);
  background: url("../img/deco-mist.png") center bottom / 100% auto no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24%, #000 74%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 24%, #000 74%, transparent 100%);
  opacity: .92;
  filter: contrast(1.14) saturate(1.05);
  pointer-events: none;
}

.mist-band + .site-foot {
  border-top: none;
  margin-top: 0;
}
