/* 隐私设置页面特定样式 */
.privacy-content {
    background-color: var(--background-color);
    min-height: calc(100vh - 44px);
}

/* 设置项 */
.privacy-section {
    background-color: var(--card-color);
    margin: 16px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.privacy-section-title {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary-color);
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
}

.privacy-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

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

.privacy-item-label {
    font-size: 15px;
    color: var(--text-color);
}

.privacy-item-description {
    font-size: 13px;
    color: var(--text-secondary-color);
    margin-top: 4px;
}

/* 开关组件 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* 选择器 */
.privacy-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 14px;
    min-width: 120px;
}

/* 保存按钮 */
.save-button {
    margin: 20px 16px;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-button:hover {
    opacity: 0.9;
}

.save-button:disabled {
    background-color: var(--text-secondary-color);
    cursor: not-allowed;
}

/* 提示信息 */
.privacy-tip {
    padding: 12px 16px;
    background-color: rgba(0, 122, 255, 0.1);
    border-left: 3px solid var(--primary-color);
    margin: 16px;
    border-radius: 8px;
}

.privacy-tip-text {
    font-size: 13px;
    color: var(--text-color);
    line-height: 1.4;
}

/* 适配暗黑模式 */
@media (prefers-color-scheme: dark) {
    .privacy-section {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }
    
    .privacy-tip {
        background-color: rgba(0, 122, 255, 0.2);
    }
}

/* 更多设置链接 */
.privacy-links {
    padding: 8px 0;
}

.privacy-link-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s;
}

.privacy-link-item:last-child {
    border-bottom: none;
}

.privacy-link-item:active {
    background-color: var(--background-color);
}

.link-icon {
    font-size: 18px;
    margin-right: 12px;
}

.link-text {
    flex: 1;
    font-size: 15px;
}

.link-arrow {
    color: var(--text-secondary-color);
    font-size: 18px;
}

/* Toast提示 */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 24px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 黑名单页面样式 */
.blacklist-search {
    position: relative;
    margin: 16px;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--card-color);
    font-size: 14px;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

.blacklist-add {
    margin: 0 16px;
    padding: 16px;
    background-color: var(--card-color);
    border-radius: 12px;
}

.add-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.add-label {
    font-size: 13px;
    color: var(--text-secondary-color);
}

.add-input-group {
    display: flex;
    gap: 8px;
}

.add-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}

.add-button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.add-button:disabled {
    background-color: var(--text-secondary-color);
}

.blacklist-list {
    padding: 8px 0;
}

.blacklist-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.blacklist-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
}

.blacklist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blacklist-info {
    flex: 1;
}

.blacklist-username {
    font-size: 15px;
    color: var(--text-color);
}

.blacklist-time {
    font-size: 12px;
    color: var(--text-secondary-color);
    margin-top: 2px;
}

.blacklist-remove {
    padding: 6px 12px;
    background-color: var(--danger-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

/* 账号安全页面样式 */
.security-form {
    padding: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary-color);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    background-color: var(--background-color);
}

.form-button {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.form-button:disabled {
    background-color: var(--text-secondary-color);
}

.binding-list {
    padding: 8px 0;
}

.binding-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

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

.binding-info {
    display: flex;
    align-items: center;
}

.binding-icon {
    font-size: 20px;
    margin-right: 12px;
}

.binding-detail {
    display: flex;
    flex-direction: column;
}

.binding-name {
    font-size: 15px;
    color: var(--text-color);
}

.binding-value {
    font-size: 13px;
    color: var(--text-secondary-color);
    margin-top: 2px;
}

.binding-btn {
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.device-list {
    padding: 8px 0;
}

.device-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

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

.device-info {
    display: flex;
    align-items: center;
}

.device-icon {
    font-size: 18px;
    margin-right: 12px;
}

.device-detail {
    display: flex;
    flex-direction: column;
}

.device-name {
    font-size: 15px;
    color: var(--text-color);
}

.device-info-text {
    font-size: 12px;
    color: var(--text-secondary-color);
    margin-top: 2px;
}

.device-logout {
    padding: 6px 12px;
    background-color: var(--danger-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

.device-current {
    font-size: 12px;
    color: var(--success-color);
}

.security-tip {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    margin: 16px;
    background-color: rgba(0, 122, 255, 0.1);
    border-radius: 8px;
}

.tip-icon {
    font-size: 18px;
    margin-right: 12px;
}

.tip-content {
    flex: 1;
}

.tip-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.tip-text {
    font-size: 13px;
    color: var(--text-secondary-color);
    margin-top: 4px;
}

/* 数据管理页面样式 */
.data-overview {
    margin: 16px;
    padding: 16px;
    background-color: var(--card-color);
    border-radius: 12px;
}

.data-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary-color);
    margin-bottom: 12px;
}

.data-stats {
    display: flex;
    justify-content: space-around;
}

.data-stat-item {
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary-color);
    margin-top: 4px;
}

.export-options {
    padding: 8px 0;
}

.export-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.export-option:last-child {
    border-bottom: none;
}

.export-info {
    display: flex;
    align-items: center;
}

.export-icon {
    font-size: 20px;
    margin-right: 12px;
}

.export-detail {
    display: flex;
    flex-direction: column;
}

.export-name {
    font-size: 15px;
    color: var(--text-color);
}

.export-desc {
    font-size: 12px;
    color: var(--text-secondary-color);
    margin-top: 2px;
}

.export-btn {
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.export-btn:disabled {
    background-color: var(--text-secondary-color);
}

.export-tip {
    display: flex;
    align-items: flex-start;
    padding: 12px 16px;
    background-color: rgba(0, 122, 255, 0.1);
    margin-top: 8px;
}

.clear-options {
    padding: 8px 0;
}

.clear-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.clear-option:last-child {
    border-bottom: none;
}

.clear-info {
    display: flex;
    align-items: center;
}

.clear-icon {
    font-size: 20px;
    margin-right: 12px;
}

.clear-detail {
    display: flex;
    flex-direction: column;
}

.clear-name {
    font-size: 15px;
    color: var(--text-color);
}

.clear-desc {
    font-size: 12px;
    color: var(--text-secondary-color);
    margin-top: 2px;
}

.clear-btn {
    padding: 8px 16px;
    background-color: var(--warning-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.danger-section {
    border: 1px solid var(--danger-color);
}

.delete-warning {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background-color: rgba(255, 59, 48, 0.1);
}

.warning-icon {
    font-size: 24px;
    margin-right: 12px;
}

.warning-content {
    flex: 1;
}

.warning-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--danger-color);
}

.warning-text {
    font-size: 13px;
    color: var(--text-secondary-color);
    margin-top: 8px;
    line-height: 1.4;
}

.delete-btn {
    width: calc(100% - 32px);
    margin: 16px;
    padding: 14px;
    background-color: var(--danger-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.delete-btn:disabled {
    background-color: #ccc;
}

/* 空状态 */
.empty-state {
    padding: 40px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-text {
    font-size: 15px;
    color: var(--text-color);
    margin-bottom: 4px;
}

.empty-desc {
    font-size: 13px;
    color: var(--text-secondary-color);
}

/* 错误提示 */
.error-tip {
    padding: 16px;
    text-align: center;
    color: var(--danger-color);
    font-size: 14px;
}

.loading-tip {
    padding: 16px;
    text-align: center;
    color: var(--text-secondary-color);
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 320px) {
    .privacy-item {
        padding: 14px;
    }
    
    .privacy-item-label {
        font-size: 14px;
    }
    
    .privacy-item-description {
        font-size: 12px;
    }
    
    .toggle-switch {
        width: 44px;
        height: 20px;
    }
    
    .toggle-slider:before {
        height: 14px;
        width: 14px;
    }
    
    input:checked + .toggle-slider:before {
        transform: translateX(24px);
    }
}