/* 账号与安全页面样式 */

/* 页面头部 */
.page-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 15px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
}

.header-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #333;
    text-decoration: none;
}

.header-back i {
    font-size: 20px;
}

.header-title {
    flex: 1;
    font-size: 17px;
    font-weight: 500;
    text-align: center;
    margin: 0 32px;
}

/* 安全状态卡片 */
.security-status {
    background: linear-gradient(135deg, var(--primary-color) 0%, #667eea 100%);
    margin: 16px;
    padding: 20px;
    border-radius: 16px;
    color: white;
}

.security-score {
    display: flex;
    align-items: center;
    gap: 20px;
}

.score-circle {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.score-progress {
    transform: rotate(-90deg);
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
}

.score-label {
    display: block;
    font-size: 12px;
    opacity: 0.9;
}

.security-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.security-info p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

/* 安全设置区域 */
.security-section {
    margin: 24px 16px;
}

.section-title {
    font-size: 14px;
    color: #999;
    margin-bottom: 12px;
    padding-left: 4px;
}

.security-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

/* 安全设置项 */
.security-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s;
}

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

.security-item:active {
    background-color: #f9f9f9;
}

.item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.item-left i {
    font-size: 24px;
    color: var(--primary-color);
    width: 24px;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.item-title {
    font-size: 16px;
    color: #333;
}

.item-desc {
    font-size: 13px;
    color: #999;
}

.item-action {
    color: var(--primary-color);
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.item-action i {
    font-size: 16px;
}

/* 危险操作样式 */
.security-item.danger .item-left i {
    color: #ff5252;
}

.text-danger {
    color: #ff5252 !important;
}

/* 开关按钮 */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e0e0e0;
    transition: 0.3s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

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

input:checked + .slider:before {
    transform: translateX(20px);
}

/* 响应式适配 */
@media (max-width: 375px) {
    .security-score {
        flex-direction: column;
        text-align: center;
    }
    
    .score-circle {
        margin: 0 auto;
    }
}