:root {
  color-scheme: light dark;
  --page: #f2f5f2;
  --surface: #fbfcfb;
  --surface-strong: #ffffff;
  --ink: #16231f;
  --muted: #68746e;
  --line: #dce4df;
  --green: #114d3c;
  --green-soft: #e1eee8;
  --coral: #cf604c;
  --shadow: 0 22px 70px rgba(23, 55, 44, 0.14);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; min-height: 100dvh; color: var(--ink); background: var(--page); font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }

.site-header { position: sticky; top: 0; z-index: 3; height: 68px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); }
.header-inner { width: min(1240px, calc(100% - 64px)); height: 100%; margin: auto; display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 750; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #f4faf7; background: var(--green); font-weight: 800; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.nav-link { padding: 22px 0; border: 0; color: var(--muted); background: transparent; white-space: nowrap; }
.nav-link.active, .nav-link:hover { color: var(--green); }
.header-member { display: flex; align-items: center; gap: 13px; }
.points-mini { color: var(--muted); font-size: 13px; }
.member-button { min-height: 38px; padding: 0 17px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface-strong); }

.hero { position: relative; min-height: 510px; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 30, 23, 0.92) 0%, rgba(8, 30, 23, 0.68) 42%, rgba(8, 30, 23, 0.08) 76%); }
.hero-inner { position: relative; z-index: 1; width: min(1240px, calc(100% - 64px)); min-height: 510px; margin: auto; display: flex; align-items: center; }
.hero-copy { max-width: 570px; color: #f4f8f5; }
.hero-copy h1 { max-width: 520px; margin: 0; font-size: clamp(48px, 5.2vw, 72px); line-height: 0.98; letter-spacing: -0.06em; }
.hero-copy p { max-width: 470px; margin: 24px 0 0; color: rgba(244, 248, 245, 0.8); font-size: 18px; line-height: 1.7; }

.search-shell { position: relative; z-index: 2; width: min(1240px, calc(100% - 64px)); margin: -58px auto 0; }
.search-panel { display: grid; grid-template-columns: 1.1fr 1.2fr 1fr auto; align-items: end; gap: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-strong); box-shadow: var(--shadow); }
.search-field { min-width: 0; padding: 0 24px; border: 0; border-right: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; }
.search-field:first-child { padding-left: 6px; }
.search-label { display: block; margin-bottom: 9px; color: var(--muted); font-size: 12px; }
.search-value { display: block; font-size: 19px; font-weight: 700; }
.primary-button, .secondary-button { min-height: 50px; padding: 0 24px; border-radius: 12px; font-weight: 700; white-space: nowrap; transition: transform 160ms ease, background 160ms ease; }
.primary-button { border: 1px solid var(--green); color: #f7fbf9; background: var(--green); }
.secondary-button { border: 1px solid var(--line); color: var(--green); background: var(--surface-strong); }
.primary-button:active, .secondary-button:active { transform: scale(0.98); }

.content { width: min(1240px, calc(100% - 64px)); margin: 54px auto 80px; }
.dashboard { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(310px, 0.7fr); gap: 30px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: 29px; letter-spacing: -0.03em; }
.section-heading p { margin: 7px 0 0; color: var(--muted); }
.text-button { border: 0; color: var(--green); background: transparent; font-weight: 650; }
.hotel-list { display: grid; grid-template-columns: 1.16fr 0.84fr; gap: 20px; }
.hotel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-strong); }
.hotel img { display: block; width: 100%; height: 220px; object-fit: cover; }
.hotel:first-child img { height: 270px; }
.hotel-body { padding: 21px; }
.hotel-top, .hotel-price { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.hotel h3 { margin: 0; font-size: 21px; }
.hotel-meta { margin: 9px 0 18px; color: var(--muted); font-size: 14px; }
.benefits { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.benefit { padding: 7px 10px; border-radius: 9px; color: var(--green); background: var(--green-soft); font-size: 12px; }
.amount { color: var(--coral); font-size: 26px; font-weight: 780; }
.amount small { color: var(--muted); font-size: 12px; font-weight: 400; }
.hotel-price .primary-button { min-height: 42px; padding: 0 18px; }

.member-panel { align-self: start; padding: 26px; border-radius: var(--radius); color: #eff7f3; background: linear-gradient(145deg, #113e33, #1e6552); box-shadow: var(--shadow); }
.member-panel h2 { margin: 5px 0 4px; font-size: 28px; }
.member-panel p { margin: 0; color: rgba(239, 247, 243, 0.7); font-size: 13px; }
.member-level { color: #d4c995; font-size: 12px; letter-spacing: 0.12em; }
#web-registration { display: grid; gap: 12px; margin-top: 18px; }
#web-registration input:not([type="checkbox"]) { min-height: 42px; padding: 0 12px; border: 1px solid rgb(255 255 255 / 28%); border-radius: 8px; background: rgb(255 255 255 / 10%); color: #fff; font: inherit; }
#web-registration input::placeholder { color: rgb(255 255 255 / 62%); }
#web-registration label { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.5; }
.member-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 31px 0; padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.12); border-bottom: 1px solid rgba(255,255,255,0.12); }
.member-stats strong { display: block; font-size: 23px; }
.member-stats span { color: rgba(239,247,243,0.62); font-size: 11px; }
.member-actions { display: grid; gap: 10px; }
.member-link { display: flex; justify-content: space-between; padding: 12px 0; border: 0; color: #eff7f3; background: transparent; text-align: left; }
.order-brief { margin-top: 20px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-strong); }
.order-brief h3 { margin: 0 0 8px; }
.order-brief p { margin: 0; color: var(--muted); line-height: 1.7; }
.web-services { display: grid; grid-template-columns: 0.76fr 1.24fr; gap: 30px; margin-top: 44px; padding: 32px; border-radius: var(--radius); color: #eef7f2; background: linear-gradient(135deg, #123f34, #1d6651); }
.service-intro > span { color: #d4c995; font-size: 12px; letter-spacing: 0.08em; }
.service-intro h2 { margin: 10px 0; font-size: 31px; }
.service-intro p { max-width: 360px; margin: 0 0 24px; color: rgba(238,247,242,0.72); line-height: 1.7; }
.service-intro .primary-button { border-color: #eef7f2; color: var(--green); background: #eef7f2; }
.service-catalog { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.web-service-item { min-height: 98px; padding: 18px; border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; color: #eef7f2; background: rgba(255,255,255,0.08); text-align: left; }
.web-service-item strong { display: block; margin-bottom: 7px; font-size: 16px; }
.web-service-item span { color: rgba(238,247,242,0.64); font-size: 12px; }
.web-mall { display:grid; grid-template-columns:.7fr 1.3fr; gap:32px; margin-top:28px; padding:32px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface-strong); }
.mall-copy > span { color:var(--green); font-size:12px; font-weight:700; }.mall-copy h2 { margin:10px 0 12px; max-width:12ch; font-size:34px; line-height:1.05; }.mall-copy p { color:var(--muted); line-height:1.7; }.mall-copy > div { display:flex; gap:10px; margin-top:24px; }.mall-products { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }.mall-products article { overflow:hidden; display:grid; grid-template-columns:110px 1fr; border:1px solid var(--line); border-radius:13px; background:var(--surface); }.mall-products img { width:110px; height:110px; object-fit:cover; }.mall-products article > div { padding:13px; }.mall-products span { color:var(--green); font-size:10px; }.mall-products h3 { margin:8px 0; font-size:14px; }.mall-products strong { color:var(--coral); }

.booking-layer { position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; padding: 28px; background: rgba(9, 22, 17, 0.58); }
.booking-dialog { width: min(760px, 100%); max-height: calc(100dvh - 56px); overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-strong); box-shadow: var(--shadow); }
.dialog-header { display: grid; grid-template-columns: 180px 1fr auto; gap: 20px; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.dialog-header img { width: 180px; height: 116px; border-radius: 12px; object-fit: cover; }
.dialog-header h2 { margin: 0 0 8px; }
.dialog-header p { margin: 0; color: var(--muted); }
.close-button { align-self: start; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); }
.dialog-content { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding: 24px; }
.info-block h3 { margin: 0 0 16px; }
.info-line { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; color: var(--muted); }
.info-line strong { color: var(--ink); }
.points-switch { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding: 16px; border-radius: 12px; background: var(--green-soft); }
.switch { width: 46px; height: 26px; padding: 3px; border: 0; border-radius: 99px; background: #aebbb5; }
.switch::after { content: ""; display: block; width: 20px; height: 20px; border-radius: 50%; background: #f8fbf9; transition: transform 180ms ease; }
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(20px); }
.dialog-footer { display: flex; align-items: center; justify-content: flex-end; gap: 24px; padding: 18px 24px; border-top: 1px solid var(--line); }
.dialog-total span { display: block; color: var(--muted); font-size: 12px; }
.dialog-total strong { color: var(--coral); font-size: 28px; }

.state-view { min-height: calc(100dvh - 68px); display: grid; place-items: center; padding: 60px; text-align: center; }
.state-box { width: min(520px, 100%); padding: 42px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-strong); }
.state-box h1 { margin: 0 0 12px; }
.state-box p { margin: 0 0 24px; color: var(--muted); line-height: 1.7; }
.skeleton { display: grid; gap: 13px; }
.skeleton span { display: block; height: 18px; border-radius: 7px; background: var(--line); animation: pulse 1.2s ease-in-out infinite alternate; }
.skeleton span:first-child { width: 58%; height: 28px; }
.skeleton span:last-child { width: 76%; }
.toast { position: fixed; right: 28px; bottom: 28px; z-index: 7; min-width: 260px; padding: 15px 18px; border-radius: 12px; color: #f5faf7; background: #153c31; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@keyframes pulse { to { opacity: 0.45; } }
@media (prefers-color-scheme: dark) {
  :root { --page: #0f1714; --surface: #151f1b; --surface-strong: #19251f; --ink: #eef5f1; --muted: #a2b0a9; --line: #314139; --green: #3c9b7a; --green-soft: #243b32; --coral: #ed8a76; --shadow: 0 22px 70px rgba(0,0,0,0.32); }
  .hero::after { background: linear-gradient(90deg, rgba(5, 18, 13, 0.94), rgba(5, 18, 13, 0.68) 42%, rgba(5, 18, 13, 0.12) 76%); }
  .primary-button { color: #10251d; }
}
@media (max-width: 1000px) {
  body { min-width: 0; }
  .header-inner, .hero-inner, .search-shell, .content { width: min(100% - 32px, 920px); }
  .header-inner { grid-template-columns: 132px 1fr auto; gap: 14px; }
  .main-nav { justify-content: center; gap: 14px; }
  .nav-link { font-size: 13px; }
  .points-mini { display: none; }
  .hero, .hero-inner { min-height: 440px; }
  .hero-copy h1 { font-size: 52px; }
  .search-panel { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .search-field:nth-child(2) { border-right: 0; }
  .search-panel .primary-button { margin-left: 24px; }
  .dashboard { grid-template-columns: 1fr; }
  .hotel-list { grid-template-columns: 1fr 1fr; }
  .hotel:first-child img, .hotel img { height: 210px; }
  .member-panel { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; }
  .member-stats { margin: 0; }
  .member-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .web-services { grid-template-columns: 1fr; }
  .web-mall { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* 浏览器缩放等价于更窄的 CSS 视口，所有网格和文案必须可收缩、可换行。 */
img { max-width: 100%; }
.header-inner > *, .hero-inner > *, .search-panel > *, .dashboard > *, .hotel-list > *,
.member-panel > *, .web-services > *, .service-catalog > *, .web-mall > *, .mall-products > *,
.dialog-header > *, .dialog-content > * { min-width: 0; }
h1, h2, h3, p, span, strong, button, label { overflow-wrap: anywhere; }
.main-nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.primary-button, .secondary-button { min-width: 0; height: auto; padding-block: 10px; white-space: normal; }
.section-heading, .hotel-top, .hotel-price, .dialog-footer { flex-wrap: wrap; gap: 12px; }
.toast { left: 16px; right: 16px; min-width: 0; max-width: 420px; margin-left: auto; }

@media (max-width: 760px) {
  .site-header { height: auto; }
  .header-inner { width: calc(100% - 28px); min-height: 104px; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 4px 12px; padding-block: 10px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 20px; }
  .nav-link { min-height: 40px; padding: 8px 0; }
  .header-member { justify-self: end; }
  .hero, .hero-inner { min-height: clamp(360px, 68dvh, 440px); }
  .hero-inner, .search-shell, .content { width: calc(100% - 28px); }
  .hero-copy h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero-copy p { font-size: clamp(15px, 4vw, 18px); }
  .search-shell { margin-top: -36px; }
  .search-panel { grid-template-columns: 1fr; gap: 0; padding: 16px; }
  .search-field, .search-field:first-child { padding: 13px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .search-panel .primary-button { width: 100%; margin: 14px 0 0; }
  .content { margin-top: 38px; }
  .section-heading { align-items: flex-start; }
  .hotel-list, .member-panel, .web-services, .web-mall { grid-template-columns: 1fr; }
  .member-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .member-actions { grid-column: auto; grid-template-columns: 1fr; }
  .web-services, .web-mall { padding: 22px; }
  .booking-layer { padding: 12px; }
  .booking-dialog { max-height: calc(100dvh - 24px); }
  .dialog-header { grid-template-columns: 112px minmax(0, 1fr) auto; gap: 12px; padding: 14px; }
  .dialog-header img { width: 112px; height: 88px; }
  .dialog-content { grid-template-columns: 1fr; padding: 18px; }
  .dialog-footer { padding: 14px 18px; }
  .state-view { min-height: calc(100dvh - 104px); padding: 20px; }
  .state-box { padding: 28px 20px; }
}

@media (max-width: 520px) {
  .brand { font-size: 16px; }
  .member-button { padding-inline: 10px; }
  .points-mini { display: none; }
  .service-catalog, .mall-products { grid-template-columns: 1fr; }
  .mall-copy > div { flex-wrap: wrap; }
  .mall-products article { grid-template-columns: 92px minmax(0, 1fr); }
  .mall-products img { width: 92px; height: 100%; min-height: 100px; }
  .dialog-header { grid-template-columns: minmax(0, 1fr) auto; }
  .dialog-header img { grid-column: 1 / -1; width: 100%; height: 150px; }
  .dialog-footer { align-items: stretch; flex-direction: column; }
  .dialog-footer .primary-button { width: 100%; }
  .info-line, .points-switch { align-items: flex-start; flex-wrap: wrap; }
  .toast { bottom: 16px; }
}
