:root {
    --primary-color: #1a73e8;
    --hover-color: #1557b0;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --border-color: #dadce0;
    --background: #ffffff;
    --tab-active: #1a73e8;
    --header-height: 64px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.5;
}

/* 顶部导航 */
.site-header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 24px;
    width: 100%;
}

.site-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
}

.site-logo img {
    height: 32px;
    width: auto;
}

/* 主容器 */
.main-container {
    margin-top: var(--header-height);
    padding: 24px 0;
}

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

/* 播放器容器 */
.player-wrapper {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
    background: var(--background);
}

/* 内容标签页 */
.content-tabs {
    background: var(--background);
    border-radius: 20px;
    padding: 24px;
}

.nav-tabs {
    border: none;
    margin-bottom: 24px;
    gap: 24px;
    display: flex;
}

.nav-tabs .nav-link {
    border: none;
    padding: 12px 0;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    background: none;
    cursor: pointer;
}

.nav-tabs .nav-link:hover {
    color: var(--text-primary);
}

.nav-tabs .nav-link.active {
    color: var(--tab-active);
    background: none;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--tab-active);
    border-radius: 1px;
}

/* 直播介绍 */
.stream-intro {
    color: var(--text-primary);
    line-height: 1.7;
}

.stream-intro-empty {
    padding: 48px 0;
    text-align: center;
    color: var(--text-secondary);
}

.stream-intro-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-header {
        height: 56px;
    }

    .main-container {
        margin-top: 56px;
        padding: 16px 0;
    }

    .container {
        padding: 0 16px;
    }

    .content-tabs {
        padding: 16px;
        border-radius: 16px;
    }

    .nav-tabs {
        gap: 16px;
    }
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #8ab4f8;
        --hover-color: #aecbfa;
        --text-primary: #e8eaed;
        --text-secondary: #9aa0a6;
        --border-color: #3c4043;
        --background: #202124;
        --tab-active: #8ab4f8;
    }
}

/* 站点Logo和名称样式 */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.site-name {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .site-header {
        height: 56px;
    }
    
    .logo-container img {
        height: 28px;
    }
    
    .site-name {
        font-size: 16px;
    }
}

/* 在现有样式基础上添加 */

/* 头部容器布局 */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 16px;
}

/* Material Design 3 头部操作按钮 */
.header-action-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Material 3 状态层 */
.header-action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: inherit;
}

/* Material 3 悬停效果 */
.header-action-button:hover::before {
    opacity: 0.08;
}

/* Material 3 按下效果 */
.header-action-button:active::before {
    opacity: 0.12;
}

/* Material 3 焦点效果 */
.header-action-button:focus-visible {
    outline: none;
}

.header-action-button:focus-visible::before {
    opacity: 0.12;
}

/* 图标样式 */
.header-action-button i {
    font-size: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 刷新动画 */
.header-action-button:active i {
    transform: rotate(180deg);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .header-container {
        padding: 0 12px;
    }

    .header-action-button {
        width: 36px;
        height: 36px;
    }

    .header-action-button i {
        font-size: 18px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .header-action-button::before {
        opacity: 0;
    }
    
    .header-action-button:hover::before {
        opacity: 0.1;
    }
    
    .header-action-button:active::before {
        opacity: 0.15;
    }
}

/* 减少动画 */
@media (prefers-reduced-motion: reduce) {
    .header-action-button,
    .header-action-button::before,
    .header-action-button i {
        transition-duration: 0.1s;
    }
} 