/* ========== 存储用量 ========== */
.storage-bar-wrap {
    background: var(--input-border);
    border-radius: 999px;
    height: 8px;
    margin: 8px 0;
    overflow: hidden;
}

.storage-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--success);
    border-radius: 999px;
    transition: width 0.3s;
}

/* ========== 账号管理 ========== */
.cloud-card {
    border: 1.5px solid var(--primary);
}

.cloud-auth-btns {
    display: flex;
    gap: 10px;
}

.cloud-auth-btns .btn { flex: 1; }

.cloud-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: var(--card-sub-bg);
    border-radius: 12px;
    margin-bottom: 14px;
}

.cloud-user-label {
    font-size: 12px;
    color: var(--text-muted);
}

.cloud-user-email {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    word-break: break-all;
}

.cloud-action-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ========== 云端记录列表 ========== */
.cloud-record-list {
    max-height: 350px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.cloud-record-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 8px;
    border-bottom: 1px solid var(--input-border);
}

.cloud-record-item:last-child {
    border-bottom: none;
}

.cloud-record-main {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.cloud-record-date {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.cloud-record-info {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.cloud-record-del {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--danger);
    cursor: pointer;
    border-radius: 50%;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.cloud-record-del:active {
    background: rgba(239,68,68,0.1);
}

/* ========== 云端记录弹窗内容 ========== */
.cloud-record-modal-content {
    text-align: left;
}

.cloud-record-modal-summary {
    margin-bottom: 12px;
    line-height: 1.8;
}

.cloud-record-modal-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cloud-record-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
}

.cloud-record-detail-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.cloud-record-detail-box {
    background: var(--card-sub-bg);
    border-radius: 12px;
    padding: 14px;
    line-height: 2.4;
    font-size: 15px;
}

/* ========== 错误列表 ========== */
.error-list {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    border-radius: 10px;
    padding: 12px;
    margin-top: 10px;
    text-align: left;
    font-size: 13px;
    color: var(--error-text);
    max-height: 200px;
    overflow-y: auto;
}

.error-list div {
    padding: 3px 0;
    border-bottom: 1px dashed var(--error-border);
}

.error-list div:last-child { border-bottom: none; }

/* ========== 登录/注册标签切换 ========== */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 14px;
    background: var(--input-bg);
    border-radius: 12px;
    padding: 4px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.auth-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

/* ========== 人机验证滑块 ========== */
.captcha-section {
    margin-bottom: 14px;
}

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

.captcha-slider-wrap {
    position: relative;
    height: 46px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.captcha-slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0%;
    background: rgba(34, 197, 94, 0.12);
    transition: background 0.3s;
}

.captcha-slider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
}

.captcha-slider-block {
    position: absolute;
    top: 0;
    left: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-size: 20px;
    cursor: grab;
    border-radius: 12px;
    z-index: 2;
    touch-action: none;
    transition: background 0.3s;
}

.captcha-slider-block:active {
    cursor: grabbing;
}

/* 验证成功状态 */
.captcha-slider-wrap.verified .captcha-slider-fill {
    width: 100% !important;
    background: rgba(34, 197, 94, 0.2);
}

.captcha-slider-wrap.verified .captcha-slider-text {
    color: var(--success);
    font-weight: 600;
}

.captcha-slider-wrap.verified .captcha-slider-block {
    background: linear-gradient(135deg, var(--success), #34d399);
    cursor: default;
}

/* ========== 个人中心 - 用户信息列表 ========== */
.user-info-list {
    display: flex;
    flex-direction: column;
}

.user-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    gap: 12px;
}

.user-info-row:last-child {
    border-bottom: none;
}

.user-info-label {
    font-size: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.user-info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    word-break: break-all;
}

/* ========== 个人中心 - 账号操作按钮 ========== */
.account-action-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-danger-full {
    background: linear-gradient(135deg, var(--danger), #f87171);
    color: white;
}

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

/* ========== 用户资料卡片（我的页面） ========== */
.user-profile-logged-in .setting-entry-title {
    color: var(--primary);
}

.user-profile-logged-in .setting-entry-desc {
    color: var(--text-secondary);
}

/* ========== 个人中心 - 退出登录底部按钮 ========== */
#page-account.show {
    display: flex;
    flex-direction: column;
}

#page-account .sub-page-content {
    flex: 1;
}

.account-logout-bottom {
    padding: 20px 16px;
}

.account-logout-bottom .btn {
    width: 100%;
}
