/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-small {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* 主要内容区域 */
.main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* 英雄区域 */
.hero {
    text-align: center;
    padding: 3rem 0;
    background: white;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* 直播网格 */
.live-streams {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.live-streams h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.stream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.stream-card {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stream-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.stream-thumbnail {
    position: relative;
    height: 180px;
    background: #ddd;
    overflow: hidden;
}

.stream-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.viewer-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.stream-info {
    padding: 1rem;
}

.stream-info h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.streamer {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.no-streams {
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* 认证表单 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
}

.auth-link a {
    color: #667eea;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* 错误和成功消息 */
.error {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
}

/* 直播控制台 */
.stream-dashboard {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stream-preview,
.stream-settings {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.video-container {
    position: relative;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.video-container video {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.stream-controls {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-indicator,
.offline-indicator {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
}

.live-indicator {
    background: rgba(231, 76, 60, 0.9);
}

.stream-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
}

.stream-info p {
    margin-bottom: 0.5rem;
}

.stream-info code {
    background: #e9ecef;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
}

.status-live {
    color: #28a745;
    font-weight: bold;
}

.status-offline {
    color: #6c757d;
}

.quality-settings {
    margin-top: 1.5rem;
}

.quality-settings h4 {
    margin-bottom: 0.5rem;
}

/* 聊天区域 */
.chat-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.chat-container {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1rem;
    overflow-y: auto;
    background: #f8f9fa;
    margin-bottom: 1rem;
}

.chat-message {
    margin-bottom: 0.5rem;
    padding: 0.3rem;
    border-radius: 3px;
}

.chat-message .username {
    font-weight: bold;
    color: #667eea;
}

.chat-input {
    display: flex;
    gap: 0.5rem;
}

.chat-input input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.chat-login {
    text-align: center;
    padding: 1rem;
    color: #666;
}

/* 观看页面 */
.watch-page {
    background: #000;
    color: white;
}

.watch-page .header {
    background: rgba(0,0,0,0.8);
}

.watch-main {
    display: grid;
    grid-template-columns: 1fr 350px;
    height: calc(100vh - 80px);
}

.video-section {
    background: #000;
    position: relative;
}

.video-section .video-container {
    height: 70vh;
    position: relative;
}

.video-section video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
}

.offline-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #666;
}

.stream-info {
    padding: 1rem;
    background: rgba(255,255,255,0.1);
}

.stream-info h2 {
    margin-bottom: 0.5rem;
}

.description {
    color: #ccc;
    margin: 1rem 0;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.sidebar {
    background: #1a1a1a;
    padding: 1rem;
    overflow-y: auto;
}

.sidebar .chat-section,
.sidebar .gift-section,
.sidebar .viewers-section {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.sidebar h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.gift-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.gift-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.gift-item:hover {
    background: rgba(255,255,255,0.2);
}

.gift-icon {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.gift-name {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.gift-price {
    font-size: 0.7rem;
    color: #ffd700;
}

.viewers-list {
    max-height: 200px;
    overflow-y: auto;
}

/* 底部 */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stream-dashboard {
        grid-template-columns: 1fr;
    }
    
    .watch-main {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }
    
    .sidebar {
        height: auto;
        max-height: 50vh;
    }
    
    .stream-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 10px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stream-card,
.chat-message {
    animation: fadeIn 0.3s ease;
}

/* 滚动条样式 */
.chat-messages::-webkit-scrollbar,
.viewers-list::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track,
.viewers-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb,
.viewers-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
.viewers-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 礼物动画样式 */
.gift-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    pointer-events: none;
}

@keyframes giftPop {
    0% { 
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    20% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    80% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    max-width: 300px;
    word-wrap: break-word;
}

.notification-success {
    background: #28a745;
}

.notification-error {
    background: #dc3545;
}

.notification-warning {
    background: #ffc107;
    color: #000;
}

.notification-info {
    background: #17a2b8;
}

@keyframes slideIn {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes slideOut {
    from { 
        transform: translateX(0); 
        opacity: 1; 
    }
    to { 
        transform: translateX(100%); 
        opacity: 0; 
    }
}

/* 互动按钮样式 */
.interaction-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.interaction-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.interaction-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.interaction-btn.liked {
    background: #e74c3c;
}

.interaction-btn.followed {
    background: #28a745;
}

@keyframes bounce {
    0%, 20%, 60%, 100% { 
        transform: translateY(0); 
    }
    40% { 
        transform: translateY(-10px); 
    }
    80% { 
        transform: translateY(-5px); 
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 工具提示 */
.tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    z-index: 1000;
    pointer-events: none;
    white-space: nowrap;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* 直播状态指示器 */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-live .status-indicator {
    background: #28a745;
    animation: pulse 2s infinite;
}

.status-offline .status-indicator {
    background: #6c757d;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* 聊天消息样式增强 */
.chat-message {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    background: rgba(255,255,255,0.05);
    border-left: 3px solid transparent;
}

.chat-message.system {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
}

.chat-message.gift {
    background: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
}

.chat-message .time {
    font-size: 0.7rem;
    color: #999;
    float: right;
}

/* 观众列表样式 */
.viewer-item {
    display: flex;
    align-items: center;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.viewer-item:last-child {
    border-bottom: none;
}

.viewer-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #667eea;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
}

/* 全屏按钮 */
.fullscreen-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.fullscreen-btn:hover {
    background: rgba(0,0,0,0.9);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .interaction-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .interaction-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .gift-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gift-item {
        padding: 0.3rem;
    }
    
    .gift-icon {
        font-size: 1.2rem;
    }
    
    .sidebar {
        padding: 0.5rem;
    }
    
    .chat-messages {
        height: 200px;
    }
}

/* 暗色主题支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .stream-card,
    .auth-form,
    .stream-preview,
    .stream-settings,
    .chat-section,
    .live-streams {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        background: #3d3d3d;
        border-color: #555;
        color: #e0e0e0;
    }
    
    .chat-messages {
        background: #3d3d3d;
        border-color: #555;
    }
}

/* 打印样式 */
@media print {
    .header,
    .sidebar,
    .interaction-buttons,
    .chat-section,
    .gift-section {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .stream-card {
        border: 2px solid #333;
    }
    
    .chat-message {
        border: 1px solid #666;
    }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* 统计信息样式 */
.stats-section {
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* 区块标题样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.section-actions {
    display: flex;
    gap: 0.5rem;
}

/* 改进的直播卡片样式 */
.stream-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.stream-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.stream-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.stream-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.stream-card:hover .stream-thumbnail img {
    transform: scale(1.05);
}

.live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.viewer-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
}

.stream-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-family: monospace;
}

.stream-info {
    padding: 1rem;
}

.streamer-info {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.streamer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.streamer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.streamer-details {
    flex: 1;
    min-width: 0;
}

.stream-title {
    margin: 0 0 0.3rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.streamer-name {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.stream-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.follow-btn {
    background: transparent;
    border: 1px solid #667eea;
    color: #667eea;
}

.follow-btn:hover {
    background: #667eea;
    color: white;
}

.follow-btn.following {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

/* 无直播状态样式 */
.no-streams {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-streams-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-streams h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.no-streams p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* 热门主播样式 */
.popular-streamers {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.streamers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.streamer-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.streamer-card:hover {
    transform: translateY(-3px);
    border-color: #667eea;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.streamer-card .streamer-avatar {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem auto;
}

.streamer-card .avatar-placeholder {
    font-size: 1.5rem;
}

.streamer-card h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.streamer-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .stream-grid {
        grid-template-columns: 1fr;
    }
    
    .streamers-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .streamer-info {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .stream-actions {
        justify-content: center;
    }
}

/* 加载状态 */
.loading-streams {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: #666;
}

.loading-streams .loading {
    margin-right: 1rem;
}

/* 刷新按钮动画 */
.refresh-btn {
    transition: transform 0.3s ease;
}

.refresh-btn.refreshing {
    transform: rotate(360deg);
}
/* 登录页面增强样式 */
.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
}

/* 复选框样式 */
.checkbox-label {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    font-weight: normal !important;
    margin-bottom: 0 !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin-right: 0.5rem;
    transform: scale(1.2);
}

.checkmark {
    margin-left: 0.3rem;
}

/* 演示账号样式 */
.demo-accounts {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.demo-accounts p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.demo-accounts .btn {
    margin: 0 0.25rem;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
}

/* 认证表单增强 */
.auth-form {
    position: relative;
    overflow: hidden;
}

.auth-form::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.auth-form > * {
    position: relative;
    z-index: 1;
}

/* 输入框聚焦效果增强 */
.form-group input:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 按钮加载状态 */
.loading-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loading-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

/* 错误消息动画 */
.error {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 成功消息样式 */
.success {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端认证页面优化 */
@media (max-width: 480px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-form {
        padding: 1.5rem;
        margin: 0;
    }
    
    .auth-form h2 {
        font-size: 1.5rem;
    }
    
    .demo-accounts .btn {
        display: block;
        width: 100%;
        margin: 0.25rem 0;
    }
}

/* 深色模式下的认证页面 */
@media (prefers-color-scheme: dark) {
    .auth-container {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
    
    .auth-form {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .auth-form h2 {
        color: #e0e0e0;
    }
    
    .demo-accounts {
        border-top-color: #555;
    }
    
    .password-toggle:hover {
        background: rgba(255,255,255,0.1);
    }
}
/* 直播流占位符样式 */
.stream-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.placeholder-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.placeholder-content p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.placeholder-content .btn {
    margin-top: 1rem;
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    backdrop-filter: blur(10px);
}

.placeholder-content .btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* 模拟直播画面 */
.simulated-stream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: none;
}

.simulated-stream.active {
    display: block;
}

.stream-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    color: white;
    z-index: 10;
}

.stream-info-overlay {
    background: rgba(0,0,0,0.7);
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stream-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stream-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 模拟摄像头画面 */
.camera-simulation {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, #4facfe 0%, #00f2fe 100%);
    position: relative;
    overflow: hidden;
}

.camera-simulation::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 3s ease-in-out infinite;
}

.camera-simulation::after {
    content: '📹';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    animation: float 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.1;
    }
}

@keyframes float {
    0% { transform: translate(-50%, -50%) translateY(0px); }
    100% { transform: translate(-50%, -50%) translateY(-10px); }
}

/* 连接状态指示器 */
.connection-status {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}
/* 直播选项按钮 */
.stream-options {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.stream-options .btn {
    min-width: 120px;
}

.btn-secondary {
    background: rgba(108, 117, 125, 0.8);
    border: 2px solid #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: rgba(108, 117, 125, 1);
    transform: translateY(-2px);
}

/* 视频覆盖层增强 */
.video-section .stream-overlay {
    pointer-events: none;
}

.video-section .stream-overlay .btn {
    pointer-events: auto;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .stream-options {
        flex-direction: column;
        align-items: center;
    }
    
    .stream-options .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .placeholder-content h3 {
        font-size: 1.5rem;
    }
    
    .placeholder-content p {
        font-size: 1rem;
    }
}