/* ==================== light.css - 亮色主题 ==================== */
/* 全局基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
    height: 100vh;
    background-color: #fafafa;
    color: #1e2b3c;
}

/* 应用主容器 */
.app {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* ---------- 左侧边栏 ---------- */
.sidebar {
    width: 280px;
    background-color: #f2f4f8;
    border-right: 1px solid #d9e0e8;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.02);
    position: relative; /* 为设置按钮定位提供参考 */
}

.brand {
    padding: 24px 20px 16px 20px;
    font-size: 1.9rem;
    font-weight: 600;
    color: #1e2b3c;
    border-bottom: 1px solid #d0d9e5;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    transition: background-color 0.15s;
}
.brand:hover {
    background-color: #e8ecf3;
}
.brand span {
    background: #2c3e50;
    color: white;
    font-size: 1rem;
    padding: 2px 10px;
    border-radius: 30px;
    margin-left: 12px;
    font-weight: 400;
}

.module-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px 14px;
    scrollbar-width: thin;
    scrollbar-color: #b0b9c7 #e4e9f2;
}
.module-list::-webkit-scrollbar {
    width: 6px;
}
.module-list::-webkit-scrollbar-track {
    background: #e4e9f2;
    border-radius: 10px;
}
.module-list::-webkit-scrollbar-thumb {
    background: #b0b9c7;
    border-radius: 10px;
}

/* 模块项 */
.module-item {
    background: white;
    border-radius: 12px;
    padding: 16px 16px;
    margin-bottom: 14px;
    border: 1px solid #e2e7f0;
    cursor: pointer;
    transition: all 0.2s ease;
    list-style: none;
    position: relative;
}
.module-item:hover {
    transform: translateY(-2px);
    border-color: #b8c5d9;
    box-shadow: 0 8px 18px rgba(30, 43, 60, 0.08);
}
.module-item.active {
    background: #e2eaf9;
    border-left: 5px solid #1e6f9f;
    border-radius: 12px 8px 8px 12px;
    border-color: #bcd0e8;
    box-shadow: 0 4px 12px rgba(0, 70, 120, 0.1);
}

.module-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: #1e2b3c;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.module-title .tag {
    background: #d4deec;
    color: #1e3b5a;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 30px;
    font-weight: 400;
}
.priority-tag {
    background: #e0e8f2;
    color: #2c4b6e;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 30px;
    font-weight: 500;
    margin-left: auto;
    border: 1px solid #b7c7db;
}
.module-desc {
    font-size: 0.9rem;
    color: #5b6f86;
    line-height: 1.4;
}

/* 左下角设置按钮 */
.settings-button {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    background-color: #e0e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: background-color 0.2s, transform 0.2s;
    border: 1px solid #cbd5e1;
    z-index: 10;
}
.settings-button:hover {
    background-color: #d2dceb;
    transform: scale(1.05);
}
.settings-button:active {
    transform: scale(0.95);
}

/* ---------- 右侧主内容区 ---------- */
.main-content {
    flex: 1;
    background: #ffffff;
    padding: 0;                   /* 移除外部留白 */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.content-area {
    width: 100%;
    max-width: none;              /* 移除最大宽度限制 */
    margin: 0;
    background: #ffffff;
    border-radius: 0;             /* 移除圆角，让武器模块自己决定 */
    box-shadow: none;             /* 移除阴影，可保留也可移除 */
    padding: 0;                   /* 移除内部留白 */
    min-height: 100%;             /* 确保占满高度 */
    border: none;                 /* 移除边框，交给模块内部 */
}

/* 起始页 */
.welcome-home {
    text-align: center;
    padding: 50px 20px;
    color: #3e5470;
}
.welcome-home h2 {
    font-size: 2.4rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: #1e2b3c;
}
.welcome-home p {
    font-size: 1.2rem;
    color: #60758b;
    max-width: 500px;
    margin: 0 auto;
    background: #f5f9ff;
    padding: 20px;
    border-radius: 60px;
    border: 1px dashed #b8cbdf;
}

/* 加载提示 */
.loader {
    text-align: center;
    padding: 40px;
    color: #60758b;
    font-style: italic;
}

/* 错误信息 */
.error-message {
    color: #b0003a;
    background: #ffe8f0;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #ffb3c6;
}

/* 底部标注 */
.footer-note {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #9aabbc;
    text-align: right;
    border-top: 1px solid #edf2f9;
    padding-top: 15px;
}
.footer-note code {
    background: #edf2f9;
    padding: 2px 8px;
    border-radius: 12px;
}

/* ---------- 设置弹窗 (模态框) ---------- */
.settings-modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 24px;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-button {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    line-height: 1;
}
.close-button:hover {
    color: #333;
}

.modal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #1e2b3c;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.settings-item {
    display: flex;
    align-items: center;
    margin: 20px 0;
    gap: 15px;
}
.settings-item label {
    width: 120px;
    font-weight: 500;
    color: #2c4b6e;
}
.settings-item select,
.settings-item input[type="checkbox"] {
    padding: 8px 12px;
    border-radius: 30px;
    border: 1px solid #cbd6e6;
    background: white;
    font-size: 1rem;
}
.settings-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.about-box {
    background: #eef3fa;
    padding: 20px;
    border-radius: 20px;
    color: #2c3e50;
    margin-top: 25px;
}
.about-box p {
    margin: 5px 0;
}

/* ---------- 辅助/通用 ---------- */
/* 隐藏模块标记（锁图标）已在模块标题中显示，无需额外样式 */

/* 特殊标签颜色 */
.ba-vup { color: #9eb7ff; }
.ba-info { color: #999999; }