/* 凤来楼 PC端样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg: #0a0a14;
    --bg-card: #14142a;
    --bg-hover: #1a1a36;
    --bg-nav: rgba(10,10,20,0.95);
    --text: #fff;
    --text2: rgba(255,255,255,0.6);
    --text3: rgba(255,255,255,0.35);
    --border: rgba(255,255,255,0.08);
    --accent: #ff4757;
    --accent2: #ff6b81;
    --gold: #ffd75a;
    --radius: 8px;
    --max-w: 1280px;
}
html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* === Top Navbar === */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    height: 60px; background: var(--bg-nav); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
}
.navbar-inner {
    width: 100%; max-width: var(--max-w); padding: 0 24px;
    display: flex; align-items: center; gap: 32px;
}
.navbar-logo {
    font-size: 22px; font-weight: 700; color: var(--text);
    letter-spacing: 2px; flex-shrink: 0; white-space: nowrap;
}
.navbar-logo span { color: var(--accent); }
.navbar-nav {
    display: flex; align-items: center; gap: 4px; flex: 1;
}
.navbar-nav a {
    padding: 8px 18px; border-radius: 8px; font-size: 14px; color: var(--text2);
    transition: all 0.2s; white-space: nowrap;
}
.navbar-nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.navbar-nav a.active { color: var(--text); background: rgba(255,71,87,0.15); font-weight: 600; }
.navbar-search {
    position: relative; flex-shrink: 0;
}
.navbar-search input {
    width: 220px; height: 36px; padding: 0 36px 0 14px;
    border: 1px solid var(--border); border-radius: 18px;
    background: rgba(255,255,255,0.05); color: var(--text);
    font-size: 13px; outline: none; transition: all 0.2s;
}
.navbar-search input:focus { border-color: var(--accent); width: 280px; }
.navbar-search input::placeholder { color: var(--text3); }
.navbar-search svg {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; fill: var(--text3); pointer-events: none;
}
.navbar-user {
    display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.navbar-user .btn-login {
    padding: 7px 20px; border-radius: 18px; font-size: 13px; font-weight: 600;
    color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.navbar-user .user-avatar {
    width: 34px; height: 34px; border-radius: 50%; background: #333;
    overflow: hidden; cursor: pointer;
}
.navbar-user .user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.navbar-user .user-coin {
    font-size: 13px; color: var(--gold); font-weight: 600;
}

/* === Main Content === */
.main {
    max-width: var(--max-w); margin: 0 auto;
    padding: 80px 24px 40px;
}
.page-title {
    font-size: 24px; font-weight: 700; margin-bottom: 20px;
}
.section-title {
    font-size: 18px; font-weight: 600; margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}
.section-title .badge {
    font-size: 11px; padding: 2px 8px; border-radius: 10px;
    background: rgba(255,71,87,0.15); color: var(--accent2);
}

/* === Video Grid === */
.video-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.video-card {
    border-radius: var(--radius); overflow: hidden; background: var(--bg-card);
    cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.video-cover {
    position: relative; width: 100%; aspect-ratio: 9/12;
    background: #1a1a30 center/cover no-repeat;
}
.video-play-count {
    position: absolute; bottom: 6px; left: 8px;
    font-size: 11px; color: rgba(255,255,255,0.8);
    display: flex; align-items: center; gap: 4px;
}
.video-duration {
    position: absolute; bottom: 6px; right: 8px;
    font-size: 11px; color: rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.5); padding: 1px 6px; border-radius: 4px;
}
.video-info { padding: 10px 12px; }
.video-title {
    font-size: 13px; color: var(--text); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 6px;
}
.video-author {
    font-size: 12px; color: var(--text2);
    display: flex; align-items: center; gap: 6px;
}
.video-author-avatar {
    width: 20px; height: 20px; border-radius: 50%; background: #333; overflow: hidden;
}
.video-author-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* === Live Grid === */
.live-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.live-card {
    border-radius: var(--radius); overflow: hidden; background: var(--bg-card);
    cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.live-card:hover {
    transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.live-cover {
    position: relative; width: 100%; aspect-ratio: 3/4;
    background: #252540 center/cover no-repeat;
}
.live-badge {
    position: absolute; top: 8px; left: 8px;
    padding: 2px 10px; border-radius: 10px; font-size: 11px;
    color: #fff; background: rgba(255,0,0,0.7);
}
.live-viewers {
    position: absolute; top: 8px; right: 8px;
    padding: 2px 10px; border-radius: 10px; font-size: 11px;
    color: #fff; background: rgba(0,0,0,0.5);
}
.live-info {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
}
.live-avatar {
    width: 36px; height: 36px; border-radius: 50%; background: #333;
    overflow: hidden; flex-shrink: 0;
}
.live-avatar img { width: 100%; height: 100%; object-fit: cover; }
.live-meta { flex: 1; min-width: 0; }
.live-title {
    font-size: 13px; color: var(--text); font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.live-anchor { font-size: 12px; color: var(--text2); margin-top: 2px; }

/* === Private Room Grid (same as live but with price) === */
.private-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.private-card {
    border-radius: var(--radius); overflow: hidden; background: var(--bg-card);
    cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.private-card:hover {
    transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.private-cover {
    position: relative; width: 100%; aspect-ratio: 3/4;
    background: #252540 center/cover no-repeat;
}
.private-cover.cover-1 { background: linear-gradient(135deg, #ff6b81, #c44569); }
.private-cover.cover-2 { background: linear-gradient(135deg, #6c5ce7, #a29bfe); }
.private-cover.cover-3 { background: linear-gradient(135deg, #fd79a8, #e84393); }
.private-cover.cover-4 { background: linear-gradient(135deg, #00cec9, #0984e3); }
.private-cover.cover-5 { background: linear-gradient(135deg, #ffa502, #ff6348); }
.private-cover.cover-6 { background: linear-gradient(135deg, #e17055, #d63031); }
.private-cover-icon {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 56px; opacity: 0.25;
}
.private-badge { position: absolute; top: 8px; left: 8px; }
.private-viewers {
    position: absolute; top: 8px; right: 8px;
    padding: 2px 10px; border-radius: 10px; font-size: 11px;
    color: #fff; background: rgba(0,0,0,0.5);
}
.private-price-tag {
    position: absolute; bottom: 8px; right: 8px;
    padding: 4px 12px; border-radius: 12px; font-size: 14px; font-weight: 700;
    color: #fff; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
}
.private-price-tag em { color: var(--gold); font-style: normal; }
.private-seats-tag {
    position: absolute; bottom: 8px; left: 8px;
    padding: 2px 10px; border-radius: 10px; font-size: 11px;
    color: rgba(255,255,255,0.8); background: rgba(0,0,0,0.5);
}
.private-info {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
}
.private-avatar {
    width: 36px; height: 36px; border-radius: 50%; background: #333;
    overflow: hidden; flex-shrink: 0;
}
.private-avatar img { width: 100%; height: 100%; object-fit: cover; }
.private-meta { flex: 1; min-width: 0; }
.private-title {
    font-size: 13px; color: var(--text); font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.private-anchor { font-size: 12px; color: var(--text2); margin-top: 2px; }

/* Charge tags */
.charge-tag {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    font-size: 11px; font-weight: 600;
}
.ticket-tag { background: rgba(255,215,90,0.2); color: var(--gold); border: 1px solid rgba(255,215,90,0.3); }
.time-tag { background: rgba(255,71,87,0.2); color: var(--accent2); border: 1px solid rgba(255,71,87,0.3); }

/* === Category Pills === */
.category-bar {
    display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap;
}
.cat-pill {
    padding: 7px 20px; border-radius: 20px; font-size: 13px;
    color: var(--text2); background: rgba(255,255,255,0.06);
    cursor: pointer; transition: all 0.2s; border: none;
}
.cat-pill:hover { color: var(--text); background: rgba(255,255,255,0.1); }
.cat-pill.active { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); }

/* === Tabs === */
.tabs { display: flex; gap: 4px; margin-bottom: 20px; }
.tab-btn {
    padding: 8px 24px; border-radius: 8px; font-size: 14px; font-weight: 500;
    color: var(--text2); background: transparent; transition: all 0.2s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: #fff; background: rgba(255,71,87,0.15); }

/* === Live Room Page === */
.liveroom-layout {
    display: grid; grid-template-columns: 1fr 360px; gap: 20px;
    min-height: calc(100vh - 100px);
}
.liveroom-player {
    position: relative; background: #000; border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 16/9;
}
.liveroom-player video { width: 100%; height: 100%; object-fit: contain; }
.liveroom-placeholder {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}
.liveroom-placeholder-text { color: var(--text3); font-size: 16px; }

.liveroom-sidebar {
    display: flex; flex-direction: column; background: var(--bg-card);
    border-radius: var(--radius); overflow: hidden;
}
.liveroom-host {
    display: flex; align-items: center; gap: 12px;
    padding: 16px; border-bottom: 1px solid var(--border);
}
.liveroom-host-avatar {
    width: 44px; height: 44px; border-radius: 50%; background: #333; overflow: hidden;
}
.liveroom-host-avatar img { width: 100%; height: 100%; object-fit: cover; }
.liveroom-host-info { flex: 1; }
.liveroom-host-name { font-size: 15px; font-weight: 600; }
.liveroom-host-viewers { font-size: 12px; color: var(--text2); margin-top: 2px; }
.liveroom-follow-btn {
    padding: 6px 18px; border-radius: 16px; font-size: 13px;
    color: #fff; background: var(--accent);
}
.liveroom-follow-btn.following { background: rgba(255,255,255,0.1); color: var(--text2); }

.liveroom-chat {
    flex: 1; overflow-y: auto; padding: 12px 16px; min-height: 300px;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.chat-msg { padding: 4px 0; font-size: 13px; color: rgba(255,255,255,0.85); line-height: 1.5; }
.chat-name { color: var(--gold); font-weight: 500; margin-right: 4px; }
.chat-msg.chat-gift .chat-name { color: var(--accent2); }
.chat-msg.chat-self .chat-name { color: #69db7c; }

.liveroom-gift-panel {
    border-top: 1px solid var(--border); padding: 12px 16px;
}
.gift-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px;
}
.gift-item {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 4px; border-radius: 8px; background: rgba(255,255,255,0.03);
    cursor: pointer; border: 2px solid transparent; transition: all 0.2s;
}
.gift-item:hover { background: rgba(255,255,255,0.06); }
.gift-item.active { border-color: var(--accent); background: rgba(255,71,87,0.1); }
.gift-icon { font-size: 24px; }
.gift-name { font-size: 10px; color: var(--text2); }
.gift-price { font-size: 10px; color: var(--gold); }
.gift-actions {
    display: flex; justify-content: space-between; align-items: center;
}
.gift-coin-info { font-size: 13px; color: var(--text2); }
.gift-coin-info em { color: var(--gold); font-style: normal; font-weight: 600; }
.gift-send-btn {
    padding: 7px 24px; border-radius: 18px; font-size: 13px; font-weight: 600;
    color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.liveroom-input {
    display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border);
}
.liveroom-input input {
    flex: 1; height: 36px; padding: 0 14px; border: 1px solid var(--border);
    border-radius: 18px; background: rgba(255,255,255,0.05); color: var(--text);
    font-size: 13px; outline: none;
}
.liveroom-input input:focus { border-color: var(--accent); }
.liveroom-input input::placeholder { color: var(--text3); }
.liveroom-input .send-btn {
    padding: 0 16px; border-radius: 18px; font-size: 13px;
    color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2));
}

/* === Gift FX === */
.gift-fx {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 100; padding: 14px 32px; border-radius: 28px;
    background: rgba(255,71,87,0.85); color: #fff; font-size: 18px; font-weight: 600;
    display: flex; align-items: center; gap: 10px;
    animation: giftPop 0.5s ease-out;
}
.gift-fx-icon { font-size: 32px; }
@keyframes giftPop {
    0% { transform: translate(-50%,-50%) scale(0.5); opacity: 0; }
    50% { transform: translate(-50%,-50%) scale(1.2); }
    100% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
}

/* === Buy Overlay === */
.buy-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 300;
    display: flex; align-items: center; justify-content: center;
}
.buy-modal {
    background: var(--bg-card); border-radius: 16px; padding: 36px 32px;
    width: 360px; text-align: center;
}
.buy-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.buy-desc { font-size: 14px; color: var(--text2); margin-bottom: 16px; }
.buy-price { font-size: 32px; font-weight: 700; color: var(--gold); margin-bottom: 24px; }
.buy-btn {
    display: block; width: 100%; padding: 12px; border-radius: 24px;
    font-size: 16px; font-weight: 600; color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    margin-bottom: 10px;
}
.buy-cancel {
    display: block; width: 100%; padding: 10px; background: none;
    color: var(--text3); font-size: 14px;
}

/* === Login Page === */
.login-page {
    display: flex; align-items: center; justify-content: center;
    min-height: calc(100vh - 60px); padding-top: 60px;
}
.login-box {
    width: 400px; background: var(--bg-card); border-radius: 16px; padding: 40px 32px;
}
.login-box h2 { font-size: 24px; text-align: center; margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; color: var(--text2); margin-bottom: 6px; }
.form-group input {
    width: 100%; height: 44px; padding: 0 16px; border: 1px solid var(--border);
    border-radius: 8px; background: rgba(255,255,255,0.05); color: var(--text);
    font-size: 14px; outline: none; transition: border 0.2s;
}
.form-group input:focus { border-color: var(--accent); }
.form-group input::placeholder { color: var(--text3); }
.form-submit {
    width: 100%; height: 44px; border-radius: 22px; font-size: 16px; font-weight: 600;
    color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2));
    margin-top: 8px;
}
.form-switch {
    text-align: center; margin-top: 20px; font-size: 13px; color: var(--text2);
}
.form-switch a { color: var(--accent2); }

/* === Skeleton === */
.skeleton {
    background: linear-gradient(110deg, var(--bg-card) 30%, #1f1f3a 50%, var(--bg-card) 70%);
    background-size: 200% 100%; animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* === Empty state === */
.empty-state {
    text-align: center; padding: 60px 20px; color: var(--text3); font-size: 15px;
}

/* === Recharge Page === */
.recharge-layout {
    display: grid; grid-template-columns: 1fr 360px; gap: 24px;
}
.coin-tiers {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.coin-tier {
    padding: 20px; border-radius: 12px; background: var(--bg-card);
    border: 2px solid transparent; cursor: pointer; text-align: center;
    transition: all 0.2s;
}
.coin-tier:hover { border-color: rgba(255,215,90,0.3); }
.coin-tier.active { border-color: var(--gold); background: rgba(255,215,90,0.05); }
.coin-tier .amount { font-size: 24px; font-weight: 700; color: var(--gold); }
.coin-tier .bonus { font-size: 12px; color: var(--accent2); margin-top: 4px; }
.coin-tier .price { font-size: 14px; color: var(--text2); margin-top: 8px; }

.wallet-card {
    background: var(--bg-card); border-radius: 12px; padding: 24px;
}
.wallet-balance { font-size: 14px; color: var(--text2); margin-bottom: 4px; }
.wallet-amount { font-size: 36px; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.wallet-unit { font-size: 13px; color: var(--text3); }

/* === Responsive === */
@media (max-width: 1100px) {
    .video-grid, .live-grid, .private-grid { grid-template-columns: repeat(3, 1fr); }
    .liveroom-layout { grid-template-columns: 1fr 300px; }
}
@media (max-width: 768px) {
    .video-grid, .live-grid, .private-grid { grid-template-columns: repeat(2, 1fr); }
    .navbar-search input { width: 160px; }
    .navbar-search input:focus { width: 200px; }
    .liveroom-layout { grid-template-columns: 1fr; }
    .coin-tiers { grid-template-columns: repeat(2, 1fr); }
}
