:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --text: #434a54;
  --muted: #6b7280;
  --line: #e6e9ed;
  --gold: #ddbf5e;
  --gold-ink: #1c1608;
  --vn: #c43848;
  --th: #7d63c8;
  --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: #8a6420; text-decoration: none; }

a:hover { color: #5c4308; }

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: #2c3138; font-weight: 700; }

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

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

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: 10px; }

.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 { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }

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

.desk-nav > ul > li > a {
  display: block; color: #2c3138; 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: #8a6420; }

.desk-nav .sub {
  display: none; position: absolute; top: 64px; left: 0; width: 160px;
  background: #ffffff; box-shadow: 0 2px 8px rgba(40, 40, 40, 0.12); 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: 8px 14px; min-height: 44px; }

.desk-nav .sub a:hover { background: #fff8e6; }

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

.menu-open { display: none; }

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

.slider { position: relative; background: #f3f5f7; min-height: 340px; margin-bottom: 18px; overflow: hidden; }

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

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

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

.slide span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 18px 18px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(17, 19, 22, 0.82) 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 {
  pointer-events: auto; border: 0; background: rgba(17, 19, 22, 0.55); color: #ffffff;
  min-width: 44px; min-height: 44px; cursor: pointer;
}

.slider-dots { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; z-index: 2; }

.slider-dots button {
  width: 10px; height: 10px; min-width: 10px; min-height: 10px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.75); cursor: pointer;
}

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

.layout { display: grid; grid-template-columns: minmax(0, 2fr) 240px; 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: #f3f5f7; }

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

.entry h2 a { color: #2c3138; }

.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;
}

.cat-label.vn { background: var(--vn); color: #ffffff; }

.cat-label.th { background: var(--th); color: #ffffff; }

.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 figure { margin: 0 0 14px; }

.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: #fbfcfd; color: #555555; padding: 24px 0 8px; margin-top: 20px; }

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

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

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

.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 18px; background: #434a54; color: #fff8ee;
  font-size: 16px; font-weight: 700; line-height: 1.3; text-align: center; overflow: hidden;
  box-shadow: 0 8px 18px rgba(20, 24, 28, 0.2);
}

.site-cta:hover, .site-cta:focus-visible, .site-cta:active { color: #fff8ee; background: #353b44; }

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

.site-cta::before {
  background: radial-gradient(100% 150% at 18% 50%, rgba(218, 68, 83, 0.95) 0%, transparent 68%);
  opacity: 0;
  animation: wine-stain-wash 2.4s cubic-bezier(.2, .7, .3, 1) infinite;
}

.site-cta::after {
  box-shadow: inset 0 0 0 rgba(80, 10, 20, 0);
  animation: wine-stain-press 2.4s cubic-bezier(.2, .7, .3, 1) infinite;
}

@keyframes wine-stain-wash {
  0%, 48% { opacity: 0; }
  64% { opacity: 0.28; }
  82%, 100% { opacity: 0; }
}

@keyframes wine-stain-press {
  0%, 56% { box-shadow: inset 0 0 0 rgba(80, 10, 20, 0); }
  70% { box-shadow: inset 0 12px 18px rgba(80, 10, 20, 0.26); }
  88%, 100% { box-shadow: inset 0 0 0 rgba(80, 10, 20, 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, 247, 248, 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 var(--line); 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.2; }
  .site-cta::after { box-shadow: inset 0 10px 16px rgba(80, 10, 20, 0.22); }
}

@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; }
}
