/* my_css.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 顶部导航栏 */
.top-bar {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.top-title h1 {
    font-size: 18px;
    font-weight: 600;
}

.top-icons i {
    font-size: 20px;
    margin-left: 15px;
    cursor: pointer;
}

/* 主要内容区域 */
.page-content {
    margin-top: 80px;
    padding: 20px;
}

/* 用户资料卡片 */
.profile-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.profile-photo-container {
    position: relative;
    margin-right: 20px;
}

.profile-photo-container img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
}

.level-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #667eea;
    color: white;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.level-badge.level-1 {
    background: #FFA500;
}

.level-badge.level-2 {
    background: #C0C0C0;
}

.level-badge.level-3 {
    background: #FFD700;
}

.level-badge.level-4 {
    background: #8B008B;
}

.profile-info h2 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #333;
}

.user-id {
    color: #888;
    font-size: 14px;
    margin-bottom: 15px;
}

.user-stats {
    display: flex;
    gap: 20px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.stat-label {
    font-size: 12px;
    color: #888;
}

.profile-details {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
}

.detail-item i {
    width: 20px;
    color: #667eea;
    margin-right: 10px;
}

.profile-actions {
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn i {
    margin-right: 5px;
}

.primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.secondary-btn {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.secondary-btn:hover {
    background: #e9ecef;
}

/* 快捷功能入口 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.action-card {
    background: white;
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.action-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 18px;
    color: white;
}

.bg-blue {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.bg-green {
    background: linear-gradient(135deg, #96f49c, #2ecc71);
}

.bg-red {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.bg-purple {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
}

.action-card span {
    font-size: 13px;
    color: #555;
}

/* 菜单区域 */
.menu-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.3s ease;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: #f8f9fa;
}

.menu-content {
    display: flex;
    align-items: center;
}

.menu-content i {
    width: 20px;
    font-size: 18px;
    margin-right: 15px;
    color: #667eea;
}

.menu-content span {
    font-size: 16px;
    color: #333;
}

.menu-item i.fa-chevron-right {
    color: #ccc;
    font-size: 14px;
}

/* 页脚 */
.main-footer {
    text-align: center;
    padding: 20px;
    background: white;
    margin-top: 20px;
    color: #888;
    font-size: 12px;
}

.main-footer p {
    margin: 5px 0;
}

.main-footer a {
    color: #667eea;
    text-decoration: none;
}

.main-footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-photo-container {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .user-stats {
        justify-content: center;
    }

    .profile-actions {
        flex-direction: column;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .top-bar {
        padding: 0 15px;
    }

    .page-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .profile-card {
        padding: 20px 15px;
    }

    .stat {
        padding: 0 5px;
    }

    .detail-item {
        font-size: 13px;
    }
}


