/* 用户中心页面特定样式 - 通用样式在common.css中 */

.main-content {
    flex: 1;
    margin-left: 80px;
    padding: 30px;
}

.profile-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    width: 100%;
}

/* 左侧：用户信息和导航菜单 */
.profile-sidebar {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 用户信息卡片 */
.user-info-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.user-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.user-avatar-card {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #8f41e9;
    object-fit: cover;
}

.user-details {
    flex: 1;
}

.user-details .user-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.user-details .user-id {
    font-size: 13px;
    color: #999;
}

.edit-profile-btn {
    background: linear-gradient(135deg, #8f41e9, #a66af0);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
}

.edit-profile-btn:hover {
    transform: scale(1.05);
}

.user-stats-list {
    margin-bottom: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.stat-row:last-child {
    border-bottom: none;
}

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

.stat-row .stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.member-recharge-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #8f41e9, #a66af0);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.member-recharge-btn:hover {
    transform: scale(1.02);
}

/* 充值记录卡片 */
.recharge-record-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.view-all {
    font-size: 13px;
    color: #8f41e9;
    text-decoration: none;
}

.record-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.record-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 12px;
}

.record-info {
    flex: 1;
}

.record-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.record-time {
    font-size: 12px;
    color: #999;
}

.record-amount {
    font-size: 14px;
    font-weight: 700;
    color: #8f41e9;
}

.record-status {
    font-size: 12px;
    color: #52c41a;
    background: #f6ffed;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

/* 右侧：内容展示区域 */
.profile-content {
    flex: 1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 作品区域 - 用户中心特有 */
.works-section {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.works-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.title-line {
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #8f41e9, #a66af0);
    border-radius: 2px;
}

.works-title h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
	margin-left:10px;
}

/* 用户中心视频网格 */
.profile-content .video-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 0;
}

/* 视频操作按钮 */
.video-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s;
}

.video-card:hover .video-actions {
    opacity: 1;
    transform: translateY(0);
}

.action-btn {
    padding: 4px 10px;
    border: none;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.edit-btn:hover {
    transform: scale(1.05);
}

.delete-btn {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.delete-btn:hover {
    transform: scale(1.05);
}

/* 设置表单 */
.settings-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
}

.settings-form {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #8f41e9;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    background: #fff;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 12px 36px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #8f41e9, #a66af0);
    color: #fff;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.btn-secondary:hover {
    background: #e9e9e9;
}

/* 弹窗样式 */
.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.profile-modal.active {
    display: block;
}

.profile-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.profile-modal .modal-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    max-width: 500px;
    margin: 100px auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border: none;
}

.profile-modal .modal-close,
.recharge-modal .modal-close,
.edit-video-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.2s;
    z-index: 10;
}

.profile-modal .modal-close:hover {
    background: #eee;
    color: #666;
}

.profile-modal .modal-header {
    padding: 30px 40px 0;
}

.profile-modal .modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.profile-modal .modal-body {
    padding: 30px 40px 40px;
}

.profile-modal .form-group {
    margin-bottom: 20px;
}

.profile-modal .modal-header {
    padding: 30px 40px 10px;
}

.profile-modal .modal-header h2 {
    margin-bottom: 0;
}

.profile-modal .form-group {
    margin-bottom: 25px;
}

.profile-modal .form-actions {
    margin-top: 30px;
}

/* 充值弹窗样式 */
.recharge-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.recharge-modal.active {
    display: block;
}

.recharge-content {
    max-width: 600px;
    margin: 30px auto;
}

.recharge-modal .modal-header {
    padding: 20px 30px 5px;
}

.recharge-modal .modal-header h2 {
    font-size: 22px;
    margin-bottom: 0;
}

.recharge-modal .modal-body {
    padding: 20px 30px 30px;
}

.recharge-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

.recharge-tab {
    padding: 8px 24px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-radius: 18px;
    transition: all 0.3s;
}

.recharge-tab.active {
    background: linear-gradient(135deg, #8f41e9, #a66af0);
    color: white;
}

.recharge-tab-content {
    display: none;
}

.recharge-tab-content.active {
    display: block;
}

.recharge-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.recharge-card {
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    padding: 18px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.recharge-card.selected {
    border-color: #8f41e9;
    background: linear-gradient(135deg, #f6efff, #ffefdf);
}

.recharge-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.card-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #8f41e9, #a66af0);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.card-icon {
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-icon-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.card-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.card-price {
    font-size: 24px;
    font-weight: 700;
    color: #8f41e9;
    margin-bottom: 4px;
}

.card-desc {
    font-size: 12px;
    color: #999;
}

.payment-methods {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.payment-method {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
}

.payment-method.selected {
    border-color: #8f41e9;
    background: #f6efff;
}

.payment-method input {
    display: none;
}

.payment-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.payment-method span:last-child {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.qrcode-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 16px;
    margin-bottom: 20px;
}

.qrcode-box {
    text-align: center;
    order: 1;
}

.qrcode-placeholder {
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.qrcode-placeholder svg {
    width: 120px;
    height: 120px;
}

.qrcode-tip {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.order-info {
    order: 2;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: white;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

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

.order-item span:first-child {
    color: #666;
    font-weight: 500;
}

.order-price {
    font-size: 22px;
    font-weight: 700;
    color: #8f41e9;
}

.payment-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.payment-actions .btn-primary,
.payment-actions .btn-secondary {
    padding: 10px 32px;
    font-size: 14px;
}

/* 编辑作品弹窗 */
.edit-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.edit-video-modal.active {
    display: block;
}

.edit-video-modal .modal-body {
    padding: 30px 40px 40px;
}

.edit-video-modal .modal-header {
    padding: 30px 40px 10px;
}

.edit-video-modal .modal-header h2 {
    margin-bottom: 0;
}

/* 删除确认弹窗 */
.delete-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.delete-confirm-modal.active {
    display: block;
}

.small-modal {
    max-width: 400px;
    margin: 150px auto;
    text-align: center;
}

.small-modal .modal-body {
    padding: 40px 30px;
}

.delete-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.delete-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.delete-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.small-modal .form-actions {
    justify-content: center;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .profile-content .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .profile-container {
        flex-direction: column;
    }
    
    .profile-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 60px;
        padding: 20px;
    }
    
    .profile-content .video-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }
    
    .settings-form {
        padding: 25px;
    }
    
    .profile-modal .modal-content {
        margin: 20px;
    }
}