/* 会员中心样式 */

/* 会员中心布局 */
.user-center {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 信息卡片 */
.user-info-card,
.ecloud-info-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.user-info-card h2,
.ecloud-info-card h2 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.info-row {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
}

.info-row label {
    min-width: 100px;
    font-weight: 500;
    color: #666;
}

.info-row span {
    color: #333;
}

.info-row code {
    background-color: #f4f4f4;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

/* 无账号状态 */
.no-account {
    text-align: center;
    padding: 30px;
}

.no-account p {
    margin-bottom: 20px;
    color: #666;
}

/* 有账号状态 */
.has-account .actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* 创建云电脑账号页面 */
.create-ecloud-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
}

.create-ecloud-box h2 {
    margin-bottom: 15px;
    color: #333;
}

.info-text {
    color: #666;
    margin-bottom: 20px;
}

.account-info {
    text-align: left;
    margin: 15px 0;
}

.account-info p {
    margin: 10px 0;
}

.account-info code {
    background-color: #f4f4f4;
    padding: 4px 8px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.info-item {
    margin: 15px 0;
}

.info-item label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.info-value-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.info-value-group code {
    flex: 1;
    min-width: 200px;
    font-size: 14px;
}

.btn-copy,
.btn-toggle-password {
    padding: 4px 8px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: all 0.3s;
}

.btn-copy:hover,
.btn-toggle-password:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.btn-copy span,
.btn-toggle-password span {
    display: inline-block;
}

.warning {
    color: #dc3545;
    font-weight: 500;
    margin-top: 15px;
}

/* 兑换码页面 */
.redeem-step {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.redeem-box h2 {
    margin-bottom: 20px;
    color: #333;
}

.help-text {
    color: #666;
    font-size: 12px;
    margin-top: 10px;
}

.sync-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sync-section h3 {
    margin-bottom: 10px;
    color: #333;
}

/* 图片弹窗样式 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
    animation: fadeIn 0.3s;
    /* 使用 flexbox 让弹窗在页面正中间 */
    align-items: center;
    justify-content: center;
}

.image-modal.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.image-modal-content {
    position: relative;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.image-modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

.image-modal-text {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 15px;
}

.image-modal-content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.image-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    z-index: 10000;
}

.image-modal-close:hover {
    color: #000;
}

/* 响应式 */
@media (max-width: 768px) {
    .user-center {
        gap: 15px;
    }
    
    .user-info-card,
    .ecloud-info-card,
    .create-ecloud-box,
    .redeem-step {
        padding: 15px;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-row label {
        margin-bottom: 5px;
    }
    
    .image-modal-content {
        padding: 15px;
        max-width: 90%;
        width: 85%;
    }
    
    .image-modal-close {
        top: 5px;
        right: 10px;
        font-size: 28px;
    }
}

