body {
    margin: 0;
    padding: 0;
    background: #031323;
    font-family: 'El Messiri', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 侧边栏 */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255,255,255,0.1);
    z-index: 100;
    overflow-y: auto;
}
.sidebar .nav-link {
    padding: 10px 15px;
    border-radius: 8px;
    margin: 2px 10px;
    transition: background 0.2s;
}
.sidebar .nav-link:hover { background: rgba(255,255,255,0.1); }
.sidebar .nav-link.active { background: rgba(255,255,255,0.15); }

/* 主内容区 */
.main-content {
    margin-left: 250px;
    min-height: 100vh;
}

/* 导航栏 */
.topbar {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* 页面内容区 */
.page-section {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 10s ease infinite;
    min-height: calc(100vh - 56px);
    padding: 30px 20px;
}
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 浮动方块 */
.floating-squares .sq {
    position: fixed;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 15px;
    animation: sqFloat 10s linear infinite;
    z-index: 0;
    pointer-events: none;
}
@keyframes sqFloat {
    0%, 100% { transform: translateY(-20px); }
    50% { transform: translateY(20px); }
}

/* 玻璃卡片 */
.glass-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 25px;
    color: #fff;
    text-decoration: none;
    display: block;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.18);
    color: #fff;
}

/* 滚动条 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }

/* ====== QQ 定时提醒 ====== */
.qq-timer-label {
    color: rgba(255,255,255,0.45);
    font-size: 0.75rem;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}
.qq-timer-input {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.qq-timer-input:focus {
    border-color: rgba(110,168,254,0.5) !important;
    box-shadow: 0 0 0 2px rgba(110,168,254,0.15) !important;
    background: rgba(255,255,255,0.08) !important;
    color: #fff !important;
}
/* 日期/时间选择器图标颜色（WebKit） */
.qq-timer-input[type="date"]::-webkit-calendar-picker-indicator,
.qq-timer-input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(0.7);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.qq-timer-input[type="date"]::-webkit-calendar-picker-indicator:hover,
.qq-timer-input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}
/* select 下拉箭头 */
.qq-timer-input.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 12px !important;
}
.qq-timer-input.form-select option {
    background: #1a2a3a;
    color: #fff;
}
/* 类型切换按钮 */
.qq-timer-type-btn {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.qq-timer-type-btn:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
}
.qq-timer-type-btn.active {
    background: rgba(110,168,254,0.15);
    border-color: rgba(110,168,254,0.4);
    color: #6ea8fe;
}
/* 目标类型切换（个人/群组） */
.target-type-btn {
    flex: 1;
    text-align: center;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.target-type-btn:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }
.target-type-btn.active { background: rgba(81,207,102,0.15); border-color: rgba(81,207,102,0.4); color: #51cf66; }
/* Cron 预览 */
.qq-timer-cron-preview {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
}
.qq-timer-cron-preview code {
    color: #28a745;
    font-size: 0.85rem;
}
/* 创建按钮 */
.qq-timer-create-btn {
    background: rgba(13,110,253,0.2) !important;
    border: 1px solid rgba(13,110,253,0.3) !important;
    color: #6ea8fe !important;
    border-radius: 10px !important;
    padding: 10px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    transition: all 0.2s !important;
}
.qq-timer-create-btn:hover {
    background: rgba(13,110,253,0.3) !important;
    transform: translateY(-1px);
}
.qq-timer-create-btn:active {
    transform: translateY(0);
}
/* 刷新按钮 */
.qq-timer-refresh-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.qq-timer-refresh-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #6ea8fe;
}
.qq-timer-refresh-btn.spin i {
    animation: spin 0.6s linear;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* 任务卡片 */
.qq-timer-task-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
    transition: background 0.2s;
}
.qq-timer-task-card:hover {
    background: rgba(255,255,255,0.08);
}
.qq-timer-task-card .task-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
}
.qq-timer-task-card .task-type-badge.badge-once {
    background: rgba(255,193,7,0.15);
    color: #ffc107;
}
.qq-timer-task-card .task-type-badge.badge-cron {
    background: rgba(40,167,69,0.15);
    color: #28a745;
}
.qq-timer-task-card .task-schedule {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    margin-top: 4px;
}
.qq-timer-task-card .task-next {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
}
.qq-timer-task-card .task-cancel-btn {
    background: rgba(255,99,71,0.12);
    border: 1px solid rgba(255,99,71,0.2);
    color: #ff6347;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 0.72rem;
    transition: all 0.2s;
}
.qq-timer-task-card .task-cancel-btn:hover {
    background: rgba(255,99,71,0.25);
}
.qq-timer-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,0.2);
}
.qq-timer-empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

/* ====== 汉堡菜单按钮 ====== */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 10px;
    line-height: 1;
}

/* ====== 遮罩层 ====== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

/* ====== 移动端响应式 ====== */
@media (max-width: 767.98px) {
    /* 汉堡按钮显示 */
    .sidebar-toggle { display: inline-block; }

    /* 侧边栏默认隐藏 */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 260px;
    }
    .sidebar.active {
        transform: translateX(0);
    }

    /* 遮罩层显示 */
    .sidebar-overlay.active {
        display: block;
    }

    /* 主内容区全宽 */
    .main-content {
        margin-left: 0;
    }

    /* 顶栏 */
    .topbar .container-fluid {
        flex-wrap: nowrap;
    }
    .topbar .navbar-brand {
        font-size: 1rem;
    }
    #topTimer {
        display: none;
    }

    /* 页面内容区缩小边距 */
    .page-section {
        padding: 15px 10px;
    }
    .page-section h4 {
        font-size: 1.1rem;
    }

    /* 玻璃卡片 */
    .glass-card {
        padding: 15px;
        border-radius: 12px;
    }

    /* 聊天页面高度调整 */
    .chat-container {
        height: calc(100vh - 120px) !important;
    }
}
