* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 导航栏 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 0;
    margin-bottom: 20px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b6b;
    text-decoration: none;
}

.navbar .nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.navbar .nav-links a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
}

.navbar .nav-links a:hover {
    color: #ff6b6b;
}

.navbar .navbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    justify-content: space-between;
    width: 100%;
}

.navbar .nav-links-main {
    flex: 1 1 280px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: center;
    justify-content: center;
}

.navbar .nav-links-user {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    align-items: center;
    justify-content: flex-end;
    flex: 0 1 auto;
}

.navbar-row .logo {
    flex-shrink: 0;
}

.navbar .logo.logo--image {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.navbar .site-logo-img {
    display: block;
    max-height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* 前台文章 / 直播公约 */
.cms-page-header {
    margin-bottom: 20px;
}

.cms-page-desc {
    color: #666;
    font-size: 14px;
}

.cms-article-list {
    list-style: none;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.cms-article-list li {
    border-bottom: 1px solid #eee;
}

.cms-article-list li:last-child {
    border-bottom: none;
}

.cms-article-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    text-decoration: none;
    color: #333;
}

.cms-article-list a:hover {
    background: #f8f9fa;
    color: #ff6b6b;
}

.cms-article-list-title {
    font-weight: 500;
}

.cms-article-list-date {
    color: #999;
    font-size: 13px;
    flex-shrink: 0;
}

.cms-article-view {
    max-width: 880px;
    background: #fff;
    padding: 28px 32px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.cms-article-back {
    margin-bottom: 16px;
}

.cms-article-back a {
    color: #ff6b6b;
    text-decoration: none;
}

.cms-article-h1 {
    font-size: 26px;
    margin: 0 0 12px;
    line-height: 1.35;
}

.cms-article-meta {
    color: #888;
    margin-bottom: 28px;
    font-size: 14px;
}

.cms-article-body {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
    overflow-wrap: break-word;
}

.cms-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.cms-article-body table {
    border-collapse: collapse;
    width: 100%;
    margin: 16px 0;
}

.cms-article-body th,
.cms-article-body td {
    border: 1px solid #ddd;
    padding: 8px 10px;
}

.cms-article-body p {
    margin: 0 0 12px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info .avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.points-badge {
    background: #ffd93d;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-primary {
    background: #ff6b6b;
    color: white;
}

.btn-primary:hover {
    background: #ff5252;
}

.btn-success {
    background: #51cf66;
    color: white;
}

.btn-success:hover {
    background: #40c057;
}

.btn-secondary {
    background: #868e96;
    color: white;
}

.btn-secondary:hover {
    background: #6c757d;
}

/* 表单 */
.form-container {
    max-width: 400px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ff6b6b;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

/* 复选框/单选勿用 100% 宽度，否则与 label 分离、看起来像「没有勾选框」 */
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: auto;
    max-width: none;
    padding: 0;
    border: none;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.form-group-checkbox label,
.form-group label.form-group-label--checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
}

.form-group-checkbox label span,
.form-group label.form-group-label--checkbox span {
    font-weight: 600;
    line-height: 1.4;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b6b;
}

.form-group input[type="checkbox"]:focus,
.form-group input[type="radio"]:focus {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
    border: none;
}

.form-links {
    text-align: center;
    margin-top: 20px;
}

.form-links a {
    color: #ff6b6b;
    text-decoration: none;
}

/* 直播间列表 */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.room-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.room-card:hover {
    transform: translateY(-5px);
}

.room-card .cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.room-card .info {
    padding: 15px;
}

.room-card .title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-card .streamer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.room-card .streamer img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.room-card .stats {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 14px;
}

.live-badge {
    background: #ff6b6b;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

/* 直播间页面 */
.live-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
}

.video-section {
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    user-select: none; /* 禁止选择 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.video-section video {
    width: 100%;
    height: auto;
    display: block;
    user-select: none; /* 禁止选择 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* 禁用右键菜单 */
.video-section {
    -webkit-touch-callout: none;
}

/* 弹幕层 */
.danmaku-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

/* 飞行弹幕 */
.danmaku-item-fly {
    position: absolute;
    left: 100%;
    white-space: nowrap;
    font-weight: bold;
    line-height: 1.5;
    padding: 2px 8px;
    text-shadow: 
        1px 1px 2px rgba(0,0,0,0.9),
        -1px -1px 2px rgba(0,0,0,0.9),
        1px -1px 2px rgba(0,0,0,0.9),
        -1px 1px 2px rgba(0,0,0,0.9);
    animation: danmaku-fly 10s linear forwards;
    z-index: 5;
}

@keyframes danmaku-fly {
    from {
        left: 100%;
        transform: translateX(0);
    }
    to {
        left: 0;
        transform: translateX(-100%);
    }
}

/* 视频下方弹幕输入框 */
.video-danmaku-input {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-danmaku-input input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 25px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.video-danmaku-input input:focus {
    outline: none;
    border-color: #ff6b6b;
}

.video-danmaku-input input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.video-danmaku-input button {
    padding: 12px 30px;
    border-radius: 25px;
    white-space: nowrap;
}

/* 隐藏视频控制条 */
.video-section video::-webkit-media-controls {
    display: none !important;
}

.video-section video::-webkit-media-controls-enclosure {
    display: none !important;
}

.video-section video::-webkit-media-controls-panel {
    display: none !important;
}

.video-section video::-webkit-media-controls-play-button {
    display: none !important;
}

.video-section video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

/* 添加直播标识 */
.video-section::before {
    content: "● LIVE";
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    z-index: 10;
    animation: pulse 2s infinite;
    pointer-events: none; /* 不阻挡视频点击 */
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.video-info {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.chat-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 600px;
}

.danmaku-container {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 5px;
}

.danmaku-item {
    margin-bottom: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 5px;
}

.danmaku-item .username {
    font-weight: bold;
    color: #ff6b6b;
    margin-right: 5px;
}

.danmaku-item .time {
    color: #999;
    font-size: 12px;
    margin-left: 5px;
}

.danmaku-input {
    display: flex;
    gap: 10px;
}

.danmaku-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* 礼物面板 */
.gift-panel {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

/* 直播间礼物栏 — 参考 YY 等简洁白底礼物条 */
.gift-panel-yy {
    position: relative;
    margin-top: 16px;
    margin-bottom: 8px;
}

/* 上方详情浮层：不占文档流，宽约面板一半；由 .gift-popup-open 或悬停逻辑控制显示 */
.gift-bar-popup {
    position: absolute;
    left: 50%;
    bottom: 100%;
    width: 50%;
    max-width: 360px;
    min-width: 220px;
    margin-bottom: 10px;
    z-index: 30;
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.gift-bar-popup.gift-popup-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.gift-bar-popup-inner {
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.gift-bar-popup-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.gift-bar-popup-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.gift-bar-popup-meta {
    flex: 1;
    min-width: 0;
}

.gift-bar-popup-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.gift-bar-popup-price {
    font-size: 13px;
    font-weight: 600;
    color: #e6b800;
    margin-bottom: 4px;
}

.gift-bar-popup-desc {
    margin: 0;
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

.gift-bar-popup-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.gift-qty-pill {
    min-width: 34px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #e8e8e8;
    background: #f3f3f3;
    color: #444;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.gift-qty-pill:hover {
    background: #eee;
    border-color: #ddd;
}

.gift-qty-pill.is-active {
    background: #fff;
    border: 2px solid #ffd200;
    color: #c9a000;
    padding: 5px 11px;
}

.gift-bar-popup-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.gift-bar-popup-cost {
    font-size: 13px;
    color: #666;
}

.gift-bar-popup-send {
    display: flex;
    align-items: stretch;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.gift-qty-input {
    width: 64px;
    padding: 8px 10px;
    border: none;
    border-right: 1px solid #e0e0e0;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    outline: none;
    background: #fafafa;
}

.gift-qty-input:focus {
    background: #fff;
}

.btn-gift-send-yy {
    padding: 8px 22px;
    background: linear-gradient(180deg, #ffe033 0%, #ffd000 100%);
    border: none;
    font-size: 14px;
    font-weight: 700;
    color: #222;
    cursor: pointer;
    transition: filter 0.2s, transform 0.15s;
}

.btn-gift-send-yy:hover {
    filter: brightness(1.05);
}

.btn-gift-send-yy:active {
    transform: scale(0.98);
}

.gift-bar-popup-arrow {
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
    filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.06));
    pointer-events: none;
}

/* 底部礼物横条 */
.gift-bar-yy {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 12px 12px 10px 10px;
    padding: 10px 8px 10px 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.gift-bar-yy-scroll {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.gift-bar-track {
    display: flex;
    flex-direction: row;
    gap: 6px;
    padding: 2px 0;
    width: max-content;
}

.gift-panel-yy .gift-item-new {
    flex: 0 0 auto;
    width: 72px;
    min-width: 72px;
    padding: 8px 6px;
    text-align: center;
    cursor: pointer;
    border-radius: 10px;
    border: 2px solid transparent;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    position: relative;
}

.gift-panel-yy .gift-item-new::before {
    display: none;
}

.gift-panel-yy .gift-item-new:hover {
    background: #f3f3f3;
}

.gift-panel-yy .gift-item-new.selected {
    border-color: #ffd200;
    background: #fffef5;
    box-shadow: 0 0 0 1px rgba(255, 210, 0, 0.35);
}

.gift-panel-yy .gift-icon-new {
    font-size: 36px;
    margin-bottom: 4px;
    filter: none;
    line-height: 1;
}

.gift-panel-yy .gift-item-new:hover .gift-icon-new {
    transform: scale(1.08);
}

.gift-panel-yy .gift-name-new {
    color: #333;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: none;
}

.gift-panel-yy .gift-points-new {
    color: #c9a000;
    font-size: 10px;
    font-weight: 700;
    background: rgba(255, 208, 0, 0.2);
    padding: 1px 6px;
    border-radius: 999px;
    display: inline-block;
}

.gift-bar-yy-side {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-shrink: 0;
    padding-left: 8px;
    margin-left: 2px;
    border-left: 1px solid #f0f0f0;
}

.gift-bar-points-badge {
    font-size: 11px;
    font-weight: 700;
    color: #c9a000;
    white-space: nowrap;
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gift-bar-arrow-btn {
    width: 32px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid #e5e5e5;
    background: #f5f5f5;
    color: #555;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}

.gift-bar-arrow-btn:hover {
    background: #eee;
}

.gift-bar-recharge {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px 4px 4px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.gift-bar-recharge:hover {
    background: #fff9e6;
    color: #c9a000;
}

.gift-bar-recharge-ic {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #fff3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #b8860b;
    flex-shrink: 0;
}

/* 兼容旧类名（其它页若引用） */
.gift-panel-new {
    margin-top: 16px;
}

.gift-carousel-track {
    display: flex;
}

/* 数量选择弹窗 */
.quantity-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.quantity-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.quantity-popup-content {
    position: relative;
    background: linear-gradient(180deg, #2a2a3e 0%, #1f1f2e 100%);
    border-radius: 16px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.quantity-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.quantity-popup-header h3 {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.popup-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: rgba(255,107,107,0.8);
    transform: rotate(90deg);
}

.quantity-options {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.quantity-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quantity-option:hover {
    background: rgba(255,107,107,0.2);
    border-color: #ff6b6b;
    transform: translateX(5px);
}

.option-name {
    color: #ff6b9d;
    font-size: 16px;
    font-weight: 600;
}

.option-value {
    color: #ffd700;
    font-size: 18px;
    font-weight: 700;
    background: rgba(255,215,0,0.15);
    padding: 5px 15px;
    border-radius: 20px;
}

.quantity-custom {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.quantity-custom input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
}

.quantity-custom input:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255,255,255,0.12);
}

.quantity-custom input::placeholder {
    color: rgba(255,255,255,0.4);
}

.btn-custom-confirm {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,107,107,0.3);
}

.btn-custom-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,107,0.5);
}

/* 响应式：礼物栏 */
@media (max-width: 768px) {
    .gift-bar-popup {
        width: 88%;
        max-width: none;
        min-width: 0;
    }
    
    .gift-bar-popup-inner {
        padding: 12px;
    }
    
    .gift-bar-popup-pills {
        gap: 6px;
    }
    
    .gift-qty-pill {
        min-width: 36px;
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .gift-panel-yy .gift-item-new {
        width: 64px;
        min-width: 64px;
    }
    
    .gift-panel-yy .gift-icon-new {
        font-size: 30px;
    }
    
    .gift-bar-yy-side {
        gap: 4px;
        padding-left: 6px;
    }
    
    .gift-bar-points-badge {
        max-width: 80px;
        font-size: 10px;
    }
    
    .gift-bar-arrow-btn {
        width: 28px;
        height: 26px;
        font-size: 16px;
    }
    
    .gift-bar-popup-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .gift-bar-popup-send {
        width: 100%;
    }
    
    .gift-qty-input {
        flex: 1;
    }
    
    .btn-gift-send-yy {
        flex: 1;
        min-width: 100px;
    }
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.gift-item {
    text-align: center;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.gift-item:hover {
    border-color: #ff6b6b;
    transform: scale(1.05);
}

.gift-item.selected {
    border-color: #ff6b6b;
    background: #fff5f5;
}

.gift-item .icon {
    font-size: 40px;
    margin-bottom: 5px;
}

.gift-item .name {
    font-weight: bold;
    margin-bottom: 5px;
}

.gift-item .points {
    color: #ffd93d;
    font-weight: bold;
}

/* 管理后台 */
.admin-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    min-height: calc(100vh - 100px);
}

.admin-sidebar {
    background: white;
    padding: 20px;
    border-radius: 10px;
    height: fit-content;
}

.admin-sidebar .menu-item {
    display: block;
    padding: 12px 15px;
    margin-bottom: 5px;
    text-decoration: none;
    color: #333;
    border-radius: 5px;
    transition: all 0.3s;
}

.admin-sidebar .menu-item:hover,
.admin-sidebar .menu-item.active {
    background: #ff6b6b;
    color: white;
}

.admin-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
}

/* 表格 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background: #f8f9fa;
    font-weight: bold;
}

.table tr:hover {
    background: #f8f9fa;
}

/* 状态标签 */
.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* 消息提示 */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 首页顶部横幅 + 主推直播 */
.home-hero-banner {
    width: 100%;
    padding: 45px 0 51px;
    background-color: #8ecae6;
    background-image:
        radial-gradient(ellipse 85% 55% at 12% 18%, rgba(255, 255, 255, 0.5) 0%, transparent 52%),
        radial-gradient(ellipse 70% 45% at 88% 75%, rgba(255, 255, 255, 0.4) 0%, transparent 48%),
        linear-gradient(168deg, #5eb8e0 0%, #8fd4f0 32%, #b8e8fc 58%, #7ecae8 100%);
    background-size: auto, auto, auto;
    background-position: center;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.25);
}

.home-hero-banner--has-image {
    background-image:
        linear-gradient(180deg, rgba(230, 248, 255, 0.82) 0%, rgba(165, 210, 235, 0.78) 100%),
        var(--hero-bg-img);
    background-size: cover, cover;
    background-position: center, center;
}

.home-hero-inner {
    display: flex;
    align-items: stretch;
    gap: 16px;
    min-height: 544px;
    max-width: 1200px;
}

.home-hero-main {
    flex: 1;
    min-width: 0;
    display: flex;
}

.home-hero-feature {
    position: relative;
    flex: 1;
    display: block;
    min-height: 480px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(15, 80, 120, 0.22);
    text-decoration: none;
    color: inherit;
    pointer-events: auto;
}

.home-hero-feature img,
.home-hero-feature .home-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    background: #000;
}

.home-hero-feature .home-hero-video {
    border: none;
    outline: none;
}

.home-hero-feature-link {
    position: absolute;
    inset: 0;
    z-index: 3;
    cursor: pointer;
}

.home-hero-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.home-hero-feature-meta {
    position: relative;
    padding: 0 4px 2px 0;
    color: #fff;
    flex-shrink: 0;
}

.home-hero-live-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    background: #ff4757;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
}

.home-hero-feature-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 6px;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.home-hero-feature-sub {
    margin: 0;
    font-size: 13px;
    opacity: 0.95;
}

/* 底部信息层：加高约 1.6 倍于原先仅底部标题条区域，覆盖约 56% 卡片高度 */
.home-hero-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: 56%;
    min-height: 294px;
    display: flex;
    flex-direction: column;
    z-index: 2;
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.42) 52%, rgba(0, 0, 0, 0.12) 100%);
    transition: background 0.3s ease;
    pointer-events: none;
}

.home-hero-feature:hover .home-hero-overlay,
.home-hero-feature:focus-within .home-hero-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.58) 55%, rgba(0, 0, 0, 0.22) 100%);
}

.home-hero-overlay-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px 18px 16px;
    min-height: 0;
    pointer-events: none;
}

.home-hero-playing {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    flex-shrink: 0;
}

.home-hero-playing-icon {
    display: inline-flex;
    align-items: flex-end;
    gap: 4px;
    height: 18px;
}

.home-hero-bar {
    width: 4px;
    border-radius: 2px;
    background: #fff;
    transform-origin: bottom center;
    animation: home-hero-bar-pulse 0.85s ease-in-out infinite;
}

.home-hero-bar:nth-child(1) {
    height: 9px;
}

.home-hero-bar:nth-child(2) {
    height: 16px;
    animation-delay: 0.12s;
}

.home-hero-bar:nth-child(3) {
    height: 11px;
    animation-delay: 0.24s;
}

@keyframes home-hero-bar-pulse {
    0%, 100% {
        transform: scaleY(0.5);
        opacity: 0.75;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.home-hero-cta-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: none;
}

.home-hero-feature:hover .home-hero-cta-wrap,
.home-hero-feature:focus-within .home-hero-cta-wrap {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.home-hero-feature:focus-within {
    outline: 3px solid rgba(255, 255, 255, 0.95);
    outline-offset: 3px;
}

.home-hero-cta {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 24px;
    background: #fff;
    color: #ff6b6b;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.home-hero-feature--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.35);
    border: 2px dashed rgba(255, 255, 255, 0.65);
    cursor: default;
}

.home-hero-empty-inner {
    text-align: center;
    color: rgba(30, 80, 110, 0.9);
}

.home-hero-empty-inner p {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.home-hero-empty-inner span {
    font-size: 14px;
    opacity: 0.85;
}

.home-hero-side {
    width: 212px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-hero-thumb {
    position: relative;
    flex: 1;
    min-height: 141px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 80, 120, 0.18);
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-hero-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 80, 120, 0.28);
}

.home-hero-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero-thumb-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 10px 6px;
    font-size: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-hero-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 141px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.28);
    border: 1px dashed rgba(255, 255, 255, 0.55);
    color: rgba(35, 90, 120, 0.75);
    font-size: 13px;
}

/* 直播中心列表页 */
.live-center-header {
    margin: 24px 0 20px;
}

.live-center-header h1 {
    font-size: 26px;
    margin-bottom: 8px;
}

.live-center-header p {
    color: #666;
    font-size: 14px;
}

/* 全站页脚 */
.site-footer {
    margin-top: auto;
    padding: 20px 0;
    background: #fff;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 13px;
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer-nav a {
    color: #666;
    text-decoration: none;
}

.site-footer-nav a:hover {
    color: #ff6b6b;
}

/* 登录/注册统一头尾布局 */
.auth-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f0f2f5;
}

.auth-layout--member {
    background: linear-gradient(180deg, #fff5f5 0%, #f5f5f5 45%, #f0f2f5 100%);
}

.auth-layout--streamer {
    background: linear-gradient(180deg, #1e1b4b 0%, #312e81 22%, #e0e7ff 22%, #f0f2f5 55%);
}

.auth-layout--admin {
    background: linear-gradient(180deg, #212529 0%, #343a40 30%, #e9ecef 30%, #f0f2f5 100%);
}

.auth-layout--hub {
    background: linear-gradient(180deg, #f8f9fa 0%, #f0f2f5 100%);
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px 40px;
}

.hub-main {
    align-items: flex-start;
    padding-top: 32px;
}

.hub-intro {
    text-align: center;
    margin-bottom: 28px;
}

.hub-intro h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.hub-intro p {
    color: #666;
}

.hub-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.hub-card {
    border-radius: 14px;
    padding: 24px 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hub-card h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.hub-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 18px;
    min-height: 44px;
}

.hub-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hub-card--member {
    background: #fff;
    border-top: 4px solid #ff6b6b;
}

.hub-card--streamer {
    background: linear-gradient(145deg, #ffffff 0%, #f5f3ff 100%);
    border-top: 4px solid #7c3aed;
}

.hub-card--admin {
    background: #fff;
    border: 1px solid #dee2e6;
    border-top: 4px solid #495057;
}

.hub-btn-streamer {
    background: #7c3aed;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    font-size: 14px;
}

.hub-btn-streamer:hover {
    background: #6d28d9;
    color: #fff;
}

.hub-btn-admin {
    background: #343a40;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    font-size: 14px;
}

.hub-btn-admin:hover {
    background: #212529;
    color: #fff;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    padding: 28px 30px 22px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.auth-card--member {
    border-top: 5px solid #ff6b6b;
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.12);
}

.auth-card--streamer {
    border-top: 5px solid #7c3aed;
    background: linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
}

.auth-card--streamer .form-group label {
    color: #3730a3;
}

.auth-card--admin {
    border: 1px solid #ced4da;
    border-top: 5px solid #495057;
    box-shadow: 0 12px 48px rgba(33, 37, 41, 0.18);
}

.auth-card-head {
    margin-bottom: 22px;
}

.auth-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.auth-badge--member {
    background: #ffe3e3;
    color: #c92a2a;
}

.auth-badge--streamer {
    background: #ede9fe;
    color: #5b21b6;
}

.auth-badge--admin {
    background: #e9ecef;
    color: #212529;
}

.auth-card-title {
    font-size: 24px;
    margin: 0 0 8px;
    color: #333;
}

.auth-card--streamer .auth-card-title {
    color: #1e1b4b;
}

.auth-card-desc {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.auth-card--streamer .auth-card-desc {
    color: #4c1d95;
    opacity: 0.9;
}

.auth-form .btn {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    font-size: 16px;
}

.btn-auth-member {
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-auth-member:hover {
    background: #ff5252;
    color: #fff;
}

.btn-auth-streamer {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-auth-streamer:hover {
    filter: brightness(1.08);
    color: #fff;
}

.btn-auth-admin {
    background: #212529;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.btn-auth-admin:hover {
    background: #000;
    color: #fff;
}

.auth-card-foot {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.auth-card-foot--light {
    border-top-color: rgba(124, 58, 237, 0.2);
}

.auth-card-foot a {
    color: #ff6b6b;
    text-decoration: none;
}

.auth-card--streamer .auth-card-foot a {
    color: #7c3aed;
}

.auth-card--admin .auth-card-foot a {
    color: #495057;
}

/* 响应式 */
@media (max-width: 768px) {
    .live-container {
        grid-template-columns: 1fr;
    }
    
    .admin-container {
        grid-template-columns: 1fr;
    }
    
    .room-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .home-hero-inner {
        flex-direction: column;
        min-height: 400px;
    }

    .home-hero-side {
        width: 100%;
        flex-direction: row;
        min-height: 100px;
    }

    .home-hero-thumb,
    .home-hero-thumb--placeholder {
        flex: 1;
        min-height: 154px;
    }

    .home-hero-feature {
        min-height: 352px;
    }

    .home-hero-feature .home-hero-overlay {
        height: 58%;
        min-height: 236px;
    }

    .home-hero-feature .home-hero-cta-wrap {
        opacity: 1;
        transform: none;
        min-height: 40px;
    }

    .home-hero-feature .home-hero-cta {
        padding: 10px 22px;
        font-size: 14px;
    }

    .home-hero-overlay-inner {
        padding: 10px 14px 12px;
    }
}
