/* 基础重置和全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f9fafb;
}

/* 工具类 */
.hidden {
    display: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 头部样式 */
.header {
    background: #1e40af;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-item {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-item:hover,
.nav-item.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* 管理员链接特殊样式 */
.nav-item.admin-link {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.admin-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* 分享按钮 */
.share-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

.share-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.share-btn:active {
    transform: translateY(0);
}

/* 我的菜单样式 */
.my-menu-wrapper {
    position: relative;
    display: inline-block;
}

.my-menu-btn {
    background: none;
    border: none;
    color: #e5e7eb;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.my-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-1px);
}

.my-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    min-width: 280px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.my-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.user-type {
    font-size: 0.75rem;
    opacity: 0.8;
}

.menu-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0.5rem 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.menu-item:hover {
    background: rgba(59, 130, 246, 0.05);
    color: #1e40af;
}

.menu-item svg {
    opacity: 0.7;
}

.menu-item:hover svg {
    opacity: 1;
}

.logout-item {
    color: #dc2626;
}

.logout-item:hover {
    background: rgba(220, 38, 38, 0.05);
    color: #b91c1c;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .my-menu-dropdown {
        right: -1rem;
        min-width: 260px;
    }
    
    .user-info {
        padding: 0.875rem 1rem;
    }
    
    .menu-item {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
    }
}

/* 返回首页按钮样式 */
.back-home-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.back-home-btn::before {
    content: "←";
    font-size: 1rem;
    font-weight: bold;
}

.back-home-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: white !important;
    transform: translateX(-2px);
}

.back-home-btn:active {
    transform: translateX(0);
}

/* 在个人中心页面中突出显示返回按钮 */
.user-dashboard .back-home-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.user-dashboard .back-home-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* 移动端返回按钮适配 */
@media (max-width: 768px) {
    .back-home-btn {
        padding: 6px 10px !important;
        font-size: 0.8rem !important;
    }
    
    .back-home-btn::before {
        font-size: 0.9rem;
    }
}

/* 个人功能菜单样式 */
.user-only-menu {
    position: relative;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 6px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
}

.user-only-menu:hover {
    color: rgba(255, 255, 255, 0.95) !important;
    transform: translateY(-1px);
}

.user-only-menu:active {
    transform: translateY(0);
}

.user-only-menu.active {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: white !important;
}

/* 移动端个人功能菜单适配 */
@media (max-width: 768px) {
    .user-only-menu {
        padding: 6px 10px !important;
        font-size: 0.8rem !important;
    }
}

/* 赛事隐私标识样式 */
.privacy-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.privacy-badge.private {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.privacy-badge.private:hover {
    background: rgba(239, 68, 68, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.privacy-badge.public {
    background: rgba(34, 197, 94, 0.9);
    color: white;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.privacy-badge.public:hover {
    background: rgba(34, 197, 94, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.privacy-badge svg {
    flex-shrink: 0;
}

.privacy-badge span {
    white-space: nowrap;
}

/* 移动端赛事隐私标识适配 */
@media (max-width: 768px) {
    .privacy-badge {
        top: 6px;
        left: 6px;
        padding: 3px 6px;
        font-size: 0.7rem;
        border-radius: 4px;
    }
    
    .privacy-badge svg {
        width: 10px;
        height: 10px;
    }
}

/* 直播页面访问被拒绝样式 */
.access-denied {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border-radius: 12px;
}

.access-denied-content {
    text-align: center;
    padding: 2rem;
    max-width: 400px;
}

.access-denied-icon {
    margin: 0 auto 1.5rem;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
}

.access-denied h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.access-denied p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.access-denied .event-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    margin: 1rem 0 1.5rem;
}

.access-denied-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.access-denied-actions button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.login-btn {
    background: white;
    color: #1e40af;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* 移动端访问被拒绝适配 */
@media (max-width: 768px) {
    .access-denied {
        min-height: 300px;
        margin: 1rem;
        border-radius: 8px;
    }
    
    .access-denied-content {
        padding: 1.5rem;
    }
    
    .access-denied-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .access-denied-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .access-denied h3 {
        font-size: 1.25rem;
    }
    
    .access-denied-actions {
        flex-direction: column;
    }
    
    .access-denied-actions button {
        width: 100%;
        min-width: auto;
    }
}

/* 赛事卡片收藏按钮样式 */
.favorite-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.3s ease;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #ef4444;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.favorite-btn.favorited {
    color: #ef4444;
    background: rgba(255, 255, 255, 1);
}

.favorite-btn.favorited:hover {
    color: #6b7280;
    background: rgba(255, 255, 255, 0.9);
}

.favorite-btn svg {
    width: 20px;
    height: 20px;
}

/* 移动端收藏按钮适配 */
@media (max-width: 768px) {
    .favorite-btn {
        top: 6px;
        right: 6px;
        width: 32px;
        height: 32px;
    }
    
    .favorite-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* 页面内容切换样式 */
.page-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.page-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 页面占位内容样式 */
.page-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.placeholder-content h3 {
    color: #374151;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.placeholder-content p {
    color: #6b7280;
    font-size: 1rem;
}

/* 页面头部样式 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.page-header h2 {
    color: #1f2937;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.clear-history-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-history-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* 收藏和历史内容样式 */
.favorites-content,
.history-content {
    min-height: 300px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.content-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content-item:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.content-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.content-item h3 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.content-item .match-teams {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.content-item .item-meta {
    color: #9ca3af;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.sport-tag {
    background: #e5e7eb;
    color: #6b7280;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.empty-state svg {
    margin: 0 auto 1rem;
    display: block;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

.empty-state p {
    font-size: 1rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .page-header h2 {
        font-size: 1.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .content-item {
        padding: 1rem;
    }
    
    .page-placeholder {
        min-height: 300px;
        padding: 2rem 1rem;
    }
    
    .placeholder-content h3 {
        font-size: 1.25rem;
    }
    
    .placeholder-content p {
        font-size: 0.9rem;
    }
}

/* 导航栏语言切换按钮 */
.nav-language-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0;
    margin-left: 8px;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    vertical-align: baseline;
}

.nav-language-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* 主要内容区域 */
.main {
    padding: 24px 0;
    min-height: calc(100vh - 80px);
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-tab {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.filter-tab:hover {
    border-color: #1e40af;
    color: #1e40af;
}

.filter-tab.active {
    background: #1e40af;
    border-color: #1e40af;
    color: white;
}

.status-select {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

/* 赛事网格 */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

/* 赛事卡片 */
.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.event-status {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.event-status.live {
    background: #dc2626;
    color: white;
}

.event-status.upcoming {
    background: #f59e0b;
    color: white;
}

.event-status.ended {
    background: #6b7280;
    color: white;
}

.event-thumbnail {
    width: 100%;
    height: 180px;
    background: linear-gradient(45deg, #1e40af, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.event-card:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
}

.event-info {
    padding: 16px;
}

.event-league {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.event-match {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.match-teams {
    flex: 1;
}

.team-names {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.match-time {
    font-size: 14px;
    color: #6b7280;
}

.match-score {
    font-size: 24px;
    font-weight: bold;
    color: #1e40af;
}

.event-viewers {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
}

/* 加载更多 */
.load-more {
    text-align: center;
}

.load-more-btn {
    padding: 12px 32px;
    background: #1e40af;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* 直播页面样式 */
.live-page {
    background: #000;
    color: white;
    min-height: 100vh;
}

.live-page .header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.live-header {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.live-info {
    flex: 1;
}

.event-title {
    font-size: 20px;
    margin: 0 0 4px 0;
}

.live-status {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.live-indicator {
    background: #dc2626;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
}

.viewer-count {
    color: rgba(255, 255, 255, 0.8);
}

/* 直播主要内容 */
.live-main {
    padding: 0;
}

.live-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    height: calc(100vh - 80px);
}

/* 视频区域 */
.video-section {
    background: #000;
    display: flex;
    flex-direction: column;
}

.video-wrapper {
    flex: 1;
    position: relative;
    min-height: 0;
    aspect-ratio: 16 / 9;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-wrapper:hover .video-overlay {
    opacity: 1;
}

.video-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.play-pause-btn,
.mute-btn,
.fullscreen-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.play-pause-btn:hover,
.mute-btn:hover,
.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

/* 赛事信息 */
.match-info {
    background: rgba(0, 0, 0, 0.8);
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.team {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.team-name {
    font-weight: 600;
}

.team-score {
    font-size: 24px;
    font-weight: bold;
    color: #60a5fa;
}

.vs {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.match-time {
    text-align: center;
    font-size: 14px;
}

.time-status {
    color: #10b981;
    margin-right: 8px;
}

.match-timer {
    font-weight: 600;
}

/* 互动区域 */
.interaction-section {
    background: #1f2937;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.tab.active {
    color: white;
    border-bottom-color: #3b82f6;
}

.tab-content {
    display: none;
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

/* 聊天区域 */
#chat {
    gap: 16px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
}

.chat-message {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.message-user {
    font-weight: 600;
    color: #60a5fa;
    font-size: 14px;
    margin-bottom: 4px;
}

.message-text {
    font-size: 14px;
    line-height: 1.4;
}

.message-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

.chat-input-area {
    display: flex;
    gap: 8px;
}

.chat-input {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.send-btn {
    padding: 12px 20px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.send-btn:hover {
    background: #2563eb;
}

/* 数据统计 */
.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
}

.stat-label {
    font-size: 14px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.stat-bar {
    display: flex;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.stat-home {
    background: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.stat-away {
    background: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.stat-numbers {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 600;
}

/* 阵容信息 */
.lineup-container {
    padding: 8px 0;
}

.team-lineups {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 100%;
    overflow-y: auto;
}

.team-lineup {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lineup-team-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lineup-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.position-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.position-label {
    font-size: 11px;
    font-weight: 600;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.player {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
    flex: 1;
    min-width: 80px;
    max-width: 100px;
}

.player:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(96, 165, 250, 0.3);
}

.player-number {
    background: #3b82f6;
    color: white;
    font-weight: 600;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.player-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player.goalkeeper .player-number {
    background: #f59e0b;
}

.home-lineup .player-number {
    background: #ef4444;
}

.away-lineup .player-number {
    background: #3b82f6;
}

.home-lineup .player.goalkeeper .player-number,
.away-lineup .player.goalkeeper .player-number {
    background: #f59e0b;
}

/* 响应式设计 */
/* 平板端 */
@media (max-width: 1024px) {
    .live-container {
        grid-template-columns: 1fr 300px;
    }
    
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }
    
    .filter-bar {
        flex-direction: column;
        gap: 16px;
    }
    
    .filter-tabs {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav {
        gap: 16px;
    }
    
    .share-btn {
        padding: 6px 8px;
        margin-left: 4px;
    }
}

/* 手机端 */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
    
    .header .container {
        padding: 8px 12px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .nav {
        gap: 8px;
    }
    
    .nav-item {
        padding: 6px 8px;
        font-size: 14px;
    }
    
    .share-btn {
        padding: 6px;
        margin-left: 2px;
    }
    
    .share-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .nav-language-btn {
        padding: 6px 8px;
        margin-left: 2px;
        font-size: 13px;
    }
    
    .main {
        padding: 16px 0;
    }
    
    .filter-bar {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .filter-tabs {
        gap: 4px;
    }
    
    .filter-tab {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .event-card {
        border-radius: 8px;
    }
    
    .event-thumbnail {
        height: 160px;
    }
    
    .event-info {
        padding: 12px;
    }
    
    /* 直播页面手机端布局 */
    .live-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    
    .video-section {
        height: 50vh;
    }
    
    .interaction-section {
        height: 50vh;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .live-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .event-title {
        font-size: 18px;
    }
    
    .teams {
        font-size: 14px;
    }
    
    .team-score {
        font-size: 20px;
    }
    
    .match-info {
        padding: 12px;
    }
    
    .tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .tab {
        white-space: nowrap;
        min-width: 80px;
    }
    
    .tab-content {
        padding: 12px;
    }
    
    .chat-input-area {
        position: sticky;
        bottom: 0;
        background: #1f2937;
        padding-top: 8px;
    }
    
    /* 移动端阵容样式 */
    .team-lineups {
        gap: 12px;
    }
    
    .team-lineup {
        padding: 10px;
    }
    
    .lineup-team-name {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .lineup-section {
        gap: 8px;
    }
    
    .position-group {
        gap: 4px;
    }
    
    .position-label {
        font-size: 10px;
    }
    
    .player {
        font-size: 10px;
        padding: 3px 6px;
        min-width: 70px;
        max-width: 90px;
        gap: 4px;
    }
    
    .player-number {
        width: 16px;
        height: 16px;
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .nav {
        display: none;
    }
    
    .filter-bar {
        padding: 8px;
    }
    
    .events-grid {
        gap: 8px;
    }
    
    .event-thumbnail {
        height: 140px;
    }
    
    .event-info {
        padding: 8px;
    }
    
    .team-names {
        font-size: 14px;
    }
    
    .match-score {
        font-size: 18px;
    }
    
    /* 超小屏幕阵容样式 */
    .team-lineups {
        gap: 10px;
    }
    
    .team-lineup {
        padding: 8px;
    }
    
    .lineup-team-name {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .lineup-section {
        gap: 6px;
    }
    
    .position-label {
        font-size: 9px;
    }
    
    .player {
        font-size: 9px;
        padding: 2px 5px;
        min-width: 60px;
        max-width: 80px;
        gap: 3px;
    }
    
    .player-number {
        width: 14px;
        height: 14px;
        font-size: 8px;
    }
    
    .player-name {
        max-width: 45px;
    }
}

/* 加载动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s linear infinite;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 触摸设备优化 */
@media (hover: none) {
    .event-card:hover {
        transform: none;
    }
    
    .video-overlay {
        opacity: 1;
    }
}

/* 全屏视频样式 */
.video-wrapper:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
}

.video-wrapper:-webkit-full-screen .video-player {
    width: 100vw;
    height: 100vh;
}

/* 底部固定内容 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e40af;
    color: white;
    padding: 12px 0;
    z-index: 50;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 播放页黑色底部 */
.footer-live {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.4;
}

.footer-brand {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    opacity: 0.95;
    transition: opacity 0.2s;
}

.footer-description {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: 0.3px;
    transition: opacity 0.2s;
}

/* Go燃文字渐变效果 */
.go-ran-gradient {
    background: linear-gradient(135deg, #ff6b6b, #feca57, #48cae4, #ff9ff3);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    animation: gradientShift 3s ease-in-out infinite;
    display: inline-block;
    font-size: inherit; /* 继承父元素字体大小 */
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.footer-content:hover .footer-brand,
.footer-content:hover .footer-description {
    opacity: 1;
}

/* 为固定底部预留空间 */
body {
    padding-bottom: 55px;
}

.live-page body {
    padding-bottom: 55px;
}

/* 直播页面特殊适配 */
.live-page .live-container {
    height: calc(100vh - 135px); /* 减去header和footer的高度 */
}

/* 移动端适配 */
@media (max-width: 768px) {
    .footer {
        padding: 10px 0;
    }
    
    .footer-brand {
        font-size: 11px;
        margin-bottom: 3px;
    }
    
    .footer-description {
        font-size: 9px;
        line-height: 1.3;
    }
    
    body {
        padding-bottom: 50px;
    }
    
    .live-page .live-container {
        height: calc(100vh - 130px);
    }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
    .footer {
        padding: 8px 0;
    }
    
    .footer-brand {
        font-size: 10px;
        margin-bottom: 2px;
    }
    
    .footer-description {
        font-size: 8px;
        line-height: 1.2;
    }
    
    body {
        padding-bottom: 45px;
    }
    
    .live-page .live-container {
        height: calc(100vh - 125px);
    }
}

/* 语言切换菜单层级修复 - 确保在最顶层 */
.user-auth-page .language-menu {
    z-index: 99999 !important;
    position: fixed !important;
    backdrop-filter: none !important;
}

.user-auth-page .language-switcher {
    position: relative !important;
    z-index: 99999 !important;
}

/* 避免毛玻璃效果对语言菜单的干扰 */
.user-auth-page .auth-header {
    position: relative;
    z-index: 1000;
}

/* 确保语言菜单不被其他元素覆盖 */
.user-auth-page .language-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
}

/* 小屏幕语言菜单特殊处理 */
@media (max-width: 768px) {
    .user-auth-page .language-menu {
        position: fixed !important;
        top: auto !important;
        bottom: 10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        z-index: 99999 !important;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3) !important;
        background: white !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 12px !important;
        padding: 0.5rem 0 !important;
        min-width: 140px !important;
    }
    
    /* 确保毛玻璃效果不会覆盖语言菜单 */
    .platform-intro,
    .auth-panel,
    .auth-container {
        position: relative !important;
        z-index: 1000 !important;
    }
    
    /* 语言菜单选项样式 */
    .user-auth-page .language-menu .lang-option {
        padding: 12px 16px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
    }
}

/* 用户认证页面响应式设计 */
@media (max-width: 1024px) {
    /* 平板端适配 */
    .auth-layout {
        flex-direction: row;
    }
    
    .platform-intro {
        padding: 1.5rem 2rem;
    }
    
    .brand-title {
        font-size: 2.5rem;
    }
    
    .platform-features {
        margin-bottom: 2rem;
    }
    
    .feature-item {
        margin-bottom: 1.5rem;
    }
    
    .platform-stats {
        padding: 1.5rem 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .auth-panel {
        padding: 1.5rem;
    }
    
    .auth-container {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* 手机端适配：登录窗口完全居中 */
    .auth-main {
        height: calc(100vh - 80px);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }
    
    .auth-layout {
        width: 100%;
        height: auto;
        max-height: calc(100vh - 120px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    /* 完全隐藏平台介绍区域 */
    .platform-intro {
        display: none !important;
    }
    
    /* 登录面板居中显示 */
    .auth-panel {
        flex: none;
        width: 100%;
        max-width: 400px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .auth-container {
        width: 100%;
        max-height: calc(100vh - 160px);
        overflow-y: auto;
        margin-top: 0;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        border-radius: 16px;
        padding: 2rem 1.5rem;
    }
    
    .auth-welcome h2 {
        font-size: 1.25rem;
    }
    
    .auth-welcome p {
        font-size: 0.8rem;
    }
    
    /* 优化表单元素 */
    .auth-tabs {
        margin-bottom: 1.5rem;
    }
    
    .auth-tab {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .form-group {
        margin-bottom: 0.75rem;
    }
    
    .form-group input {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    
    .auth-btn {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    
    /* 简化注册用户权益 */
    .auth-benefits {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .auth-benefits h3 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .auth-benefits li {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
    
    /* 游客登录优化 */
    .guest-content {
        padding: 1rem 0;
    }
    
    .guest-limitations {
        margin-top: 1rem;
        padding: 0.75rem;
    }
    
    .guest-limitations h4 {
        font-size: 0.8rem;
    }
    
    .guest-limitations li {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    /* 超小屏幕优化 - 继承768px的居中布局 */
    .auth-header-content {
        padding: 0 1rem;
    }
    
    .back-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .auth-logo {
        font-size: 1.25rem;
    }
    
    /* 平台介绍区域已在768px媒体查询中隐藏 */
    
    .auth-main {
        padding: 0.75rem;
    }
    
    .auth-container {
        padding: 1.5rem 1rem;
        max-height: calc(100vh - 140px);
    }
    
    .auth-welcome h2 {
        font-size: 1.125rem;
    }
    
    .auth-welcome {
        margin-bottom: 1.5rem;
    }
    
    .auth-tabs {
        margin-bottom: 1rem;
    }
    
    .form-group {
        margin-bottom: 0.75rem;
    }
    
    .form-group input {
        padding: 0.6rem;
        font-size: 0.875rem;
    }
    
    .auth-btn {
        padding: 0.6rem;
        font-size: 0.875rem;
    }
}

/* 横屏适配 - 使用左右布局 */
@media (max-width: 768px) and (orientation: landscape) {
    .auth-main {
        height: calc(100vh - 80px);
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .auth-layout {
        flex-direction: row;
        width: 100%;
        max-width: 900px;
        height: auto;
        max-height: calc(100vh - 120px);
    }
    
    /* 横屏时显示简化的平台介绍 */
    .platform-intro {
        display: flex !important;
        flex: 1;
        min-height: auto;
        padding: 1rem;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.05);
    }
    
    .platform-brand {
        margin-bottom: 0;
        text-align: center;
    }
    
    .brand-title {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .brand-subtitle {
        font-size: 0.8rem;
        opacity: 0.8;
    }
    
    .auth-panel {
        flex: 1;
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .auth-container {
        max-width: 350px;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        padding: 1.5rem;
        margin-top: 0;
        border-radius: 16px;
    }
}

/* 暗黑模式适配 */
@media (prefers-color-scheme: dark) {
    .filter-bar,
    .event-card {
        background: #1f2937;
        color: white;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .filter-tab {
        background: #374151;
        color: white;
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .status-select {
        background: #374151;
        color: white;
        border-color: rgba(255, 255, 255, 0.2);
    }
}

/* 用户认证系统样式 - 新布局 */
.user-auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
    overflow-x: hidden; /* 防止水平滚动条 */
}

/* 小屏幕时避免滚动条 */
@media (max-width: 768px) {
    .user-auth-page {
        height: 100vh;
        overflow: hidden;
    }
}

.auth-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
}

.auth-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.auth-logo {
    font-size: 1.5rem;
    font-weight: bold;
}

/* 新布局样式 */
.auth-main {
    height: calc(100vh - 80px);
    padding: 0;
    display: flex;
    align-items: center;
}

.auth-layout {
    display: flex;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    overflow: hidden;
}

/* 左侧平台介绍 */
.platform-intro {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.intro-content {
    max-width: 600px;
    color: white;
}

.platform-brand {
    text-align: center;
    margin-bottom: 3rem;
}

.brand-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.platform-features {
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-icon {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.75rem;
    flex-shrink: 0;
}

.feature-icon svg {
    color: white;
}

.feature-content h3 {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1.5;
}

.platform-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.stat-item {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* 右侧登录面板 */
.auth-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 0;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.auth-welcome {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-welcome h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.auth-welcome p {
    color: #6b7280;
    font-size: 0.875rem;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: none;
    color: #6b7280;
    font-size: 0.875rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.auth-tab.active {
    color: #1e40af;
    border-bottom-color: #1e40af;
}

.auth-form-container {
    display: none;
}

.auth-form-container.active {
    display: block;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.auth-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 1rem;
}

.auth-btn.primary {
    background: #1e40af;
    color: white;
}

.auth-btn.primary:hover {
    background: #1d4ed8;
}

.auth-btn.secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.auth-btn.secondary:hover {
    background: #e5e7eb;
}

.auth-links {
    text-align: center;
    margin-bottom: 1rem;
}

.forgot-link {
    color: #1e40af;
    text-decoration: none;
    font-size: 0.875rem;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-switch {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.auth-switch a {
    color: #1e40af;
    text-decoration: none;
    margin-left: 0.25rem;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-benefits {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.auth-benefits h3 {
    color: #374151;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.auth-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-benefits li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.auth-benefits li:before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
}

.guest-content {
    text-align: center;
    padding: 2rem 0;
}

.guest-icon {
    color: #6b7280;
    margin-bottom: 1rem;
}

.guest-content h3 {
    color: #374151;
    margin-bottom: 0.5rem;
}

.guest-content p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.guest-limitations {
    background: #fef3c7;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 2rem;
    text-align: left;
}

.guest-limitations h4 {
    color: #92400e;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.guest-limitations ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guest-limitations li {
    color: #92400e;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.guest-limitations li:before {
    content: "⚠️";
    font-size: 0.75rem;
}

.auth-error,
.auth-success {
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-align: center;
}

.auth-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.auth-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.auth-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #1e40af;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 游客快捷登录样式 */
.guest-quick-access {
    margin-top: 1.5rem;
    text-align: center;
}

.divider {
    position: relative;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider::before {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
    margin-right: 1rem;
}

.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
    margin-left: 1rem;
}

.divider span {
    color: #9ca3af;
    font-size: 0.875rem;
    background: white;
    padding: 0 0.5rem;
}

.guest-login-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
}

.guest-login-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.guest-login-btn svg {
    opacity: 0.7;
}

.guest-hint {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* 用户主页样式 */
.user-dashboard {
    background: #f9fafb;
    min-height: 100vh;
}

.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 0.875rem;
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.user-type {
    color: #6b7280;
    font-size: 0.75rem;
}

.user-actions {
    padding: 0.5rem 0;
}

.user-action {
    display: block;
    padding: 0.5rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.2s;
}

.user-action:hover {
    background: #f3f4f6;
}

.user-welcome {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.welcome-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.welcome-content h2 {
    color: #374151;
    margin: 0;
    font-size: 1.5rem;
}

.welcome-content p {
    color: #6b7280;
    margin: 0.5rem 0 0 0;
}

.guest-upgrade {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    padding: 1rem;
    border-radius: 8px;
    color: white;
    margin-top: 1rem;
}

.upgrade-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.upgrade-icon {
    font-size: 2rem;
}

.upgrade-text p {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
}

.upgrade-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background-color 0.2s;
}

.upgrade-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.user-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #1e40af;
}

.stat-label {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.dashboard-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.content-section {
    display: none;
    padding: 2rem;
}

.content-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.section-header h3 {
    color: #374151;
    margin: 0;
    font-size: 1.25rem;
}

.clear-history-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.clear-history-btn:hover {
    background: #dc2626;
}

.favorites-grid,
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.history-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.history-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.history-thumbnail {
    width: 80px;
    height: 60px;
    background: #f3f4f6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    flex-shrink: 0;
}

.history-info {
    flex: 1;
    min-width: 0;
}

.history-title {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-match {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.watch-date,
.watch-duration {
    color: #9ca3af;
    font-size: 0.75rem;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.event-actions {
    display: flex;
    gap: 0.5rem;
}

.favorite-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: #e5e7eb;
    transition: color 0.2s;
    padding: 0.25rem;
}

.favorite-btn.active {
    color: #ef4444;
}

.favorite-btn:hover {
    color: #ef4444;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.empty-icon {
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.875rem;
    margin: 0;
}
