/* ==================== 我的页面样式 ==================== */

.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.profile-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8faf8 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
}

.profile-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.profile-email {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    padding: 20px;
    background: linear-gradient(135deg, #f8faf8 0%, #f0f4f0 100%);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.1);
}

.stat-value {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.profile-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.action-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-logout {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: var(--white);
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 67, 54, 0.4);
}

.btn-settings {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-settings:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.4);
}

/* 空间浏览卡片 */
.storage-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8faf8 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 30px;
    margin-top: 20px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.storage-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.storage-title i {
    color: var(--primary-color);
}

.storage-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.storage-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.storage-used {
    font-size: 15px;
    color: #666;
}

.storage-percent {
    font-size: 18px;
    font-weight: 600;
}

.percent-green {
    color: #4CAF50;
}

.percent-yellow {
    color: #FF9800;
}

.percent-red {
    color: #f44336;
}

.storage-progress-bar {
    width: 100%;
    height: 12px;
    background-color: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.storage-progress {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease, background-color 0.3s ease;
}

.progress-green {
    background: linear-gradient(90deg, #4CAF50, #81C784);
}

.progress-yellow {
    background: linear-gradient(90deg, #FF9800, #FFB74D);
}

.progress-red {
    background: linear-gradient(90deg, #f44336, #E57373);
}

.storage-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-green {
    background-color: #4CAF50;
}

.legend-yellow {
    background-color: #FF9800;
}

.legend-red {
    background-color: #f44336;
}

.legend-text {
    font-size: 12px;
    color: #888;
}

.storage-unlimited {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    color: #2e7d32;
    font-size: 18px;
    font-weight: 500;
}

.storage-unlimited i {
    font-size: 24px;
}

.storage-info-unlimited {
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* 当前状态卡片 */
.status-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8faf8 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 30px;
    margin-top: 20px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.status-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-title i {
    color: var(--primary-color);
}

.status-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.status-item {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #f8faf8 0%, #f0f4f0 100%);
    border-radius: 12px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.status-item:hover {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: rgba(76, 175, 80, 0.2);
}

.status-label {
    font-weight: 600;
    color: #666;
    min-width: 120px;
    font-size: 15px;
}

.status-value {
    font-weight: 500;
    color: var(--text-color);
    font-size: 15px;
    flex: 1;
}

/* 未登录状态 */
.login-prompt {
    text-align: center;
    padding: 60px 20px;
}

.login-prompt-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.login-prompt-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.login-prompt-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.login-prompt-btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
}

.login-prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.4);
}

/* ==================== 退出登录确认模态框 ==================== */

.logout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.logout-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8faf8 100%);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

/* 关闭动画 */
.logout-modal.modal-closing {
    animation: fadeOut 0.3s ease forwards;
}

.logout-modal-content.modal-content-closing {
    animation: slideDown 0.3s ease forwards;
}

/* 动画关键帧 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(50px);
        opacity: 0;
    }
}

.logout-modal-header {
    padding: 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logout-modal-header i {
    font-size: 24px;
}

.logout-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.logout-modal-body {
    padding: 32px 24px;
    text-align: center;
}

.logout-modal-body p {
    margin: 0;
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.6;
}

.logout-modal-footer {
    padding: 16px 24px;
    background: linear-gradient(135deg, #f8faf8 0%, #f0f4f0 100%);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.logout-modal-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.logout-modal-btn-cancel {
    background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
    color: #666;
}

.logout-modal-btn-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.logout-modal-btn-confirm {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: var(--white);
}

.logout-modal-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 67, 54, 0.4);
}

/* ==================== 响应式设计 ==================== */

@media (max-width: 768px) {
    .profile-container {
        padding: 16px 16px 80px;
    }

    .profile-card {
        padding: 30px 20px;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }

    .profile-name {
        font-size: 20px;
    }

    .profile-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-value {
        font-size: 24px;
    }

    .profile-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }

    .login-prompt {
        padding: 40px 20px;
    }

    .login-prompt-icon {
        font-size: 60px;
    }

    .login-prompt-title {
        font-size: 20px;
    }

    /* 空间浏览卡片响应式 */
    .storage-card {
        padding: 20px;
        margin-top: 16px;
    }

    .storage-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .storage-legend {
        flex-wrap: wrap;
        gap: 12px;
    }

    .legend-text {
        font-size: 11px;
    }

    .storage-unlimited {
        padding: 16px;
        font-size: 16px;
    }

    .storage-unlimited i {
        font-size: 20px;
    }

    .status-card {
        padding: 20px;
        margin-top: 16px;
    }

    .status-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .status-info {
        gap: 12px;
    }

    .status-item {
        flex-direction: column;
        gap: 6px;
        padding: 12px 16px;
    }

    .status-label {
        min-width: auto;
        font-size: 13px;
        color: #888;
    }

    .status-value {
        font-size: 14px;
    }

    .logout-modal-content {
        width: 95%;
        max-width: 340px;
    }

    .logout-modal-header {
        padding: 20px;
    }

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

    .logout-modal-header h3 {
        font-size: 18px;
    }

    .logout-modal-body {
        padding: 24px 20px;
    }

    .logout-modal-body p {
        font-size: 15px;
    }

    .logout-modal-footer {
        padding: 12px 16px;
        flex-direction: column-reverse;
    }

    .logout-modal-btn {
        width: 100%;
        padding: 12px;
    }
}

/* ==================== 深色模式 ==================== */

[data-theme="dark"] .profile-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(129, 199, 132, 0.06) 100%);
    border-color: var(--border-color);
}

[data-theme="dark"] .profile-name {
    color: var(--text-color);
}

[data-theme="dark"] .profile-email {
    color: var(--text-secondary);
}

[data-theme="dark"] .stat-item {
    background: linear-gradient(135deg, var(--input-bg) 0%, rgba(129, 199, 132, 0.04) 100%);
    border-color: var(--border-color);
}

[data-theme="dark"] .stat-item:hover {
    box-shadow: 0 4px 16px rgba(129, 199, 132, 0.15);
}

[data-theme="dark"] .stat-label {
    color: var(--text-secondary);
}

[data-theme="dark"] .storage-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(129, 199, 132, 0.06) 100%);
    border-color: var(--border-color);
}

[data-theme="dark"] .storage-title {
    color: var(--text-color);
}

[data-theme="dark"] .storage-used {
    color: var(--text-secondary);
}

[data-theme="dark"] .storage-progress-bar {
    background-color: var(--input-bg);
}

[data-theme="dark"] .storage-legend {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .legend-text {
    color: var(--text-secondary);
}

[data-theme="dark"] .storage-unlimited {
    background: linear-gradient(135deg, rgba(129, 199, 132, 0.15) 0%, rgba(129, 199, 132, 0.08) 100%);
    color: var(--primary-light);
}

[data-theme="dark"] .storage-info-unlimited {
    color: var(--text-secondary);
}

[data-theme="dark"] .status-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(129, 199, 132, 0.06) 100%);
    border-color: var(--border-color);
}

[data-theme="dark"] .status-title {
    color: var(--text-color);
}

[data-theme="dark"] .status-item {
    background: linear-gradient(135deg, var(--input-bg) 0%, rgba(129, 199, 132, 0.04) 100%);
}

[data-theme="dark"] .status-item:hover {
    background: linear-gradient(135deg, rgba(129, 199, 132, 0.12) 0%, rgba(129, 199, 132, 0.06) 100%);
    border-color: rgba(129, 199, 132, 0.2);
}

[data-theme="dark"] .status-label {
    color: var(--text-secondary);
}

[data-theme="dark"] .status-value {
    color: var(--text-color);
}

[data-theme="dark"] .login-prompt-title {
    color: var(--text-color);
}

[data-theme="dark"] .login-prompt-description {
    color: var(--text-secondary);
}

[data-theme="dark"] .logout-modal-content {
    background: var(--card-bg);
}

[data-theme="dark"] .logout-modal-body p {
    color: var(--text-color);
}

[data-theme="dark"] .logout-modal-footer {
    background: var(--input-bg);
}

[data-theme="dark"] .logout-modal-btn-cancel {
    background: linear-gradient(135deg, rgba(129, 199, 132, 0.15) 0%, rgba(129, 199, 132, 0.08) 100%);
    color: var(--text-secondary);
}

[data-theme="dark"] .logout-modal-btn-cancel:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
