/* ===== 尊享选妃 H5 ===== */
:root {
    --bg: #08080c;
    --bg-elevated: #121218;
    --bg-card: #1a1a22;
    --surface: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.12);
    --text: #ececef;
    --text-muted: #8b8b96;
    --text-dim: #5c5c66;
    --accent: #c4a882;
    --accent-soft: rgba(196, 168, 130, 0.14);
    --accent-glow: rgba(196, 168, 130, 0.35);
    --online: #3ecf8e;
    --rose: #e8b4b8;
    --radius: 10px;
    --radius-sm: 6px;
    --tabbar-h: 52px;
    --header-h: 88px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; overflow: hidden; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

.ico { display: block; flex-shrink: 0; }

#app {
    height: 100%;
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--bg);
    box-shadow: 0 0 0 1px var(--border);
    overflow: hidden;
}

#app::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(196, 168, 130, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

#app::after {
    content: '';
    position: absolute;
    bottom: 120px;
    left: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(120, 90, 160, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ----- Header ----- */
.app-header {
    flex-shrink: 0;
    padding: 10px 14px 8px;
    padding-top: calc(10px + var(--safe-top));
    background: linear-gradient(180deg, #101016 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.brand-text { min-width: 0; }

.brand-text h1 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-text p {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
}

.btn-cs {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background: var(--accent-soft);
    border: 1px solid rgba(196, 168, 130, 0.25);
    border-radius: 20px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.2s;
}

.btn-cs:active { background: rgba(196, 168, 130, 0.22); }

/* 滚动公告 */
.notice-marquee {
    margin-top: 10px;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.notice-track {
    display: flex;
    width: max-content;
    animation: marquee 18s linear infinite;
}

.notice-track span {
    flex-shrink: 0;
    padding-right: 48px;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    white-space: nowrap;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ----- Main list ----- */
.app-main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 10px 12px 16px;
    padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px);
    position: relative;
    z-index: 1;
}

.page-home { display: flex; flex-direction: column; gap: 14px; }

/* 数据条 */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.stat-box {
    padding: 10px 8px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat-box .stat-num {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}

.stat-box .stat-lbl {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.stat-box.highlight {
    background: linear-gradient(145deg, rgba(196, 168, 130, 0.18), rgba(196, 168, 130, 0.06));
    border-color: rgba(196, 168, 130, 0.25);
}

/* 推广卡片 */
.promo-card {
    position: relative;
    padding: 14px 16px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(125deg, #1e1a24 0%, #16141c 45%, #1a1810 100%);
    border: 1px solid rgba(196, 168, 130, 0.2);
    text-decoration: none;
    color: inherit;
    display: block;
}

.promo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../../logo/logo.webp') no-repeat right -10px bottom -15px;
    background-size: 90px;
    opacity: 0.12;
    pointer-events: none;
}

.promo-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(196, 168, 130, 0.06));
}

.promo-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: #1a1510;
    background: var(--accent);
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.promo-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.promo-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 75%;
}

.promo-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
}

/* 服务亮点 */
.highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.highlight-item {
    padding: 12px 8px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.highlight-item svg {
    width: 20px;
    height: 20px;
    margin: 0 auto 6px;
    color: var(--accent);
    opacity: 0.9;
}

.highlight-item strong {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.highlight-item span {
    font-size: 9px;
    color: var(--text-dim);
    line-height: 1.3;
}

/* 推荐横滑 */
.featured-section { margin: 0 -12px; padding: 0 12px; }

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 2px;
}

.section-head h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.section-head .section-sub {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 2px;
}

.section-head .section-more {
    font-size: 11px;
    color: var(--accent);
}

.featured-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.featured-scroll::-webkit-scrollbar { display: none; }

.featured-card {
    flex: 0 0 108px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    cursor: pointer;
}

.featured-card:active { opacity: 0.9; }

.featured-card .fc-img {
    position: relative;
    aspect-ratio: 3 / 4;
    background: #14141c;
}

.featured-card .fc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-card .fc-img .no-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
}

.featured-card .fc-img .no-image svg { width: 24px; opacity: 0.35; }

.featured-card .fc-online {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    background: var(--online);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(62, 207, 142, 0.6);
}

.featured-card .fc-info {
    padding: 6px 8px 8px;
}

.featured-card .fc-name {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-card .fc-meta {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* 列表区 */
.list-section .section-head { margin-bottom: 8px; }

.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-chip {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip.active {
    color: #1a1510;
    background: var(--accent);
    border-color: var(--accent);
    font-weight: 600;
}

.filter-chip em {
    font-style: normal;
    font-size: 10px;
    opacity: 0.75;
    margin-left: 4px;
}

.list-empty-hint {
    grid-column: 1 / -1;
    text-align: center;
    padding: 24px 12px;
    font-size: 12px;
    color: var(--text-dim);
}

.page-footer {
    text-align: center;
    padding: 8px 0 4px;
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.profile-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s;
}

.profile-card:active {
    transform: scale(0.96);
    border-color: var(--border-strong);
}

.profile-card.is-featured {
    border-color: rgba(196, 168, 130, 0.35);
    box-shadow: 0 0 0 1px rgba(196, 168, 130, 0.12);
}

.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #14141c;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-image::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
    pointer-events: none;
}

.card-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
}

.card-image .no-image svg { width: 28px; height: 28px; opacity: 0.4; }

.card-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    padding: 2px 5px;
    font-size: 9px;
    font-weight: 600;
    color: #1a1510;
    background: var(--accent);
    border-radius: 3px;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.online-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 7px;
    height: 7px;
    background: var(--online);
    border-radius: 50%;
    border: 1.5px solid var(--bg-card);
    box-shadow: 0 0 6px rgba(62, 207, 142, 0.5);
}

.card-tag-line {
    margin-top: 4px;
    min-height: 14px;
}

.card-tag-line .card-tag {
    font-size: 9px;
    padding: 1px 5px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 3px;
    border: 1px solid rgba(196, 168, 130, 0.15);
}

.card-info {
    padding: 6px 7px 8px;
}

.card-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.card-meta {
    margin-top: 3px;
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    line-height: 1.2;
}

.card-meta .dot {
    width: 2px;
    height: 2px;
    background: var(--text-dim);
    border-radius: 50%;
    flex-shrink: 0;
}

.card-loc {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-loc svg { width: 9px; height: 9px; opacity: 0.7; flex-shrink: 0; }

/* Empty / Loading */
.empty-state, .loading {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.empty-state svg { width: 40px; height: 40px; opacity: 0.25; margin-bottom: 12px; }
.empty-state p, .loading p { font-size: 13px; }

.loading-spinner {
    width: 28px;
    height: 28px;
    margin: 0 auto 10px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

#profileList {
    position: relative;
    min-height: 120px;
}

.page-loading {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 14, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.page-loading[hidden] {
    display: none !important;
}

/* ----- Tabbar ----- */
.tabbar {
    flex-shrink: 0;
    display: flex;
    height: calc(var(--tabbar-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(12, 12, 16, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    z-index: 90;
}

.tabbar.hidden { display: none; }

.tabbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 0;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.tabbar-item .ico { opacity: 0.65; transition: opacity 0.2s; }

.tabbar-item em {
    font-style: normal;
    font-size: 9px;
    color: var(--text-dim);
    font-weight: 500;
}

.tabbar-item.active {
    color: var(--accent);
}

.tabbar-item.active .ico { opacity: 1; }

.tabbar-item.active em { color: var(--accent); opacity: 0.8; }

/* ----- Detail Page ----- */
.detail-page {
    position: fixed;
    inset: 0;
    z-index: 200;
    max-width: 430px;
    margin: 0 auto;
    background: #0a0a0f;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.detail-page.active { transform: translateX(0); }

.detail-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(80px + var(--safe-bottom));
}

.detail-back {
    position: fixed;
    top: calc(10px + var(--safe-top));
    left: 14px;
    z-index: 220;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
}

/* 顶部相册 */
.detail-hero {
    position: relative;
    width: 100%;
    height: min(72vh, 520px);
    background: #121218;
}

.detail-hero .gallery-slider {
    display: flex;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.detail-hero .gallery-slide {
    min-width: 100%;
    height: 100%;
}

.detail-hero .gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero .gallery-slide .no-image {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-dim);
}

.detail-hero .gallery-slide .no-image svg { width: 48px; opacity: 0.25; }

.detail-hero-gradient {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    background: linear-gradient(to top, #0a0a0f 0%, rgba(10, 10, 15, 0.85) 35%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.gallery-counter {
    position: absolute;
    top: calc(12px + var(--safe-top));
    right: 14px;
    z-index: 15;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.gallery-dots {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    display: flex;
    gap: 5px;
}

.gallery-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: all 0.25s;
}

.gallery-dot.active {
    width: 18px;
    border-radius: 3px;
    background: var(--accent);
}

.detail-hero-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    padding: 0 16px 16px;
}

.detail-hero-name {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid transparent;
}

.detail-badge.cat {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: rgba(196, 168, 130, 0.25);
}

.detail-badge.online {
    background: rgba(62, 207, 142, 0.15);
    color: #6ee7a8;
    border-color: rgba(62, 207, 142, 0.3);
}

.detail-badge.online::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--online);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--online);
}

.detail-badge.featured {
    background: rgba(196, 168, 130, 0.2);
    color: #e8d5b5;
    border-color: rgba(196, 168, 130, 0.35);
}

.detail-badge.offline {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border-color: var(--border);
}

/* 缩略图条 */
.detail-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    overflow-x: auto;
    background: #0a0a0f;
    border-bottom: 1px solid var(--border);
    scrollbar-width: none;
}

.detail-thumbs::-webkit-scrollbar { display: none; }

.detail-thumb {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.55;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-card);
}

.detail-thumb.active {
    opacity: 1;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(196, 168, 130, 0.3);
}

.detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 详情主体 */
.detail-body {
    padding: 14px 14px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.detail-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 10px;
    border-bottom: 1px solid var(--border);
}

.detail-block-head h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.detail-block-head span {
    font-size: 11px;
    color: var(--text-dim);
}

/* 身体数据 */
.body-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
}

.body-metric {
    padding: 14px 6px;
    text-align: center;
    background: var(--bg-card);
}

.body-metric .bm-val {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}

.body-metric .bm-val.empty {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
}

.body-metric .bm-unit {
    font-size: 10px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 1px;
}

.body-metric .bm-lbl {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* 档案表格 */
.info-rows { padding: 4px 0; }

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
}

.info-row:last-child { border-bottom: none; }

.info-row dt {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.info-row dd {
    font-size: 13px;
    color: var(--text);
    text-align: right;
    font-weight: 500;
}

.info-row dd.empty {
    color: var(--text-dim);
    font-weight: 400;
}

/* 标签 */
.detail-tags-wrap {
    padding: 12px 14px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-tag {
    font-size: 12px;
    padding: 5px 12px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(196, 168, 130, 0.2);
    border-radius: 20px;
}

.detail-tag.empty-tag {
    background: transparent;
    color: var(--text-dim);
    border-color: var(--border);
}

/* 文字块 */
.detail-block-content {
    padding: 12px 14px 14px;
}

.detail-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    white-space: pre-wrap;
}

.detail-text.empty {
    color: var(--text-dim);
    font-style: normal;
}

.detail-price-box {
    padding: 14px;
    margin: 0 14px 14px;
    background: linear-gradient(135deg, rgba(196, 168, 130, 0.12), rgba(196, 168, 130, 0.04));
    border: 1px solid rgba(196, 168, 130, 0.2);
    border-radius: 10px;
}

.detail-price-box .price-label {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.08em;
}

.detail-price-box .price-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.75;
    white-space: pre-wrap;
}

/* 相册预览网格 */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 0 14px 14px;
}

.photo-grid-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border);
}

.photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 底部客服栏（独立于详情页，始终贴底固定） */
.detail-bottom {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    padding: 10px 14px;
    padding-bottom: calc(10px + var(--safe-bottom));
    background: rgba(8, 8, 12, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 250;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}

.detail-bottom[hidden] {
    display: none !important;
}

.detail-bottom-hint {
    text-align: center;
    font-size: 10px;
    color: var(--text-dim);
    margin-bottom: 8px;
    letter-spacing: 0.06em;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #a88b5c 0%, #d4b896 45%, #c4a882 100%);
    border: none;
    border-radius: 12px;
    color: #1a1410;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.06em;
    box-shadow: 0 4px 20px rgba(196, 168, 130, 0.25);
}

.contact-btn:active { transform: scale(0.98); opacity: 0.95; }

/* Image viewer */
.image-viewer {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 0, 0, 0.94);
    display: none;
    align-items: center;
    justify-content: center;
}

.image-viewer.active { display: flex; }

.image-viewer img {
    max-width: 96%;
    max-height: 88%;
    object-fit: contain;
}

.viewer-close {
    position: absolute;
    top: calc(14px + var(--safe-top));
    right: 14px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
}

@media (min-width: 431px) {
    body {
        background: #030306;
    }
}
