@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;600;700&family=Russo+One&display=swap');

:root {
  --paper: #f5e6c8;
  --paper-2: #efdcb8;
  --ink: #262117;
  --soft: #4a3f30;
  --sep: #d4a574;
  --deep: #a9743f;
  --line: rgba(38, 33, 23, 0.24);
  --glass: rgba(245, 230, 200, 0.52);
  --bar: 64px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 0 calc(var(--bar) + 22px);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 10% 6%, rgba(212, 165, 116, 0.42), transparent 46%),
    radial-gradient(circle at 90% 94%, rgba(169, 116, 63, 0.3), transparent 50%),
    radial-gradient(rgba(38, 33, 23, 0.15) 1px, transparent 1px);
  background-size: auto, auto, 5px 5px;
  color: var(--ink);
  font-family: 'Chakra Petch', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 50%, rgba(38, 33, 23, 0.36) 100%),
    repeating-linear-gradient(to bottom, rgba(38, 33, 23, 0.05) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--deep); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3 {
  font-family: 'Russo One', 'Chakra Petch', 'PingFang SC', sans-serif;
  line-height: 1.26;
  letter-spacing: 0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 8vw, 3.6rem); margin: 0 0 14px; text-shadow: 3px 3px 0 rgba(212, 165, 116, 0.7); }

h2 {
  font-size: 1.45rem;
  margin: 2.3em 0 0.2em;
  padding-left: 14px;
  border-left: 7px solid var(--deep);
}

h3 { font-size: 1.15rem; margin: 1.7em 0 0.3em; }

hr {
  border: 0;
  height: 8px;
  margin: 14px 0 26px;
  background-image: radial-gradient(rgba(38, 33, 23, 0.5) 1.4px, transparent 1.4px);
  background-size: 9px 8px;
}

p { margin: 0 0 1.05em; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
}
.skip:focus { left: 8px; top: 8px; }

/* 底部固定导航条 */
.rail {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  height: var(--bar);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: rgba(38, 33, 23, 0.95);
  border-top: 3px solid var(--deep);
  backdrop-filter: blur(6px);
}

.rail-brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--sep);
  border-radius: 10px;
  background: rgba(212, 165, 116, 0.16);
  color: var(--paper);
}
.rail-brand img { width: 28px; height: 28px; object-fit: contain; }
.glyph {
  font-family: 'Russo One', sans-serif;
  color: var(--sep);
  font-size: 1.05rem;
}

.rail-nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.rail-nav::-webkit-scrollbar { display: none; }

.rail-list {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rail-list li { flex: 0 0 auto; }
.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.86rem;
  white-space: nowrap;
  color: var(--paper-2);
  border: 1px solid transparent;
  border-radius: 10px;
}
.rail-list a:hover,
.rail-list a:focus-visible,
.rail-list a.cur {
  color: var(--ink);
  background: var(--sep);
  border-color: var(--sep);
}

.rail-contact {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.84rem;
  color: var(--ink);
  background: var(--sep);
  border-radius: 10px;
  white-space: nowrap;
}
.rail-contact:hover { background: var(--paper); color: var(--ink); }

/* 主区骨架 */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
}

.front { display: block; }
.front section { display: block; }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 52px 0 40px;
  overflow: hidden;
  background-image: radial-gradient(rgba(38, 33, 23, 0.2) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

.hero-copy { position: relative; z-index: 3; max-width: 720px; }

.lede {
  max-width: 44ch;
  margin: 0 auto 22px;
  color: var(--soft);
  font-size: 1rem;
}

.hero-go { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 26px;
  font-family: 'Russo One', sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 10px;
  transition: transform 0.18s ease, background 0.18s ease;
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--deep);
  border-color: var(--deep);
  color: var(--paper);
}

.hero-art {
  position: relative;
  z-index: 2;
  width: min(400px, 100%);
  margin-top: 32px;
}

.polaroid {
  position: relative;
  margin: 0;
  padding: 12px 12px 40px;
  background: #fbf3e2;
  border: 1px solid rgba(38, 33, 23, 0.28);
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(38, 33, 23, 0.3);
  transform: rotate(-1.8deg);
  animation: wobble 8s ease-in-out infinite;
}
.polaroid img { filter: sepia(0.4) contrast(1.06) saturate(0.82); border-radius: 6px; }
.polaroid .tape {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 100px;
  height: 26px;
  transform: translateX(-50%) rotate(2deg);
  background: rgba(212, 165, 116, 0.7);
  border-left: 1px dashed rgba(38, 33, 23, 0.3);
  border-right: 1px dashed rgba(38, 33, 23, 0.3);
}
.polaroid.blank { padding-bottom: 12px; }
.blank-face {
  display: block;
  height: 200px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 30% 30%, rgba(212, 165, 116, 0.8), transparent 62%),
    var(--paper-2);
  border: 1px solid var(--line);
}

@keyframes wobble {
  0%, 100% { transform: rotate(-1.8deg); }
  50% { transform: rotate(0.8deg); }
}

.leak {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
}
.leak-a {
  width: 180px; height: 180px;
  top: -44px; right: -48px;
  background: rgba(212, 165, 116, 0.75);
  animation: glow 9s ease-in-out infinite alternate;
}
.leak-b {
  width: 140px; height: 140px;
  bottom: -34px; left: -40px;
  background: rgba(169, 116, 63, 0.5);
  animation: glow 12s ease-in-out infinite alternate-reverse;
}
@keyframes glow {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.55; }
  to { transform: translate3d(16px, -14px, 0) scale(1.15); opacity: 0.9; }
}

/* 页内跳转 */
.jumpbar {
  margin: 26px 0 30px;
  padding: 12px 14px;
  border: 2px dashed var(--deep);
  border-radius: 10px;
  background: var(--glass);
  backdrop-filter: blur(4px);
}

.jump-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.jump-list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 14px;
  font-size: 0.86rem;
  color: var(--ink);
  background: rgba(212, 165, 116, 0.42);
  border: 1px solid rgba(38, 33, 23, 0.18);
  border-radius: 10px;
}
.jump-list a:hover { background: var(--ink); color: var(--paper); }

/* 正文 */
.front section > div {
  scroll-margin-top: 18px;
  padding: 6px 0 20px;
  border-bottom: 1px dotted var(--line);
}
.front section > div:last-of-type { border-bottom: 0; }
.front section > div > p:first-of-type { font-size: 1.04rem; }

.front section ul,
.front section ol { padding-left: 1.35em; }
.front section li { margin-bottom: 0.5em; }

.front section blockquote {
  margin: 1.4em 0;
  padding: 12px 18px;
  border-left: 5px solid var(--deep);
  background: rgba(212, 165, 116, 0.24);
}

.front section table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.front section th,
.front section td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.front section th { background: rgba(212, 165, 116, 0.35); }

/* 尾部 */
.tail {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 3px double var(--deep);
}
.tail h2 { margin-top: 0; }

.tail-list,
.base-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tail-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  font-size: 0.9rem;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 10px;
}
.tail-list a:hover { background: var(--ink); color: var(--paper); }

/* 页脚 */
.base {
  margin-top: 56px;
  padding: 0 18px calc(var(--bar) + 18px);
  background: var(--ink);
  color: var(--paper-2);
}

.cta-block {
  max-width: 900px;
  margin: 0 auto;
  padding: 46px 0 34px;
  text-align: center;
  background-image: radial-gradient(rgba(245, 230, 200, 0.18) 1px, transparent 1px);
  background-size: 16px 16px;
}
.cta-line {
  margin: 0 0 10px;
  font-family: 'Russo One', sans-serif;
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  letter-spacing: 0.04em;
  color: var(--paper);
}
.cta-sub {
  max-width: 46ch;
  margin: 0 auto 20px;
  font-size: 0.95rem;
  color: rgba(245, 230, 200, 0.78);
}
.cta-go .btn { background: var(--sep); border-color: var(--sep); color: var(--ink); }
.cta-go .btn:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.base-cols {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  padding: 26px 0;
  border-top: 1px solid rgba(245, 230, 200, 0.24);
}

.base-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-style: normal;
}
.base-brand strong {
  font-family: 'Russo One', sans-serif;
  letter-spacing: 0.04em;
  color: var(--paper);
}
.base-brand span { font-size: 0.86rem; color: rgba(245, 230, 200, 0.7); }

.base-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.base-links a {
  display: flex;
  align-items: center;
  min-height: 42px;
  font-size: 0.86rem;
  color: rgba(245, 230, 200, 0.86);
}
.base-links a:hover { color: var(--sep); }

.base-copy {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 0 6px;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: rgba(245, 230, 200, 0.58);
  border-top: 1px solid rgba(245, 230, 200, 0.16);
}

/* 内页 */
.page-head { padding: 46px 0 10px; }
.page-head h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }

/* 回顶 */
.top-btn {
  position: fixed;
  right: 14px;
  bottom: calc(var(--bar) + 14px);
  z-index: 70;
  width: 46px;
  height: 46px;
  font-size: 1.05rem;
  color: var(--paper);
  background: rgba(38, 33, 23, 0.92);
  border: 2px solid var(--deep);
  border-radius: 10px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.top-btn.on { opacity: 1; transform: none; pointer-events: auto; }
.top-btn:hover { background: var(--deep); }

@media (min-width: 900px) {
  body { font-size: 18px; }
  .rail { height: 70px; --bar: 70px; padding: 0 24px; }
  .rail-list a { font-size: 0.9rem; padding: 0 14px; }
  .hero { padding: 72px 0 56px; }
  .hero-art { width: min(500px, 100%); }
  h2 { font-size: 1.7rem; }
  .wrap { max-width: 1100px; }
}

@media (max-width: 560px) {
  .hero { min-height: 92vh; padding-top: 40px; }
  h1 { text-shadow: 2px 2px 0 rgba(212, 165, 116, 0.75); }
  .rail-contact { display: none; }
  .base-cols { grid-template-columns: 1fr; gap: 16px; }
  .base-links { grid-template-columns: 1fr; }
  .cta-block { padding: 34px 0 24px; }
  .jumpbar { padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}

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