/* 纸面基底 */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: #1a1a1a;
  background-color: #fafaf8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.35em; }
li { margin: .35em 0; }
a { color: #1a1a1a; }
a:hover { color: #4a4a4a; }
button { font-family: inherit; }

:focus-visible {
  outline: 3px dashed #4a4a4a;
  outline-offset: 3px;
}

/* 顶部细条 */
.topstrip {
  background: #1a1a1a;
  color: #fafaf8;
  font-size: 12px;
  letter-spacing: .16em;
  overflow: hidden;
  border-bottom: 1px solid #fafaf8;
}

.topstrip-track {
  display: flex;
  gap: .9em;
  padding: 0 1rem;
  height: 26px;
  align-items: center;
  white-space: nowrap;
  opacity: .85;
}

/* 页头：品牌行在上，菜单行在下 */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fafaf8;
  border-bottom: 2px solid #1a1a1a;
  box-shadow: 0 3px 0 rgba(26, 26, 26, .09);
}

.brandrow {
  display: flex;
  align-items: center;
  padding: .5rem clamp(.9rem, 3vw, 2.2rem) .25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  text-decoration: none;
  transform: rotate(-.7deg);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #1a1a1a;
  color: #fafaf8;
  font-family: Calistoga, Georgia, serif;
  font-size: 19px;
  border-radius: 50% 46% 52% 48%;
  flex: none;
}

img.brand-mark { border-radius: 50% 46% 52% 48%; object-fit: cover; }

.brand-name {
  font-family: Calistoga, Georgia, "Songti SC", serif;
  font-size: clamp(1.15rem, 3.6vw, 1.5rem);
  letter-spacing: .01em;
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 1px;
}

.menurow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem .35rem;
  padding: 0 clamp(.7rem, 3vw, 2.1rem) .45rem;
}

.m-item,
.m-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 42px;
  padding: .4rem .8rem;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #1a1a1a;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 10px 8px 11px 7px;
  text-decoration: none;
  cursor: pointer;
}

.m-item:hover,
.m-toggle:hover {
  border-color: #1a1a1a;
  background: #fafaf8;
  transform: rotate(-1deg);
}

.caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.m-group { position: relative; }

.m-drop {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 200px;
  padding: .4rem;
  background: #fafaf8;
  border: 2px solid #1a1a1a;
  border-radius: 10px;
  box-shadow: 6px 6px 0 #1a1a1a;
  z-index: 50;
}

.m-group:hover .m-drop,
.m-group:focus-within .m-drop,
.m-group.open .m-drop { display: block; }

.m-sub {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .35rem .7rem;
  font-size: 15px;
  text-decoration: none;
  border-radius: 7px 9px 6px 10px;
}

.m-sub:hover { background: #ececea; transform: translateX(2px); }

/* 首屏 */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid #1a1a1a;
  background:
    linear-gradient(180deg, rgba(74, 74, 74, .05), rgba(250, 250, 248, 0) 70%),
    #fafaf8;
}

.hero-ghost {
  position: absolute;
  right: -1.5rem;
  bottom: -1.4rem;
  font-family: Calistoga, Georgia, serif;
  font-size: clamp(4rem, 15vw, 10rem);
  line-height: .82;
  color: #1a1a1a;
  opacity: .06;
  pointer-events: none;
  white-space: nowrap;
}

.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1rem, 3vw, 2.4rem);
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(1.3rem, 4vw, 2.4rem) clamp(.9rem, 4vw, 2.2rem);
  min-height: 45vh;
}

.hero-copy { text-align: center; }

.hero-h1 {
  font-family: Calistoga, Georgia, "Songti SC", serif;
  font-weight: 400;
  font-size: clamp(1.75rem, 6.4vw, 3.2rem);
  line-height: 1.16;
  letter-spacing: -.01em;
  margin: 0 0 .6rem;
  transform: rotate(-.8deg);
  text-shadow: 2px 2px 0 rgba(26, 26, 26, .1);
}

.hero-lead {
  margin: 0 auto;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.65;
  color: #4a4a4a;
  border-top: 1.5px dashed #4a4a4a;
  padding-top: .7rem;
}

.hero-media { transform: rotate(1.1deg); }

.hero-fig {
  margin: 0;
  border: 2px solid #1a1a1a;
  border-radius: 10px;
  padding: 6px;
  background: #fff;
  box-shadow: 8px 8px 0 #1a1a1a;
  position: relative;
}

.hero-fig::after {
  content: "";
  position: absolute;
  top: -11px;
  left: 46%;
  width: 64px;
  height: 18px;
  background: rgba(74, 74, 74, .22);
  border-left: 1px dashed rgba(250, 250, 248, .8);
  border-right: 1px dashed rgba(250, 250, 248, .8);
  transform: rotate(-3deg);
}

.hero-img {
  border-radius: 6px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(.15) contrast(1.04);
}

.hero-blank {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 2px dashed #4a4a4a;
  border-radius: 10px;
  background: repeating-linear-gradient(45deg, #f1f1ef 0 8px, #fafaf8 8px 16px);
}

/* 主区 */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 236px;
  gap: clamp(1.1rem, 3.2vw, 2.6rem);
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 2.8rem) clamp(.9rem, 4vw, 2.2rem) 3rem;
  align-items: start;
}

.sheet {
  min-width: 0;
  background: #fafaf8;
  border: 2px solid #1a1a1a;
  border-radius: 10px;
  box-shadow: 9px 9px 0 rgba(26, 26, 26, .13);
  padding: clamp(1rem, 3.6vw, 2.2rem);
}

.sheet section {
  scroll-margin-top: 132px;
  padding-top: 1.6rem;
  border-top: 2px dashed #4a4a4a;
}

.sheet section:first-child { padding-top: 0; border-top: 0; }

.sheet h2 {
  font-family: Calistoga, Georgia, "Songti SC", serif;
  font-weight: 400;
  font-size: clamp(1.35rem, 4.6vw, 1.95rem);
  line-height: 1.28;
  margin: 0 0 .7rem;
  transform: rotate(-.5deg);
}

.sheet h2 > span {
  display: inline;
  background-image: linear-gradient(transparent 76%, rgba(74, 74, 74, .3) 76%);
  padding-bottom: 2px;
}

.sheet h2 > span span,
.sheet h2 span span { font-style: italic; opacity: .82; }

.sheet h3 {
  font-family: Calistoga, Georgia, "Songti SC", serif;
  font-weight: 400;
  font-size: clamp(1.1rem, 3.6vw, 1.35rem);
  margin: 1.5rem 0 .5rem;
  padding-left: .6rem;
  border-left: 6px solid #1a1a1a;
}

.sheet h3 > span { display: inline; }

.sheet p { color: #262626; }

.sheet a {
  text-decoration: none;
  border-bottom: 1.5px solid #4a4a4a;
  padding-bottom: 1px;
}

.sheet a:hover { background: #ececea; }

.sheet section:nth-of-type(even) { transform: rotate(-.12deg); }

.sheet ul li::marker { color: #4a4a4a; }

.sheet blockquote {
  margin: 1.3rem 0;
  padding: .8rem 1rem;
  border-left: 6px solid #4a4a4a;
  background: #ececea;
  border-radius: 0 10px 10px 0;
  font-size: 16px;
  color: #1a1a1a;
}

.sheet blockquote p:last-child { margin-bottom: 0; }

.sheet table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 15px;
}

.sheet th,
.sheet td {
  border: 1.5px solid #4a4a4a;
  padding: .5rem .6rem;
  text-align: left;
  vertical-align: top;
}

.sheet th { background: #1a1a1a; color: #fafaf8; font-weight: 600; }

.sheet strong { background: rgba(74, 74, 74, .14); padding: 0 2px; }

.sheet code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .9em;
  background: #ececea;
  padding: .1em .35em;
  border-radius: 4px;
}

/* 右栏 */
.rail {
  position: sticky;
  top: 132px;
  background: #fafaf8;
  border: 2px solid #1a1a1a;
  border-radius: 10px 14px 11px 13px;
  padding: .9rem .85rem 1rem;
  transform: rotate(.7deg);
  box-shadow: 6px 6px 0 rgba(26, 26, 26, .12);
}

.rail-title {
  font-family: Calistoga, Georgia, serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: .08em;
  margin: 0 0 .6rem;
  padding-bottom: .45rem;
  border-bottom: 1.5px dashed #4a4a4a;
}

.rail-title > span { display: inline; }

.rail-list { list-style: none; margin: 0; padding: 0; }

.rail-a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: .2rem .15rem;
  font-size: 15px;
  line-height: 1.45;
  text-decoration: none;
  border-bottom: 1px dotted rgba(74, 74, 74, .55);
}

.rail-list li:last-child .rail-a { border-bottom: 0; }

.rail-a:hover { padding-left: .3rem; color: #000; }

/* 页脚：三个直属分区 + 居中底栏 */
.foot {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr;
  gap: clamp(1rem, 3.5vw, 2.4rem);
  background: #1a1a1a;
  color: #fafaf8;
  border-top: 4px solid #1a1a1a;
  padding: clamp(1.6rem, 4vw, 2.6rem) clamp(.9rem, 4vw, 2.4rem) 0;
}

.foot-col { min-width: 0; }

.foot-h {
  font-family: Calistoga, Georgia, "Songti SC", serif;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: .05em;
  margin: 0 0 .7rem;
  padding-bottom: .4rem;
  border-bottom: 1.5px dashed rgba(250, 250, 248, .45);
}

.foot-h > span { display: inline; }

.foot-brand .foot-h { font-size: 1.2rem; }

.foot-seal {
  width: 58px;
  height: 58px;
  border: 2px solid rgba(250, 250, 248, .65);
  border-radius: 48% 52% 45% 55%;
  transform: rotate(-8deg);
  background:
    repeating-linear-gradient(45deg, rgba(250, 250, 248, .16) 0 5px, transparent 5px 10px);
}

.foot dl { margin: 0; }

.foot dt,
.foot dd { margin: 0; }

.foot-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: .2rem 0;
  font-size: 15px;
  line-height: 1.4;
  color: #fafaf8;
  text-decoration: none;
  border-bottom: 1px dotted rgba(250, 250, 248, .3);
}

.foot-nav a:hover { color: #d8d8d4; padding-left: .25rem; }

.subform { display: flex; flex-wrap: wrap; gap: .45rem; }

.subform input {
  flex: 1 1 130px;
  min-height: 44px;
  padding: .45rem .6rem;
  font-size: 15px;
  font-family: inherit;
  color: #1a1a1a;
  background: #fafaf8;
  border: 2px solid #fafaf8;
  border-radius: 9px 7px 10px 8px;
}

.subform button {
  min-height: 44px;
  padding: .45rem 1rem;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  background: #fafaf8;
  border: 2px solid #fafaf8;
  border-radius: 8px 10px 7px 9px;
  cursor: pointer;
}

.subform button:hover { background: #d8d8d4; }

.foot-base {
  grid-column: 1 / -1;
  margin-top: .8rem;
  padding: .8rem 0;
  border-top: 1px solid rgba(250, 250, 248, .28);
  text-align: center;
  font-size: 13px;
  color: #cfcfcb;
}

.foot-base p { margin: 0; }

/* 回到顶部 */
.totop {
  position: fixed;
  right: .9rem;
  bottom: .9rem;
  z-index: 60;
  min-height: 44px;
  padding: .5rem .9rem;
  font-size: 14px;
  font-weight: 600;
  color: #fafaf8;
  background: #1a1a1a;
  border: 2px solid #fafaf8;
  border-radius: 10px 8px 11px 7px;
  box-shadow: 4px 4px 0 rgba(26, 26, 26, .35);
  cursor: pointer;
  transform: rotate(-1.5deg);
}

.totop:hover { background: #4a4a4a; }

/* 手绘式入场 */
.rv { animation: sketch-in .55s cubic-bezier(.2, .9, .3, 1) both; }

.rv:nth-child(2) { animation-delay: .09s; }

@keyframes sketch-in {
  0% { opacity: 0; transform: translateY(10px) rotate(-1deg); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) rotate(0); }
}

.hero-copy.rv { animation-name: sketch-in; }

.hero-media.rv { animation-delay: .12s; }

/* 窄屏 */
@media (max-width: 900px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; transform: rotate(-.5deg); }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-sub { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero-in {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 1rem;
    padding-top: 1.1rem;
    padding-bottom: 1.4rem;
  }
  .hero-media { transform: rotate(.8deg); }
  .hero-img { aspect-ratio: 16 / 10; }
  .hero-ghost { opacity: .05; font-size: clamp(3.2rem, 22vw, 6rem); }
  .hero-lead { font-size: 14.5px; }
  .sheet { box-shadow: 5px 5px 0 rgba(26, 26, 26, .14); }
  .foot { grid-template-columns: 1fr; }
  .foot-brand,
  .foot-sub { grid-column: auto; }
  .menurow { padding-bottom: .5rem; }
  .m-drop { min-width: 170px; }
}

@media (max-width: 420px) {
  .brandrow { padding-left: .7rem; }
  .menurow { padding-left: .5rem; padding-right: .5rem; }
  .stage { padding-left: .7rem; padding-right: .7rem; }
  .sheet { padding: .9rem .8rem 1.2rem; }
  .m-item,
  .m-toggle { padding: .4rem .55rem; font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv,
  .hero-copy.rv,
  .hero-media.rv { animation: none; }
  * { transition: none !important; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
