/* 美美 - 粉嫩心动 UI */
:root {
    --bg: #140810;
    --bg-soft: #1f0c18;
    --bg-card: rgba(255, 228, 240, 0.06);
    --bg-glass: rgba(28, 10, 22, 0.82);
    --rose: #ff4d8d;
    --rose-light: #ff8eb8;
    --rose-pale: #ffc2dc;
    --pink: #ffb3d9;
    --sakura: #ffe4f0;
    --gold: #ffd56b;
    --purple: #d946ef;
    --text: #fff5f9;
    --text-muted: #c9a8b8;
    --gradient-rose: linear-gradient(135deg, #ff6b9d 0%, #ff9ec7 40%, #f0abfc 100%);
    --gradient-candy: linear-gradient(135deg, #ff4d8d, #ff85b8, #e879f9);
    --gradient-fire: linear-gradient(135deg, #ff512f 0%, #ff8a65 100%);
    --gradient-hot: linear-gradient(135deg, #ff2d6a 0%, #ff6b9d 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 120, 180, 0.35), rgba(232, 121, 249, 0.15));
    --shadow-glow: 0 8px 32px rgba(255, 77, 141, 0.35);
    --shadow-card: 0 12px 40px rgba(255, 77, 141, 0.2);
    --radius: 18px;
    --nav-h: 68px;
    --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(var(--nav-h) + 24px);
    overflow-x: hidden;
}

body.page-detail {
    padding-bottom: 0;
}

a { color: inherit; text-decoration: none; }

/* 氛围背景 */
.ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
    animation: orbFloat 12s ease-in-out infinite;
}

.ambient-orb-1 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, #ff6b9d, transparent 70%);
    top: -80px;
    left: -60px;
}

.ambient-orb-2 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, #e879f9, transparent 70%);
    bottom: 120px;
    right: -40px;
    animation-delay: -4s;
}

.ambient-orb-3 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, #ff9ec7, transparent 70%);
    top: 45%;
    left: 50%;
    animation-delay: -8s;
}

.ambient-heart {
    position: absolute;
    color: rgba(255, 140, 190, 0.25);
    font-size: 18px;
    animation: heartDrift 8s ease-in-out infinite;
}

.ambient-heart-1 { top: 18%; right: 12%; animation-delay: 0s; }
.ambient-heart-2 { top: 55%; left: 8%; font-size: 14px; animation-delay: -3s; }
.ambient-heart-3 { bottom: 25%; right: 20%; font-size: 22px; animation-delay: -5s; color: rgba(255, 200, 220, 0.3); }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, 15px) scale(1.05); }
    66% { transform: translate(-10px, 25px) scale(0.95); }
}

@keyframes heartDrift {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.2; }
    50% { transform: translateY(-18px) rotate(8deg); opacity: 0.45; }
}

/* 头部 */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 20px;
    background: linear-gradient(180deg, rgba(28, 10, 22, 0.95) 0%, rgba(28, 10, 22, 0.75) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 140, 190, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-logo {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-candy);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    animation: textShine 4s linear infinite;
    filter: drop-shadow(0 0 12px rgba(255, 107, 157, 0.3));
}

.app-logo span {
    font-size: 11px;
    font-weight: 500;
    color: var(--rose-pale);
    -webkit-text-fill-color: var(--rose-pale);
    display: block;
    letter-spacing: 6px;
    margin-top: 4px;
    opacity: 0.85;
}

.header-announce-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 140, 190, 0.12);
    border: 1px solid rgba(255, 140, 190, 0.28);
    font-family: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.header-announce-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.header-announce-btn:active {
    transform: scale(0.96);
    background: rgba(255, 140, 190, 0.22);
    border-color: rgba(255, 140, 190, 0.45);
}

.app-header-featured .app-logo span {
    letter-spacing: 4px;
}

.app-header-sub {
    margin-top: 48px;
}

.page-announcement {
    padding-bottom: calc(var(--nav-h) + 24px);
}

.announcement-page {
    position: relative;
    z-index: 1;
    padding: 16px 16px 8px;
    max-width: 720px;
    margin: 0 auto;
}

.announcement-card {
    background: linear-gradient(145deg, rgba(255, 140, 190, 0.08), rgba(20, 8, 16, 0.6));
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 140, 190, 0.15);
}

.announcement-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.4;
}

.announcement-time {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.announcement-body {
    font-size: 14px;
    line-height: 1.85;
}

@keyframes textShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* 轮播 */
.banner-swiper {
    position: relative;
    margin: 0 0 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
    width: 100%;
    z-index: 1;
    box-shadow: 0 8px 40px rgba(255, 77, 141, 0.15);
}

.banner-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.34, 1.2, 0.64, 1);
    height: 100%;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.banner-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: bannerZoom 8s ease-in-out infinite alternate;
}

@keyframes bannerZoom {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}

.banner-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 8, 16, 0.5) 0%, transparent 45%),
                linear-gradient(135deg, rgba(255, 107, 157, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.banner-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    border-radius: 20px;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.banner-dot.active {
    width: 22px;
    border-radius: 4px;
    background: var(--gradient-rose);
    box-shadow: 0 0 12px rgba(255, 77, 141, 0.6);
}

/* 分类模块 */
.section {
    padding: 0 16px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.section-featured {
    margin-top: 37px !important;
}

.section-featured .section-header {
    margin-bottom: 26px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 19px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #fff, var(--rose-pale));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::before {
    content: '♥';
    -webkit-text-fill-color: var(--rose);
    font-size: 14px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
}

.section-count {
    font-size: 12px;
    color: #fff;
    background: rgba(255, 107, 157, 0.12);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 140, 190, 0.2);
}

/* 通知 */
.notice-bar {
    display: flex;
    align-items: center;
    margin: 0 16px 16px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.12), rgba(232, 121, 249, 0.08));
    border-radius: 12px;
    border: 1px solid rgba(255, 140, 190, 0.25);
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(255, 77, 141, 0.1);
}

.notice-label {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--gradient-candy);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 16px;
    margin-right: 10px;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(255, 77, 141, 0.4);
    animation: labelPulse 2s ease-in-out infinite;
}

.notice-icon {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

@keyframes labelPulse {
    0%, 100% { box-shadow: 0 2px 10px rgba(255, 77, 141, 0.4); }
    50% { box-shadow: 0 2px 18px rgba(255, 77, 141, 0.65); }
}

.notice-track-wrap {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.notice-track {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    white-space: nowrap;
}

.notice-track.is-scroll {
    animation: noticeScroll 20s linear infinite;
}

.notice-item {
    font-size: 12px;
    color: #fff;
}

.notice-item::before {
    content: '✦';
    color: var(--rose);
    margin-right: 8px;
}

@keyframes noticeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 分类 Tab — 与通知栏同款卡片 + 内嵌分段选择 */
.category-tabs-wrap {
    position: sticky;
    top: var(--header-h);
    z-index: 90;
    margin: 0 16px 12px;
    padding: 3px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.12), rgba(232, 121, 249, 0.08));
    border-radius: 12px;
    border: 1px solid rgba(255, 140, 190, 0.25);
    box-shadow: 0 4px 20px rgba(255, 77, 141, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.category-tabs-wrap.can-scroll-left::before,
.category-tabs-wrap.can-scroll-right::after {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    width: 18px;
    pointer-events: none;
    z-index: 2;
    border-radius: 8px;
}

.category-tabs-wrap.can-scroll-left::before {
    left: 4px;
    background: linear-gradient(to right, rgba(40, 14, 28, 0.95), transparent);
}

.category-tabs-wrap.can-scroll-right::after {
    right: 4px;
    background: linear-gradient(to left, rgba(40, 14, 28, 0.95), transparent);
}

.category-tabs {
    display: flex;
    align-items: stretch;
    gap: 3px;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    flex: 1 0 0;
    min-width: 52px;
    min-height: 22px;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 3px 4px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.15;
    scroll-snap-align: center;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    transition: background 0.2s, color 0.2s;
}

.category-tab:focus,
.category-tab:focus-visible,
.category-tab:active {
    outline: none;
    box-shadow: none;
}

.category-tab:active {
    opacity: 0.85;
}

.category-tab.active {
    background: rgba(255, 107, 157, 0.22);
    color: #fff;
}

.category-tab-name {
    flex: 1 1 0;
    min-width: 0;
    white-space: normal;
    word-break: break-all;
    text-align: center;
}

.category-tab-count {
    flex-shrink: 0;
    min-width: 14px;
    height: 13px;
    padding: 0 3px;
    border-radius: 7px;
    background: rgba(255, 140, 190, 0.12);
    color: var(--rose-pale);
    font-size: 9px;
    font-weight: 500;
    line-height: 13px;
    text-align: center;
}

.category-tab.active .category-tab-count {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.category-panels {
    position: relative;
    z-index: 1;
}

.category-panel {
    display: none;
    padding: 0 16px;
    margin-bottom: 32px;
    animation: categoryFadeIn 0.28s ease;
}

.category-panel.active {
    display: block;
}

@keyframes categoryFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 人物卡片 */
.person-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.person-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.4s;
    cursor: pointer;
    border: 1px solid rgba(255, 160, 200, 0.2);
    opacity: 0;
    transform: translateY(24px) scale(0.96);
}

.person-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.4s;
}

.person-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 140, 190, 0.5), rgba(232, 121, 249, 0.2), rgba(255, 140, 190, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 5;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.person-card:active {
    transform: scale(0.96);
}

.person-card:hover {
    box-shadow: 0 16px 48px rgba(255, 77, 141, 0.45);
    transform: translateY(-4px) scale(1.02);
}

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

.person-card-img {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.person-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.person-card:hover .person-card-img img {
    transform: scale(1.08);
}

.person-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 8, 16, 0.75) 0%, rgba(255, 107, 157, 0.08) 40%, transparent 70%);
}

.person-card-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
}

.tag {
    font-size: 10px;
    padding: 4px 9px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: tagPop 0.5s ease backwards;
}

@keyframes tagPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.tag-hot {
    background: var(--gradient-hot);
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 45, 106, 0.5);
}
.tag-fire {
    background: var(--gradient-fire);
    color: #fff;
}
.tag-new {
    background: linear-gradient(135deg, #ff6b9d, #c084fc);
    color: #fff;
}
.tag-rec {
    background: linear-gradient(135deg, #f472b6, #a78bfa);
    color: #fff;
}
.tag-color-1 {
    background: linear-gradient(135deg, #ff2d6a, #ff6b9d);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 45, 106, 0.35);
}
.tag-color-2 {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #fff;
}
.tag-color-3 {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: #fff;
}
.tag-color-4 {
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
    color: #fff;
}
.tag-color-5 {
    background: linear-gradient(135deg, #ec4899, #f472b6);
    color: #fff;
}
.tag-color-6 {
    background: linear-gradient(135deg, #eab308, #facc15);
    color: #fff;
}
.tag-default {
    background: linear-gradient(135deg, #ff6b9d, #c084fc);
    color: #fff;
}

.person-card-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 5px;
}

.person-card-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
}

.person-card-code {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    background: rgba(255, 140, 190, 0.22);
    border: 1px solid rgba(255, 140, 190, 0.35);
    color: #fff;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.person-card-mask {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: rgba(20, 8, 16, 0.55);
    backdrop-filter: blur(2px);
}

.person-card-booked {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap;
    background: linear-gradient(135deg, rgba(255, 180, 200, 0.9), rgba(255, 140, 180, 0.85));
    color: #fff;
    box-shadow: 0 4px 24px rgba(255, 107, 157, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: bookedPulse 2s ease-in-out infinite;
}

@keyframes bookedPulse {
    0%, 100% { box-shadow: 0 4px 24px rgba(255, 107, 157, 0.5); }
    50% { box-shadow: 0 4px 32px rgba(255, 107, 157, 0.75); }
}

.person-card-dating:hover .person-card-img img {
    transform: none;
}

.person-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 12px;
    z-index: 2;
}

.person-card-meta {
    font-size: 11px;
    color: #fff;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    opacity: 0.95;
}

.person-card-meta .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--rose-light);
    box-shadow: 0 0 6px var(--rose);
}

/* 猜你喜欢页 */
.region-block {
    margin-bottom: 36px;
}

.region-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    background: var(--gradient-candy);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 5s linear infinite;
}

.region-subtitle {
    font-size: 12px;
    color: #fff;
    margin-bottom: 16px;
    opacity: 0.85;
}

/* 详情页 */
.detail-hero {
    position: relative;
    height: 72vh;
    max-height: 540px;
    overflow: hidden;
}

.detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroBreath 10s ease-in-out infinite alternate;
}

@keyframes heroBreath {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.detail-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg) 0%, transparent 45%, rgba(255, 107, 157, 0.1) 100%);
}

.detail-back {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 200;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 107, 157, 0.25);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    border: 1px solid rgba(255, 180, 210, 0.35);
    transition: transform 0.2s, background 0.2s;
}

.detail-back:active {
    transform: scale(0.92);
    background: rgba(255, 107, 157, 0.4);
}

.detail-content {
    margin-top: -90px;
    position: relative;
    z-index: 10;
    padding: 0 20px calc(100px + env(safe-area-inset-bottom));
}

.detail-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.detail-name {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 0;
    background: linear-gradient(90deg, #fff, var(--rose-pale));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.detail-code {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 140, 190, 0.15);
    border: 1px solid rgba(255, 140, 190, 0.3);
    color: var(--rose-pale);
    letter-spacing: 1px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.detail-tags .tag {
    font-size: 12px;
    padding: 5px 12px;
}

.detail-price {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 22px;
    position: relative;
    display: inline-block;
    background: linear-gradient(
        90deg,
        #b8860b 0%,
        #ffd700 20%,
        #fff8c8 45%,
        #ffd700 70%,
        #daa520 100%
    );
    background-size: 220% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: priceGoldWave 2.8s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.45));
}

@keyframes priceGoldWave {
    0% { background-position: 120% center; }
    100% { background-position: -120% center; }
}

.detail-price small {
    font-size: 15px;
    color: #d4af37;
    font-weight: 500;
    -webkit-text-fill-color: #d4af37;
    opacity: 0.85;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.stat-item {
    background: linear-gradient(145deg, rgba(255, 140, 190, 0.12), rgba(232, 121, 249, 0.06));
    border-radius: 14px;
    padding: 14px 6px;
    text-align: center;
    border: 1px solid rgba(255, 140, 190, 0.2);
    min-width: 0;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 141, 0.2);
}

.stat-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--rose-light);
    margin-bottom: 4px;
    white-space: nowrap;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

body.page-detail .stat-label {
    color: #fff;
}

.detail-desc {
    background: linear-gradient(145deg, rgba(255, 140, 190, 0.08), rgba(20, 8, 16, 0.6));
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 140, 190, 0.15);
    word-break: break-word;
}

.detail-content-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    line-height: inherit;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    tab-size: 4;
}

/* 富文本内容：保留后台编辑器内联样式（颜色、字号等），不强制粉色 */
.richtext-content {
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.85;
    font-size: 14px;
    color: var(--text);
}

.richtext-content > :first-child {
    margin-top: 0;
}

.richtext-content > :last-child {
    margin-bottom: 0;
}

.richtext-content p,
.richtext-content div {
    margin: 0 0 0.75em;
}

.richtext-content h1,
.richtext-content h2,
.richtext-content h3,
.richtext-content h4,
.richtext-content h5,
.richtext-content h6 {
    font-weight: 700;
    line-height: 1.4;
    margin: 1em 0 0.5em;
}

.richtext-content h1 { font-size: 1.75em; }
.richtext-content h2 { font-size: 1.5em; }
.richtext-content h3 { font-size: 1.25em; }
.richtext-content h4 { font-size: 1.1em; }
.richtext-content h5 { font-size: 1em; }
.richtext-content h6 { font-size: 0.9em; }

.richtext-content b,
.richtext-content strong {
    font-weight: 700;
}

.richtext-content i,
.richtext-content em {
    font-style: italic;
}

.richtext-content u {
    text-decoration: underline;
}

.richtext-content s,
.richtext-content strike,
.richtext-content del {
    text-decoration: line-through;
}

.richtext-content sub {
    vertical-align: sub;
    font-size: 0.8em;
}

.richtext-content sup {
    vertical-align: super;
    font-size: 0.8em;
}

.richtext-content ul,
.richtext-content ol {
    margin: 0.75em 0;
    padding-left: 1.6em;
}

.richtext-content li {
    margin: 0.35em 0;
}

.richtext-content blockquote {
    margin: 1em 0;
    padding: 0.5em 0 0.5em 1em;
    border-left: 3px solid rgba(255, 140, 190, 0.45);
}

.richtext-content pre,
.richtext-content code {
    font-family: Menlo, Monaco, Consolas, monospace;
    font-size: 0.92em;
}

.richtext-content pre {
    margin: 1em 0;
    padding: 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    overflow-x: auto;
    white-space: pre-wrap;
}

.richtext-content code {
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.28);
}

.richtext-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.richtext-content table td,
.richtext-content table th {
    border: 1px solid rgba(255, 140, 190, 0.25);
    padding: 8px 10px;
    vertical-align: top;
}

.richtext-content table th {
    background: rgba(255, 140, 190, 0.12);
    font-weight: 600;
}

.richtext-content a {
    text-decoration: underline;
    word-break: break-all;
}

.richtext-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
    display: inline-block;
}

.richtext-content hr {
    border: none;
    border-top: 1px solid rgba(255, 140, 190, 0.25);
    margin: 1.25em 0;
}

.detail-gallery-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--rose-pale);
}

body.page-detail .detail-gallery-title {
    color: #fff;
}

body.page-detail .detail-meta {
    margin-top: 0;
}

body.page-detail .detail-meta-top {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.6;
}

body.page-detail .detail-meta-label {
    color: #fff;
}

body.page-detail .detail-meta-value {
    color: var(--rose-pale);
}

.detail-gallery-title::before {
    content: '♥ ';
    color: var(--rose);
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.detail-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.35s, box-shadow 0.35s;
    border: 1px solid rgba(255, 140, 190, 0.15);
}

.detail-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 77, 141, 0.3);
}

/* 预约按钮 */
.book-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 20px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent, rgba(20, 8, 16, 0.9) 30%);
    backdrop-filter: blur(20px);
    z-index: 90;
}

.book-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 32px;
    background: var(--gradient-candy);
    background-size: 200% auto;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(255, 77, 141, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 3px;
    animation: btnGlow 2.5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.book-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: btnShine 3s ease-in-out infinite;
    pointer-events: none;
}

.book-btn-heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    vertical-align: middle;
    animation: heartbeat 1.2s ease-in-out infinite;
}

.book-btn-heart svg {
    width: 26px;
    height: 26px;
    fill: #fff;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.75));
}

@keyframes btnShine {
    0%, 70% { left: -100%; }
    100% { left: 150%; }
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 8px 32px rgba(255, 77, 141, 0.5); }
    50% { box-shadow: 0 8px 40px rgba(255, 77, 141, 0.75), 0 0 60px rgba(255, 107, 157, 0.3); }
}

.book-btn:active {
    transform: scale(0.97);
}

.book-btn:disabled {
    animation: none;
    background: rgba(255, 140, 190, 0.3);
    box-shadow: none;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    background: linear-gradient(180deg, rgba(28, 10, 22, 0.75), rgba(20, 8, 16, 0.95));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 140, 190, 0.2);
    display: flex;
    z-index: 100;
    box-shadow: 0 -8px 32px rgba(255, 77, 141, 0.1);
}

.nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-item.active {
    color: var(--rose-light);
    font-weight: 700;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 8px;
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: var(--gradient-rose);
    box-shadow: 0 0 10px rgba(255, 77, 141, 0.6);
}

/* 弹窗 */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 8, 16, 0.75);
    backdrop-filter: blur(8px);
    z-index: 300;
    align-items: flex-end;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    width: 100%;
    max-width: 480px;
    background: linear-gradient(180deg, #2a1020 0%, #1a0c14 100%);
    border-radius: 24px 24px 0 0;
    padding: 28px 22px 36px;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    border-top: 2px solid rgba(255, 140, 190, 0.3);
    box-shadow: 0 -12px 48px rgba(255, 77, 141, 0.2);
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0.8; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-title {
    font-size: 19px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 22px;
    background: var(--gradient-rose);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--rose-pale);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid rgba(255, 140, 190, 0.25);
    border-radius: 14px;
    background: rgba(20, 8, 16, 0.6);
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(255, 77, 141, 0.15);
}

.form-group textarea {
    resize: none;
    height: 88px;
}

.pay-type-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pay-type-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 140, 190, 0.25);
    background: rgba(20, 8, 16, 0.45);
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
}

.pay-type-item input {
    width: auto;
    margin: 0;
    accent-color: var(--rose);
}

.pay-type-item:has(input:checked) {
    border-color: var(--rose);
    box-shadow: 0 0 0 2px rgba(255, 77, 141, 0.2);
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.modal-btn {
    flex: 1;
    padding: 13px;
    border-radius: 30px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.modal-btn:active {
    transform: scale(0.97);
}

.modal-btn-cancel {
    background: rgba(255, 200, 220, 0.1);
    color: var(--text-muted);
    border: 1px solid rgba(255, 140, 190, 0.15);
}

.modal-btn-submit {
    background: var(--gradient-candy);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 77, 141, 0.4);
}

.order-query-result {
    display: none;
    margin-top: 4px;
}

.order-query-result.show {
    display: block;
}

.order-query-card {
    background: rgba(255, 140, 190, 0.1);
    border: 1px solid rgba(255, 140, 190, 0.22);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
}

.order-query-card:last-child {
    margin-bottom: 0;
}

.order-query-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 6px;
}

.order-query-row:last-child {
    margin-bottom: 0;
}

.order-query-label {
    color: var(--text-muted);
    flex-shrink: 0;
}

.order-query-value {
    color: #fff;
    text-align: right;
    word-break: break-all;
}

.order-query-status {
    color: var(--rose-light);
    font-weight: 700;
}

.pay-result-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.pay-result-card {
    width: 100%;
    max-width: 420px;
    background: rgba(28, 12, 22, 0.92);
    border: 1px solid rgba(255, 140, 190, 0.22);
    border-radius: 20px;
    padding: 28px 20px;
}

.pay-result-title {
    margin: 0 0 18px;
    font-size: 22px;
    text-align: center;
    background: var(--gradient-rose);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pay-result-tip {
    margin: 16px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.pay-result-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    margin-top: 12px;
    box-sizing: border-box;
}

.pay-checkout-body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg, #140810);
    color: var(--text, #fff);
}

.pay-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    padding: 0 12px;
    background: rgba(28, 12, 22, 0.96);
    border-bottom: 1px solid rgba(255, 140, 190, 0.22);
    backdrop-filter: blur(10px);
}

.pay-topbar-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    background: rgba(255, 107, 157, 0.25);
    border: 1px solid rgba(255, 180, 210, 0.35);
}

.pay-topbar-back:active {
    transform: scale(0.94);
}

.pay-topbar-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.pay-topbar-link {
    min-width: 40px;
    text-align: right;
    color: var(--rose-light, #ff8cbe);
    text-decoration: none;
    font-size: 13px;
}

.pay-checkout-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-muted, #c9a0b4);
    background: rgba(255, 140, 190, 0.08);
    border-bottom: 1px solid rgba(255, 140, 190, 0.15);
}

.pay-checkout-meta strong {
    color: var(--rose-light, #ff8cbe);
    font-size: 15px;
}

.pay-checkout-frame-wrap {
    position: relative;
    height: calc(100vh - 52px - 42px);
    background: #fff;
}

.pay-checkout-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #fff;
}

.pay-checkout-fallback {
    display: none;
    position: absolute;
    inset: 0;
    padding: 32px 20px;
    text-align: center;
    background: rgba(20, 8, 16, 0.96);
    color: var(--text-muted, #c9a0b4);
}

.pay-checkout-fallback.show {
    display: block;
}

.pay-checkout-fallback p {
    margin: 0 0 18px;
    font-size: 14px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

/* 灯箱 */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 4, 8, 0.96);
    z-index: 400;
    align-items: center;
    justify-content: center;
}

.lightbox.show { display: flex; }

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(255, 77, 141, 0.3);
}

@media (min-width: 768px) {
    .person-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .section { max-width: 960px; margin-left: auto; margin-right: auto; }
    .detail-content { max-width: 720px; margin-left: auto; margin-right: auto; }
    .book-bar, .modal-box { max-width: 480px; left: 50%; transform: translateX(-50%); }
    .banner-swiper { border-radius: 0 0 20px 20px; margin: 0 16px 24px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
