/* ================= css/pages/settings.css ================= */

.st-page {
    padding: 16px 16px calc(120px + env(safe-area-inset-bottom));
}

.st-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
}
.st-back-btn {
    width: 36px; height: 36px;
    border: none; background: none;
    font-size: 22px; color: var(--text-primary);
    cursor: pointer; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
}
.st-back-btn:active {
    background: rgba(0,0,0,0.06);
}
.st-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    flex: 1;
}

/* 分组标签 */
.st-section-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 20px 16px 8px;
}

/* 白色分组卡片 */
.st-group {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
}

/* 每一行 */
.st-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    cursor: pointer;
    transition: background 0.15s;
    min-height: 48px;
}
.st-row:not(:last-child) {
    border-bottom: 0.5px solid rgba(0,0,0,0.06);
}
.st-row:active {
    background: rgba(0,0,0,0.04);
}

/* 左侧 */
.st-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.st-row-icon {
    width: 30px; height: 30px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.st-row-left span {
    font-size: 16px;
    color: var(--text-primary);
}

/* 右侧 */
.st-row-right {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex-shrink: 1;
}
.st-row-value {
    font-size: 15px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    text-align: right;
}
.st-chevron {
    font-size: 20px;
    color: var(--text-tertiary);
    font-weight: 300;
    flex-shrink: 0;
    line-height: 1;
}

/* 危险行（红色文字） */
.st-row-danger .st-row-left span {
    color: #FF3B30;
}

/* 底部页脚 */
.st-footer {
    text-align: center;
    padding: 32px 0 16px;
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ====== 设置编辑弹窗 ====== */
.st-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
.st-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.st-modal {
    width: calc(100% - 48px);
    max-width: 320px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 14px;
    padding: 24px 20px 16px;
    transform: scale(0.9);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.st-modal-overlay.open .st-modal {
    transform: scale(1);
}
.st-modal-title {
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.st-modal-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(0,0,0,0.03);
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}
.st-modal-input:focus {
    border-color: rgba(0,0,0,0.25);
}
.st-modal-input::placeholder {
    color: var(--text-tertiary);
}
.st-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.st-modal-btn {
    flex: 1;
    padding: 12px 0;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s;
    font-family: inherit;
}
.st-modal-btn:active {
    transform: scale(0.96);
}
.st-modal-cancel {
    background: rgba(0,0,0,0.06);
    color: var(--text-secondary);
}
.st-modal-save {
    background: var(--text-primary, #1C1C1E);
    color: #fff;
}

/* ====== 确认弹窗 ====== */
.st-confirm-text {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 4px;
}
.st-modal-btn-danger {
    background: #FF3B30;
    color: #fff;
}

/* ====== 使用说明弹窗 ====== */
.st-guide-content {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.8;
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: none;
}
.st-guide-content::-webkit-scrollbar { display: none; }
.st-guide-content h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 12px 0 6px;
}
.st-guide-content h3:first-child {
    margin-top: 0;
}
.st-guide-content p {
    margin: 4px 0;
    color: var(--text-secondary);
}
