/* 深色主题基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.dark-theme {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    min-height: 100vh;
    color: #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 应用容器 */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: 260px;
    background: rgba(15, 23, 42);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header h5 {
    color: #fff;
    margin: 0;
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

.sidebar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}

.sidebar-nav .nav-link i {
    width: 24px;
    margin-right: 12px;
    font-size: 1.2rem;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
}

.user-details {
    flex: 1;
}

.user-name {
    color: #fff;
    font-weight: 500;
}

.user-status {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
}

/* 顶部栏 */
.top-bar {
    background: rgba(15, 23, 42);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.search-box {
    flex: 1;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box i {
    color: #94a3b8;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.search-box input::placeholder {
    color: #64748b;
}

.search-box kbd {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    border: none;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* 内容区域 */
.content-area {
    padding: 30px;
}

/* 玻璃态卡片 */
.glass-card {
    background: rgba(30, 41, 59);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header-flex h6 {
    color: #fff;
    margin: 0;
    font-weight: 600;
}

/* 天气卡片 */
.weather-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a7f 100%);
}

.weather-header {
    margin-bottom: 20px;
}

.weather-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.weather-icon {
    font-size: 4rem;
    color: #fbbf24;
}

.weather-temp {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
}

.weather-desc {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.weather-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* 时间卡片 */
.time-card {
    text-align: center;
}

.date-text {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.time-text {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.lunar-text {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.quote-text {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    color: #cbd5e1;
}

.quote-text p {
    margin-bottom: 5px;
}

.quote-text .quote-author {
    color: #94a3b8;
}

/* 待办列表 */
.todo-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.todo-check {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.todo-text {
    flex: 1;
    color: #cbd5e1;
}

.todo-text.completed {
    text-decoration: line-through;
    color: #64748b;
}

.todo-date {
    color: #64748b;
    font-size: 0.85rem;
}

/* 网址导航 */
.nav-tags {
    display: flex;
    gap: 8px;
}

.nav-tags .tag {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-tags .tag:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-tags .tag.active {
    background: #3b82f6;
    color: #fff;
}

.site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.site-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.site-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.site-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.site-name {
    color: #cbd5e1;
    font-size: 0.9rem;
    text-align: center;
}

/* 快捷操作 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.action-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.action-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.action-text {
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* 名言卡片 */
.quote-card .quote-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #cbd5e1;
}

/* 底部 */
.footer {
    margin-top: auto;
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left,
.footer-right a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-right a:hover {
    color: #e2e8f0;
}

/* 响应式 */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .content-area {
        padding: 20px;
    }
    
    .site-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}
