:root {
    --zf-primary: #6d9eea;
    --zf-primary-deep: #507bc0;
    --zf-primary-soft: #edf4ff;
    --zf-accent: #e75c4d;
    --zf-success: #57b38f;
    --zf-warning: #f0a148;
    --zf-text: #343b48;
    --zf-muted: #7b8494;
    --zf-border: #e8edf4;
    --zf-page: #f5f6f8;
    --zf-surface: #ffffff;
    --zf-surface-soft: #f8fafc;
    --zf-shadow: 0 10px 30px rgba(31, 47, 70, 0.06);
    --zf-shadow-hover: 0 14px 32px rgba(31, 47, 70, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body.zf-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--zf-page);
    color: var(--zf-text);
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    line-height: 1.6;
}

body.open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 18px;
}

#mask {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(16, 24, 40, 0.45);
    z-index: 998;
}

.zf-main {
    flex: 1 0 auto;
    width: 100%;
    padding: 22px 0 0;
}

.zf-header {
    position: relative;
    z-index: 999;
}

.zf-header-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--zf-border);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
}

.zf-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 78px;
}

.zf-logo,
.zf-logo-text {
    margin: 0;
    flex: 0 0 auto;
}

.zf-logo a,
.zf-logo-text a {
    display: flex;
    align-items: center;
}

.zf-logo img {
    max-height: 50px;
    max-width: 180px;
}

.zf-logo-text a span {
    font-size: 28px;
    font-weight: 700;
    color: #3f4d69;
    letter-spacing: 1px;
    white-space: nowrap;
}

.zf-nav-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.zf-nav .nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.zf-nav .nav::-webkit-scrollbar {
    display: none;
}

.zf-nav li {
    position: relative;
    list-style: none;
}

.zf-nav li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    color: #516074;
    font-size: 14px;
    font-weight: 600;
    transition: all .22s ease;
    white-space: nowrap;
}

.zf-nav li a:hover,
.zf-nav li.active > a {
    background: var(--zf-primary-soft);
    color: var(--zf-primary-deep);
}

.zf-nav li > ul {
    position: absolute;
    top: 48px;
    left: 50%;
    min-width: 180px;
    padding: 8px 0;
    margin: 0;
    border: 1px solid var(--zf-border);
    border-radius: 12px;
    background: var(--zf-surface);
    box-shadow: var(--zf-shadow);
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    visibility: hidden;
    transition: all .2s ease;
    z-index: 10;
}

.zf-nav li.on > ul {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.zf-nav li > ul li {
    display: block;
    width: 100%;
}

.zf-nav li > ul li a {
    display: block;
    min-height: 0;
    padding: 8px 16px;
    border-radius: 0;
    font-weight: 500;
}

.zf-nav li > ul li a:hover {
    background: var(--zf-surface-soft);
}

.zf-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    margin-left: auto;
    justify-content: flex-end;
}

.zf-order-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--zf-border);
    border-radius: 10px;
    background: var(--zf-surface-soft);
    color: var(--zf-primary-deep);
    font-size: 14px;
    font-weight: 600;
    transition: all .22s ease;
}

.zf-order-link:hover {
    background: var(--zf-primary-soft);
}

.zf-auth-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zf-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all .22s ease;
}

.zf-auth-btn.is-ghost {
    border: 1px solid var(--zf-border);
    background: var(--zf-surface-soft);
    color: #4d5970;
}

.zf-auth-btn.is-ghost:hover {
    background: var(--zf-primary-soft);
    color: var(--zf-primary-deep);
}

.zf-auth-btn.is-solid {
    background: linear-gradient(135deg, #83b1f6, var(--zf-primary));
    color: #fff;
    box-shadow: 0 10px 18px rgba(109, 158, 234, 0.24);
}

.zf-auth-btn.is-solid:hover {
    transform: translateY(-1px);
}

.zf-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px 5px 5px;
    border: 1px solid var(--zf-border);
    border-radius: 999px;
    background: var(--zf-surface-soft);
}

.zf-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.zf-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.zf-user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
}

.zf-user-balance {
    font-size: 12px;
    color: var(--zf-muted);
}

.zf-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--zf-border);
    background: var(--zf-surface-soft);
    color: #556072;
    cursor: pointer;
}

.zf-menu-btn i {
    font-size: 16px;
}

.m-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: var(--zf-surface);
    box-shadow: 20px 0 40px rgba(15, 23, 42, 0.12);
    overflow-y: auto;
    z-index: 1000;
    transition: left .25s ease;
}

body.open .m-nav {
    left: 0;
}

.m-nav .m-wrap {
    padding: 64px 0 32px;
}

.m-nav > .m-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--zf-border);
    background: var(--zf-surface-soft);
    color: #556072;
    cursor: pointer;
    z-index: 2;
}

.m-nav > .m-btn i {
    font-size: 16px;
}

.m-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.m-nav li {
    position: relative;
}

.m-nav li a {
    display: block;
    padding: 0 24px;
    line-height: 48px;
    border-bottom: 1px solid #f0f3f8;
    color: var(--zf-text);
    font-weight: 600;
}

.m-nav li a:hover {
    background: var(--zf-primary-soft);
    color: var(--zf-primary-deep);
}

.m-nav li em[class*="dot"] {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 48px;
    text-align: center;
    cursor: pointer;
}

.m-nav li em[class*="dot"] .fa {
    line-height: 48px;
    color: var(--zf-muted);
    transition: transform .2s ease;
}

.m-nav li em[class*="dot"] .fa.open {
    transform: rotate(180deg);
}

.m-nav ul li > ul {
    display: none;
}

.m-nav ul li > ul li {
    background: var(--zf-surface-soft);
}

.zf-footer {
    flex-shrink: 0;
    margin-top: 30px;
    padding: 20px 0 24px;
    border-top: 1px solid var(--zf-border);
    background: var(--zf-surface);
}

.zf-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.zf-footer-brand {
    font-size: 14px;
    font-weight: 700;
    color: #2f3543;
}

.zf-footer-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    color: var(--zf-muted);
    font-size: 13px;
}

.zf-footer-meta a {
    color: var(--zf-muted);
}

.zf-mobile-nav {
    display: none;
}

.zf-marquee-card,
.zf-toolbar-card,
.zf-subtabs-card,
.zf-section-card,
.zf-side-card,
.zf-product-panel,
.zf-content-panel,
.zf-summary-card {
    background: var(--zf-surface);
    border: 1px solid var(--zf-border);
    border-radius: 14px;
    box-shadow: var(--zf-shadow);
}

.zf-marquee-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    margin-bottom: 14px;
}

.zf-marquee-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 700;
    color: #e28b3f;
}

.zf-marquee-content {
    min-width: 0;
    color: #5f6776;
    font-size: 14px;
    line-height: 1.7;
}

.zf-marquee-content > * {
    margin: 0;
}

.zf-toolbar-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    margin-bottom: 14px;
}

.zf-toolbar-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.zf-tab-chip,
.zf-subtab-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--zf-border);
    border-radius: 10px;
    background: var(--zf-surface);
    color: #4b5668;
    font-size: 15px;
    font-weight: 700;
    transition: all .22s ease;
}

.zf-tab-chip:hover,
.zf-subtab-chip:hover {
    border-color: #d6e2f6;
    background: var(--zf-primary-soft);
    color: var(--zf-primary-deep);
}

.zf-tab-chip.is-active,
.zf-subtab-chip.is-active {
    border-color: var(--zf-primary);
    background: linear-gradient(135deg, #7fb0f4, var(--zf-primary));
    color: #fff;
    box-shadow: 0 10px 20px rgba(109, 158, 234, 0.22);
}

.zf-search-form {
    flex: 0 0 340px;
    max-width: 100%;
}

.zf-search-box {
    position: relative;
    height: 44px;
    border: 1px solid var(--zf-border);
    border-radius: 12px;
    background: var(--zf-surface-soft);
    padding: 0 110px 0 38px;
    transition: all .2s ease;
}

.zf-search-box:focus-within {
    border-color: var(--zf-primary);
    box-shadow: 0 0 0 4px rgba(109, 158, 234, 0.12);
    background: #fff;
}

.zf-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #97a1af;
}

.zf-search-input {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    outline: none;
    color: var(--zf-text);
    font-size: 14px;
}

.zf-search-clear {
    position: absolute;
    top: 50%;
    right: 92px;
    transform: translateY(-50%);
    display: none;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #91a0b0;
    cursor: pointer;
}

.zf-search-clear.is-visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.zf-search-submit {
    position: absolute;
    top: 4px;
    right: 4px;
    bottom: 4px;
    width: 78px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #7fb0f4, var(--zf-primary));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.zf-subtabs-card {
    padding: 12px 14px;
    margin-bottom: 14px;
}

.zf-subtabs-card.is-hidden {
    display: none;
}

.zf-subtabs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.zf-list-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    align-items: start;
}

.zf-list-main,
.zf-detail-main {
    min-width: 0;
}

.zf-list-sidebar,
.zf-detail-side {
    min-width: 0;
}

.zf-list-sidebar {
    position: sticky;
    top: 98px;
}

.zf-section-card {
    padding: 18px;
}

.zf-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f3f8;
    margin-bottom: 18px;
}

.zf-section-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #2f3746;
}

.zf-section-title i {
    color: #394250;
}

.zf-section-desc {
    color: var(--zf-muted);
    font-size: 14px;
    text-align: right;
}

#goods-list-wrapper {
    transition: opacity .22s ease, transform .22s ease;
}

#goods-list-wrapper.is-loading {
    opacity: .55;
    transform: translateY(4px);
}

.zf-goods-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.zf-product-card,
.zf-skeleton-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--zf-border);
    border-radius: 12px;
    background: var(--zf-surface);
    transition: all .22s ease;
}

.zf-product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--zf-shadow-hover);
}

.zf-product-thumb,
.zf-skeleton-thumb {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--zf-surface-soft);
}

.zf-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zf-product-body,
.zf-skeleton-body {
    min-width: 0;
    flex: 1 1 auto;
}

.zf-product-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    color: #2f3746;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zf-product-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.zf-mini-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
}

.zf-mini-badge.is-auto {
    color: var(--zf-success);
    background: #ecfaf4;
    border-color: #bde7d4;
}

.zf-mini-badge.is-manual {
    color: var(--zf-warning);
    background: #fff6ea;
    border-color: #ffd9ab;
}

.zf-mini-badge.is-stock,
.zf-mini-badge.is-sales {
    color: var(--zf-accent);
    background: #fff3f1;
    border-color: #ffd4cf;
}

.zf-product-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.zf-product-price {
    color: var(--zf-accent);
    font-size: 18px;
    font-weight: 700;
}

.zf-product-market {
    color: #9ba4b1;
    font-size: 12px;
    text-decoration: line-through;
}

.zf-side-card {
    padding: 18px;
}

.zf-side-card + .zf-side-card {
    margin-top: 16px;
}

.zf-mobile-notice-card {
    display: none;
    margin-bottom: 14px;
}

.zf-side-card.is-soft {
    background: linear-gradient(180deg, #f7fbff, #ffffff);
}

.zf-side-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #2f3746;
    margin-bottom: 16px;
}

.zf-side-content {
    color: #5f6776;
    font-size: 14px;
    line-height: 1.9;
}

.zf-side-content > *:first-child {
    margin-top: 0;
}

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

.zf-side-content img {
    border-radius: 10px;
    max-width: 100%;
}

.zf-default-note {
    margin: 0;
    padding-left: 18px;
}

.zf-default-note li + li {
    margin-top: 6px;
}

.zf-service-list {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.zf-service-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.zf-service-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--zf-primary-soft);
    color: var(--zf-primary-deep);
    display: flex;
    align-items: center;
    justify-content: center;
}

.zf-service-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.zf-service-text strong {
    font-size: 14px;
    color: #334155;
}

.zf-service-text span {
    font-size: 13px;
    color: var(--zf-muted);
}

.zf-side-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
    background: #515671;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    transition: all .22s ease;
}

.zf-side-button:hover {
    opacity: .94;
}

.zf-side-button.is-light {
    background: var(--zf-surface-soft);
    color: #556072;
    border: 1px solid var(--zf-border);
}

.zf-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 70px 20px;
    color: var(--zf-muted);
    text-align: center;
}

.zf-empty-state i {
    font-size: 44px;
    color: #c2cad7;
}

.zf-skeleton-thumb,
.zf-skeleton-line {
    position: relative;
    overflow: hidden;
    background: #edf1f6;
}

.zf-skeleton-thumb::after,
.zf-skeleton-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent);
    transform: translateX(-100%);
    animation: zf-shimmer 1.3s infinite;
}

.zf-skeleton-line {
    height: 12px;
    margin-bottom: 12px;
    border-radius: 999px;
}

.zf-skeleton-line.short {
    width: 70%;
}

.zf-skeleton-line.price {
    width: 40%;
}

@keyframes zf-shimmer {
    to {
        transform: translateX(100%);
    }
}

.zf-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 16px;
    align-items: start;
}

.zf-product-panel {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
}

.zf-product-media {
    border-radius: 14px;
    overflow: hidden;
    background: var(--zf-surface-soft);
    border: 1px solid #f0f3f8;
}

.goods-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: var(--zf-surface-soft);
}

.zf-product-title {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.45;
    font-weight: 700;
    color: #3a4457;
}

.zf-product-brief {
    margin: 0 0 18px;
    color: var(--zf-muted);
    font-size: 14px;
}

.zf-inline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.zf-inline-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--zf-border);
    background: var(--zf-surface-soft);
    font-size: 13px;
    font-weight: 700;
}

.zf-inline-chip.is-stock {
    color: var(--zf-primary-deep);
}

.zf-inline-chip.is-sales {
    color: var(--zf-success);
}

.zf-inline-chip.is-delivery {
    color: #8a5b18;
}

.zf-form-block {
    margin-bottom: 20px;
}

.zf-form-block.is-side:last-of-type {
    margin-bottom: 18px;
}

.zf-form-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #465063;
}

.spec-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.spec-option {
    position: relative;
    min-width: 68px;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid var(--zf-border);
    border-radius: 10px;
    background: var(--zf-surface-soft);
    color: #4e5b70;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    text-align: center;
}

.spec-option:hover {
    border-color: #d7e2f4;
    background: var(--zf-primary-soft);
}

.spec-option.active {
    border-color: var(--zf-primary);
    background: #f2f7ff;
    color: var(--zf-primary-deep);
    box-shadow: 0 0 0 3px rgba(109, 158, 234, 0.12);
}

.spec-option.disabled {
    cursor: not-allowed !important;
    opacity: .45 !important;
    text-decoration: line-through;
}

.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--zf-border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--zf-surface-soft);
}

.quantity-btn {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #556072;
    cursor: pointer;
}

.quantity-input {
    width: 64px;
    height: 42px;
    border: 0;
    border-left: 1px solid var(--zf-border);
    border-right: 1px solid var(--zf-border);
    background: #fff;
    text-align: center;
    outline: none;
    font-weight: 700;
    color: #364152;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.payment-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 12px 14px;
    border: 1px solid var(--zf-border);
    border-radius: 12px;
    background: var(--zf-surface-soft);
    cursor: pointer;
    transition: all .22s ease;
}

.payment-item:hover,
.payment-item.active {
    border-color: #d7e2f4;
    background: var(--zf-primary-soft);
}

.payment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fff;
}

.payment-icon img {
    width: 24px;
    height: 24px;
}

.payment-name {
    font-size: 14px;
    font-weight: 700;
    color: #394250;
}

.payment-checked {
    display: none;
    position: absolute;
    top: -8px;
    right: -8px;
    color: var(--zf-primary-deep);
    font-size: 22px;
    background: #fff;
    border-radius: 50%;
}

.payment-item.active .payment-checked {
    display: block;
}

.zf-content-panel {
    margin-top: 16px;
    padding: 18px;
}

.zf-content-panel.is-mobile {
    display: none;
}

.zf-panel-title,
.zf-side-meta-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
    color: #2f3746;
}

.intro {
    color: #4d5666;
    font-size: 16px;
    line-height: 1.9;
    word-break: break-word;
}

.intro > *:first-child {
    margin-top: 0;
}

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

.intro img {
    max-width: 100%;
    height: auto;
    margin: 12px 0;
    border-radius: 12px;
}

.zf-detail-side {
    position: sticky;
    top: 98px;
}

.zf-summary-card {
    padding: 20px;
}

.zf-summary-topline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8c6223;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}

.zf-summary-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--zf-accent);
    font-weight: 700;
}

.zf-summary-price-unit {
    font-size: 24px;
}

.zf-summary-price .dynamic-price {
    font-size: 42px;
    line-height: 1;
}

.zf-summary-original {
    color: #8f97a5;
    font-size: 16px;
    text-decoration: line-through;
}

.layui-input {
    height: 46px;
    border-radius: 10px;
    border-color: var(--zf-border);
    background: var(--zf-surface-soft);
    color: var(--zf-text);
    padding: 0 14px;
}

.layui-input:focus {
    border-color: var(--zf-primary) !important;
    box-shadow: 0 0 0 4px rgba(109, 158, 234, 0.12);
}

.zf-form-help {
    margin-top: 8px;
    color: var(--zf-muted);
    font-size: 13px;
}

.coupon-input-wrap {
    position: relative;
}

.coupon-input {
    padding-right: 82px;
}

.coupon-apply-btn {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    height: 34px;
    line-height: 34px;
    padding: 0 14px;
    border-radius: 9px;
    border: 1px solid #cfe0fb;
    background: var(--zf-primary-soft);
    color: var(--zf-primary-deep);
    font-size: 13px;
    font-weight: 700;
}

.coupon-change-link {
    display: none;
    color: var(--zf-primary-deep);
    font-size: 13px;
}

.coupon-tip {
    display: none;
    margin-top: 8px;
    color: var(--zf-accent);
    font-size: 13px;
}

.drawer-footer {
    margin-top: 22px;
}

.buy-btn-g {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 12px;
    background: #4f536f;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(79, 83, 111, 0.18);
    transition: all .22s ease;
}

.buy-btn-g:hover {
    transform: translateY(-1px);
}

.total-price {
    font-size: 15px;
    font-weight: 600;
    opacity: .9;
}

.zf-side-meta {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #edf1f6;
}

.zf-side-meta-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.zf-side-meta-item + .zf-side-meta-item {
    margin-top: 14px;
}

.zf-side-meta-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--zf-primary-soft);
    color: var(--zf-primary-deep);
    display: flex;
    align-items: center;
    justify-content: center;
}

.zf-side-meta-item strong {
    display: block;
    font-size: 15px;
    color: #394250;
    margin-bottom: 2px;
}

.zf-side-meta-item span {
    color: var(--zf-muted);
    font-size: 14px;
}

.zf-service-tip {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #edf4fd;
    color: #47566c;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 1200px) {
    .zf-header-actions .zf-order-link {
        display: none;
    }

    .zf-list-layout {
        grid-template-columns: 1fr 300px;
    }

    .zf-product-panel {
        grid-template-columns: 320px minmax(0, 1fr);
    }
}

@media (max-width: 992px) {
    .zf-nav-wrap {
        display: none;
    }

    .zf-menu-btn {
        display: inline-flex;
    }

    .zf-header-inner {
        min-height: 70px;
    }

    .zf-list-layout,
    .zf-detail-layout,
    .zf-product-panel {
        grid-template-columns: 1fr;
    }

    .zf-mobile-notice-card {
        display: block;
    }

    .zf-side-card.is-site-notice {
        display: none;
    }

    .zf-list-sidebar,
    .zf-detail-side {
        position: static;
    }

    .zf-detail-layout {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .zf-detail-main {
        order: 1;
        width: 100%;
        align-self: stretch;
    }

    .zf-detail-side {
        order: 2;
        width: 100%;
        align-self: stretch;
    }

    .zf-detail-side .zf-summary-card,
    .zf-content-panel.is-mobile {
        width: 100%;
    }

    .zf-content-panel.is-desktop {
        display: none;
    }

    .zf-content-panel.is-mobile {
        display: block;
        order: 3;
        margin-top: 0;
        align-self: stretch;
    }

    .zf-search-form {
        flex: 1 1 100%;
    }

    .zf-toolbar-card {
        flex-direction: column;
        align-items: stretch;
    }

    .zf-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .zf-section-desc {
        text-align: left;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 14px;
    }

    .zf-main {
        padding-top: 16px;
    }

    .zf-logo-text a span {
        font-size: 24px;
    }

    .zf-auth-links,
    .zf-user-chip {
        display: none;
    }

    .zf-header-inner {
        gap: 12px;
    }

    .zf-marquee-card,
    .zf-toolbar-card,
    .zf-subtabs-card,
    .zf-section-card,
    .zf-side-card,
    .zf-product-panel,
    .zf-content-panel,
    .zf-summary-card {
        border-radius: 12px;
    }

    .zf-goods-grid {
        grid-template-columns: 1fr;
    }

    .zf-product-card,
    .zf-skeleton-card {
        padding: 12px;
    }

    .zf-product-thumb,
    .zf-skeleton-thumb {
        flex-basis: 82px;
        width: 82px;
        height: 82px;
    }

    .zf-product-title {
        font-size: 22px;
    }

    .zf-summary-price .dynamic-price {
        font-size: 36px;
    }

    .page-goods-list .zf-footer {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }

    .page-goods-list .zf-mobile-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: stretch;
        justify-content: space-around;
        padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--zf-border);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(10px);
        z-index: 997;
    }

    .zf-mobile-nav .nav-item {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-height: 48px;
        color: #8a93a1;
        font-size: 11px;
        font-weight: 600;
    }

    .zf-mobile-nav .nav-item.active {
        color: var(--zf-primary-deep);
    }

    .zf-mobile-nav .nav-icon {
        font-size: 20px;
    }
}

@media (max-width: 560px) {
    .zf-tab-chip,
    .zf-subtab-chip {
        min-height: 38px;
        padding: 0 14px;
        font-size: 14px;
    }

    .zf-toolbar-tabs,
    .zf-subtabs {
        gap: 8px;
    }

    .zf-marquee-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .zf-product-card,
    .zf-skeleton-card {
        gap: 12px;
    }

    .zf-footer-inner,
    .zf-footer-meta {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .zf-footer-meta {
        gap: 6px;
    }
}
