:root {
  --bg: #f6f6f6;
  --surface: #ffffff;
  --text: #333333;
  --muted: #666666;
  --line: #e6e6e6;
  --accent: #19b5fe;
  --hot: #ff4a6a;
  --header: #000000;
  --header-text: #ffffff;
  --cta: #1a1214;
  --cta-text: #fff7f4;
  --shadow: 0 2px 5px rgba(146, 146, 146, 0.3);
  --wrap: 1170px;
  --header-h: 80px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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: #0b78b8; text-decoration: none; }

a:hover { color: var(--accent); }

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

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

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

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

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

p { margin: 0 0 14px; }

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--header-h);
  background: var(--header);
  color: var(--header-text);
}

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

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: 12px;
  height: var(--header-h);
}

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

.desk-nav { flex: 1 1 auto; 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: 4px;
}

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

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

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

.desk-nav .sub {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  width: 210px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 8px 0;
  z-index: 21;
}

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

.desk-nav .sub a {
  display: block;
  color: #404040;
  font-size: 15px;
  line-height: 1.5;
  padding: 6px 18px;
}

.desk-nav .sub a:hover { color: #000000; background: #f7f7f7; }

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

.menu-open { display: none; }

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.slider {
  position: relative;
  background: #111111;
  min-height: 450px;
}

.slide {
  display: none;
  position: relative;
  min-height: 450px;
  color: #ffffff;
}

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

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

.slide-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 36px 48px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.82) 100%);
}

.slide-cat {
  position: absolute;
  top: 28px;
  left: 28px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  padding: 8px 12px;
}

.slide h2 {
  margin: 0;
  color: #ffffff;
  font-size: 26px;
}

.slide h2 a { color: #ffffff; }

.slider-nav,
.slider-dots {
  position: absolute;
  z-index: 2;
}

.slider-nav {
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  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 {
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider-dots button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
}

.slider-dots button::before {
  content: "";
  display: block;
  width: 20px;
  height: 3px;
  margin: 20px auto 0;
  background: rgba(255, 255, 255, 0.55);
}

.slider-dots button.is-on::before { background: #ffffff; }

.side-features {
  display: grid;
  gap: 16px;
}

.side-card {
  position: relative;
  min-height: 217px;
  overflow: hidden;
  background: #ddd;
}

.side-card img {
  width: 100%;
  height: 217px;
  object-fit: cover;
  display: block;
}

.side-card span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  padding: 6px 8px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.tile {
  position: relative;
  display: block;
  min-height: 200px;
  background: #d8d8d8;
}

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

.tile b {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  padding: 8px 16px;
  text-align: center;
}

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

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

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }

.tabs button {
  border: 0;
  background: #f2f2f2;
  color: #333333;
  min-height: 44px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 15px;
}

.tabs button.is-on { background: #111111; color: #ffffff; }

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

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

.entry img {
  width: 220px;
  height: 148px;
  object-fit: cover;
  display: block;
  background: #ececec;
}

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

.entry h2 a { color: #222222; }

.entry h2 a:hover { color: var(--accent); }

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

.meta a { color: var(--hot); }

.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: 22px 22px 8px; }

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

.prose figure img { display: block; width: 100%; height: auto; }

.prose figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }

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

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

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

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

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

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

.site-footer {
  background: #f3f3f3;
  color: #555555;
  padding: 28px 0 12px;
  margin-top: 28px;
}

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

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

.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 22px;
  background: var(--cta);
  color: var(--cta-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.site-cta:hover,
.site-cta:focus-visible,
.site-cta:active {
  color: var(--cta-text);
  background: #2a171b;
}

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

.site-cta::before {
  background: radial-gradient(120% 160% at 78% 42%, rgba(255, 74, 90, 0.95) 0%, transparent 68%);
  opacity: 0;
  animation: lamp-paper-wash 2.6s cubic-bezier(.2, .7, .3, 1) infinite;
}

.site-cta::after {
  box-shadow: inset 0 0 0 rgba(80, 8, 16, 0);
  animation: lamp-paper-press 2.6s cubic-bezier(.2, .7, .3, 1) infinite;
}

@keyframes lamp-paper-wash {
  0%, 54% { opacity: 0; }
  68% { opacity: 0.28; }
  84%, 100% { opacity: 0; }
}

@keyframes lamp-paper-press {
  0%, 62% { box-shadow: inset 0 0 0 rgba(80, 8, 16, 0); }
  74% { box-shadow: inset 0 16px 24px rgba(80, 8, 16, 0.28); }
  90%, 100% { box-shadow: inset 0 0 0 rgba(80, 8, 16, 0); }
}

.mobile-panel {
  display: none;
  position: fixed;
  z-index: 25;
  inset: var(--header-h) 0 0 0;
  background: var(--surface);
  overflow: auto;
  padding: 8px 18px 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;
}

.mobile-panel .sub-label {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

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

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

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

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

.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, 8, 16, 0.2); }
  .slider-nav button, .slide { transition: none; }
}

@media (max-width: 991px) {
  .desk-nav { display: none; }
  .menu-open { display: inline-flex; align-items: center; justify-content: center; }
  .hero, .layout { grid-template-columns: 1fr; }
  .side-features { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .slider, .slide, .slide img { min-height: 280px; height: 280px; }
  .slide img { height: 280px; }
  .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: 66px; }
  .logo { margin: 0 auto; }
  .logo img { width: 120px; height: 44px; }
  .header-bar { justify-content: flex-start; }
  .menu-open { margin-left: auto; }
  .tiles, .entry { grid-template-columns: 1fr; }
  .entry img { width: 100%; height: 190px; }
  .slider, .slide, .slide img { min-height: 220px; height: 220px; }
  .slide img { height: 220px; }
  .slide h2 { font-size: 20px; }
  .slide-copy { padding: 16px 16px 28px; }
  h1 { font-size: 24px; }
  .prose, .panel { padding-left: 14px; padding-right: 14px; }
}
