/**
 * 预约站黑金主题（独立样式，不再依赖旧 style.css）
 */

:root {
    --gold: #f0d060;
    --gold-2: #e4b93a;
    --gold-dim: rgba(240, 208, 96, 0.28);
    --ink: #070707;
    --text: #f4f4f4;
    --muted: #9a9a9a;
    --bottom-nav-height: 62px;
}

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

html, body {
    background: #000;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }

.app-shell {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--ink);
    padding: 8px 10px calc(var(--bottom-nav-height) + 18px + env(safe-area-inset-bottom, 0px));
}

.is-detail .app-shell {
    padding-bottom: calc(var(--bottom-nav-height) + 78px + env(safe-area-inset-bottom, 0px));
}

.main-content {
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: 0;
}

.home-brand {
    text-align: center;
    padding: 2px 0 10px;
}

.home-brand h1 {
    font-size: 18px;
    color: var(--gold);
    letter-spacing: .12em;
    font-weight: 800;
}

.hero-carousel {
    position: relative;
    border: 1px solid var(--gold);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 10px;
    aspect-ratio: 16 / 9;
    background: #111;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img,
.hero-slide a {
    width: 100%;
    height: 100%;
}

.hero-slide img { object-fit: cover; }

.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}

.hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    padding: 0;
}

.hero-dot.is-active { background: var(--gold); }

.sys-announce {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--gold);
    border-radius: 12px;
    background: linear-gradient(180deg, #161208 0%, #10100c 100%);
    padding: 8px 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.sys-announce-icon { flex-shrink: 0; font-size: 14px; }

.sys-announce-viewport {
    flex: 1;
    overflow: hidden;
}

.sys-announce-marquee {
    display: inline-block;
    white-space: nowrap;
    color: #ececec;
    font-size: 13px;
    padding-left: 100%;
    animation: announce-roll 22s linear infinite;
}

@keyframes announce-roll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.category-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

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

.category-item {
    flex-shrink: 0;
    padding: 6px 14px;
    background: #171717;
    color: #ddd;
    border: 1px solid #2c2c2c;
    border-radius: 999px;
    font-size: 13px;
}

.category-item.active {
    background: var(--gold);
    color: #1a1400;
    border-color: var(--gold);
    font-weight: 700;
}

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

.booking-card {
    position: relative;
    border: 1px solid var(--gold);
    border-radius: 16px;
    background: linear-gradient(180deg, #161616 0%, #0b0b0b 100%);
    padding: 18px 12px 12px;
    contain: layout paint;
}

.verified-badge {
    position: absolute;
    top: 0;
    right: 14px;
    background: #d20b0b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 9px;
    border-radius: 0 0 8px 8px;
    z-index: 2;
}

.booking-card-main {
    display: grid;
    grid-template-columns: 1fr 96px;
    gap: 10px;
    align-items: start;
}

.booking-bullets {
    margin: 4px 0 0;
    padding-left: 18px;
    color: #f3f3f3;
    font-size: 13px;
    line-height: 1.7;
}

.booking-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold);
    background: #1c1c1c;
    margin-top: 8px;
    justify-self: end;
    box-shadow: 0 0 0 3px rgba(240, 208, 96, .12);
}

.booking-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.booking-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(240, 208, 96, .18);
}

.booking-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gold);
    font-weight: 700;
    font-size: 13px;
}

.book-now-btn {
    background: linear-gradient(180deg, #ffe98f 0%, #e8c247 100%);
    color: #3a2a00 !important;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 800;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 2px 0 #b8941c;
}

.book-now-btn:active {
    transform: translateY(1px);
    box-shadow: none;
}

.book-now-btn-lg {
    display: block;
    text-align: center;
    padding: 13px 18px;
    font-size: 16px;
    border-radius: 12px;
}

.detail-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.detail-back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold-dim);
    border-radius: 10px;
    color: var(--gold);
    flex-shrink: 0;
}

.detail-top-title {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.detail-cover {
    position: relative;
    border: 1px solid var(--gold);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #111;
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.detail-title {
    font-size: 20px;
    margin: 0 0 8px;
    line-height: 1.35;
}

.detail-stats { margin-bottom: 12px; }

.detail-intro,
.detail-photos {
    border: 1px solid var(--gold-dim);
    border-radius: 14px;
    padding: 14px 12px;
    margin-bottom: 12px;
    background: #101010;
}

.detail-intro h3,
.detail-photos h3 {
    color: var(--gold);
    font-size: 14px;
    margin: 0 0 10px;
}

.detail-photo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-photo-list img,
.detail-photo-list video,
.detail-photo-list iframe,
.detail-photos .paywall-locked-wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.detail-photo-list .paywall-locked-wrap { margin: 0; }

.detail-photo-list img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #111;
}

.detail-photo-list video,
.detail-video {
    display: block;
    max-height: 70vh;
    background: #111;
    aspect-ratio: auto;
}

.detail-video-frame {
    display: block;
    min-height: 220px;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #111;
}

.detail-book-bar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    padding: 8px 12px 10px;
    background: linear-gradient(180deg, rgba(7,7,7,0), #070707 28%);
    z-index: 49;
}

.pagination {
    display: grid;
    grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr);
    align-items: center;
    gap: 6px;
    margin: 18px 0 4px;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.page-btn,
.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    background: #171717;
    color: #eee;
    border: 1px solid #333;
    border-radius: 8px;
    line-height: 1;
    white-space: nowrap;
}

.pagination > :first-child { justify-self: start; }
.pagination > :last-child { justify-self: end; }
.page-btn { min-width: 72px; }

.page-num {
    min-width: 36px;
    padding: 0;
}

.page-num.active {
    background: var(--gold);
    color: #111;
    border-color: var(--gold);
    font-weight: 700;
}

.page-btn.is-disabled {
    opacity: .35;
    pointer-events: none;
}

.bottom-nav {
    display: flex !important;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    bottom: 0;
    height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #0a0a0a;
    border-top: 1px solid #2a2410;
    z-index: 50;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #8a8a8a;
    font-size: 11px;
}

.bottom-nav-item.active { color: var(--gold); }
.bottom-nav-icon { width: 24px; height: 24px; }

.empty-state {
    color: #888;
    text-align: center;
    padding: 48px 12px;
}

.member-page, .mine-page { padding: 4px 2px 12px; }

.member-hero {
    text-align: center;
    border: 1px solid var(--gold);
    border-radius: 16px;
    padding: 24px 14px 18px;
    background: #120e04;
    margin-bottom: 12px;
}

.member-crown { color: var(--gold); font-size: 26px; }
.member-hero h1 { font-size: 20px; margin: 6px 0; }
.member-price { color: var(--gold); font-size: 32px; font-weight: 800; }

.member-card {
    border: 1px solid var(--gold);
    border-radius: 14px;
    padding: 16px;
    background: #111;
}

.member-card h2 { color: var(--gold); font-size: 15px; margin-bottom: 8px; }
.member-benefits { padding-left: 18px; line-height: 1.9; margin-bottom: 14px; }
.member-active { color: #8dff9a; text-align: center; margin-bottom: 12px; }
.member-hint { color: #888; font-size: 12px; text-align: center; margin-top: 10px; }
.membership-perk { color: var(--gold); font-weight: 700; margin: 0 0 12px; }

.mine-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--gold);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
}

.mine-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
}

.user-bar-vip {
    display: inline-block;
    background: var(--gold);
    color: #111;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.mine-guest-tag { color: #888; font-size: 12px; }

.brand-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 12px;
    padding: 2px 0 12px;
    border-bottom: 1px solid #222;
    position: relative;
    z-index: 30;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--gold);
    color: #1a1400;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-name {
    color: var(--gold);
    font-weight: 800;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-bar .lang-switcher { flex-shrink: 0; }
.brand-bar .lang-switcher-btn {
    padding: 6px 10px;
    font-size: 13px;
}
.brand-bar .lang-switcher-menu {
    left: auto;
    right: 0;
    min-width: 148px;
}

/* 语言只在顶部 brand-bar，页面内旧 mine-lang 区块不展示 */
.app-booking .mine-lang {
    display: none !important;
}

.mine-list {
    border: 1px solid var(--gold-dim);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
}

.mine-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 14px;
    border-bottom: 1px solid #1e1e1e;
}

.mine-item:last-child { border-bottom: none; }
.mine-item em { color: var(--gold); font-style: normal; font-size: 13px; }

.account-page, .recharge-page { padding: 8px 2px; }
.account-card, .recharge-card {
    background: #111;
    border: 1px solid var(--gold);
    border-radius: 14px;
    padding: 18px;
}

.account-card h2, .recharge-card h2 { color: var(--gold); text-align: center; margin-bottom: 8px; }
.account-subtitle, .recharge-desc, .recharge-tip { color: #888; text-align: center; margin-bottom: 14px; }

.account-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.account-tab {
    flex: 1;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 10px;
    background: #1a1a1a;
    color: #ccc;
}
.account-tab.active { background: var(--gold); color: #111; border-color: var(--gold); font-weight: 700; }

.form-group { margin-bottom: 12px; }
.form-group label { display: block; margin-bottom: 6px; color: #bbb; font-size: 13px; }
.form-control {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #333;
    border-radius: 10px;
}

.account-submit, .mine-logout, .recharge-submit {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    background: var(--gold);
    color: #111 !important;
    border: none;
    border-radius: 12px;
    font-weight: 800;
}

.account-error, .recharge-error { color: #ff6b6b; margin-bottom: 10px; }
.recharge-balance-box { text-align: center; margin-bottom: 12px; }
.recharge-balance { font-size: 28px; color: var(--gold); }
.recharge-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.recharge-preset {
    padding: 8px 12px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #1a1a1a;
}
.recharge-preset.active, .recharge-bankcard-btn { border-color: var(--gold); color: var(--gold); }

.lang-switcher { position: relative; }
.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #1a1a1a;
    color: #eee;
    border: 1px solid #333;
    border-radius: 10px;
}
.lang-switcher-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: #151515;
    border: 1px solid #333;
    border-radius: 10px;
    z-index: 20;
    max-height: 240px;
    overflow: auto;
}
.lang-switcher-menu.active { display: block; }
.lang-option { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; }
.lang-option.active { color: var(--gold); }

.paywall-locked-wrap { position: relative; margin: 12px 0; }
.paywall-locked-wrap[data-paywall="locked"] img { opacity: .12; }
.paywall-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.72);
    color: #fff;
    font-weight: 700;
}
.paywall-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.paywall-modal[hidden] { display: none !important; }
.paywall-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.65); }
.paywall-modal-box {
    position: relative;
    width: min(360px, 100%);
    background: #151515;
    color: #fff;
    border: 1px solid var(--gold);
    border-radius: 16px;
    padding: 22px 18px;
    text-align: center;
}
.paywall-modal-close { position: absolute; right: 10px; top: 6px; font-size: 24px; color: #aaa; }
.paywall-modal-icon { color: var(--gold); margin-bottom: 8px; }
.paywall-modal-box h3 { font-size: 18px; margin: 0 0 8px; }
.paywall-modal-box p { color: #cfcfcf; margin: 0 0 10px; font-size: 13px; line-height: 1.6; }
.membership-price-tag { color: var(--gold) !important; font-size: 22px !important; font-weight: 800; }
.paywall-price-hint, .paywall-balance-hint { color: var(--gold) !important; }
.paywall-bankcard-btn { background: #2a2410 !important; color: var(--gold) !important; border: 1px solid var(--gold); }
.recharge-success { color: #8dff9a; text-align: center; margin-bottom: 10px; }
.recharge-label, .recharge-unit { color: #888; }
.recharge-input-row { display: flex; align-items: center; gap: 8px; }
.recharge-bankcard-btn { display: block; text-align: center; background: #2a2410 !important; color: var(--gold) !important; margin-top: 8px; }
.recharge-bankcard-tip { color: #777; font-size: 12px; text-align: center; margin-top: 8px; }
.support-room-meta { display: flex; flex-direction: column; }
.support-room-meta strong { color: var(--gold); }
.chat-room-status { color: #8dff9a; font-size: 12px; }
.chat-msg time { display: block; font-size: 11px; color: #666; margin-top: 4px; }
.chat-msg.user time { text-align: right; }
.stat-cat { color: #888; font-weight: 500; }
.paywall-unlock-btn {
    display: block;
    width: 100%;
    margin: 8px 0;
    padding: 12px;
    background: var(--gold);
    color: #111 !important;
    border-radius: 10px;
    font-weight: 800;
}
.membership-skip-btn { margin-top: 8px; color: #888; }
.paywall-error { color: #ff6b6b; }

.support-page-full, .support-room, .chat-room {
    background: #0b0b0b;
    min-height: calc(100vh - var(--bottom-nav-height) - 24px);
    display: flex;
    flex-direction: column;
}
.support-room-top, .chat-detail-back {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 4px 12px;
    color: var(--gold);
}
.chat-messages { flex: 1; overflow: auto; padding: 8px 0 12px; }
.chat-msg { margin: 8px 0; }
.chat-msg.user { text-align: right; }
.chat-msg-bubble {
    display: inline-block;
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 12px;
    background: #222;
    text-align: left;
}
.chat-msg.user .chat-msg-bubble { background: #3a3010; color: #ffe9a6; }
.chat-input-bar {
    display: flex;
    gap: 8px;
    padding: 8px 0;
}
.chat-input-bar input {
    flex: 1;
    padding: 10px 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    color: #fff;
}
.chat-input-bar button, .chat-input-image-btn {
    padding: 10px;
    color: var(--gold);
}

.back-to-top { display: none !important; }

@media (min-width: 431px) {
    body { background: #050505; }
    .app-shell { box-shadow: 0 0 0 1px #1a1a1a; }
}
