*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #e8e7eb;
  color: #111;
}

.page-wrapper {
  
  margin: 0 auto;
  background-color: #e8e7eb;
}

.site-header {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
}

.brand {
  font-weight: 600;
  font-size: 35px;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  font-size: 18px;
}

.main-nav a {
  text-decoration: none;
  color: #111;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background-color: #111;
  transition: width 0.2s ease;
  
}

.btn-primary{
    background-color: #111;
    font-size: 14px;
    color: #fff;
    padding: 20px 28px;
    border-radius: 16px 16px 0 0 ;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.main-nav a:hover::after {
  width: 100%;
}


.btn-secondary {
  border-radius: 999px;
  padding: 10px 28px;
  font-size: 14px;
  border: 1px solid #111;
  background-color: #111;
  color: #f8f8f8;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary {
  background-color: transparent;
  color: #111;
}

.hero {
  margin: 32px 32px 48px;
  background-color: #dedde1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-image img {
  object-fit: cover;
  width: 100%;
  max-height: 500px;
}

.hero-text {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  padding: 40px 56px 56px;
  gap: 32px;
}

.hero-text h1 {
  font-size: 54px;
  line-height: 1.02;
  font-weight: 600;
}

.hero-text p {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

/* Home page layout */
.home-hero {
  margin: 32px 32px 64px;
  position: relative;
}

.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  grid-template-rows: auto 1fr; /* 第二行占满剩余高度，方便文案贴底部 */
  grid-template-areas:
    "title title"
    "copy  image";
  align-items: center;
  gap: 40px;
  padding: 0px 48px 56px 56px;
}

.home-hero-title {
  position: absolute;
  top: 32px;
  left: 32px;
  grid-area: title;
  font-size: clamp(48px, 5.1vw, 120px); /* 根据窗口宽度缩放，保持铺满 */
  line-height: 0.95;
  font-weight: 600;
  white-space: nowrap; /* 桌面端不换行，一直铺满 */
  z-index: 3; /* 文字浮在图片之上，不会被图片半透明覆盖 */
}

.home-hero-image {
  grid-area: image;
  
  object-fit: cover;
  object-position: center;
  
}

.home-hero-image img {
  width: 100%;
  height: 80vh;
  display: block;
  object-fit: cover;
  opacity: 0.7; /* 图片透明度，不影响文字 */
}

.home-hero-copy {
  grid-area: copy;
  max-width: 420px;
  font-size: 15px;
  line-height: 1.7;
  align-self: end; /* 让左侧文案区域靠底部对齐 */
}

.home-hero-button {
  margin-top: 18px;
}

.home-intro {
  padding: 16px 56px 32px;
}

.home-intro-text {
  max-width: 720px;
}

.home-intro-text h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.home-intro-text p {
  font-size: 16px;
  color: #333;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Split sections */
.home-section-split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  padding: 32px 56px 64px;
  align-items: center;
}
.home-section-image{
    display: flex;
    justify-content: center;
    align-items: center;

}
.home-section-image img {

  width: 635px;
  height: 850px;
  display: block;
  object-fit: cover;
}

/* 左文右图布局时，左侧文字右对齐 */
.home-section-split > .home-section-content:first-child {
  text-align: left;
  padding-left: 200px;
}

.home-section-content h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

.home-section-large-title {
  position: absolute;
  top: 32px;
  left: 32px;
  right: 56px;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}

.home-section-large-title-track {
  display: inline-block;
  font-size: 110px;
  line-height: 0.9;
  font-weight: 600;
  animation: section-title-marquee 18s linear infinite;
}

.home-section-large-title-track span {
  display: inline-block;
}

.home-section-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 20px;
}

/* Multi-image gallery section (type4) */
.home-section-images {
  padding: 40px 32px 64px;
  text-align: center;
}

.home-section-images-title {
  font-size: 32px;
  margin-bottom: 24px;
  font-weight: 600;
}

.home-section-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  max-width: 95%;
  margin-left: auto;
  margin-right: auto;
}

.home-section-images-item {
  overflow: hidden;
  width: 100%;
}

.home-section-images-item img {
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.home-section-images-item:hover img {
  transform: scale(1.05);
}

.home-section-images-button {
  margin-top: 8px;
}

.home-section-personalized {
  background-color: #dedde1;
}

.home-section-inside {
  background-color: #dedde1;
}

@keyframes section-title-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Generic page title */
.page-title-large {
  font-size: 72px;
  margin-bottom: 16px;
}

/* Booking section */
.home-booking {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 40px;
  padding: 40px 56px 64px;
  align-items: flex-start;
}


.home-booking-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  gap:35px;
}

.home-booking-left h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

.home-booking-left p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.home-booking-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.home-booking-right {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 24px 28px 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.home-booking-heading {
  font-size: 16px;
  margin-bottom: 16px;
}

.home-booking-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.home-booking-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px 14px 0;
  border-top: 1px solid #e0e0e0;
}

.home-booking-title {
  font-size: 14px;
  font-weight: 500;
}

.home-booking-meta {
  font-size: 12px;
  color: #666;
}

.home-booking-btn {
  border-radius: 999px;
  padding: 8px 16px;
  border: none;
  background-color: #111;
  color: #f8f8f8;
  font-size: 11px;
  cursor: pointer;
}

/* Social section */
.home-social {
  padding: 40px 32px 64px;
  text-align: center;
}

.home-social h2 {
  font-size: 32px;
  margin-bottom: 24px;
}

.home-social-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.home-social-grid img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.home-social-button {
  margin-top: 8px;
}

/* Contact section */
.home-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding: 40px 56px 64px;
}

.home-contact-left h2 {
  font-size: 80px;
  margin-bottom: 16px;
}

.home-contact-left p {
  font-size: 18px;
  line-height: 1.7;
  max-width: 420px;
}

.home-contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.home-contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.home-contact-field label {
  color: #444;
}

.home-contact-field input,
.home-contact-field textarea {
  border-radius: 10px;
  border: 1px solid #bbb;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  background-color: #f8f8f8;
}

.home-contact-submit {
  align-self: flex-start;
  margin-top: 8px;
}

/* Standalone contact form section */
.contact-form-section {
  padding: 0 56px 64px;
}

.contact-form-only {
  max-width: 640px;
  
}

.contact-info {
  margin-top: 16px;
  font-size: 15px;
  
}

.services-grid-section {
  padding: 0 32px 48px;
}

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

.service-card {
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e8e7eb;
}

.service-card:nth-child(2n) {
  border-right: none;
}

.service-card-image img {
  width: 835px;
  height: 835px;
  display: block;
  object-fit: cover;
}

.service-card-info {
  padding: 20px 24px 28px;
  background-color: #e8e7eb;
  width: 100%;
}

.service-card-info h3 {
  font-size: 26px;
  margin-bottom: 6px;
}

.service-price {
  font-size: 13px;
  color: #444;
}

.placeholder-section {
  padding: 32px 56px 56px;
}

.placeholder-section h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

.placeholder-section p {
  font-size: 15px;
  color: #444;
}

.site-footer {
 display: flex;
 justify-content: center;
 align-items: center;
  padding: 24px 48px 40px;
  font-size: 13px;
  color: #555;
}

.service-detail-main {
  padding: 16px 32px 40px;
}

.service-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 64px;
  background-color: #dedde1;
  overflow: hidden;
  margin-bottom: 32px;
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-detail-info {
  padding: 40px 40px 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-detail-info h1 {
  font-size: 36px;
}

.service-detail-price {
  font-size: 16px;
  color: #444;
}

.service-detail-short {
  font-size: 15px;
  color: #333;
}

.service-detail-body {
  border-radius: 32px;
  padding: 28px 32px 32px;
}

.service-detail-body h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.service-detail-body p {
  font-size: 15px;
  color: #333;
  line-height: 1.7;
}

/* Cart page */
.cart-page {
  padding: 40px 56px 80px;
}

.cart-main {
  max-width: 640px;
}

.cart-list {
  list-style: none;
  margin: 24px 0 16px;
  padding: 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #d2d4da;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-title {
  font-size: 15px;
}

.cart-item-price {
  font-size: 13px;
  color: #555;
}

.cart-total {
  margin-top: 12px;
  font-size: 15px;
}

.cart-empty-text {
  margin-top: 16px;
  font-size: 15px;
  color: #444;
}

.cart-continue-link {
  display: inline-block;
  margin-top: 48px;
  font-size: 14px;
  color: #111;
  text-decoration: none;
  position: relative;
  padding-bottom: 6px;
}

.cart-continue-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: #111;
}

/* Admin shell & layout */
.admin-shell {
  background-color: #f3f5f9;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 220px;
  background-color: #1f2a3a;
  color: #f5f7fb;
  display: flex;
  flex-direction: column;
  padding-top: 20px;
}

.admin-logo {
  font-weight: 600;
  font-size: 20px;
  padding: 0 20px 20px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-nav a {
  padding: 10px 24px;
  font-size: 14px;
  color: #c5cedd;
  text-decoration: none;
  display: block;
}

.admin-nav a:hover {
  background-color: #263349;
  color: #ffffff;
}

.admin-nav a.active {
  background-color: #32425a;
  color: #ffffff;
}

.admin-main-wrapper {
  flex: 1;
}

.admin-main {
  padding: 24px 48px 40px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.admin-actions {
  display: flex;
  gap: 12px;
}

.admin-form-section {
  margin-top: 16px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-form h2 {
  font-size: 18px;
  margin-top: 8px;
}

.admin-form label {
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-form input,
.admin-form textarea {
  border-radius: 10px;
  border: 1px solid #bbb;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.flash-messages {
  margin-bottom: 16px;
}

.flash {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 6px;
}

.flash.success {
  background-color: #d3f7da;
}

.flash.danger {
  background-color: #ffd6d6;
}

.flash.info {
  background-color: #dde9ff;
}

.admin-preview .preview-card {
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid #ccc;
  font-size: 14px;
}

.admin-preview p + p {
  margin-top: 4px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.admin-table thead {
  background-color: #f3f5f9;
}

.admin-table th,
.admin-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e2e4ec;
  text-align: left;
}

.admin-table th {
  font-weight: 500;
  color: #555;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.btn-table {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  border: none;
  background-color: #3182ce;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.btn-table:hover {
  background-color: #2563a9;
}

/* Admin modal */
.admin-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.admin-modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.35);
}

.admin-modal-dialog {
  position: relative;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  background-color: #ffffff;
  border-radius: 18px;
  padding: 20px 24px 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
  overflow-y: auto;
  z-index: 1201;
}

.admin-modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    gap: 12px;
    height: auto;
    padding: 16px 16px 12px;
    align-items: flex-start;
  }

  .home-hero-title {
    font-size: 36px;
    white-space: normal; /* 小屏允许换行，避免溢出 */
  }

  .main-nav {
    gap: 16px;
    flex-wrap: wrap;
  }

  .hero {
    margin: 16px;
  }

  .home-intro {
    padding: 8px 20px 24px;
  }

  .home-intro-text h2 {
    font-size: 24px;
  }

  .hero-text {
    grid-template-columns: 1fr;
    padding: 24px 20px 28px;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .placeholder-section {
    padding: 24px 20px 28px;
  }

  .services-grid-section {
    padding: 0 16px 32px;
  }

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

  .service-card {
    border-right: none;
    border-bottom: 1px solid #e8e7eb;
  }

  .service-detail-main {
    padding: 16px;
  }

  .service-detail-hero {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .service-detail-info {
    padding: 24px 20px 28px;
  }

  .admin-main {
    padding: 16px 20px 24px;
  }

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

  .home-section-images {
    padding: 24px 16px 40px;
  }

  .home-section-images-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .home-section-images-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
  }
}

/* Toast 通知样式 */
.toast-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  pointer-events: none;
}

.toast {
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background-color: #111;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  pointer-events: auto;
}

.toast-success {
  background-color: #10b981;
}

.toast-error {
  background-color: #ef4444;
}

.toast-show {
  opacity: 1;
  transform: scale(1);
}

.toast-hide {
  opacity: 0;
  transform: scale(0.9);
}


