/* 个人中心页面样式 */
.profile-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.profile-info {
    margin-top: 15px;
}

.profile-info p {
    margin: 10px 0;
    font-size: 16px;
}

/* 修改密码表单 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.error-message {
    color: #e53935;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* 购买积分区域样式 */
.payment-options {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.payment-option {
    flex: 1;
    min-width: 200px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.payment-option:hover {
    border-color: #4A90E2;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.2);
}

.payment-option h3 {
    margin-top: 0;
    color: #333;
}

.payment-option .price {
    font-size: 24px;
    font-weight: 700;
    color: #4A90E2;
    margin: 15px 0;
}

.payment-option .credits {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.buy-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #4A90E2;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.buy-btn:hover {
    background-color: #3a7bc8;
}

/* 订单列表样式 */
.orders-list {
    margin-top: 15px;
}

.order-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

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

.order-info {
    flex: 1;
}

.order-id {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.order-description {
    font-weight: 500;
    margin-bottom: 5px;
}

.order-date {
    font-size: 14px;
    color: #888;
}

.order-amount {
    font-weight: 700;
    color: #4A90E2;
    font-size: 18px;
    margin: 0 20px;
}

.order-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.status-pending {
    background-color: #FFF3CD;
    color: #856404;
}

.status-paid {
    background-color: #D4EDDA;
    color: #155724;
}

.status-failed {
    background-color: #F8D7DA;
    color: #721C24;
}

.order-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.order-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.pay-btn {
    background-color: #4A90E2;
    color: white;
}

.pay-btn:hover {
    background-color: #3a7bc8;
}

.cancel-btn {
    background-color: #f1f1f1;
    color: #666;
}

.cancel-btn:hover {
    background-color: #e1e1e1;
}

.loading-text {
    text-align: center;
    color: #666;
    padding: 20px;
}

.error-message {
    text-align: center;
    color: #e53935;
    padding: 20px;
}

/* 分页控件样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 5px;
}

.pagination-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover:not(.active) {
    background-color: #f1f1f1;
}

.pagination-btn.active {
    background-color: #4A90E2;
    color: white;
    border-color: #4A90E2;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 联系客服弹窗样式 */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.contact-modal.active {
    display: flex;
}

.contact-modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-modal-title {
    margin: 0;
    font-size: 18px;
}

.contact-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

.contact-modal-body {
    padding: 20px;
}

.contact-modal-section {
    margin-bottom: 25px;
}

.contact-modal-section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.section-header svg {
    margin-right: 10px;
    color: #4A90E2;
}

.section-header h3 {
    margin: 0;
    font-size: 16px;
}

.contact-modal-qrcode {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    background-color: #f1f1f1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

.qrcode-inner {
    width: 180px;
    height: 180px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}

.text-sm {
    font-size: 14px;
}

.text-gray-600 {
    color: #666;
}

.contact-modal-section.info {
    display: flex;
    align-items: center;
}

.contact-modal-section.info svg {
    margin-right: 15px;
    color: #4A90E2;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-title {
    margin: 0 0 5px;
    font-weight: 500;
}

.info-desc {
    margin: 0;
    color: #666;
}

.info-desc.email {
    color: #4A90E2;
}

/* 用户菜单样式 */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.username {
    color: white;
    font-weight: 500;
    font-size: 14px;
}

.dropdown-arrow {
    color: white;
    transition: transform 0.3s ease;
}

.user-info:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #333;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.dropdown-item svg {
    width: 16px;
    height: 16px;
    color: #666;
}

/* 修改密码弹窗样式 */
.password-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.password-modal-content .close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.password-modal-content .close:hover {
    color: #333;
}

.password-modal-content h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    text-align: center;
}

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

.password-modal-content .form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.password-modal-content .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.password-modal-content .form-group input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1);
}

.password-modal-content .error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

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

.password-modal .cancel-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.password-modal .cancel-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}
