/* ===== 全局重置与深色主题 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #000;
    /* 全屏背景黑 */
    color: #fff;
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* ===== 左侧边栏 (DeepSeek 风格) ===== */
.sidebar {
    width: 330px;
    background-color: #1a1a1a;
    /* 侧边栏深灰 */
    display: flex;
    flex-direction: column;
    border-right: 1px solid #2a2a2a;
    flex-shrink: 0;
    padding: 20px 16px;
}

.sidebar-header {
    margin-bottom: 30px;
}

.brand {
    font-size: 18px;
    font-weight: 600;
    color: #eee;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-body {
    flex: 1;
    /* 占据中间全部剩余空间 */
    overflow-y: auto;
    /* 过滤项过多时可以滚动 */
}

.filter-section {
    margin-bottom: 28px;
}

.filter-label {
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.tag-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 找到这段并替换 */
.tag-btn {
    padding: 6px 14px;
    background: #2a2a2a;
    border: 1px solid transparent;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.tag-btn:hover {
    color: #fff;
    background: #3a3a3a;
}

/* 普通亮起（保持原来的橙色效果）*/
.tag-btn.active {
    background: #ff6b35;
    color: #fff;
}

/* 左键：强制包含（绿色） */
.tag-btn.state-include {
    background: #2ecc71;
    border-color: #2ecc71;
    color: #fff;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
}

.tag-btn.state-include:hover {
    background: #27ae60;
}

/* 右键：强制排除（红色） */
.tag-btn.state-exclude {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
}

.tag-btn.state-exclude:hover {
    background: #c0392b;
}

.sidebar-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #2a2a2a;
}

.reset-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid #333;
    border-radius: 8px;
    color: #777;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.reset-btn:hover {
    border-color: #ff6b35;
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.05);
}

/* ===== 右侧主面板 ===== */
.main-panel {
    flex: 1;
    background-color: #141414;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.panel-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
}

.main-title {
    font-size: 36px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.result-wrapper {
    width: 100%;
    margin-bottom: 30px;
}

.result-card {
    background: #1f1f1f;
    border-radius: 16px;
    padding: 60px 20px;
    font-size: 42px;
    font-weight: bold;
    color: #eee;
    min-height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.result-card.active {
    border-color: #ff6b35;
    background: #1f1f1f;
    color: #fff;
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.1);
}

.result-card.empty {
    color: #666;
    font-size: 22px;
    border-color: #2a2a2a;
}

.match-count {
    text-align: center;
    font-size: 14px;
    color: #555;
    margin-top: 16px;
    height: 20px;
}

/* ===== 核心交互按钮 ===== */
.action-btn {
    background: #ff6b35;
    color: #fff;
    border: none;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.2);
}

.action-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 107, 53, 0.3);
}

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

.action-btn:disabled {
    opacity: 0.5;
    pointer-events: none;
    transform: none;
}

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
        overflow-y: auto;
    }

    .sidebar {
        width: 100%;
        height: auto;
        flex-shrink: 0;
        border-right: none;
        border-bottom: 1px solid #2a2a2a;
        padding: 16px;
    }

    .sidebar-body {
        max-height: 150px;
        overflow-y: auto;
    }

    .main-panel {
        height: auto;
        padding: 40px 0;
    }

    .main-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .result-card {
        padding: 40px 15px;
        font-size: 28px;
        min-height: 120px;
    }
}


/* ===== 定制滚动条 (配合深色主题) ===== */
.sidebar-body::-webkit-scrollbar {
    width: 6px; /* 滚动条宽度，尽量细一点，保持精致 */
}
.sidebar-body::-webkit-scrollbar-track {
    background: #0f0f0f; /* 轨道颜色，比侧边栏更深 */
    border-radius: 3px;
}
.sidebar-body::-webkit-scrollbar-thumb {
    background: #ff6b35; /* 滑块的橙色，呼应你的随机按钮 */
    border-radius: 3px;
}
.sidebar-body::-webkit-scrollbar-thumb:hover {
    background: #e55a2b; /* 鼠标悬停时变深一点 */
}

/* 兼容 Firefox 浏览器 */
.sidebar-body {
    scrollbar-width: thin;
    scrollbar-color: #ff6b35 #0f0f0f;
}