:root {
  --xy-ink: #123f47;
  --xy-muted: #61777a;
  --xy-teal: #087f82;
  --xy-teal-dark: #05666a;
  --xy-coral: #e85f47;
  --xy-paper: #fffdf8;
  --xy-cream: #f7f2e8;
  --xy-mint: #e6f2ec;
  --xy-line: #d9e4df;
  --xy-shadow: 0 18px 45px rgba(18, 63, 71, .12);
  --xy-radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--xy-ink); background: var(--xy-cream); font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; font-size: 16px; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--xy-coral); outline-offset: 3px; }
.xy-skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; color: #fff; background: var(--xy-ink); border-radius: 10px; }
.xy-skip-link:focus { top: 12px; }
.xy-page { width: min(1180px, 100%); min-height: 100vh; margin: 0 auto; background: var(--xy-paper); box-shadow: 0 0 50px rgba(18, 63, 71, .08); }
.xy-header { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 10px 20px; background: rgba(255, 253, 248, .96); border-bottom: 1px solid rgba(18, 63, 71, .08); }
.xy-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-family: STKaiti, KaiTi, serif; font-size: 22px; font-weight: 700; }
.xy-brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; }
.xy-header nav { display: flex; align-items: center; gap: 4px; }
.xy-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; font-weight: 700; border-radius: 999px; }
.xy-header nav a:hover, .xy-header nav a:active { background: var(--xy-mint); }
.xy-hero { position: relative; min-height: 610px; overflow: hidden; background: var(--xy-ink); }
.xy-hero-art { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(160deg, #dff2e7 0%, #83cbbb 45%, #176e72 100%); }
.xy-hero-art img { position: absolute; z-index: 2; right: 8%; top: 12%; width: 108px; height: 108px; object-fit: contain; padding: 14px; background: rgba(255, 253, 248, .9); border-radius: 28px; box-shadow: var(--xy-shadow); }
.xy-hero-sun { position: absolute; right: 19%; top: 15%; width: 150px; height: 150px; background: #ffd889; border-radius: 50%; box-shadow: 0 0 0 28px rgba(255, 216, 137, .2); }
.xy-hero-shore { position: absolute; left: -10%; right: -10%; bottom: 20%; height: 45%; background: var(--xy-teal-dark); border-radius: 50% 50% 0 0 / 30% 30% 0 0; transform: rotate(-3deg); opacity: .62; }
.xy-hero-water { position: absolute; left: -12%; width: 124%; height: 120px; background: rgba(255,255,255,.2); border-radius: 50%; }
.xy-hero-water-one { bottom: 9%; transform: rotate(4deg); }
.xy-hero-water-two { bottom: -3%; transform: rotate(-3deg); opacity: .55; }
.xy-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 44, 50, .05) 28%, rgba(9, 44, 50, .82) 100%); }
.xy-image-label { position: absolute; left: 18px; top: 18px; z-index: 2; padding: 6px 11px; color: #9f392b; background: rgba(255, 253, 248, .94); border: 1px solid rgba(232, 95, 71, .5); border-radius: 999px; font-size: 12px; font-weight: 700; }
.xy-hero-copy { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 38px; color: #fff; }
.xy-hero-copy h1 { max-width: 650px; margin: 8px 0 12px; font-family: STKaiti, KaiTi, serif; font-size: clamp(38px, 8vw, 66px); line-height: 1.12; letter-spacing: .02em; text-wrap: balance; }
.xy-mobile-line { display: block; }
.xy-hero-copy > p:not(.xy-eyebrow) { margin: 0 0 22px; font-size: 17px; }
.xy-eyebrow { margin: 0 0 6px; color: var(--xy-teal); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.xy-hero .xy-eyebrow { color: #d8f3e8; }
.xy-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; color: #fff; background: var(--xy-teal); border: 1px solid var(--xy-teal); border-radius: 999px; font-weight: 800; box-shadow: 0 8px 20px rgba(8, 127, 130, .2); transition: background-color .2s ease, box-shadow .2s ease; }
.xy-button:hover, .xy-button:active { background: var(--xy-teal-dark); box-shadow: 0 5px 14px rgba(8, 127, 130, .24); }
.xy-button-secondary { color: var(--xy-teal); background: transparent; box-shadow: none; }
.xy-section, .xy-main { padding: 44px 20px; }
.xy-section-heading { margin-bottom: 20px; }
.xy-section-heading h2, .xy-page-intro h1 { margin: 0; font-family: STKaiti, KaiTi, serif; font-size: 30px; line-height: 1.3; }
.xy-category-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.xy-category-card { display: flex; flex-direction: column; justify-content: center; min-height: 104px; padding: 20px; border: 1px solid var(--xy-line); border-radius: 18px; background: #fff; }
.xy-category-card span { font-size: 19px; font-weight: 800; }
.xy-category-card small { margin-top: 3px; color: var(--xy-muted); font-size: 14px; }
.xy-category-card.is-active { background: var(--xy-mint); border-color: rgba(8, 127, 130, .35); }
.xy-featured { padding-top: 8px; }
.xy-package-card { overflow: hidden; background: #fff; border: 1px solid var(--xy-line); border-radius: var(--xy-radius); box-shadow: var(--xy-shadow); }
.xy-package-card > a { display: block; }
.xy-package-card > a:active { background: #f7fbf9; }
.xy-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--xy-mint); }
.xy-card-media img { width: 100%; height: 100%; object-fit: cover; }
.xy-brand-visual { position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #f7f2e8, #bde2d4 55%, #5db8ad); }
.xy-brand-visual::before, .xy-brand-visual::after { content: ""; position: absolute; width: 70%; height: 42%; border-radius: 50%; border: 3px solid rgba(255,255,255,.55); }
.xy-brand-visual::before { left: -18%; bottom: -8%; transform: rotate(10deg); }
.xy-brand-visual::after { right: -22%; top: -8%; background: rgba(255,216,137,.42); }
.xy-brand-visual .xy-brand-sun { position: absolute; right: 14%; top: 15%; width: 82px; height: 82px; background: #ffd889; border-radius: 50%; }
.xy-brand-visual .xy-brand-water { position: absolute; left: -8%; right: -8%; bottom: 12%; height: 30%; background: rgba(8,127,130,.35); border-radius: 50%; transform: rotate(-5deg); }
.xy-card-media.xy-brand-visual img, .xy-detail-hero.xy-brand-visual img { position: relative; z-index: 3; width: 104px; height: 104px; object-fit: contain; padding: 12px; background: rgba(255,253,248,.9); border-radius: 28px; box-shadow: var(--xy-shadow); }
.xy-card-body { padding: 20px; }
.xy-card-body h3 { margin: 5px 0 14px; font-family: STKaiti, KaiTi, serif; font-size: 24px; line-height: 1.35; }
.xy-chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.xy-chip-list li { padding: 5px 10px; color: var(--xy-teal-dark); background: var(--xy-mint); border-radius: 999px; font-size: 13px; font-weight: 700; }
.xy-card-price { display: flex; align-items: baseline; gap: 5px; margin: 0 0 14px; color: var(--xy-coral); }
.xy-card-price span, .xy-card-price small { color: var(--xy-muted); font-size: 12px; }
.xy-card-price strong { font-size: 30px; line-height: 1; }
.xy-card-price.is-ended { color: var(--xy-muted); font-weight: 800; }
.xy-text-link { color: var(--xy-teal); font-weight: 800; }
.xy-footer { padding: 32px 20px calc(32px + env(safe-area-inset-bottom)); color: rgba(255, 255, 255, .88); background: var(--xy-ink); }
.xy-footer strong { color: #fff; font-family: STKaiti, KaiTi, serif; font-size: 22px; }
.xy-footer p { margin: 4px 0 20px; font-size: 13px; }
.xy-footer-meta { display: flex; flex-direction: column; gap: 5px; font-size: 12px; }
.xy-footer-meta a { text-decoration: underline; text-underline-offset: 3px; }
.xy-main { min-height: 70vh; }
.xy-page-intro { max-width: 700px; margin-bottom: 26px; }
.xy-page-intro h1 { margin-top: 10px; }
.xy-page-intro > p:last-child { color: var(--xy-muted); }
.xy-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--xy-teal); font-size: 14px; font-weight: 700; }
.xy-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 24px; padding: 5px; background: var(--xy-cream); border-radius: 16px; }
.xy-tabs button { min-height: 48px; padding: 8px; color: var(--xy-muted); background: transparent; border: 0; border-radius: 12px; cursor: pointer; font-weight: 800; }
.xy-tabs button[aria-selected="true"] { color: #fff; background: var(--xy-teal); }
.xy-result-count { margin: 0 0 12px; color: var(--xy-muted); font-size: 13px; }
.xy-placeholder { min-height: 300px; padding: 52px 24px; text-align: center; background: var(--xy-mint); border-radius: var(--xy-radius); }
.xy-placeholder h2 { margin: 6px 0; font-family: STKaiti, KaiTi, serif; font-size: 26px; }
.xy-placeholder p:last-child { color: var(--xy-muted); }
.xy-detail-main { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.xy-detail-back { margin: 8px 20px; }
.xy-detail-hero { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--xy-mint); }
.xy-detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.xy-detail-copy { padding: 26px 20px 40px; }
.xy-detail-copy > h1 { margin: 5px 0 12px; font-family: STKaiti, KaiTi, serif; font-size: 34px; line-height: 1.25; }
.xy-lead { margin: 0; color: var(--xy-muted); font-size: 17px; }
.xy-price-panel { margin-top: 24px; padding: 20px; color: #fff; background: linear-gradient(135deg, var(--xy-teal), var(--xy-teal-dark)); border-radius: 20px; }
.xy-price-panel > span, .xy-price-panel > strong { display: block; }
.xy-price-panel > span { font-size: 13px; opacity: .82; }
.xy-price-panel > strong { margin-top: 4px; font-size: 40px; line-height: 1.1; }
.xy-price-panel > strong small { font-size: 15px; }
.xy-price-panel > p { margin: 9px 0 0; font-size: 12px; opacity: .86; }
.xy-price-panel.is-ended { color: var(--xy-ink); background: var(--xy-cream); }
.xy-price-panel.is-ended > strong { font-size: 24px; }
.xy-price-panel.is-ended > span { margin-top: 6px; color: var(--xy-muted); }
.xy-highlights { margin-top: 34px; }
.xy-highlights h2, .xy-room-note h2 { margin: 0 0 16px; font-family: STKaiti, KaiTi, serif; font-size: 26px; }
.xy-highlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.xy-highlight-grid > div { min-height: 132px; padding: 18px 14px; background: var(--xy-mint); border-radius: 18px; }
.xy-highlight-grid strong, .xy-highlight-grid span { display: block; }
.xy-highlight-grid strong { font-size: 18px; line-height: 1.3; }
.xy-highlight-grid span { margin-top: 8px; color: var(--xy-muted); font-size: 13px; line-height: 1.5; }
.xy-detail-section { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--xy-line); }
.xy-detail-section h2 { margin: 0 0 14px; font-family: STKaiti, KaiTi, serif; font-size: 26px; }
.xy-detail-section > p { margin: 0; color: var(--xy-muted); }
.xy-detail-section dl { margin: 0; }
.xy-detail-section dl > div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--xy-line); }
.xy-detail-section dt { font-weight: 800; }
.xy-detail-section dd { margin: 0; color: var(--xy-muted); }
.xy-room-note { margin-top: 18px; padding: 22px; border: 1px solid #ead8b8; border-radius: 18px; background: #fff9e9; }
.xy-room-note h2 { margin-bottom: 4px; }
.xy-room-note p:last-child { margin: 0; color: var(--xy-muted); }
.xy-detail-actions { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1180px, 100%); margin: 0 auto; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 253, 248, .96); border-top: 1px solid var(--xy-line); box-shadow: 0 -10px 30px rgba(18, 63, 71, .1); backdrop-filter: blur(12px); }
.xy-detail-actions div span, .xy-detail-actions div strong { display: block; }
.xy-detail-actions div span { color: var(--xy-muted); font-size: 12px; }
.xy-detail-actions div strong { font-size: 14px; }
.xy-state-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 68vh; padding: 64px 24px; text-align: center; }
.xy-state-page h1 { max-width: 520px; margin: 6px 0 10px; font-family: STKaiti, KaiTi, serif; font-size: 34px; line-height: 1.3; }
.xy-state-page > p:not(.xy-eyebrow) { max-width: 520px; color: var(--xy-muted); }
.xy-state-art { position: relative; width: 116px; height: 92px; margin-bottom: 24px; }
.xy-state-art::before { content: ""; position: absolute; inset: 22px 8px 0; background: var(--xy-mint); border: 2px solid var(--xy-teal); border-radius: 18px; transform: rotate(-3deg); }
.xy-state-art span { position: absolute; z-index: 2; width: 14px; height: 14px; background: var(--xy-coral); border-radius: 50%; }
.xy-state-art span:nth-child(1) { left: 30px; top: 44px; }
.xy-state-art span:nth-child(2) { left: 52px; top: 44px; }
.xy-state-art span:nth-child(3) { left: 74px; top: 44px; }
.xy-state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.xy-consultation-main { min-height: 68vh; padding: 34px 20px 50px; }
.xy-consultation-wrap { max-width: 560px; margin: 0 auto; }
.xy-consultation-wrap h1 { margin: 8px 0 18px; font-family: STKaiti, KaiTi, serif; font-size: 34px; }
[data-slot="consultation-package-name"] { margin-bottom: 6px; color: var(--xy-muted); }
[data-slot="consultation-copy-text"] { margin: 0; font-size: 18px; font-weight: 800; }
[data-slot="official-wechat-qr"] { margin-top: 22px; padding: 22px; text-align: center; background: #fff; border: 1px solid var(--xy-line); border-radius: var(--xy-radius); box-shadow: var(--xy-shadow); }
[data-slot="official-wechat-qr"] img { width: min(280px, 100%); height: auto; margin: 16px auto 12px; }
[data-slot="consultation-identity"] { margin: 0; font-weight: 800; }
.mobile-hint, .desktop-hint { margin: 5px 0; color: var(--xy-teal); font-weight: 800; }
.desktop-hint { display: none; }
.xy-copy-button { width: 100%; margin-top: 16px; cursor: pointer; }
.xy-copy-status { min-height: 24px; margin: 8px 0 0; color: var(--xy-teal); font-size: 13px; }
.xy-consultation-back { display: inline-flex; align-items: center; min-height: 48px; margin-top: 18px; color: var(--xy-teal); font-weight: 800; }
.xy-consultation-fallback { padding: 20px; color: var(--xy-muted); background: var(--xy-mint); border-radius: 18px; }
.xy-privacy { max-width: 820px; margin: 0 auto; }
.xy-privacy > section { margin-top: 16px; padding: 22px; background: #fff; border: 1px solid var(--xy-line); border-radius: 18px; }
.xy-privacy h2 { margin: 0 0 8px; font-family: STKaiti, KaiTi, serif; font-size: 24px; }
.xy-privacy section p { margin: 0; color: var(--xy-muted); }

@media (max-width: 480px) {
  .xy-header nav a:first-child { display: none; }
  .xy-header { gap: 8px; padding-inline: 12px; }
  .xy-brand { min-width: 0; gap: 6px; font-size: 20px; white-space: nowrap; }
  .xy-brand img { width: 42px; height: 42px; }
  .xy-header nav { flex: 0 0 auto; }
  .xy-header nav a { padding-inline: 8px; font-size: 13px; }
  .xy-hero-copy { left: 18px; right: 18px; }
  .xy-hero-copy h1 { font-size: 36px; }
}

@media (min-width: 720px) {
  .xy-header { min-height: 84px; padding: 12px 36px; }
  .xy-brand img { width: 56px; height: 56px; }
  .xy-brand { font-size: 25px; }
  .xy-header nav a { padding: 0 18px; font-size: 15px; }
  .xy-hero, .xy-hero-art { height: 680px; }
  .xy-hero-copy { left: 64px; bottom: 64px; }
  .xy-section, .xy-main { padding: 64px; }
  .xy-category-grid { grid-template-columns: 1fr 1fr; }
  .xy-package-card { max-width: 760px; }
  .xy-package-card > a { display: grid; grid-template-columns: minmax(280px, 42%) 1fr; }
  .xy-card-media { aspect-ratio: auto; min-height: 320px; }
  .xy-card-body { display: flex; flex-direction: column; justify-content: center; padding: 34px; }
  .xy-card-body h3 { font-size: 29px; }
  .xy-detail-back { margin: 18px 64px; }
  .xy-detail-main article { display: grid; grid-template-columns: minmax(360px, 44%) 1fr; align-items: start; min-height: 650px; }
  .xy-detail-hero { position: sticky; top: 0; height: min(82vh, 820px); aspect-ratio: auto; }
  .xy-detail-copy { padding: 52px 56px; }
  .xy-detail-copy > h1 { font-size: 46px; }
  .xy-detail-actions { padding-left: 64px; padding-right: 64px; }
  .xy-consultation-main { padding: 60px 32px 80px; }
  .xy-mobile-line { display: inline; }
  .mobile-hint { display: none; }
  .desktop-hint { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Task 6 dynamic WordPress pages */
.xy-dynamic-hero { min-height: 430px; background: linear-gradient(150deg, #0a6f72, #123f47 70%); }
.xy-dynamic-hero .xy-hero-copy { position: relative; left: auto; right: auto; bottom: auto; max-width: 760px; padding: 80px 24px; }
.xy-banner-grid, .xy-package-grid { display: grid; gap: 20px; }
.xy-banner-card { display: block; overflow: hidden; background: #fff; border: 1px solid var(--xy-line); border-radius: var(--xy-radius); box-shadow: var(--xy-shadow); }
.xy-banner-figure { margin: 0; }
.xy-banner-image { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.xy-card-image, .xy-detail-image { width: 100%; height: 100%; object-fit: cover; }
.xy-card-media-placeholder { width: 100%; height: 100%; min-height: 240px; background: linear-gradient(145deg, var(--xy-mint), var(--xy-cream)); }
.xy-card-subtitle { color: var(--xy-muted); }
.xy-empty-state { padding: 40px 24px; text-align: center; background: var(--xy-mint); border-radius: var(--xy-radius); }
.xy-empty-state h2 { margin: 0 0 8px; font-family: STKaiti, KaiTi, serif; }
.xy-empty-state p { margin: 0; color: var(--xy-muted); }
.xy-status-badge { display: inline-flex; padding: 6px 12px; color: var(--xy-teal-dark); background: var(--xy-mint); border-radius: 999px; font-weight: 800; }
.xy-status-badge.is-paused, .xy-status-badge.is-expired { color: #8a4a23; background: #fff1db; }
.xy-data-list { margin: 24px 0 0; }
.xy-data-list > div { display: grid; grid-template-columns: minmax(88px, 132px) 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--xy-line); }
.xy-data-list dt { font-weight: 800; }
.xy-data-list dd { margin: 0; color: var(--xy-muted); }
.xy-related-grid { display: grid; gap: 12px; }
.xy-resource-card { padding: 18px; color: var(--xy-teal-dark); background: var(--xy-mint); border-radius: 16px; font-weight: 800; }
.xy-service-main { max-width: 860px; margin: 0 auto; }
.xy-service-card { margin-top: 18px; padding: 24px; background: #fff; border: 1px solid var(--xy-line); border-radius: var(--xy-radius); }
.xy-service-card h2 { margin: 0 0 12px; font-family: STKaiti, KaiTi, serif; }
.xy-qr-card { text-align: center; }
.xy-service-qr { width: min(320px, 100%); height: auto; margin: 20px auto 0; }
@media (min-width: 720px) {
  .xy-banner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xy-package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xy-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}