:root {
  --bg: #f6f6f6;
  --surface: #ffffff;
  --text: #333333;
  --muted: #666666;
  --line: #ece7d8;
  --gold: #ffca1c;
  --gold-ink: #1a1408;
  --link: #8a6408;
  --header-h: 72px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  overflow-x: hidden;
  padding-bottom: 108px;
}

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

a { color: var(--link); text-decoration: none; }

a:hover { color: #5c4304; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

h1, h2, h3 { line-height: 1.3; color: #222222; font-weight: 700; }

h1 { font-size: 28px; margin: 0 0 12px; }

h2 { font-size: 22px; margin: 26px 0 10px; }

h3 { font-size: 18px; margin: 18px 0 8px; }

p { margin: 0 0 14px; }

.wrap { width: min(1100px, calc(100% - 30px)); margin: 0 auto; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  height: var(--header-h);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.header-bar { height: var(--header-h); display: flex; align-items: center; gap: 12px; }

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-ink);
  font-weight: 700;
  font-size: 18px;
  background: var(--gold);
  padding: 6px 10px;
  line-height: 1.2;
}

.logo img { width: 36px; height: 36px; object-fit: contain; display: block; }

.desk-nav { flex: 1; min-width: 0; }

.desk-nav > ul, .mobile-panel ul { list-style: none; margin: 0; padding: 0; }

.desk-nav > ul { display: flex; align-items: center; gap: 2px; }

.desk-nav > ul > li { position: relative; }

.desk-nav > ul > li > a {
  display: block;
  color: #222222;
  font-size: 15px;
  line-height: var(--header-h);
  height: var(--header-h);
  padding: 0 10px;
}

.desk-nav > ul > li > a:hover,
.desk-nav > ul > li > a[aria-current="page"] { color: var(--link); }

.desk-nav .sub {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  width: 168px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(80, 60, 10, 0.16);
  padding: 6px 0;
  z-index: 21;
}

.desk-nav li:hover > .sub,
.desk-nav li:focus-within > .sub { display: block; }

.desk-nav .sub a { display: block; color: #333333; padding: 7px 14px; min-height: 44px; }

.desk-nav .sub a:hover { background: #fff8e0; color: var(--gold-ink); }

.icon-btn {
  width: 44px; height: 44px; border: 0; background: #ffffff; color: #222222; cursor: pointer;
}

.menu-open { display: none; }

.page { padding-top: calc(var(--header-h) + 18px); }

.slider { position: relative; background: #efe8d4; min-height: 360px; margin-bottom: 18px; }

.slide { display: none; position: relative; min-height: 360px; }

.slide.is-on { display: block; }

.slide img { width: 100%; height: 360px; object-fit: cover; display: block; }

.slide span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px 22px 58px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.78) 100%);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.slider-nav { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }

.slider-nav button, .slider-dots button {
  pointer-events: auto; border: 0; background: rgba(0, 0, 0, 0.45); color: #ffffff;
  min-width: 44px; min-height: 44px; cursor: pointer;
}

.slider-dots { position: absolute; left: 0; right: 12px; top: 12px; bottom: auto; display: flex; justify-content: flex-end; gap: 6px; }

.slider-dots button.is-on { background: var(--gold); color: var(--gold-ink); }

.layout { display: grid; grid-template-columns: minmax(0, 2fr) 260px; gap: 18px; align-items: start; }

.panel { background: var(--surface); padding: 16px 16px 8px; margin-bottom: 16px; }

.entry {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.entry.no-photo { grid-template-columns: minmax(0, 1fr); }

.entry img { width: 180px; height: 120px; object-fit: cover; display: block; background: #efe8d4; }

.entry h2 { margin: 0 0 6px; font-size: 20px; }

.entry h2 a { color: #222222; }

.cat-label {
  display: inline-block;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 13px;
  line-height: 1.4;
  padding: 2px 8px;
  margin-right: 6px;
}

.meta { color: var(--muted); font-size: 14px; margin-bottom: 6px; }

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

.side-list a { display: block; padding: 8px 0; border-top: 1px solid var(--line); color: #333333; min-height: 44px; }

.prose { background: var(--surface); padding: 8px 0 4px; }

.prose figure { margin: 0 0 14px; }

.prose ul, .prose ol { margin: 0 0 14px; padding-left: 1.2em; }

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

.note-list li { padding: 10px 0; border-top: 1px solid var(--line); }

.faq details { background: var(--surface); padding: 12px 14px; margin-bottom: 8px; }

.faq summary { cursor: pointer; font-weight: 700; min-height: 44px; }

.site-footer { background: #fffdf6; color: #555555; padding: 26px 0 10px; margin-top: 22px; }

.site-footer a { color: #333333; }

.foot-brand { font-size: 18px; font-weight: 700; }

.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }

.site-cta {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(480px, 36vw);
  min-width: 400px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(80, 50, 0, 0.18);
}

.site-cta:hover, .site-cta:focus-visible, .site-cta:active {
  color: var(--gold-ink);
  background: #f0bc10;
}

.site-cta::before, .site-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.site-cta::before {
  background: radial-gradient(90% 140% at 50% 40%, rgba(138, 90, 0, 0.9) 0%, transparent 70%);
  opacity: 0;
  animation: atlas-gold-wash 3.1s cubic-bezier(.2, .7, .3, 1) infinite;
}

.site-cta::after {
  box-shadow: inset 0 0 0 rgba(80, 50, 0, 0);
  animation: atlas-gold-press 3.1s cubic-bezier(.2, .7, .3, 1) infinite;
}

@keyframes atlas-gold-wash {
  0%, 50% { opacity: 0; }
  66% { opacity: 0.26; }
  84%, 100% { opacity: 0; }
}

@keyframes atlas-gold-press {
  0%, 58% { box-shadow: inset 0 0 0 rgba(80, 50, 0, 0); }
  72% { box-shadow: inset 0 14px 20px rgba(80, 50, 0, 0.28); }
  90%, 100% { box-shadow: inset 0 0 0 rgba(80, 50, 0, 0); }
}

.mobile-panel {
  display: none;
  position: fixed;
  z-index: 25;
  inset: var(--header-h) 0 0 0;
  background: #ffffff;
  overflow: auto;
  padding: 8px 16px 120px;
}

.mobile-panel.is-on { display: block; }

.mobile-panel a { display: block; color: #222222; padding: 10px 0; border-bottom: 1px solid var(--line); min-height: 44px; }

.search-layer {
  display: none;
  position: fixed;
  z-index: 30;
  inset: 0;
  background: rgba(246, 246, 246, 0.98);
  padding: 88px 16px 120px;
}

.search-layer.is-on { display: block; }

.search-box, .search-hits { width: min(720px, 100%); margin: 0 auto; }

.search-box input {
  width: 100%;
  min-height: 52px;
  font-size: 18px;
  padding: 10px 12px;
  border: 1px solid #e2d7b4;
  background: #ffffff;
  color: #222222;
}

.search-hits a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); color: #222222; }

@media (prefers-reduced-motion: reduce) {
  .site-cta::before, .site-cta::after { animation: none; }
  .site-cta::before { opacity: 0.18; }
  .site-cta::after { box-shadow: inset 0 10px 16px rgba(80, 50, 0, 0.2); }
}

@media (max-width: 991px) {
  .desk-nav { display: none; }
  .menu-open { display: inline-flex; align-items: center; justify-content: center; }
  .layout { grid-template-columns: 1fr; }
  .slider, .slide, .slide img { min-height: 240px; height: 240px; }
  .slide img { height: 240px; }
  .site-cta {
    left: 12px; right: 12px; width: auto; min-width: 0; transform: none;
    bottom: calc(10px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 767px) {
  :root { --header-h: 60px; }
  h1 { font-size: 24px; }
  .entry { grid-template-columns: 1fr; }
  .entry img { width: 100%; height: 190px; }
  .slider, .slide, .slide img { min-height: 200px; height: 200px; }
  .slide img { height: 200px; }
  .slide span { font-size: 18px; }
}
