/* 全局样式 */
:root {
    /* 默认浅色主题 */
    --primary-color: #0066ff;
    --secondary-color: #f0f2f5;
    --accent-color: #00c8ff;
    --text-color: #333;
    --light-text: #666;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --sidebar-width: 240px;
    --header-height: 60px;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --card-bg: white;
    --body-bg: white;
    --sidebar-bg: #f0f2f5;
    --hover-bg: rgba(0, 0, 0, 0.05);
    --active-bg: rgba(0, 102, 255, 0.1);
}

/* 深色主题 */
[data-theme="dark"] {
    --primary-color: #3a8eff;
    --secondary-color: #1e1e2d;
    --accent-color: #00c8ff;
    --text-color: #e0e0e0;
    --light-text: #a0a0a0;
    --border-color: #2d2d3a;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --card-bg: #2d2d3a;
    --body-bg: #1e1e2d;
    --sidebar-bg: #2d2d3a;
    --hover-bg: rgba(255, 255, 255, 0.05);
    --active-bg: rgba(58, 142, 255, 0.2);
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 党建红主题 */
[data-theme="red"] {
    --primary-color: #e60012;
    --secondary-color: #f8f0f0;
    --accent-color: #ffcc00;
    --text-color: #333;
    --light-text: #666;
    --border-color: #e0d0d0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --card-bg: white;
    --body-bg: white;
    --sidebar-bg: #f8f0f0;
    --hover-bg: rgba(230, 0, 18, 0.05);
    --active-bg: rgba(230, 0, 18, 0.1);
    --box-shadow: 0 4px 12px rgba(230, 0, 18, 0.08);
}

/* 科技蓝主题 */
[data-theme="blue"] {
    --primary-color: #0078d4;
    --secondary-color: #f0f4f8;
    --accent-color: #00b7c3;
    --text-color: #333;
    --light-text: #666;
    --border-color: #d0e0f0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --card-bg: white;
    --body-bg: white;
    --sidebar-bg: #f0f4f8;
    --hover-bg: rgba(0, 120, 212, 0.05);
    --active-bg: rgba(0, 120, 212, 0.1);
    --box-shadow: 0 4px 12px rgba(0, 120, 212, 0.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--body-bg);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    transition: all 0.3s ease;
}

/* 侧边栏样式 */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 0 20px 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 4px 0;
}

.nav-item:hover {
    background-color: var(--hover-bg);
}

.nav-item.active {
    background-color: var(--active-bg);
    color: var(--primary-color);
    font-weight: 500;
    border-left: 3px solid var(--primary-color);
}

.nav-item i {
    margin-right: 12px;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* 主内容区域样式 */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 20px;
    min-height: 100vh;
    background-color: var(--body-bg);
    transition: all 0.3s ease;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

/* 卡片样式 */
.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    opacity: 0.9;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--active-bg);
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

.btn i {
    margin-right: 8px;
}

/* 表单元素样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: border-color 0.2s ease;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* 单选按钮样式 */
.radio-group {
    display: flex;
    gap: 20px;
}

.radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-color);
}

.radio-item input[type="radio"] {
    margin-right: 8px;
}

/* 设备连接状态样式 */
.device-status {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
}

.status-connected {
    background-color: var(--success-color);
}

.status-disconnected {
    background-color: var(--danger-color);
}

/* 设备图标样式 */
.device-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* 投屏模式选择样式 */
.screen-modes {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.mode-card {
    flex: 1;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: var(--card-bg);
}

.mode-card:hover {
    border-color: var(--primary-color);
    background-color: var(--hover-bg);
}

.mode-card.active {
    border-color: var(--primary-color);
    background-color: var(--active-bg);
}

.mode-icon {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.mode-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.mode-description {
    color: var(--light-text);
    font-size: 14px;
}

/* 设备列表样式 */
.device-list {
    margin-top: 20px;
}

.device-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.device-item:last-child {
    border-bottom: none;
}

.device-info {
    flex: 1;
}

.device-name {
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text-color);
}

.device-type {
    color: var(--light-text);
    font-size: 14px;
}

/* 连接成功页面样式 */
.connection-success {
    text-align: center;
    padding: 40px 0;
}

.success-icon {
    font-size: 64px;
    color: var(--success-color);
    margin-bottom: 20px;
}

.connection-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* 主题切换器样式 */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.theme-option {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.theme-option.active {
    border-color: var(--text-color);
    transform: scale(1.1);
}

.theme-light {
    background: linear-gradient(135deg, #f0f2f5 0%, #ffffff 100%);
}

.theme-dark {
    background: linear-gradient(135deg, #1e1e2d 0%, #2d2d3a 100%);
}

.theme-red {
    background: linear-gradient(135deg, #e60012 0%, #ff6b6b 100%);
}

.theme-blue {
    background: linear-gradient(135deg, #0078d4 0%, #00b7c3 100%);
}

/* 响应式调整 */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 60px;
    }
    
    .sidebar {
        width: var(--sidebar-width);
    }
    
    .nav-item span {
        display: none;
    }
    
    .logo span {
        display: none;
    }
    
    .main-content {
        margin-left: var(--sidebar-width);
    }
    
    .screen-modes {
        flex-direction: column;
    }
    
    .theme-switcher {
        position: fixed;
        bottom: 20px;
        left: 10px;
        flex-direction: column;
    }
} 