/* ================= 基础布局与深色主题 ================= */
body {
    margin: 0;
    background-color: #0f1115;
    color: #e2e8f0;
    font-family: system-ui, -apple-system, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

.card {
    background-color: #1a1d24;
    border-radius: 20px;
    border: 1px solid #2a2e38;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    width: 90%;
    max-width: 800px;
    padding: 40px;
    box-sizing: border-box;
}

/* ================= 头部 ================= */
.head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #2a2e38;
    padding-bottom: 20px;
    flex-wrap: wrap;
}
.head > div:first-child {
    flex: 1;
}
.head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}
.back-btn {
    background: #2a2e38;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #374151;
    transition: 0.2s;
}
.back-btn:hover { background: #374151; }
.logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
    box-shadow: 0 0 20px rgba(59,130,246,0.4);
}
.head h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}
.head .ok {
    color: #0ea5e9;
}

/* ================= 登录 / 注册入口按钮 ================= */
.btn-login {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 10px;
    border: 1px solid #2a2e38;
    background: rgba(255, 255, 255, .055);
    color: #e2e8f0;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.btn-login svg {
    flex: none;
    opacity: .85;
    transition: transform .18s ease, opacity .18s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    background: rgba(59, 130, 246, .14);
    border-color: rgba(59, 130, 246, .55);
    box-shadow: 0 12px 26px -16px rgba(59, 130, 246, .9);
}

.btn-login:hover svg {
    transform: translateX(2px);
    opacity: 1;
}

.btn-login:active {
    transform: translateY(0);
}

/* 已登录状态（绿色玻璃态） */
.btn-login.is-logged {
    color: #d5f7e0;
    background: rgba(52, 211, 153, .12);
    border-color: rgba(52, 211, 153, .45);
}

.btn-login.is-logged:hover {
    background: rgba(52, 211, 153, .2);
    border-color: rgba(52, 211, 153, .7);
}

/* ================= 直播列表 ================= */
.lobby-title {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lobby-title::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981; /* 绿灯表示活跃 */
}

.room-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.room-card {
    display: block;
    background: #0b0c10;
    border: 1px solid #2a2e38;
    padding: 16px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #e2e8f0;
    transition: all 0.2s;
}

.room-card:hover {
    border-color: #3b82f6;
    background: #13161c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59,130,246,0.15);
}

.room-name {
    font-size: 16px;
    font-weight: bold;
    color: #60a5fa;
    margin-bottom: 4px;
}

.room-desc {
    font-size: 13px;
    color: #64748b;
    display: flex;
    justify-content: space-between;
}

.loading {
    text-align: center;
    color: #94a3b8;
    padding: 20px;
}

.no-live {
    text-align: center;
    color: #64748b;
    padding: 30px;
    font-style: italic;
}

/* ================= 底部信息 ================= */
footer {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    border-top: 1px solid #2a2e38;
    margin-top: 40px;
    padding-top: 20px;
    line-height: 1.8;
}

footer a {
    color: #64748b;
    text-decoration: none;
}

footer a:hover {
    color: #94a3b8;
}

.beian img {
    vertical-align: middle;
    margin-right: 4px;
}