/* User center专用样式文件 */

/* User center容器 */
.user-center-container {
    display: flex;
    min-height: calc(100vh - 80px);
    margin-top: 80px;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* 左侧边栏 - 悬浮版块 */
.sidebar {
    width: auto;
    min-width: 260px;
    background: linear-gradient(135deg, #2c1810, #3d2317);
    border: 3px solid #ffd700;
    border-radius: 20px;
    padding: 30px 25px;
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    height: auto;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 15px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 15px;
    font-weight: 500;
    width: auto;
    min-height: 50px;
    position: relative;
    overflow: hidden;
    margin-bottom: 5px;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border-color: #ffd700;
    color: #ffd700;
    transform: scale(1.05);
}

.sidebar-link i {
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.sidebar-link span {
    font-size: 14px;
    white-space: nowrap;
}

/* 悬浮提示文字 */
.sidebar-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #2c1810, #3d2317);
    color: #ffd700;
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid #ffd700;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.sidebar-link:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 图标样式 */
.icon-home { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23ffffff" viewBox="0 0 24 24"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>'); }
.icon-user { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23ffffff" viewBox="0 0 24 24"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>'); }
.icon-money { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23ffffff" viewBox="0 0 24 24"><path d="M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4z"/></svg>'); }
.icon-card { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23ffffff" viewBox="0 0 24 24"><path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"/></svg>'); }
.icon-list { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23ffffff" viewBox="0 0 24 24"><path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"/></svg>'); }
.icon-share { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23ffffff" viewBox="0 0 24 24"><path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z"/></svg>'); }
.icon-exchange { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23ffffff" viewBox="0 0 24 24"><path d="M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z"/></svg>'); }
.icon-back { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23ffffff" viewBox="0 0 24 24"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></svg>'); }

/* 主要内容区域 */
.main-content {
    flex: 1;
    margin-left: 0;
    padding: 30px;
    overflow-y: auto;
    max-width: 900px;
    margin: 0 auto;
    width: calc(100% - 80px);
}

/* 用户信息卡片 */
.user-info-section {
    margin-bottom: 30px;
}

.user-info-card {
    background: linear-gradient(135deg, #2c1810, #3d2317);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.user-basic-info {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.user-avatar {
    margin-right: 20px;
}

.member-icon {
    width: 100px;
    height: 100px;
    font-size: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-details {
    flex: 1;
}

.user-level {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.level-badge {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.level-name {
    color: #ffd700;
    font-size: 18px;
    font-weight: bold;
}

.user-id-info {
    display: flex;
    gap: 30px;
    color: #ffffff;
    font-size: 14px;
}

.user-id-info span {
    color: #cccccc;
}

/* 积分网格 */
.points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.points-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #ffd700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.points-item label {
    color: #ffffff;
    font-weight: 500;
}

.points-value {
    color: #ffd700;
    font-weight: bold;
    font-size: 18px;
}

/* 紧凑型卡片 */
.content-card.compact-card {
    padding: 15px;
    margin-bottom: 20px;
}

/* 积分余额显示 */
.points-balance {
    margin-top: 10px;
    padding: 10px 0;
}

/* 积分余额网格 - 更紧凑的显示 */
.balance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.balance-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px;
    border-radius: 5px;
    border-left: 2px solid #ffd700;
    text-align: center;
}

.balance-label {
    color: #ffffff;
    font-size: 11px;
    margin-bottom: 2px;
}

.balance-value {
    color: #ffd700;
    font-weight: bold;
    font-size: 13px;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.action-buttons .btn {
    flex: 1;
    min-width: 120px;
}

/* 会员信息 */
.member-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item label {
    color: #cccccc;
    font-weight: 500;
}

.info-item span {
    color: #ffffff;
    font-weight: bold;
}

/* 内容网格 */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* 内容卡片 */
.content-card {
    background: linear-gradient(135deg, #2c1810, #3d2317);
    border: 2px solid #8B4513;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.content-card:hover {
    border-color: #ffd700;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

.card-title {
    color: #ffd700;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

/* 签到相关样式 */
.signin-content {
    text-align: center;
}

.signin-status {
    margin-bottom: 20px;
}

.signin-desc,
.signin-rule {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 14px;
}

.signin-rule {
    color: #ffed4e;
    font-style: italic;
}

.signin-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.signin-calendar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
}

.calendar-header {
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-day.today {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
}

.calendar-day.signed {
    background: linear-gradient(45deg, #4CAF50, #66BB6A);
    color: white;
}

.calendar-day.available {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.calendar-day.unavailable {
    background: rgba(255, 255, 255, 0.05);
    color: #666;
}

/* 客服相关样式 */
.service-content {
    text-align: center;
}

.service-content p {
    color: #ffffff;
    margin-bottom: 15px;
}

.qr-container {
    display: flex;
    justify-content: center;
}

.service-qr {
    width: 150px;
    height: 150px;
    border: 2px solid #ffd700;
    border-radius: 10px;
}

/* 推广相关样式 */
.promotion-content {
    text-align: center;
}

.promotion-earnings {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.promotion-earnings label {
    color: #ffffff;
    font-weight: 500;
}

.earnings-value {
    color: #ffd700;
    font-weight: bold;
    font-size: 18px;
}

.promotion-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.promotion-actions .btn {
    flex: 1;
    min-width: 120px;
}

.promotion-qr {
    margin-bottom: 20px;
}

.promotion-qr img {
    width: 150px;
    height: 150px;
    border: 2px solid #ffd700;
    border-radius: 10px;
}

.promotion-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.promotion-buttons .btn {
    flex: 1;
    min-width: 120px;
}

.promotion-desc {
    color: #cccccc;
    font-size: 12px;
    line-height: 1.5;
    font-style: italic;
}

/* 福利相关样式 */
.welfare-content {
    text-align: center;
}

.welfare-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.welfare-balance label {
    color: #ffffff;
    font-weight: 500;
}

.balance-value {
    color: #ffd700;
    font-weight: bold;
    font-size: 18px;
}

.welfare-note {
    color: #ff6b35;
    font-size: 12px;
    margin-bottom: 20px;
    font-style: italic;
}

/* 会员须知样式 */
.notice-content {
    text-align: left;
}

.notice-list {
    space-y: 15px;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid #ffd700;
}

.notice-number {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    margin-right: 15px;
    flex-shrink: 0;
}

.notice-item p {
    color: #ffffff;
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

/* 支付方式选择弹窗动画 */
@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.payment-method-modal {
    animation: slideInUp 0.3s ease forwards;
}

.payment-method-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-method-actions .btn {
    min-width: 100px;
}

.payment-method-actions .btn-test {
    background: linear-gradient(45deg, #4CAF50, #66BB6A);
    color: white;
    border: 2px solid #4CAF50;
    margin-top: 0;
}

.payment-method-actions .btn-test:hover {
    background: linear-gradient(45deg, #66BB6A, #81C784);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.modal-content {
    background: linear-gradient(135deg, #2c1810, #3d2317);
    margin: 5% auto;
    padding: 30px;
    border: 3px solid #ffd700;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #ffd700;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff6b35;
}

/* 支付方式选择弹窗中的积分信息样式 */
.selected-amount {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid #ffd700;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: left;
}

.points-summary {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 215, 0, 0.3);
}

.base-points {
    color: #ffffff;
    font-weight: 500;
}

.bonus-points {
    color: #4CAF50;
    font-weight: bold;
}

.total-points {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1em;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .points-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .user-center-container {
        flex-direction: column;
    }
    
    .sidebar {
        position: fixed;
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        min-width: auto;
        height: auto;
        max-height: none;
        padding: 10px 15px;
        border-radius: 25px;
    }
    
    .sidebar-menu {
        flex-direction: row;
        gap: 12px;
        align-items: center;
    }
    
    .sidebar-link {
        width: 45px;
        height: 45px;
        padding: 10px;
        border-radius: 50%;
        margin-bottom: 0;
    }
    
    .sidebar-link i {
        width: 20px;
        height: 20px;
        margin-right: 0;
    }
    
    .sidebar-link span {
        display: none;
    }
    
    .sidebar-link::after {
        left: 50%;
        bottom: 60px;
        transform: translateX(-50%);
        white-space: nowrap;
        z-index: 9999;
        pointer-events: none;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px 15px;
    }
    
    .user-basic-info {
        flex-direction: column;
        text-align: center;
    }
    
    .user-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .user-id-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .points-grid {
        grid-template-columns: 1fr;
    }
    
    .member-info {
        grid-template-columns: 1fr;
    }
    
    .promotion-actions,
    .promotion-buttons {
        flex-direction: column;
    }
    
    .signin-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px 10px;
    }
    
    .user-info-card,
    .content-card {
        padding: 20px 15px;
    }
    
    .calendar-grid {
        gap: 3px;
    }
    
    .calendar-day {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
}

/* 支付方式选择按钮美化样式 */
.payment-method-option {
    background: linear-gradient(135deg, #2c1810, #3d2317) !important;
    border: 2px solid #8B4513 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin-bottom: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}
.payment-method-option:hover {
    border-color: #ffd700 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.2) !important;
}
.payment-method-option:active {
    transform: translateY(0) !important;
}

/* 点击反馈效果 */
.payment-method-option.clicked {
    transform: scale(0.95) !important;
    transition: transform 0.1s ease !important;
}

.payment-icon-emoji {
    font-size: 32px;
    margin-right: 10px;
    display: inline-block;
}

.method-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 8px !important;
    width: 100% !important;
}
.method-icon img {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: 2px solid #ffd700 !important;
    margin: 0 auto !important;
}

.method-name {
    color: #ffd700 !important;
    font-size: 16px !important;
    font-weight: bold !important;
    text-align: center !important;
    width: 100% !important;
}

.method-desc {
    color: #cccccc !important;
    font-size: 12px !important;
    text-align: center !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 5px !important;
}

/* 不同支付方式的特殊样式 */
.payment-method-option.wechat {
    background: linear-gradient(135deg, #07c160, #06ae56) !important;
    border-color: #07c160 !important;
}
.payment-method-option.alipay {
    border-color: #1677ff !important;
}
.payment-method-option.qq-pay {
    border-color: #12b7f5 !important;
}.payment-method-option.unionpay {
    border-color: #ff6d00 !important;
}.payment-method-option.jd-pay {
    border-color: #c91f2f;
}

.payment-method-option.paypal {
    border-color: #009cde;
}

.payment-method-option.wechat:hover,
.payment-method-option.alipay:hover,
.payment-method-option.qq-pay:hover,
.payment-method-option.unionpay:hover,
.payment-method-option.jd-pay:hover,
.payment-method-option.paypal:hover {
    border-color: #ffd700;
}