/* ========== 表单元素 ========== */
.form-item { margin-bottom: 14px; }

label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    font-size: 16px;
    background: var(--input-bg);
    outline: none;
    transition: 0.2s;
    -webkit-appearance: none;
    appearance: none;
    color: var(--text-primary);
}

input:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ========== 按钮 ========== */
.btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.btn-primary:active { opacity: 0.9; transform: scale(0.98); }

.btn-secondary {
    background: var(--input-border);
    color: var(--text-primary);
}

.btn-del {
    background: linear-gradient(135deg, var(--danger), #f87171);
    color: white;
    padding: 6px 10px;
    font-size: 13px;
    width: auto;
    border-radius: 8px;
    border: none;
}

.btn-edit {
    background: linear-gradient(135deg, var(--success), #34d399);
    color: white;
    padding: 6px 10px;
    font-size: 13px;
    width: auto;
    border-radius: 8px;
    border: none;
    margin-right: 6px;
}

.btn-clear-all {
    background: var(--purple);
    color: #fff;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 10px;
    border: none;
    margin-top: 10px;
}

.btn-desc {
    background: var(--glass-hover);
    color: var(--primary);
    border: 1px solid var(--primary);
    margin-top: 8px;
}

.btn-copy {
    background: linear-gradient(135deg, var(--success), #34d399);
    color: white;
    margin-top: 8px;
    font-size: 14px;
    padding: 10px;
}

.btn-csv {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    color: white;
}

.btn-json {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
}

/* ========== Excel 导入 ========== */
.excel-import-btns {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.excel-import-btns .btn {
    flex: 1;
    font-size: 14px;
    padding: 11px;
    margin-top: 0;
}

.file-input-hidden {
    display: none;
}

/* ========== 设置行 ========== */
.setting-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--primary);
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.setting-row label {
    margin-bottom: 0;
    flex-shrink: 0;
    margin-right: 10px;
}

.setting-row input {
    width: 120px;
    text-align: right;
}

.info-display {
    font-size: 14px;
    color: var(--text-muted);
    text-align: right;
}

.export-btn-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.export-btn-group .btn {
    font-size: 14px;
    padding: 11px;
}

/* ========== 设置入口卡片 ========== */
.setting-entry-card {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s;
}

.setting-entry-card:active {
    opacity: 0.7;
}

.setting-entry-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.setting-entry-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.setting-entry-info {
    flex: 1;
    min-width: 0;
}

.setting-entry-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.setting-entry-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.4;
}

.setting-entry-arrow {
    font-size: 22px;
    color: var(--text-muted);
    flex-shrink: 0;
}
