/**
 * 会员中心 / 购物车 — Theme B
 */
body.site-theme-b.site-page--auth,
body.site-theme-b.site-page--user {
    min-height: 60vh;
}

/* Login / Register */
body.site-theme-b .login-section {
    margin: 40px auto 56px;
    max-width: 460px;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
body.site-theme-b .login-section .logon-tab {
    margin: 0;
    display: flex;
    border-bottom: 1px solid var(--hb-border);
}
body.site-theme-b .login-section .logon-tab > a {
    flex: 1;
    display: block;
    padding: 18px 16px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    color: var(--hb-muted);
    background: var(--hb-surface-2);
    text-decoration: none;
    transition: all 0.25s;
}
body.site-theme-b .login-section .logon-tab > a:hover {
    color: var(--hb-cyan);
    background: rgba(6, 182, 212, 0.08);
}
body.site-theme-b .login-section .logon-tab > a.active {
    color: var(--hb-heading);
    background: rgba(124, 58, 237, 0.12);
    border-bottom: 2px solid var(--hb-purple);
}
body.site-theme-b .login-section .login-main {
    padding: 32px 36px 28px;
}
body.site-theme-b .login-section label.control-label {
    color: var(--hb-muted);
    font-weight: 500;
}
body.site-theme-b .login-section .checkbox label {
    color: var(--hb-muted);
}
body.site-theme-b .login-section .btn-forgot {
    color: var(--hb-cyan);
}
body.site-theme-b .login-section .mt-3 {
    margin-top: 12px;
}

/* Member layout */
body.site-theme-b .user-center-panel {
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: 16px;
    padding: 32px 28px;
    min-height: 320px;
}
body.site-theme-b .user-center-header {
    border-bottom: 1px solid var(--hb-border);
    padding-bottom: 20px;
    margin-bottom: 24px;
}
body.site-theme-b .user-center-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hb-text);
    margin: 0;
}
body.site-theme-b .user-center-header .text-muted {
    color: var(--hb-muted) !important;
}
body.site-theme-b .user-center-summary {
    background: var(--hb-surface-2);
    border: 1px solid var(--hb-border);
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
}
body.site-theme-b .user-center-summary h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--hb-text);
}
body.site-theme-b .user-center-summary .summary-meta {
    margin: 6px 0 0;
    color: var(--hb-muted);
    font-size: 0.92rem;
}
body.site-theme-b .user-center-summary .summary-meta i {
    color: var(--hb-cyan);
    margin-right: 4px;
}
body.site-theme-b .user-info-grid .info-item {
    margin-bottom: 18px;
}
body.site-theme-b .user-info-grid .info-label {
    color: var(--hb-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
body.site-theme-b .user-info-grid .info-value {
    color: var(--hb-text);
    font-size: 1rem;
    font-weight: 500;
}
body.site-theme-b .user-info-grid .info-value .accent {
    color: var(--hb-cyan);
    font-weight: 700;
}
body.site-theme-b .user-profile-btn {
    border-radius: 8px;
    margin-left: 8px;
    margin-bottom: 8px;
}
body.site-theme-b .address-item {
    border-bottom: 1px solid var(--hb-border);
    padding: 20px 0;
    margin-bottom: 8px;
}
body.site-theme-b .address-item:last-child {
    border-bottom: none;
}
body.site-theme-b .address-item .addr-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--hb-text);
    margin-bottom: 8px;
}
body.site-theme-b .address-item .addr-name i {
    color: var(--hb-cyan);
    margin-right: 6px;
}
body.site-theme-b .address-item .addr-detail {
    color: var(--hb-muted);
    margin-bottom: 0;
}
body.site-theme-b .label-default-theme {
    background: rgba(124, 58, 237, 0.2);
    color: #c4b5fd;
    font-weight: 500;
    border-radius: 6px;
}
body.site-theme-b .label-success-theme {
    background: rgba(6, 182, 212, 0.2);
    color: var(--hb-cyan);
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
}

/* Sidenav */
body.site-theme-b .sidenav {
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: 14px;
    padding: 12px 0;
    margin-bottom: 20px;
}
body.site-theme-b .sidenav .list-group-item {
    border: none;
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--hb-muted);
    border-left: 3px solid transparent;
    background: transparent;
    margin: 0;
}
body.site-theme-b .sidenav .list-group-item a {
    color: inherit;
    text-decoration: none;
    display: block;
}
body.site-theme-b .sidenav .list-group-item:hover,
body.site-theme-b .sidenav .list-group-item.active {
    background: rgba(124, 58, 237, 0.12);
    color: var(--hb-cyan);
    border-left-color: var(--hb-purple);
}
body.site-theme-b .sidebar-toggle {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 1001;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hb-purple), #6366f1);
    color: #fff;
    text-align: center;
    line-height: 50px;
    font-size: 1.25rem;
    box-shadow: 0 8px 24px var(--hb-glow);
    cursor: pointer;
}

/* Tables & filters */
body.site-theme-b .user-center-panel .table {
    color: var(--hb-text);
    border-color: var(--hb-border);
}
body.site-theme-b .user-center-panel .table > thead > tr > th {
    background: var(--hb-surface-2);
    border-color: var(--hb-border);
    color: var(--hb-cyan);
    font-weight: 600;
}
body.site-theme-b .user-center-panel .table > tbody > tr > td {
    border-color: var(--hb-border);
    vertical-align: middle;
}
body.site-theme-b .user-center-panel .table-striped > tbody > tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.02);
}
body.site-theme-b .user-center-panel .table-hover > tbody > tr:hover {
    background: rgba(124, 58, 237, 0.08);
}
body.site-theme-b .user-filter-box {
    background: var(--hb-surface-2);
    border: 1px solid var(--hb-border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}
body.site-theme-b .user-center-panel .well,
body.site-theme-b .user-center-panel .well-sm {
    background: var(--hb-surface-2);
    border: 1px solid var(--hb-border);
    border-radius: 10px;
    color: var(--hb-text);
    box-shadow: none;
}
body.site-theme-b .user-center-panel .well h4 {
    color: var(--hb-text);
    border-bottom: 1px solid var(--hb-border);
    padding-bottom: 10px;
    margin-bottom: 14px;
}
body.site-theme-b .cart-toolbar-note {
    color: var(--hb-muted);
    margin-bottom: 12px;
}
body.site-theme-b .cart-toolbar-note.text-primary {
    color: var(--hb-cyan) !important;
}
body.site-theme-b .page-header {
    margin: 0 0 24px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--hb-border);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hb-text);
    border-color: var(--hb-border);
}
body.site-theme-b .stit {
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    margin: 20px 0 12px;
}
body.site-theme-b .stit.bg-info,
body.site-theme-b .stit.bg-warning {
    background: rgba(6, 182, 212, 0.12) !important;
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--hb-cyan);
}
body.site-theme-b .well-blank {
    background: none;
    border: 0;
    margin-bottom: 16px;
}
body.site-theme-b .text-danger a,
body.site-theme-b .cart-empty a {
    color: var(--hb-cyan);
}
body.site-theme-b .btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-color: transparent;
    border-radius: 8px;
}
body.site-theme-b .btn-info {
    background: rgba(6, 182, 212, 0.25);
    border-color: rgba(6, 182, 212, 0.5);
    color: var(--hb-cyan);
    border-radius: 8px;
}
body.site-theme-b .btn-success {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.45);
    color: #6ee7b7;
}
body.site-theme-b .panel-default {
    background: transparent;
    border: none;
    box-shadow: none;
}
body.site-theme-b .panel-body {
    padding: 0;
}
body.site-theme-b .help-block {
    color: var(--hb-muted);
}
body.site-theme-b .user-center-panel .control-label {
    color: var(--hb-muted);
}
body.site-theme-b .user-center-panel .table {
    font-size: 0.9rem;
}
body.site-theme-b .text-warning {
    color: #fbbf24 !important;
}
body.site-theme-b .btn-warning {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.45);
    color: #fcd34d;
}

/* Attachment dialog (layer iframe) */
body.site-theme-b.site-attachment-dialog {
    padding-top: 0 !important;
    background: var(--hb-bg);
}
body.site-theme-b.site-attachment-dialog .site-header,
body.site-theme-b.site-attachment-dialog .site-footer {
    display: none !important;
}
body.site-theme-b.site-attachment-dialog .user-center-panel,
body.site-theme-b.site-attachment-dialog .panel-intro {
    margin: 0;
    border-radius: 0;
    border: none;
}

@media (max-width: 991px) {
    body.site-theme-b .sidebar-toggle {
        display: block;
    }
    body.site-theme-b .user-center-sidebar .sidenav {
        position: fixed;
        top: calc(var(--header-height) + 8px);
        left: -280px;
        width: 260px;
        z-index: 1002;
        max-height: calc(100vh - var(--header-height) - 24px);
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    }
    body.site-theme-b.sidebar-open .user-center-sidebar .sidenav {
        left: 12px;
    }
    body.site-theme-b .user-center-row > [class*="col-md-"] {
        width: 100%;
    }
}
@media (max-width: 576px) {
    body.site-theme-b .login-section .login-main {
        padding: 24px 20px;
    }
    body.site-theme-b .user-center-panel {
        padding: 22px 16px;
    }
}
