/*
 * Brand-ready storefront skin.
 * Change the variables below when the final brand palette is confirmed.
 */
:root {
    --brand-primary: #4f46e5;
    --brand-primary-dark: #3730a3;
    --brand-primary-soft: #eef2ff;
    --brand-secondary: #0f766e;
    --brand-accent: #06b6d4;
    --brand-ink: #0f172a;
    --brand-text: #334155;
    --brand-muted: #64748b;
    --brand-line: #e2e8f0;
    --brand-surface: #ffffff;
    --brand-canvas: #f6f7fb;
    --brand-success: #059669;
    --brand-warning: #d97706;
    --brand-danger: #e11d48;
    --brand-radius-sm: 12px;
    --brand-radius: 18px;
    --brand-radius-lg: 28px;
    --brand-shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
    --brand-shadow: 0 18px 45px rgba(15, 23, 42, .09);
    --acg-primary: var(--brand-primary);
    --acg-secondary: var(--brand-accent);
    --acg-danger: var(--brand-danger);
    --acg-text-strong: var(--brand-ink);
    --acg-text-muted: var(--brand-muted);
    --acg-card-bg: var(--brand-surface);
    --acg-border: var(--brand-line);
}

html {
    scroll-behavior: smooth;
}

.brand-storefront,
.brand-auth-page,
.brand-member-page {
    color: var(--brand-text);
    font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.brand-storefront *,
.brand-auth-page *,
.brand-member-page * {
    box-sizing: border-box;
}

.brand-storefront a,
.brand-auth-page a,
.brand-member-page a {
    text-decoration: none;
}

.brand-storefront :focus-visible,
.brand-auth-page :focus-visible,
.brand-member-page :focus-visible {
    outline: 3px solid rgba(79, 70, 229, .28);
    outline-offset: 3px;
}

/* Storefront shell */
.brand-storefront {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 8%, rgba(79, 70, 229, .09), transparent 28rem),
        radial-gradient(circle at 92% 14%, rgba(6, 182, 212, .08), transparent 30rem),
        var(--brand-canvas) !important;
    background-attachment: scroll !important;
    font-size: 14px;
}

.brand-storefront .navbar-acg {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 72px;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid rgba(226, 232, 240, .9);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.brand-storefront .navbar-acg .container,
.brand-storefront .storefront-main {
    width: min(1180px, calc(100% - 32px));
    max-width: none;
}

.brand-storefront .navbar-brand {
    min-width: 220px;
    gap: 10px;
    color: var(--brand-ink);
}

.brand-storefront .brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    overflow: hidden;
    border-radius: 13px;
    background: linear-gradient(145deg, #ffffff, var(--brand-primary-soft));
    box-shadow: 0 8px 20px rgba(79, 70, 229, .18);
}

.brand-storefront .brand-logo {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    object-fit: cover;
}

.brand-storefront .brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.15;
}

.brand-storefront .brand-copy strong {
    max-width: 220px;
    overflow: hidden;
    color: var(--brand-ink);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-storefront .brand-copy small {
    margin-top: 4px;
    color: var(--brand-muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .08em;
}

.brand-storefront .navbar-acg .navbar-nav {
    gap: 4px;
}

.brand-storefront .navbar-acg .nav-link {
    min-height: 42px;
    padding: 11px 14px;
    border-radius: 11px;
    color: var(--brand-muted);
    font-size: 14px;
    font-weight: 650;
    transition: background-color .18s ease, color .18s ease;
}

.brand-storefront .navbar-acg .nav-link:hover,
.brand-storefront .navbar-acg .nav-link.active {
    color: var(--brand-primary);
    background: var(--brand-primary-soft);
}

.brand-storefront .search-input {
    width: min(290px, 25vw);
}

.brand-storefront .search-input .input-group {
    min-height: 42px;
    border: 1px solid var(--brand-line);
    border-radius: 12px;
    background: #f8fafc;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.brand-storefront .search-input .input-group:focus-within {
    border-color: rgba(79, 70, 229, .55);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .1);
}

.brand-storefront .search-input .input-group-text,
.brand-storefront .search-input .form-control {
    border: 0 !important;
    background: transparent;
    box-shadow: none !important;
}

.brand-storefront .search-input .input-group-text {
    color: var(--brand-muted);
}

.brand-storefront .navbar-acg .btn {
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 11px;
    font-weight: 700;
}

.brand-storefront .navbar-acg .btn-outline-secondary {
    border-color: var(--brand-line);
    color: var(--brand-text);
    background: #fff;
}

.brand-storefront .navbar-acg .btn-primary,
.brand-storefront .store-hero .btn-primary,
.brand-storefront .order-query-form .btn-primary {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
    box-shadow: 0 8px 20px rgba(79, 70, 229, .2);
}

.brand-storefront .navbar-acg .btn-primary:hover,
.brand-storefront .store-hero .btn-primary:hover,
.brand-storefront .order-query-form .btn-primary:hover {
    border-color: var(--brand-primary-dark);
    background: var(--brand-primary-dark);
}

.brand-storefront .navbar-toggler {
    width: 42px;
    height: 42px;
    padding: 8px;
    border: 1px solid var(--brand-line);
    border-radius: 11px;
    box-shadow: none;
}

.storefront-main {
    position: relative;
}

/* Hero */
.store-hero {
    position: relative;
    display: grid;
    min-height: 430px;
    margin: 14px 0 24px;
    padding: clamp(34px, 5vw, 62px);
    overflow: hidden;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    align-items: center;
    gap: clamp(28px, 5vw, 64px);
    border: 1px solid rgba(79, 70, 229, .12);
    border-radius: var(--brand-radius-lg);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(246, 247, 255, .96)),
        #fff;
    box-shadow: var(--brand-shadow);
}

.store-hero::before {
    position: absolute;
    top: -140px;
    right: -110px;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, .16), transparent 68%);
    content: "";
}

.store-hero-copy,
.store-hero-visual {
    position: relative;
    z-index: 1;
}

.store-eyebrow {
    display: inline-flex;
    min-height: 30px;
    padding: 6px 11px;
    align-items: center;
    gap: 7px;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    color: var(--brand-primary);
    background: rgba(238, 242, 255, .85);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
}

.store-hero h1 {
    max-width: 620px;
    margin: 18px 0 18px;
    color: var(--brand-ink);
    font-size: clamp(36px, 4.5vw, 58px);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -.045em;
}

.store-hero h1 span {
    display: block;
    color: var(--brand-primary);
}

.store-hero-copy > p {
    max-width: 610px;
    margin: 0;
    color: var(--brand-muted);
    font-size: 16px;
    line-height: 1.85;
}

.store-hero-actions {
    display: flex;
    margin-top: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.store-hero-actions .btn {
    display: inline-flex;
    min-width: 132px;
    min-height: 48px;
    padding: 12px 18px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 750;
}

.store-hero-actions .btn-light {
    border: 1px solid var(--brand-line);
    color: var(--brand-text);
    background: #fff;
}

.store-trust-row {
    display: flex;
    margin-top: 28px;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--brand-muted);
    font-size: 12px;
    font-weight: 650;
}

.store-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.store-trust-row i {
    color: var(--brand-success);
}

.store-hero-visual {
    min-height: 305px;
}

.hero-dashboard-card {
    position: absolute;
    inset: 16px 8px 8px 22px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 24px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 28px 70px rgba(51, 65, 85, .18);
    backdrop-filter: blur(14px);
}

.hero-dashboard-top {
    display: flex;
    padding-bottom: 16px;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--brand-line);
    color: var(--brand-muted);
    font-size: 12px;
    font-weight: 650;
}

.hero-dashboard-top strong {
    margin-left: auto;
    color: var(--brand-success);
}

.hero-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 5px rgba(16, 185, 129, .12);
}

.hero-service-list {
    display: grid;
    margin-top: 6px;
    gap: 2px;
}

.hero-service-list > div {
    display: grid;
    min-height: 70px;
    padding: 10px 0;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.hero-service-list > div:last-child {
    border-bottom: 0;
}

.hero-service-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 17px;
}

.hero-service-icon strong {
    font-size: 12px;
    font-weight: 850;
    letter-spacing: -.02em;
}

.hero-service-ai {
    color: #4f46e5;
    background: #eef2ff;
}

.hero-service-mail {
    color: #0891b2;
    background: #ecfeff;
}

.hero-service-support {
    color: #0f766e;
    background: #ecfdf5;
}

.hero-service-list p {
    display: flex;
    margin: 0;
    flex-direction: column;
    gap: 3px;
}

.hero-service-list p strong {
    color: var(--brand-ink);
    font-size: 13px;
}

.hero-service-list p small {
    color: var(--brand-muted);
    font-size: 10px;
}

.hero-service-list b {
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--brand-success);
    background: #ecfdf5;
    font-size: 10px;
}

.hero-floating-pill {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    min-height: 34px;
    padding: 8px 11px;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 11px;
    color: var(--brand-text);
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .14);
    font-size: 11px;
    font-weight: 750;
}

.hero-floating-pill i {
    color: var(--brand-success);
}

.hero-pill-top {
    top: 0;
    right: -8px;
}

.hero-pill-bottom {
    bottom: -5px;
    left: 2px;
}

.hero-pill-bottom i {
    color: var(--brand-primary);
}

/* Panels and catalog */
.brand-storefront .panel {
    overflow: hidden;
    border: 1px solid var(--brand-line);
    border-radius: var(--brand-radius);
    background: var(--brand-surface);
    box-shadow: var(--brand-shadow-sm);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.brand-storefront .panel + .panel {
    margin-top: 20px;
}

.brand-storefront .panel-header {
    display: flex;
    min-height: 64px;
    margin: 0;
    padding: 18px 22px;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
    box-shadow: none;
}

.brand-storefront .panel-header .icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: var(--brand-primary);
    background: var(--brand-primary-soft);
}

.brand-storefront .panel-title {
    margin: 0;
    color: var(--brand-ink);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}

.brand-storefront .panel-subtitle {
    margin: 3px 0 0;
    color: var(--brand-muted);
    font-size: 11px;
}

.brand-storefront .panel-body {
    padding: 20px 22px 22px;
    color: var(--brand-text);
}

.notice-panel .panel-header .icon {
    color: var(--brand-warning);
    background: #fff7ed;
}

.notice-content {
    max-height: 280px;
    overflow: auto;
    line-height: 1.75;
    scrollbar-color: #cbd5e1 transparent;
    scrollbar-width: thin;
}

.notice-content > *:last-child {
    margin-bottom: 0;
}

.notice-content .alert {
    border: 1px solid #fde68a;
    border-radius: 12px;
    color: #92400e;
    background: #fffbeb;
}

.catalog-panel {
    scroll-margin-top: 88px;
}

.catalog-panel .panel-header {
    padding-bottom: 16px;
}

.catalog-panel .panel-body {
    padding-top: 16px;
}

.brand-storefront .chip-list {
    display: flex;
    padding: 2px 2px 12px;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 8px;
}

.brand-storefront .chip {
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid var(--brand-line);
    border-radius: 12px;
    color: var(--brand-text);
    background: #fff;
    box-shadow: none;
    font-size: 13px;
    font-weight: 680;
    transition: border-color .18s ease, color .18s ease, background-color .18s ease, transform .18s ease;
}

.brand-storefront .chip:hover {
    border-color: #c7d2fe;
    color: var(--brand-primary);
    background: #fafaff;
    transform: translateY(-1px);
}

.brand-storefront .chip.is-primary {
    border-color: var(--brand-primary);
    color: #fff;
    background: var(--brand-primary);
    box-shadow: 0 7px 18px rgba(79, 70, 229, .19);
}

.brand-storefront .chip .chip-icon {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 7px;
}

.brand-storefront .item-list {
    margin-right: -8px;
    margin-left: -8px;
}

.brand-storefront .item-list > a {
    padding-right: 8px;
    padding-left: 8px;
}

.brand-storefront .acg-card {
    overflow: hidden;
    border: 1px solid var(--brand-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.brand-storefront .acg-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .1);
    transform: translateY(-4px);
}

.brand-storefront .acg-thumb {
    height: 174px;
    background-color: #eef2f7 !important;
}

.brand-storefront .acg-card > .p-3 {
    padding: 16px !important;
}

.brand-storefront .tags {
    margin-bottom: 9px;
    gap: 6px;
}

.brand-storefront .badge-soft {
    padding: 5px 8px;
    border: 0;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
}

.brand-storefront .badge-soft-success {
    color: #047857;
    background: #ecfdf5;
}

.brand-storefront .badge-soft-primary {
    color: #4338ca;
    background: #eef2ff;
}

.brand-storefront .badge-soft-danger {
    color: #be123c;
    background: #fff1f2;
}

.brand-storefront .badge-soft-info {
    color: #0e7490;
    background: #ecfeff;
}

.brand-storefront .goods-title {
    min-height: 2.9em;
    color: var(--brand-ink);
    font-size: 14px;
    font-weight: 760;
    line-height: 1.45;
}

.brand-storefront .stat-row {
    margin-top: 14px !important;
}

.brand-storefront .price {
    color: var(--brand-primary);
    font-size: 22px;
    font-weight: 850;
    letter-spacing: -.03em;
}

.brand-storefront .price .unit {
    margin-right: 2px;
    color: var(--brand-primary);
    font-size: 13px;
}

.brand-storefront .stat-bottom {
    margin-top: 9px;
    padding-top: 11px;
    border-top: 1px solid #f1f5f9;
    color: var(--brand-muted);
    font-size: 11px;
}

.brand-storefront .soldout-ribbon {
    background: var(--brand-muted);
    box-shadow: none;
}

/* Item detail */
.item-breadcrumb {
    display: flex;
    margin: 8px 0 14px;
    align-items: center;
    justify-content: space-between;
    color: var(--brand-muted);
    font-size: 12px;
}

.item-breadcrumb a {
    display: inline-flex;
    min-height: 38px;
    padding: 8px 12px;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--brand-line);
    border-radius: 11px;
    color: var(--brand-text);
    background: #fff;
}

.item-page > .panel.mt-3 {
    margin-top: 0 !important;
}

.item-page .acg-cover {
    min-height: 420px;
    border: 0;
    border-radius: 20px;
    background: #f1f5f9;
    box-shadow: none;
}

.item-page .acg-cover:hover {
    transform: none;
}

.item-page .item-cover {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.item-page .item-title {
    margin: 14px 0 12px;
    color: var(--brand-ink);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 840;
    line-height: 1.25;
    letter-spacing: -.03em;
}

.brand-storefront .sku-list {
    gap: 9px;
}

.brand-storefront .sku,
.brand-storefront .optional-card {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--brand-line);
    border-radius: 11px;
    color: var(--brand-text);
    background: #fff;
    box-shadow: none;
    font-size: 12px;
    font-weight: 680;
}

.brand-storefront .sku.is-primary,
.brand-storefront .optional-card.is-primary {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: var(--brand-primary-soft);
}

.brand-storefront .sku .badge-money,
.brand-storefront .sku .badge-moeny {
    top: -9px;
    right: -8px;
    border: 2px solid #fff;
    color: #fff;
    background: var(--brand-primary);
    box-shadow: none;
}

.brand-storefront .vstack {
    gap: 18px !important;
}

.brand-storefront .vstack label {
    color: var(--brand-text);
    font-size: 12px;
    font-weight: 750;
}

.brand-storefront .vstack .form-control,
.brand-storefront .order-query-form .form-control {
    min-height: 46px;
    border: 1px solid var(--brand-line);
    border-radius: 12px;
    color: var(--brand-ink);
    background: #fff;
    box-shadow: none;
}

.brand-storefront .vstack .form-control:focus,
.brand-storefront .order-query-form .form-control:focus {
    border-color: rgba(79, 70, 229, .6);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .1);
    transform: none;
}

.brand-storefront .input-group.qty-group {
    width: 156px;
    min-height: 44px;
    padding: 5px;
    gap: 5px;
    border: 1px solid var(--brand-line);
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: none;
}

.brand-storefront .input-group.qty-group > button {
    width: 34px;
    height: 32px;
    border-radius: 9px;
    color: var(--brand-primary);
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}

.brand-storefront .input-group.qty-group > input[type="number"] {
    color: var(--brand-ink);
}

.brand-storefront .cash-pay {
    padding: 14px !important;
    border: 1px solid #c7d2fe;
    border-radius: 14px;
    background: #f8faff;
    box-shadow: none;
}

.brand-storefront .cash-pay .form-label {
    color: var(--brand-primary);
}

.brand-storefront .cash-pay .form-label i {
    background: var(--brand-primary);
    box-shadow: none;
}

.brand-storefront .pay-list .pay {
    border: 1px solid var(--brand-line);
    border-radius: 11px;
    background: #fff;
    box-shadow: none;
}

.brand-storefront .pay-list .pay.active,
.brand-storefront .pay-list .pay.is-primary,
.brand-storefront .pay-list .pay.selected {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
    box-shadow: 0 7px 18px rgba(79, 70, 229, .18);
}

.brand-storefront .item-detail .panel-body {
    font-size: 14px;
    line-height: 1.8;
}

.brand-storefront .item-detail img {
    height: auto !important;
    border-radius: 12px;
}

/* Order query */
.query-intro {
    max-width: 660px;
    margin: 20px auto 24px;
    text-align: center;
}

.query-intro h1 {
    margin: 14px 0 10px;
    color: var(--brand-ink);
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 850;
    letter-spacing: -.04em;
}

.query-intro p {
    margin: 0;
    color: var(--brand-muted);
    font-size: 14px;
    line-height: 1.8;
}

.query-panel {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

.query-form-row {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.query-input-wrap {
    width: min(440px, 100%);
}

.brand-storefront .order-query-form .btn-primary {
    min-width: 126px;
    height: 48px;
    padding: 12px 18px;
    border-radius: 12px;
}

.brand-storefront .order-item {
    border: 1px solid var(--brand-line);
    background: #fff;
    box-shadow: var(--brand-shadow-sm);
    backdrop-filter: none;
}

/* Authentication */
.brand-auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 16% 10%, rgba(79, 70, 229, .16), transparent 28rem),
        radial-gradient(circle at 86% 84%, rgba(6, 182, 212, .12), transparent 28rem),
        #f7f8fc !important;
    background-attachment: scroll !important;
}

.brand-auth-page .auth-wrapper {
    min-height: 100vh;
    padding: 48px 18px;
    background: transparent;
}

.brand-auth-page .auth-wrapper::before,
.brand-auth-page .auth-wrapper::after {
    display: none;
}

.brand-auth-page .auth-card {
    width: 100%;
    max-width: 460px;
    padding: 38px;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 24px;
    color: var(--brand-text);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 28px 70px rgba(15, 23, 42, .12);
    backdrop-filter: blur(18px);
}

.brand-auth-page .brand-header {
    margin-bottom: 8px;
}

.brand-auth-page .brand-logo {
    margin-bottom: 16px;
}

.brand-auth-page .brand-icon {
    width: 58px;
    height: 58px;
    border: 7px solid #fff;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(79, 70, 229, .19);
}

.brand-auth-page .auth-title {
    margin: 0;
    color: var(--brand-ink);
    font-size: 27px;
    font-weight: 850;
    letter-spacing: -.035em;
}

.brand-auth-page .auth-subtitle {
    margin: 10px 0 26px !important;
    color: var(--brand-muted);
    text-align: center;
    font-size: 12px !important;
    line-height: 1.7;
}

.brand-auth-page .text-link {
    color: var(--brand-primary);
    font-weight: 700;
}

.brand-auth-page .form-floating > .form-control,
.brand-auth-page .form-floating > .form-control-plaintext {
    min-height: 56px;
    border: 1px solid var(--brand-line);
    border-radius: 13px;
    color: var(--brand-ink);
    background: #fff;
}

.brand-auth-page .form-floating > label {
    color: var(--brand-muted);
}

.brand-auth-page .form-control:focus {
    border-color: rgba(79, 70, 229, .62);
    color: var(--brand-ink);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .1);
}

.brand-auth-page .btn-gradient {
    min-height: 50px;
    border-radius: 13px;
    background: var(--brand-primary);
    box-shadow: 0 10px 24px rgba(79, 70, 229, .22);
}

.brand-auth-page .btn-gradient:hover {
    background: var(--brand-primary-dark);
    box-shadow: 0 12px 28px rgba(79, 70, 229, .26);
}

.brand-auth-page .form-check {
    color: var(--brand-muted);
}

.brand-auth-page .form-check input[type="checkbox"] {
    border-color: #cbd5e1;
    background: #fff;
}

.brand-auth-page .form-check input[type="checkbox"]:checked {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
}

.brand-auth-page .image-code,
.brand-auth-page .prompt-image-code {
    border: 1px solid var(--brand-line);
    opacity: 1;
    background: #f8fafc;
}

.brand-auth-page .btn-outline-primary {
    border-color: #c7d2fe;
    color: var(--brand-primary);
    border-radius: 12px;
}

/* Member center */
.brand-member-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 8%, rgba(79, 70, 229, .07), transparent 26rem),
        var(--brand-canvas) !important;
    background-attachment: scroll !important;
    color: var(--brand-text);
}

.brand-member-page .bg-content {
    min-height: 100vh;
    height: auto !important;
    background: transparent !important;
}

.brand-member-page .fly-header {
    border-bottom: 1px solid var(--brand-line);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
    backdrop-filter: blur(16px);
}

.brand-member-page .fly-logo .user-logo img,
.brand-member-page .user-avatar {
    border-radius: 11px;
}

.brand-member-page .user-logo-title,
.brand-member-page .user-level {
    color: var(--brand-ink);
    font-weight: 750;
}

.brand-member-page .fly-user-main {
    width: min(1180px, calc(100% - 32px));
    max-width: none;
}

.brand-member-page .fly-user-main > .layui-nav {
    overflow: hidden;
    border: 1px solid var(--brand-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--brand-shadow-sm);
    backdrop-filter: none;
}

.brand-member-page .layui-nav .layui-nav-item a {
    min-height: 46px;
    color: var(--brand-muted);
    font-weight: 650;
}

.brand-member-page .layui-nav-tree .layui-this,
.brand-member-page .layui-nav-tree .layui-this > a,
.brand-member-page .layui-nav-tree .layui-this > a:hover,
.brand-member-page .layui-nav-tree > .layui-nav-item > a:hover {
    color: var(--brand-primary) !important;
    background: var(--brand-primary-soft) !important;
}

.brand-member-page .fly-user-main > .fly-panel {
    min-height: 720px;
    border: 1px solid var(--brand-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--brand-shadow-sm);
    backdrop-filter: none;
}

.brand-member-page .content-header {
    height: auto;
    min-height: 48px;
    padding: 8px 0 13px;
    border-bottom: 1px solid var(--brand-line);
    color: var(--brand-ink);
    font-size: 17px;
    font-weight: 800;
}

.brand-member-page .elem-quote,
.brand-member-page .elem-tips {
    border-left-color: var(--brand-primary);
    color: var(--brand-text);
    background: var(--brand-primary-soft);
}

.brand-member-page .layui-table {
    border: 1px solid var(--brand-line);
    color: var(--brand-text);
    background: #fff;
}

.brand-member-page .more-table td {
    color: var(--brand-text);
}

.brand-member-page .card-data .layui-card {
    border: 1px solid var(--brand-line);
    background: #f8fafc;
}

.brand-member-page .card-data .layui-card-header {
    color: var(--brand-muted);
}

.brand-member-page .card-data .layui-card-body {
    color: var(--brand-primary);
}

.brand-member-page .layui-btn,
.brand-member-page .button-click {
    border-radius: 10px;
}

.brand-member-page .layui-btn-pink,
.brand-member-page .layui-btn-normal {
    background: var(--brand-primary) !important;
}

.brand-member-page .form-header {
    color: var(--brand-ink);
    font-weight: 750;
}

.brand-member-page input,
.brand-member-page select,
.brand-member-page textarea {
    border-color: var(--brand-line);
}

.brand-member-page .site-tree-mobile {
    display: none;
}

@media (max-width: 991.98px) {
    .brand-storefront .navbar-acg .container {
        position: relative;
    }

    .brand-storefront .navbar-collapse {
        order: 4;
        width: 100%;
        margin-top: 10px;
        padding: 10px;
        border: 1px solid var(--brand-line);
        border-radius: 14px;
        background: #fff;
    }

    .brand-storefront .navbar-nav {
        gap: 4px;
    }

    .brand-storefront .user-login-box,
    .brand-storefront .user-info-box {
        position: static;
        margin-left: auto !important;
    }

    .store-hero {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .store-hero-visual {
        min-height: 285px;
    }

    .item-page .acg-cover,
    .item-page .item-cover {
        min-height: 340px;
    }
}

@media (max-width: 767.98px) {
    .brand-storefront .navbar-acg .container,
    .brand-storefront .storefront-main,
    .brand-member-page .fly-user-main {
        width: min(100% - 20px, 1180px);
    }

    .brand-storefront .navbar-brand {
        min-width: 0;
    }

    .brand-storefront .brand-copy strong {
        max-width: 135px;
    }

    .brand-storefront .brand-copy small {
        display: none;
    }

    .brand-storefront .user-login-box .btn:first-child {
        display: none;
    }

    .store-hero {
        margin-top: 4px;
        padding: 30px 24px;
        border-radius: 22px;
    }

    .store-hero h1 {
        font-size: clamp(30px, 9vw, 36px);
    }

    .store-hero-copy > p {
        font-size: 14px;
    }

    .store-trust-row {
        gap: 12px;
    }

    .hero-dashboard-card {
        inset: 14px 0 8px 8px;
    }

    .hero-floating-pill {
        display: none;
    }

    .brand-storefront .panel-header,
    .brand-storefront .panel-body {
        padding-right: 16px;
        padding-left: 16px;
    }

    .notice-content {
        max-height: 240px;
    }

    .brand-storefront .acg-thumb {
        height: 180px;
    }

    .brand-storefront .goods-title {
        min-height: 2.9em;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .query-form-row {
        flex-direction: column;
    }

    .query-input-wrap,
    .brand-storefront .order-query-form .btn-primary {
        width: 100%;
    }

    .brand-auth-page .auth-card {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .brand-member-page .fly-user-main > .fly-panel-user {
        margin-right: 0;
        margin-left: 0;
        border-radius: 14px !important;
    }

    .brand-member-page .site-tree-mobile {
        display: inline-flex !important;
        position: fixed;
        right: 16px;
        bottom: max(16px, env(safe-area-inset-bottom));
        left: auto;
        z-index: 100000;
        width: auto;
        min-width: 92px;
        height: 48px;
        padding: 0 18px;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid rgba(255, 255, 255, .32);
        border-radius: 14px;
        color: #fff;
        background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-2));
        box-shadow: 0 16px 34px rgba(79, 70, 229, .3);
        font: inherit;
        font-weight: 800;
        line-height: 1;
        cursor: pointer;
    }

    .brand-member-page .site-tree-mobile:focus-visible {
        outline: 3px solid rgba(79, 70, 229, .26);
        outline-offset: 3px;
    }

    .brand-member-page.site-mobile .site-tree-mobile {
        display: none !important;
    }

    .brand-member-page.site-mobile .fly-user-main > .layui-nav {
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 100001;
        width: min(82vw, 280px);
        height: 100dvh;
        padding: 16px 10px;
        overflow-y: auto;
        border: 0;
        border-radius: 0;
        box-shadow: 24px 0 50px rgba(15, 23, 42, .2);
    }

    .brand-member-page.site-mobile .site-mobile-shade {
        z-index: 100000;
        background: rgba(15, 23, 42, .48);
        backdrop-filter: blur(3px);
    }
}

@media (max-width: 420px) {
    .brand-storefront .brand-mark {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .brand-storefront .brand-copy strong {
        max-width: 112px;
        font-size: 13px;
    }

    .brand-storefront .navbar-toggler {
        width: 38px;
        height: 38px;
    }

    .store-hero-actions .btn {
        width: 100%;
    }

    .store-hero-visual {
        min-height: 270px;
    }

    .hero-dashboard-card {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .brand-storefront *,
    .brand-auth-page *,
    .brand-member-page * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
}
