:root {
  color-scheme: light;
  --bg: #f2ede6;
  --ink: #1e2226;
  --ink-soft: #5f6368;
  --brand: #bc5632;
  --brand-deep: #8f3318;
  --line: rgba(37, 36, 31, 0.15);
  --panel: rgba(255, 252, 247, 0.84);
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 24px 70px rgba(28, 24, 19, 0.13);
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

.background-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.halo {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
}

.halo-a {
  width: 48vw;
  height: 48vw;
  right: -12vw;
  top: -16vw;
  background: radial-gradient(circle, rgba(188, 86, 50, 0.28), rgba(188, 86, 50, 0));
}

.halo-b {
  width: 52vw;
  height: 52vw;
  left: -18vw;
  top: 28vh;
  background: radial-gradient(circle, rgba(26, 64, 78, 0.24), rgba(26, 64, 78, 0));
}

.texture {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.24;
}

.topbar {
  margin: 24px auto 0;
  max-width: 1180px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.74);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #d37a57, #bc5632);
  color: #fff;
  font-weight: 700;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 16px;
}

.brand-copy span {
  font-size: 12px;
  color: var(--ink-soft);
}

.top-links {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-links a {
  color: #3f4348;
  text-decoration: none;
  font-size: 14px;
}

.top-links .admin-link {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(188, 86, 50, 0.4);
  color: var(--brand-deep);
  font-weight: 600;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(31, 34, 38, 0.16);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.74);
}

.lang-button {
  border: none;
  background: transparent;
  min-width: 52px;
  padding: 7px 12px;
  font-size: 13px;
  color: #3f4348;
  cursor: pointer;
}

.lang-button + .lang-button {
  border-left: 1px solid rgba(31, 34, 38, 0.12);
}

.lang-button.active {
  background: linear-gradient(145deg, #d37a57, #bc5632);
  color: #fff;
  font-weight: 700;
}

main {
  max-width: 1180px;
  margin: 20px auto 48px;
  display: grid;
  gap: 18px;
  padding: 0 8px;
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(255, 251, 245, 0.97), rgba(251, 242, 230, 0.92));
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #91533e;
}

.hero h1,
.section-head h2 {
  margin: 12px 0 0;
  font-family: var(--font-display);
}

.hero h1 {
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.12;
}

.hero-subtitle {
  margin: 18px 0 0;
  font-size: 19px;
  line-height: 1.7;
  color: #3d454d;
}

.hero-actions {
  margin-top: 24px;
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-solid {
  background: linear-gradient(135deg, #ca6943, #af4b2c);
  color: #fff;
  box-shadow: 0 10px 24px rgba(175, 75, 44, 0.25);
}

.button-outline {
  border: 1px solid rgba(175, 75, 44, 0.45);
  color: #6f301c;
  background: rgba(255, 255, 255, 0.7);
}

.hero-image-shell {
  position: relative;
  min-height: 320px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(175, 75, 44, 0.24);
}

.hero-image-shell img,
.hero-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-shell img {
  display: none;
}

.hero-image-shell.has-image img {
  display: block;
}

.hero-image-shell.has-image .hero-fallback {
  display: none;
}

.hero-fallback {
  background: linear-gradient(135deg, #253847 0%, #1f2b36 45%, #314c5b 100%);
  position: relative;
}

.hero-fallback::before,
.hero-fallback::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(204, 111, 73, 0.4);
}

.hero-fallback::before {
  width: 140px;
  height: 140px;
  top: -28px;
  right: -24px;
}

.hero-fallback::after {
  width: 96px;
  height: 96px;
  bottom: 18px;
  left: 20px;
}

.card-section {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 40px);
}

.highlight-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.highlight-list li {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(34, 38, 44, 0.1);
  line-height: 1.6;
}

.about-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
}

.about-content {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.8;
  color: #3d454d;
  white-space: pre-line;
}

.gallery-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(33, 36, 40, 0.14);
  min-height: 160px;
  background: linear-gradient(135deg, #263f50, #20313f);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-empty {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink-soft);
}

.contact-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-grid > div {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(31, 34, 38, 0.1);
  padding: 14px 16px;
}

.label {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
}

.contact-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  color: #21252a;
  word-break: break-word;
}

.footer {
  max-width: 1180px;
  margin: 0 auto 28px;
  text-align: center;
  color: #666c73;
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.ready {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .topbar {
    border-radius: 22px;
    align-items: flex-start;
    flex-direction: column;
  }

  .top-links {
    width: 100%;
  }

  .lang-switch {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .highlight-list {
    grid-template-columns: 1fr;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero,
  .card-section {
    padding: 18px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
