#questionsTable {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 外层滚动容器，负责横向滚动和最小宽度 */
.table-scroll-x {
    overflow-x: auto;
    width: 100%;
    box-sizing: border-box;
    scrollbar-color: #bdbdbd #f5f7fa;
    scrollbar-width: thin;
    padding: 0 20px;
}
#questionsTableContainer {
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}
.questions-tip {
    margin: 32px 0 16px 0;
    color: #888;
    font-size: 16px;
    text-align: center;
}
#questionsTable {
    width: 100%;      /* 让表格宽度占满容器 */
    min-width: 800px;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
/* 移动端适配 */
@media (max-width: 1000px) {
    #questionsTableContainer {
        min-width: 800px;
    }
    #questionsTable {
        min-width: 800px;
    }
    .table-scroll-x {
        padding: 0 2vw;
    }
}
#questionsTable th, #questionsTable td {
    border: 1px solid #e0e0e0;
    padding: 8px 6px;
    text-align: left;
}
#questionsTable th {
    background: #f5f7fa;
    font-weight: 600;
}
.options-area {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.option-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}
.option-row input[type="text"] {
    width: 70px;
    padding: 2px 4px;
}
.addOptBtn, .delOptBtn, .delQuestionBtn{
    background: #2196f3;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 3px 8px;
    margin: 2px 0;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}
.addOptBtn:hover, .delOptBtn:hover, .delQuestionBtn:hover{
    background: #1769aa;
}
.setting-alert {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    opacity: 0.98;
}

.better-input {
    width: 100%;
    min-width: 60px;
    max-width: 220px;
    box-sizing: border-box;
    padding: 5px 8px;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    font-size: 14px;
    transition: border 0.2s;
    background: #f9fafb;
}
.better-input:focus {
    border: 1.5px solid #2196f3;
    background: #fff;
    outline: none;
}
/* 建议放到 ./assets/setting.css */
.install-mode-panel {
    background: #f8fafd;
    border: 1px solid #e3e8ee;
    margin: 10px 20px 20px 20px;
    border-radius: 8px;
    padding: 22px 28px 18px 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.install-mode-status {
    font-size: 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
}
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    background: #e3e8ee;
}
.status-on {
    background: #22b573;
}
.status-off {
    background: #e53e3e;
}
.status-text {
    font-weight: bold;
    color: #22b573;
}

.btn-install, .btn-close-install {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    padding: 7px 22px;
    margin-right: 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-install[disabled] {
    background: #b3b3b3;
    cursor: not-allowed;
}
.btn-close-install {
    background: #e53e3e;
}
.btn-close-install:hover {
    background: #c53030;
}
.install-command-block {
    margin-top: 10px;
}
.install-command-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}
.install-command {
    background: #222;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    font-family: "Fira Mono", "Consolas", "Menlo", monospace;
    font-size: 15px;
    word-break: break-all;
}

/* 建议添加到 setting.css */
.install-command-block > .install-warning {
    background: #fff8e1;
    color: #b26a00;
    border: 1px solid #ffe082;
    border-radius: 5px;
    padding: 10px 16px;
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.7;
    display: flex;
    align-items: center;
    gap: 8px;
}
.install-warning::before {
    content: "⚠";
    font-size: 18px;
    color: #ff9800;
    margin-right: 4px;
}

.copy-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 14px;
    font-size: 14px;
    margin-left: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.copy-btn:hover {
    background: #1746a2;
}
.ml-10 { margin-left: 10px; }

.upload-section {
    background: #f8fafd;
    border: 1px solid #e3e8ee;
    margin: 10px 20px 20px 20px;
    border-radius: 8px;
    padding: 22px 28px 18px 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
#uploadForm {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
#zipFileInput {
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 14px;
    background: #fff;
}
.upload-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 18px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}
.upload-btn:hover {
    background: #1746a2;
}
.upload-status {
    font-size: 14px;
    color: #22b573;
    margin-left: 8px;
}
.upload-tip {
    margin-top: 10px;
    font-size: 14px;
    color: #b26a00;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 5px;
    padding: 10px 16px;
    line-height: 1.7;
}
.upload-tip code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
}
.release-link {
    color: #2563eb;
    text-decoration: underline;
}
.release-link:hover {
    color: #1746a2;
}

/* 版本标签样式 */
.version-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    background-color: #f0f0f0;
    color: #333;
    font-size: 12px;
    margin-left: 10px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}

.version-badge:hover {
    background-color: #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 更新内容弹窗样式 */
.changelog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.changelog-content {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.changelog-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.changelog-title h3 {
    margin: 0;
}

.close-changelog {
    cursor: pointer;
    font-size: 20px;
}

.changelog-list {
    padding-left: 20px;
}

.changelog-list li {
    margin-bottom: 6px;
}