/* 主内容区域添加底部间距 */
.main-content {
    padding-bottom: 80px;
}

.user-card {
    background: linear-gradient(135deg, rgba(121, 207, 211, 0.18) 0%, rgba(138, 164, 255, 0.22) 100%);
    padding: 22px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    margin: 12px 16px 0;
    border-radius: 22px;
    border: 1px solid rgba(214, 224, 235, 0.88);
    box-shadow: 0 16px 34px rgba(120, 144, 179, 0.12);
}

.user-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 50%;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.7);
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255,255,255,0.4);
    box-shadow: 0 10px 18px rgba(118, 141, 177, 0.12);
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #29405f;
}

.user-shop {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.shop-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.shop-name {
    font-size: 14px;
    color: #29405f;
    font-weight: 500;
}

.edit-shop-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #587089;
    transition: color 0.2s;
}

.edit-shop-btn:hover {
    color: var(--primary-color);
}

.edit-shop-btn svg {
    width: 14px;
    height: 14px;
}

.user-badges {
    display: flex;
    gap: 8px;
    align-items: center;
}

.badge-item {
    padding: 4px 10px;
    background-color: rgba(255, 255, 255, 0.52);
    border-radius: 999px;
    font-size: 12px;
    white-space: nowrap;
    display: inline-block;
    border: 1px solid rgba(214, 224, 235, 0.9);
}

.badge-item.verified {
    background-color: rgba(233, 250, 244, 0.95);
}

.badge-item {
    color: #587089;
}

.points-card {
    background: var(--bg-white);
    padding: 20px 18px;
    margin: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(120, 144, 179, 0.1);
    border: 1px solid rgba(214, 224, 235, 0.72);
}

.wallet-card {
    background: var(--bg-white);
    padding: 20px 18px;
    margin: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(120, 144, 179, 0.1);
    border: 1px solid rgba(214, 224, 235, 0.72);
}

.menu-section {
    padding: 0 16px;
}

.menu-group {
    background: rgba(255, 255, 255, 0.96);
    margin-top: 12px;
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(120, 144, 179, 0.1);
    overflow: hidden;
    border: 1px solid rgba(214, 224, 235, 0.72);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.link-more {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 16px;
}

.link-more::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
    transition: all 0.3s ease;
}

.link-more:hover::after {
    right: -2px;
}

.points-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.points-item {
    text-align: center;
}

.points-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.points-value {
    font-size: 22px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.points-value.secondary {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: var(--text-secondary);
    font-weight: 600;
}

.wallet-balance {
    text-align: center;
    padding: 16px 0;
}

.balance-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.balance-value {
    font-size: 36px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wallet-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.wallet-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.wallet-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.wallet-btn:active {
    transform: translateY(0);
}

.wallet-btn .btn-icon {
    font-size: 24px;
}

.wallet-btn .btn-text {
    font-size: 14px;
}

.menu-section {
    padding: 0 16px 16px;
}

.menu-group {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(120, 144, 179, 0.1);
    border: 1px solid rgba(214, 224, 235, 0.72);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px 15px;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    color: var(--text-primary);
}

.menu-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-item:hover {
    background-color: #f8fbfc;
    padding-left: 18px;
}

.menu-item:hover::after {
    opacity: 1;
}

.menu-item:active {
    transform: scale(0.98);
}

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

.menu-icon-svg {
    width: 20px;
    height: 20px;
    stroke: #7d8da5;
    transition: all 0.3s ease;
}

.menu-text {
    flex: 1;
    margin-left: 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.menu-arrow-svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-secondary);
    transition: all 0.3s ease;
    opacity: 0.45;
}

.menu-item:hover .menu-icon-svg {
    stroke: var(--primary-color);
}

.menu-item:hover .menu-arrow-svg {
    stroke: var(--primary-color);
    opacity: 1;
    transform: translateX(4px);
}

.menu-item-danger .menu-icon-svg {
    stroke: var(--error-color);
}

.menu-item-danger .menu-text {
    color: #e74c3c;
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-dialog {
    background: var(--bg-white);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    padding: 20px 20px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

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

.modal-footer {
    padding: 10px 20px 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--bg-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--border-color);
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}
