/* 会员中心页面样式 */
.member-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 登录注册区域样式 */
.login-section {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    color: #666;
    font-size: 1.1em;
    cursor: pointer;
    position: relative;
}

.tab-btn.active {
    color: #8B0000;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #8B0000;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.forgot-password {
    color: #8B0000;
    text-decoration: none;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #8B0000;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #660000;
}

/* 会员仪表盘样式 */
.member-dashboard {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 30px;
}

/* 左侧用户信息样式 */
.user-sidebar {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user-profile {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.edit-avatar {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 5px 10px;
    border: none;
    border-radius: 15px;
    font-size: 0.9em;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avatar:hover .edit-avatar {
    opacity: 1;
}

.username {
    color: #333;
    margin-bottom: 5px;
}

.user-level {
    color: #666;
}

.dashboard-nav {
    margin-top: 20px;
}

.dashboard-nav ul {
    list-style: none;
    padding: 0;
}

.dashboard-nav li {
    padding: 12px 15px;
    color: #666;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.dashboard-nav li:hover {
    background: #f9f9f9;
    color: #8B0000;
}

.dashboard-nav li.active {
    background: #8B0000;
    color: #fff;
}

/* 主要内容区样式 */
.dashboard-main {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dashboard-panel {
    display: none;
}

.dashboard-panel.active {
    display: block;
}

.dashboard-panel h2 {
    color: #8B0000;
    margin-bottom: 30px;
}

/* 个人资料表单样式 */
.profile-form .form-group {
    margin-bottom: 25px;
}

.profile-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: vertical;
}

.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.remove-tag {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0 5px;
}

.add-tag {
    background: none;
    border: 1px dashed #ddd;
    padding: 5px 15px;
    border-radius: 15px;
    color: #666;
    cursor: pointer;
}

.save-btn {
    background: #8B0000;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    cursor: pointer;
}

/* 收藏内容样式 */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.collection-item {
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
}

.collection-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.item-info {
    padding: 15px;
}

.item-info h3 {
    color: #333;
    margin-bottom: 5px;
}

.item-info p {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.remove-collection {
    background: none;
    border: 1px solid #8B0000;
    color: #8B0000;
    padding: 5px 15px;
    border-radius: 15px;
    cursor: pointer;
}

/* 学习记录样式 */
.learning-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2em;
    color: #8B0000;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
}

/* 右侧通知区样式 */
.notification-sidebar {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.notification-header h3 {
    color: #333;
}

.mark-all-read {
    background: none;
    border: none;
    color: #8B0000;
    cursor: pointer;
}

.notification-item {
    display: flex;
    align-items: start;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.notification-dot {
    width: 8px;
    height: 8px;
    background: #8B0000;
    border-radius: 50%;
    margin-top: 6px;
    margin-right: 10px;
}

.notification-content p {
    color: #333;
    margin-bottom: 5px;
}

.notification-content time {
    color: #666;
    font-size: 0.9em;
}

/* 通用样式 */
.hidden {
    display: none;
} 