:root {
    --primary-color: #1dc749;
}
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, menu, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
    display: block;
}
/* HTML5 hidden-attribute fix for newer browsers */
*[hidden] {
    display: none !important;
}
* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    height: 100%;
    font-size: 0.32rem;
    font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;
    background: #000;
    color: #fff;

}
menu, ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
    content: '';
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

a {
    color: #333;
    text-decoration: none;
}

input {
    padding: 0;
    margin: 0;
}

input[type="search"]::-webkit-search-cancel-button{
    -webkit-appearance: none;
}
input[type="search"]{-webkit-appearance:none;}
input::-webkit-search-cancel-button {display: none;}

.icon {
    font-size: 0.4rem;
}

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    background-color: #000;
    color: #fff;
    min-height: 100vh;
}

/* 顶部用户信息栏 */
.header {
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    margin: 15px 10px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #3949ab;
    border-radius: 60px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border:none;
}

.user-detail .nickname {
    font-size: 16px;
    margin-bottom: 5px;
}

.user-detail .gold {
    font-size: 12px;
    color: #ffd700;
}

.logout-btn {
    background-color: #1565c0;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #0d47a1;
}

/* 背景图区域 */
.bg-container {
    width: 100%;
    height: auto;
}

.bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

/* 直播列表区域 */
.live-list {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.live-card {
    background-color: #1a1a2e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.live-cover {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.live-footer {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.anchor-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.anchor-info .name {
    font-size: 16px;
    margin-bottom: 3px;
}

.anchor-info .viewer {
    font-size: 12px;
    color: #9e9e9e;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 底部功能按钮区 */
.footer-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    width: 90%;
    max-width: 600px;
}

.btn {
    flex: 1;
    border-radius: 30px;
    overflow: hidden;
    width: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.3s;
}
.btn img{ width: 100%; display: block;}


.btn:hover {
    opacity: 0.9;
}

.btn-icon {
    width: 25px;
    height: 25px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .live-list {
        grid-template-columns: 1fr;
    }

    .live-cover {
        height: 200px;
    }
}



