@charset "utf-8";
:root {
  --accent: #c8000a;
  --ink: #111111;
  --muted: rgba(17, 17, 17, 0.64);
  --canvas: #f7f5f0;
  --card: #ffffff;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; min-height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.page-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 92px;
  padding-top: 55px;
  box-sizing: border-box;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}
.header-inner {
  width: min(1480px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 48px;
}
.brand img { width: 132px; height: auto; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  font-size: 16px;
}
.main-nav > a,
.main-nav > .nav-group > a {
  position: relative;
  color: #161616;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  text-align: center;
  padding: 140px 0 106px;
}
.hero-kicker {
  margin: 0 0 16px;
  font-size: clamp(44px, 5vw, 72px);
  letter-spacing: 2px;
  line-height: 1.08;
  color: rgba(255, 255, 255, 0.98);
  font-weight: 800;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.hero-content h1 {
  margin: 0;
  font-size: clamp(18px, 1.7vw, 24px);
  letter-spacing: 4px;
  line-height: 1.9;
  font-weight: 400;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.hero-summary {
  max-width: 900px;
  margin: 18px auto 0;
  font-size: 16px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.9);
}
.main-nav > a::after,
.main-nav > .nav-group > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #161616;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.3s ease;
}
.main-nav > a:hover::after,
.main-nav > .nav-group:hover > a::after,
.main-nav > a.current::after,
.main-nav > .nav-group > a.current::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.nav-group { position: relative; }
.nav-group > a { padding-right: 18px; }
.nav-group::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px;
  z-index: 19;
}
.sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 156px;
  padding: 10px 10px 10px;
  border-radius: 0 0 12px 12px;
  background: rgba(200, 0, 10, 0.96);
  box-shadow: 0 10px 30px rgba(200, 0, 10, 0.18);
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
  z-index: 20;
}
.nav-group:hover .sub-menu,
.nav-group:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}
.sub-menu {
  transform: translateX(-50%) translateY(8px);
}
.sub-menu a {
  display: block;
  color: #fff;
  text-align: center;
  line-height: 34px;
  font-size: 14px;
  border-radius: 6px;
}
.sub-menu a:hover { background: rgba(255, 255, 255, 0.16); }
.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(200, 0, 10, 0.18);
  background: rgba(200, 0, 10, 0.06);
  color: var(--accent);
}

.relation-page { padding-top: 92px; }
.hero-shell {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-bg,
.hero-mask {
  position: absolute;
  inset: 0;
}
.hero-bg {
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}
.hero-mask {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.08));
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  text-align: center;
  padding: 140px 0 106px;
}
.hero-kicker {
  margin: 0 0 16px;
  font-size: clamp(44px, 5vw, 72px);
  letter-spacing: 2px;
  line-height: 1.08;
  color: rgba(255, 255, 255, 0.98);
  font-weight: 800;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.hero-content h1 {
  margin: 0;
  font-size: clamp(18px, 1.7vw, 24px);
  letter-spacing: 4px;
  line-height: 1.9;
  font-weight: 400;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.hero-summary {
  max-width: 900px;
  margin: 18px auto 0;
  font-size: 16px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.9);
}

.section-tabs {
  z-index: 900;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px 14px 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.section-tab {
  min-width: 120px;
  padding: 10px 20px;
  border-radius: 999px;
  color: #333;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.78);
  transition: all 0.25s ease;
}
.section-tab:hover,
.section-tab.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(200, 0, 10, 0.22);
}

.relation-panel {
  position: relative;
  padding: 60px 0;
  display: none;
  scroll-margin-top: 100px;
}
.relation-panel.tab-active { display: block; }
.section-inner {
  width: min(1260px, calc(100% - 36px));
  margin: 0 auto;
  position: relative;
}
.section-head {
  text-align: center;
  margin-bottom: 30px;
  padding: 56px 0 78px;
  position: relative;
  overflow: visible;
}
.section-head::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  bottom: -50px;
  opacity: 0.46;
  pointer-events: none;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.section-head > * { position: relative; z-index: 1; }
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 54px);
  letter-spacing: 6px;
}
.section-head p {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 2px;
}
.section-head-contact::before { background-image: url('../../images/life/07.png'); }
.section-head-map::before { background-image: url('../../images/life/06.png'); }

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  margin-top: 44px;
}
.contact-info,
.contact-form {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(18, 26, 31, 0.08);
  padding: 34px;
}
.contact-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.contact-info li:last-child { border-bottom: 0; padding-bottom: 0; }
.icon-box {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 24px;
}
.text h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #232323;
}
.text p {
  margin: 0 0 6px;
  font-size: 14px;
  color: #666;
  line-height: 1.75;
}
.text span {
  font-size: 12px;
  color: #999;
}
.text a { color: var(--accent); }

.contact-form h3 {
  margin: 0 0 26px;
  font-size: 22px;
}
.form-item { margin-bottom: 22px; }
.form-item label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #666;
}
.form-item input,
.form-item textarea {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  font-size: 14px;
  color: #333;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.form-item input:focus,
.form-item textarea:focus {
  border-color: var(--accent);
  background: #fff;
  outline: none;
}
.form-item textarea { min-height: 150px; resize: none; line-height: 1.6; }
.form-consent { margin-bottom: 22px; }
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #888;
  line-height: 1.8;
  user-select: none;
}
.consent-label input[type="checkbox"] { display: none; }
.consent-checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #d0d0d0;
  border-radius: 4px;
  margin-top: 2px;
  background: #fafafa;
  position: relative;
  flex: 0 0 18px;
}
.consent-label input:checked + .consent-checkmark {
  background: var(--accent);
  border-color: var(--accent);
}
.consent-label input:checked + .consent-checkmark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent-link {
  color: var(--accent);
  text-decoration: underline;
}
.submit-btn,
.close-btn,
.disclaimer-close {
  border: 0;
  cursor: pointer;
}
.submit-btn {
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.submit-btn:hover { transform: translateY(-2px); opacity: 0.95; }
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.panel-map { background: linear-gradient(180deg, #faf6f2 0%, #fff7f3 100%); }
.map-shell { margin-top: 44px; }
.map-box {
  position: relative;
  padding: 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, #8B4513 0%, #A0522D 30%, #CD5C5C 60%, #8B0000 100%);
  box-shadow: 0 8px 32px rgba(139, 69, 19, 0.3), inset 0 2px 4px rgba(255,255,255,0.1);
  border: 2px solid rgba(210, 105, 30, 0.6);
  min-height: 430px;
  overflow: hidden;
}
.map-slide {
  position: absolute;
  inset: 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.15);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.map-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.map-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.map-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.map-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.map-dot.active {
  background: #fff;
  transform: scale(1.3);
}
.map-hint {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.6s;
}

.modal-overlay,
.disclaimer-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
}
.modal-overlay.show,
.disclaimer-overlay.show { display: flex; }
.modal-content {
  width: min(520px, calc(100% - 32px));
  background: #fff;
  border-radius: 18px;
  padding: 34px 30px 26px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-content .icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  background: rgba(200, 0, 10, 0.08);
  color: var(--accent);
  font-size: 34px;
  font-weight: 700;
}
.modal-content h3 { margin: 0 0 12px; font-size: 22px; }
.modal-content p { margin: 0; color: #666; line-height: 1.8; }
.close-btn {
  margin-top: 24px;
  padding: 10px 40px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
}
.disclaimer-box {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px 30px;
  max-width: 520px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.disclaimer-box h4 {
  font-size: 20px;
  color: #222;
  text-align: center;
  margin: 0 0 24px;
  font-weight: 600;
  letter-spacing: 1px;
}
.disclaimer-box h4::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: var(--accent);
  margin: 14px auto 0;
  border-radius: 1px;
}
.disclaimer-body {
  font-size: 14px;
  color: #555;
  line-height: 1.9;
  padding: 20px;
  background: #fafafa;
  border-radius: 10px;
  border-left: 3px solid var(--accent);
}
.disclaimer-body p { margin: 0 0 12px; }
.disclaimer-body p:last-child { margin-bottom: 0; }
.disclaimer-close {
  display: block;
  margin: 24px auto 0;
  padding: 10px 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  transition: transform 0.25s ease, background 0.25s ease;
}
.disclaimer-close:hover { background: #a00008; transform: translateY(-1px); }

.site-footer {
  margin-top: 58px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 26px min(28px, 2vw) 0;
  width: min(1400px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}
.contact-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #555;
  line-height: 2;
  font-size: 14px;
}
.qr-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 20px;
}
.qr-list li {
  width: 96px;
  text-align: center;
  color: #666;
  font-size: 13px;
}
.qr-list img {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 8px;
}
.copy {
  width: min(1400px, calc(100% - 32px));
  margin: 26px auto 0;
  color: #777;
  font-size: 13px;
  padding-bottom: 26px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .contact-layout { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .page-header { height: 72px; }
  .relation-page { padding-top: 72px; }
  .header-inner { width: min(1480px, calc(100% - 24px)); }
  .brand img { width: 110px; }
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    right: 16px;
    width: 240px;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    gap: 0;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  }
  .main-nav.open > a,
  .main-nav.open > .nav-group > a {
    width: 100%;
    padding: 8px 0;
  }
  .main-nav.open .nav-group { width: 100%; }
  .main-nav.open .sub-menu {
    position: static;
    transform: none;
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    margin: 6px 0 10px;
    background: rgba(200, 0, 10, 0.88);
    box-shadow: none;
  }
  .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hero-shell { min-height: 420px; }
  .hero-content { padding: 112px 0 88px; }
  .hero-summary { font-size: 15px; }
  .section-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding-inline: 16px;
  }
  .section-tab { min-width: 110px; }
  .relation-panel { padding: 48px 0; }
  .section-inner { width: min(1260px, calc(100% - 24px)); }
  .contact-info,
  .contact-form { padding: 26px; }
  .map-box { min-height: 380px; }
  .map-hint { bottom: 44px; font-size: 12px; }
  .site-footer { width: min(1400px, calc(100% - 24px)); }
  .copy { width: min(1400px, calc(100% - 24px)); }
}