/* 继承全局导航栏样式 */
@import '../../../assets/css/style.css';

/* 页面特定样式 */
body {
    background-color: #f8f9fa;
    padding-top: 0; /* 移除原有的顶部padding */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.profile-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 左侧卡片样式 */
.profile-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
}

.user-info {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f1f1;
}

.avatar-icon {
    font-size: 3.5rem;
    color: #0d6efd;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.user-info h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.user-info p {
    font-size: 0.875rem;
    color: #6c757d;
}

/* 积分区域样式 */
.points-section {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #f1f1f1;
}

.points-display {
    text-align: center;
    margin-bottom: 1.5rem;
}

.points-display i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.points-value {
    font-size: 2.25rem;
    font-weight: 600;
    background: linear-gradient(45deg, #f5a623, #f8c259);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0.5rem;
}

.points-label {
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 签到按钮样式 */
.points-section .btn-primary {
    background: linear-gradient(45deg, #0d6efd, #0091ff);
    border: none;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.points-section .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.points-section .btn-primary:disabled {
    background: #e9ecef;
    color: #6c757d;
    transform: none;
}

.checkin-streak {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #6c757d;
}

/* 右侧使用记录卡片 */
.usage-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f1f1;
    background: transparent;
}

.card-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.card-header h5 i {
    color: #0d6efd;
    opacity: 0.8;
}

/* 表格样式 */
.table {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.table th {
    font-weight: 500;
    color: #6c757d;
    background: #f8f9fa;
    border-top: none;
    padding: 1rem 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    color: #2c3e50;
    border-color: #f1f1f1;
}

/* 状态标签样式 */
.badge {
    padding: 0.4em 0.8em;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
}

/* 分页样式 */
.pagination {
    margin: 1.5rem 0;
}

.page-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-color: #f1f1f1;
    color: #2c3e50;
}

.page-item.active .page-link {
    background: #0d6efd;
    border-color: #0d6efd;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .profile-card,
    .usage-card {
        margin-bottom: 1.5rem;
    }
    
    .table td, 
    .table th {
        padding: 0.75rem;
    }
}

/* 侧边栏样式 */
.profile-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
}

.avatar-edit {
    position: absolute;
    right: 0;
    bottom: 0;
}

.avatar-edit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.avatar-edit-icon:hover {
    background-color: #0056b3;
}

.user-level {
    margin-top: 0.5rem;
}

.level-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: #6c757d;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
}

.vip-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: #ffc107;
    color: #212529;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.points-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.points-info .btn-secondary:disabled {
    opacity: 1;
    cursor: not-allowed;
}

.nav-menu .nav-link {
    padding: 0.75rem 1rem;
    color: #495057;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.nav-menu .nav-link:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.nav-menu .nav-link.active {
    background-color: #e7f1ff;
    color: #007bff;
    font-weight: 500;
}

.nav-menu .nav-link i {
    width: 20px;
    text-align: center;
}

/* 主内容区样式 */
.profile-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    height: 100%;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.content-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.content-header h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

/* 安全设置样式 */
.security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.security-item-header h5 {
    margin-bottom: 0.5rem;
}

.security-item-header p {
    margin-bottom: 0;
}

/* 积分明细样式 */
.points-filter, .usage-filter {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.points-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-card {
    flex: 1;

    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.summary-label {
    color: #6c757d;
}

/* 会员中心样式 */
.vip-card {
    background: linear-gradient(135deg, #f5a623, #f8c259);
    border-radius: 12px;
    color: white;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.2);
}

.vip-card-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.vip-level {
    font-size: 1.25rem;
    font-weight: 600;
}

.vip-level i {
    margin-right: 0.5rem;
}

.vip-expire {
    font-size: 0.875rem;
}

.vip-card-body {
    padding: 1.5rem;
}

.vip-benefits {
    margin-bottom: 1.5rem;
}

.benefit-item {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.benefit-item i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.vip-actions {
    display: flex;
    gap: 1rem;
}

.vip-actions .btn {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
}

.vip-actions .btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.vip-plans {
    margin-top: 2rem;
}

.plan-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.plan-card:hover {
    border-color: #007bff;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.1);
}

.plan-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: #007bff;
}

.plan-price small {
    font-size: 1rem;
    font-weight: 400;
    color: #6c757d;
}

.plan-features {
    margin-bottom: 1.5rem;
}

.plan-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.plan-feature-item i {
    margin-right: 0.75rem;
    color: #28a745;
}

.plan-actions {
    text-align: center;
}

/* 签到日历样式 */
.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.calendar-header-item {
    text-align: center;
    font-weight: 500;
    color: #6c757d;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.875rem;
    position: relative;
}

.calendar-day.other-month {
    color: #adb5bd;
}

.calendar-day.today {
    background-color: #e9ecef;
    font-weight: 600;
}

.calendar-day.checked-in {
    background-color: #28a745;
    color: white;
}

.calendar-day.checked-in::after {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.75rem;
    background-color: #ffc107;
    color: #212529;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 使用记录详情样式 */
.detail-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-label {
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.detail-params {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.875rem;
}

/* iframe样式 */
#contentFrame {
    width: 100%;
    height: 100%;
    min-height: 600px;
    border: none;
    background: #fff;
    border-radius: 12px;
} 