:root {
  --ink: #1f150f;
  --ink-light: #3c2a20;
  --ink-muted: #6b5c52;
  --canvas: #f6f1ea;
  --paper: #fcfaf6;
  --accent: #c6743d;
  --accent-dark: #a25624;
  --accent-soft: rgba(198, 116, 61, 0.12);
  --line: rgba(60, 42, 32, 0.14);
  --serif: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--sans);
  background: linear-gradient(180deg, #fdfaf6 0%, #f6f1ea 100%);
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--serif);
  color: var(--ink);
  letter-spacing: 0.05em;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--accent);
}
.navbar .container-xxl{
  width: 1080px;
}
.navbar-brand img {
  transition: opacity 0.2s ease;
}

.navbar-brand:hover img {
  opacity: 0.8;
}

/* Logo图片样式 */
.logo-img {
  height: 50px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.kyoto-body {
  background: linear-gradient(180deg, #fcf8f2 0%, #f3ede4 45%, #f9f6f0 100%);
}

.navbar-kyoto {
  background: rgba(252, 250, 246, 0.92) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(60, 42, 32, 0.08);
  padding-top: 1rem;
  padding-bottom: 1rem;
  min-height: 80px;
  /* 防止下方大图或伪元素覆盖点击区域，确保移动端折叠菜单可点 */
  z-index: 1100;
  position: relative;
}

/* 确保导航切换按钮可点击 */
.navbar-toggler {
  position: relative;
  z-index: 1101;
  border: 1px solid rgba(31, 21, 15, 0.2) !important;
  padding: 0.4rem 0.6rem !important;
}

.navbar-toggler:focus {
  box-shadow: none !important;
  border-color: var(--accent) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2831, 21, 15, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink) !important;
}

.navbar-nav .nav-link {
  color: var(--ink-muted);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding-right: 1.2rem;
  padding-left: 1.2rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  color: var(--accent);
}

/* 语言下拉：CSS 兜底（即使 JS 失效也可用） */
.navbar .dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}

/* 语言旗帜小图标 */
.flag-icon {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* 可点击的国旗按钮 */
.flag-clickable {
  opacity: 0.6;
  cursor: pointer;
}

.flag-clickable:hover {
  opacity: 1;
  transform: scale(1.1);
}

.nav-item .nav-link.active .flag-clickable {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.kyoto-main {
  padding-block: 4.5rem;
}

/* 首页去掉顶部内边距，使主视觉紧贴顶端 */
.home-page .kyoto-main {
  padding-block: 0 4.5rem;
}

.container-kyoto {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.75rem;
}

.hero-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 40px 80px rgba(31, 21, 15, 0.14);
  border: 1px solid rgba(60, 42, 32, 0.08);
}

/* 全宽横幅（不在卡片中） */
.hero-bleed {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  background: #fff;
}
.hero-bleed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/banner.png") center/cover no-repeat;
  filter: grayscale(12%) saturate(95%);
  opacity: 0.45;
  /* 避免遮挡导航栏点击 */
  pointer-events: none;
  /* 鼠标跟随视差效果 */
  transition: transform 0.3s ease-out;
  will-change: transform;
  transform: translate(var(--parallax-x, 0), var(--parallax-y, 0));
}
.hero-bleed__content {
  position: relative;
  max-width: 1120px;
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 4vw, 2rem);
  display: grid;
  gap: 3rem;
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  /* 使用与首页一致的banner.png背景图 */
  background: url("../img/management.png") center/cover no-repeat;
  filter: grayscale(12%) saturate(95%);
  opacity: 0.45;
  /* 避免遮挡导航栏点击 */
  pointer-events: none;
  background-size: 100% auto;
}

.hero-frame__content {
  position: relative;
  display: grid;
  gap: 3rem;
  padding: clamp(2.5rem, 6vw, 4rem);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero-kicker::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--ink-muted);
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.hero-subtext {
  color: var(--ink-muted);
  max-width: 34rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(198, 116, 61, 0.12);
  color: var(--accent-dark);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-sidecard {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  padding: 1.8rem;
  border: 1px solid rgba(60, 42, 32, 0.05);
  backdrop-filter: blur(12px);
  display: grid;
  gap: 1.5rem;
}

.hero-sidecard ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
  color: var(--ink-muted);
}

.hero-sidecard li::before {
  content: "◆";
  color: var(--accent);
  margin-right: 0.6rem;
  font-size: 0.7rem;
}

.btn-ink {
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 0.75rem 2.4rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-ink.btn-sm {
  padding: 0.5rem 1.4rem;
  font-size: 0.7rem;
}

.btn-ink:hover,
.btn-ink:focus {
  color: #fff;
  background: var(--accent-dark);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(31, 21, 15, 0.2);
  animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
  0% { transform: translateY(-2px) scale(1.02); }
  50% { transform: translateY(-2px) scale(1.05); }
  100% { transform: translateY(-2px) scale(1.02); }
}

.btn-outline-ink {
  border-radius: 999px;
  padding: 0.75rem 2.4rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  border: 1px solid rgba(31, 21, 15, 0.32);
  color: var(--ink);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-outline-ink:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(31, 21, 15, 0.15);
  animation: bounce 0.6s ease-in-out;
}

.btn-outline-ink:hover,
.btn-outline-ink:focus {
  border-color: var(--accent);
  color: var(--accent);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(-2px) scale(1.02); }
  40% { transform: translateY(-4px) scale(1.03); }
  60% { transform: translateY(-3px) scale(1.025); }
}

.btn-outline-ink.btn-sm {
  padding: 0.5rem 1.4rem;
  font-size: 0.7rem;
}

.section-block {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(2rem, 6vw, 3.75rem);
  background: var(--paper);
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(31, 21, 15, 0.06);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.section-header__kicker {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  color: var(--ink-muted);
}

.section-header__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-header__lead {
  color: var(--ink-muted);
}

.stay-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.stay-card {
  padding: 1.8rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(60, 42, 32, 0.08);
  display: grid;
  gap: 1rem;
  min-height: 280px;
}

.stay-card__title {
  font-size: 1.25rem;
}

.stay-card__tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.stay-card__body {
  color: var(--ink-muted);
}

.rooms-grid {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.rooms-more {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.room-teaser {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(60, 42, 32, 0.12);
  display: flex;
  flex-direction: column;
}

.room-teaser__image {
  height: 380px;
  position: relative;
  overflow: hidden;
  display: block;
}

.room-teaser__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 若图片加载失败，显示柔和背景避免空白 */
.room-teaser__image img:before,
.room-teaser__image img::after { display: none; }

.room-teaser__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 9, 5, 0) 45%, rgba(17, 9, 5, 0.35) 100%);
}

.room-teaser__meta {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  gap: 0.6rem;
}

.room-teaser__meta span {
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  letter-spacing: 0.15em;
}

.room-teaser__title-link,
.room-teaser__desc-link {
  color: inherit;
  text-decoration: none;
}

.room-teaser__title-link:hover,
.room-teaser__title-link:focus,
.room-teaser__desc-link:hover,
.room-teaser__desc-link:focus {
  color: var(--accent);
}

.room-teaser__desc-link {
  display: block;
}

.room-teaser__body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}


.room-teaser__price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.room-teaser__desc {
  color: var(--ink-muted);
  min-height: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  flex: 1;
}

.room-teaser__actions {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 房源卡片图片链接样式 */
.room-image-link {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.room-image-link:hover {
  transform: scale(1.01);
}

.room-image-link img {
  transition: filter 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.room-image-link:hover img {
  filter: brightness(1.02) saturate(1.05);
}

.artisan-block {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.artisan-panel {
  border-radius: 24px;
  border: 1px solid rgba(60, 42, 32, 0.12);
  padding: 2rem;
  background: #fff;
}

.artisan-panel p {
  color: var(--ink-muted);
}

.callout {
  background: linear-gradient(120deg, rgba(31, 21, 15, 0.95), rgba(67, 42, 27, 0.92));
  color: #fdfaf6;
  border-radius: 28px;
  padding: clamp(2.5rem, 6vw, 3.8rem);
  display: grid;
  gap: 1.8rem;
}

.callout .btn-outline-ink {
  border-color: rgba(255, 250, 245, 0.4);
  color: #fdfaf6;
}

.callout .btn-outline-ink:hover,
.callout .btn-outline-ink:focus {
  border-color: #fff;
  color: #fff;
}

.text-white-70 {
  color: rgba(255, 255, 255, 0.72) !important;
}

.kyoto-footer {
  background: #1f150f;
  color: rgba(255, 250, 245, 0.78);
  padding: 2.8rem 0;
  letter-spacing: 0.12em;
}

.kyoto-footer p {
  margin: 0;
}

.rooms-intro {
  margin-bottom: 2.8rem;
  display: grid;
  gap: 1.2rem;
}

.room-list {
  display: grid;
  gap: 2.2rem;
}

.room-card--detail {
  background: var(--paper);
  border-radius: 26px;
  border: 1px solid rgba(60, 42, 32, 0.1);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(31, 21, 15, 0.1);
}

.room-card__media {
  display: block;
}

.room-card__media img {
  width: 100%;
  height: clamp(280px, 45vw, 420px);
  object-fit: cover;
  display: block;
}

.room-card__body--detail {
  padding: clamp(2rem, 5vw, 3rem);
  display: grid;
  gap: 1.6rem;
}

.room-card__meta {
  display: grid;
  gap: 1rem;
}

.room-card__meta--compact {
  gap: 0.75rem;
}

.room-card__meta-item {
  display: grid;
  gap: 0.25rem;
}

.room-card__meta-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.room-card__meta-value {
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.5;
}

.room-facilities {
  display: grid;
  gap: 0.75rem;
  color: var(--ink-muted);
  list-style: none;
  padding: 0;
}

.room-facilities li::before {
  content: "◯";
  color: var(--accent);
  margin-right: 0.6rem;
}

.room-summary-block {
  display: grid;
  gap: 4rem;
}

.detail-side {
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(60, 42, 32, 0.08);
  padding: 2rem;
  display: grid;
  gap: 1.2rem;
}

.room-hero {
  position: relative;
  overflow: hidden;
}

.room-hero__image {
  width: 100%;
  height: clamp(320px, 70vh, 560px);
  object-fit: cover;
  display: block;
  filter: saturate(95%);
}

.room-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 9, 5, 0.1) 0%, rgba(18, 9, 5, 0.75) 100%);
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(2.5rem, 7vw, 4.5rem);
  color: #fff;
}

.room-hero__overlay .container {
  max-width: 960px;
}

.room-hero__overlay .badge-soft {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.room-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0;
  color: #fff;
}

.room-hero__address {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
}

.room-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

.room-hero__overlay .btn-ink {
  background: #fff;
  color: var(--ink);
}

.room-hero__overlay .btn-outline-ink {
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff;
}

.room-hero__overlay .btn-outline-ink:hover {
  background: rgba(255, 255, 255, 0.14);
}

.room-detail {
  display: grid;
  gap: clamp(2rem, 6vw, 4rem);
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}

.room-detail__main {
  display: grid;
  gap: 1.6rem;
}

.room-detail__description {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-muted);
}

.room-detail__meta {
  display: grid;
  gap: 1.5rem;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(60, 42, 32, 0.1);
  padding: clamp(1.8rem, 4vw, 2.6rem);
}

.room-detail__list {
  display: grid;
  gap: 1.2rem;
  margin: 0;
}

.room-detail__item {
  display: grid;
  gap: 0.35rem;
}

.room-detail__item dt {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.room-detail__item dd {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.6;
}

@media (max-width: 992px) {
  .room-detail {
    grid-template-columns: 1fr;
  }

  .room-hero__overlay {
    align-items: flex-end;
    padding-bottom: clamp(2rem, 12vw, 3rem);
    padding-top: clamp(1.5rem, 8vw, 3rem);
    background: linear-gradient(180deg, rgba(18, 9, 5, 0.25) 0%, rgba(18, 9, 5, 0.85) 100%);
  }
}

.form-frame {
  background: var(--paper);
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 24px;
  border: 1px solid rgba(60, 42, 32, 0.1);
  transition: none !important;
  transform: none !important;
}

/* 仪表盘统计卡片响应式优化 */
@media (max-width: 576px) {
  .row.g-3 .col-12 {
    margin-bottom: 0.75rem;
  }
  
  .row.g-3 .col-12:last-child {
    margin-bottom: 0;
  }
}

@media (min-width: 576px) and (max-width: 768px) {
  .row.g-3 .col-sm-6 {
    margin-bottom: 0.75rem;
  }
  
  .row.g-3 .col-sm-6:nth-last-child(-n+2) {
    margin-bottom: 0;
  }
}

.form-label,
.form-control,
.form-select,
textarea {
  font-family: var(--sans);
  letter-spacing: 0.05em;
}

.form-control,
.form-select,
textarea {
  border-radius: 12px;
  border: 1px solid rgba(31, 21, 15, 0.2);
  background: #fffefb;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: none;
}

.alert {
  border-radius: 16px;
  background: #fff;
}

.badge-soft {
  background: var(--accent-soft);
  color: var(--accent-dark);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.68rem;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
}

.reservation-summary {
  background: var(--paper);
  border-radius: 24px;
  border: 1px solid rgba(60, 42, 32, 0.12);
  padding: 2rem;
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
  box-shadow: 0 22px 50px rgba(31, 21, 15, 0.1);
}

.reservation-summary p {
  margin-bottom: 0.4rem;
}

.reservation-summary h2 {
  font-size: 1.1rem;
}

.contact-side {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  border: 1px solid rgba(60, 42, 32, 0.08);
  padding: 2.2rem;
  backdrop-filter: blur(8px);
}

.contact-side ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--ink-muted);
  display: grid;
  gap: 0.6rem;
}

.contact-side li::before {
  content: "―";
  margin-right: 0.6rem;
}

.contact-qr-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.contact-qr-item {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(60, 42, 32, 0.08);
  padding: 1.2rem;
  text-align: center;
}

.contact-qr-title {
  font-family: var(--serif);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.contact-qr-image {
  width: 100%;
  max-width: 180px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(31, 21, 15, 0.12);
}

.admin-tabs {
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(60, 42, 32, 0.12);
  padding: 0.35rem;
  gap: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(31, 21, 15, 0.08);
}

.backup-card {
  position: relative;
  overflow: hidden;
}

.backup-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(31, 21, 15, 0.65);
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  z-index: 5;
}

.backup-overlay .spinner-border {
  width: 2.5rem;
  height: 2.5rem;
}

#backupAlert .alert {
  margin-bottom: 0;
}

.admin-tabs .nav-link {
  border: none;
  border-radius: 18px;
  padding: 0.65rem 1.2rem;
  color: var(--ink-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

.admin-tabs .nav-link:hover,
.admin-tabs .nav-link:focus {
  background: rgba(60, 42, 32, 0.06);
  color: var(--ink);
}

.admin-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(198, 116, 61, 0.32);
}

.admin-pane {
  background: #fff;
  border-radius: 26px;
  border: 1px solid rgba(60, 42, 32, 0.08);
  padding: clamp(1.8rem, 4vw, 2.4rem);
  box-shadow: 0 30px 70px rgba(31, 21, 15, 0.08);
}

.admin-table thead {
  font-family: var(--sans);
  letter-spacing: 0.08em;
}

.admin-table .table {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(31, 21, 15, 0.08);
}

.admin-table thead th {
  border-bottom: none;
  background: rgba(60, 42, 32, 0.06);
  color: var(--ink);
  padding: 0.85rem 1rem;
  font-weight: 600;
}

.admin-table tbody tr {
  border-bottom: 1px solid rgba(60, 42, 32, 0.06);
  transition: background 0.2s ease;
}

.admin-table tbody tr:hover {
  background: rgba(198, 116, 61, 0.08);
}

.admin-table tbody td {
  vertical-align: middle;
  padding: 0.8rem 1rem;
  color: var(--ink);
}

.admin-table .btn-outline-secondary,
.admin-table .btn-outline-danger {
  border-radius: 999px;
  padding-inline: 1.1rem;
}

.admin-table .btn-outline-danger {
  border-color: rgba(203, 69, 59, 0.3);
  color: rgb(181, 52, 40);
}

.admin-table .btn-outline-danger:hover {
  background: rgba(203, 69, 59, 0.12);
}

/* ナビの国旗アイコンをテキストと揃える（下へ3px移動） */
.nav .language-switch img,
.nav .lang img,
.nav .flag,
.language-toggle img,
.flag-icon {
    position: relative;
    top: 3px;               /* 下に3px移動 */
    display: inline-block;
    vertical-align: middle; /* 追加の保険 */
}

@media (max-width: 991px) {
  .room-card--detail img {
    height: 320px;
  }
}

@media (max-width: 767px) {
  .kyoto-main {
    padding-block: 3.2rem;
  }
  
  .hero-frame__content {
    padding: 2.5rem;
  }
  
  .hero-sidecard {
    padding: 1.4rem;
  }
  
  .room-card--detail img {
    height: 320px;
  }
  
  .room-teaser__image {
    height: 300px;
  }
  
  .section-block {
    padding: 2rem;
  }
}






/* 导航链接动画 */
.nav-link {
  transition: all 0.3s ease;
  position: relative;
  will-change: transform;
}

.nav-link:hover,
.nav-link.nav-hover {
  transform: translateY(-1px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.nav-hover::after {
  width: 100%;
}

/* 页面加载时的初始状态 */

/* 回到顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  box-shadow: 0 8px 25px rgba(198, 116, 61, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(198, 116, 61, 0.4);
}

.back-to-top:active {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px rgba(198, 116, 61, 0.3);
}

.back-to-top i {
  transition: transform 0.3s ease;
}

.back-to-top:hover i {
  transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* 房间详情页固定顶部栏 */
.room-sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(60, 42, 32, 0.1);
  padding: 1rem 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 20px rgba(31, 21, 15, 0.1);
}

.room-sticky-header.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.room-sticky-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1rem;
}

.room-sticky-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  flex: 1;
  margin-right: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-sticky-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.room-sticky-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.room-sticky-btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  border: none;
}

.room-sticky-btn.primary:hover {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(198, 116, 61, 0.3);
  color: white;
}

.room-sticky-btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(60, 42, 32, 0.2);
}

.room-sticky-btn.secondary:hover {
  background: rgba(60, 42, 32, 0.05);
  border-color: var(--accent);
  color: var(--accent);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .room-sticky-header {
    padding: 0.75rem 0;
  }
  
  .room-sticky-content {
    padding: 0 0.75rem;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }
  
  .room-sticky-title {
    font-size: 1rem;
    margin-right: 0;
    text-align: center;
  }
  
  .room-sticky-actions {
    justify-content: center;
  }
  
  .room-sticky-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .room-sticky-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .room-sticky-btn {
    width: 100%;
    text-align: center;
  }
}

/* 管理页面固定顶部栏 */
.management-sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(60, 42, 32, 0.1);
  padding: 1rem 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 20px rgba(31, 21, 15, 0.1);
}

.management-sticky-header.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.management-sticky-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1rem;
}

.management-sticky-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  flex: 1;
  margin-right: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.management-sticky-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.management-sticky-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.management-sticky-btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  border: none;
}

.management-sticky-btn.primary:hover {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(198, 116, 61, 0.3);
  color: white;
}

.management-sticky-btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(60, 42, 32, 0.2);
}

.management-sticky-btn.secondary:hover {
  background: rgba(60, 42, 32, 0.05);
  border-color: var(--accent);
  color: var(--accent);
}

/* 管理页面固定栏响应式设计 */
@media (max-width: 768px) {
  .management-sticky-header {
    padding: 0.75rem 0;
  }
  
  .management-sticky-content {
    padding: 0 0.75rem;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }
  
  .management-sticky-title {
    font-size: 1rem;
    margin-right: 0;
    text-align: center;
  }
  
  .management-sticky-actions {
    justify-content: center;
  }
  
  .management-sticky-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

/* 仪表盘统计卡片绝对居中 */
.admin-dashboard .card-body {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  min-height: 120px;
}

.admin-dashboard .card-body h2,
.admin-dashboard .card-body h3,
.admin-dashboard .card-body p {
  margin: 0;
  width: 100%;
}

.admin-dashboard .card-body h2 {
  margin-bottom: 0.5rem;
}

.admin-dashboard .card-body p {
  margin-top: 0.25rem;
}

/* 图片基础样式 */
img {
  max-width: 100%;
  height: auto;
}

/* 性能优化 */
* {
  box-sizing: border-box;
}

/* 减少重绘和重排 */
.room-teaser,
.stay-card {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* 优化字体加载 - 通过Google Fonts的font-display参数优化 */

/* 关键CSS内联优化 */
.hero-title,
.hero-subtext,
.hero-kicker {
  font-display: swap;
}

/* 减少动画对性能的影响 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 480px) {
  .management-sticky-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .management-sticky-btn {
    width: 100%;
    text-align: center;
  }
}

/* 视差效果 */
.parallax-element {
  transition: transform 0.3s ease-out;
  will-change: transform;
}

/* 页面标题区域样式 */
.page-header {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(1rem, 3vw, 2rem);
}

.page-title-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.page-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--ink-muted);
  margin-bottom: 0;
  font-weight: 400;
  line-height: 1.5;
}

/* Room Detail Page Styles */
.room-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.room-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

.room-info {
  padding: 1rem 0;
}

.room-details dt {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.room-details dd {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

@media (max-width: 991.98px) {
  .room-image-container {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* 推荐房源样式 - 统一卡片样式 */
.room-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(60, 42, 32, 0.12);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(31, 21, 15, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.room-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 70px rgba(31, 21, 15, 0.1);
}

.room-card__media {
  display: block;
  overflow: hidden;
  position: relative;
}

.room-card__media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  filter: saturate(90%);
}

.room-card:hover .room-card__media img {
  transform: scale(1.02);
}

.room-card__body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 1rem;
}

.room-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.4;
}

.room-card__description {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.room-card__meta {
  margin-bottom: 1rem;
}

.room-card__meta-item {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.room-card__meta-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.room-card__meta-value {
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.5;
}

.room-card__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.room-card__actions .btn-ink,
.room-card__actions .btn-outline-ink {
  flex: 1;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  border-radius: 8px;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* 设施卡片样式 */
.facility-card {
  padding: 2.5rem 1.5rem;
  background: var(--paper);
  border-radius: 1.5rem;
  border: 1px solid rgba(60, 42, 32, 0.08);
  box-shadow: 0 8px 25px rgba(31, 21, 15, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.facility-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #d4854a);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(31, 21, 15, 0.15);
  border-color: rgba(198, 116, 61, 0.2);
}

.facility-card:hover::before {
  opacity: 1;
}

.facility-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--accent), #d4854a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  box-shadow: 0 8px 20px rgba(198, 116, 61, 0.3);
  transition: all 0.3s ease;
}

.facility-card:hover .facility-icon {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(198, 116, 61, 0.4);
}

.facility-card h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.facility-card p {
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 0;
}


/* 预订信息卡片样式 */
.booking-info-card {
  background: var(--paper);
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(60, 42, 32, 0.1);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

/* Airbnb参考部分样式 */
.airbnb-reference {
  background: linear-gradient(135deg, rgba(255, 90, 95, 0.1), rgba(255, 90, 95, 0.05));
  border: 2px solid rgba(255, 90, 95, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.airbnb-reference h3 {
  color: #ff5a5f;
  font-weight: 600;
}

.airbnb-reference p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.booking-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(60, 42, 32, 0.02);
  border-radius: 0.75rem;
  border: 1px solid rgba(60, 42, 32, 0.05);
}

.booking-item h4 {
  color: var(--accent);
  font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .facility-card {
    padding: 1.5rem 1rem;
  }
  
  .booking-info-card {
    padding: 2rem 1.5rem;
  }
  
  .booking-item {
    padding: 1rem;
  }
  
  .airbnb-reference {
    padding: 1.5rem;
  }
}

/* 房间描述样式 - 保留换行 */
.room-description {
  white-space: pre-line;
  line-height: 1.7;
}

/* 房源卡片中的房间描述限制为2行 */
.room-teaser__desc.room-description {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
}

/* 房间详情页面操作按钮样式 */
.room-detail-action-btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  border-radius: 12px;
  padding: 1rem 2.5rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  box-shadow: 0 4px 15px rgba(198, 116, 61, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.room-detail-action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.room-detail-action-btn:hover::before {
  left: 100%;
}

.room-detail-action-btn:hover,
.room-detail-action-btn:focus {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(198, 116, 61, 0.4);
  text-decoration: none;
}

.room-detail-action-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(198, 116, 61, 0.3);
}

/* 标题字体样式类 */
.title-serif {
  font-family: var(--serif);
}

/* 透明按钮样式 - 用于卡片下方的查看全部按钮 */
.btn-transparent {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(31, 21, 15, 0.2);
  border-radius: 12px;
  padding: 0.75rem 2rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-transparent:hover,
.btn-transparent:focus {
  background: rgba(31, 21, 15, 0.05);
  border-color: rgba(31, 21, 15, 0.3);
  color: var(--ink);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 15px rgba(31, 21, 15, 0.1);
  text-decoration: none;
  animation: shimmer 0.8s ease-in-out;
}

@keyframes shimmer {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

.btn-transparent:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(31, 21, 15, 0.1);
}

/* 后台管理表格中的房间名字链接样式 */
.admin-table a.text-dark {
  color: var(--ink) !important;
  transition: color 0.2s ease;
}

.admin-table a.text-dark:hover {
  color: var(--accent) !important;
  text-decoration: underline !important;
}
