/* 商城静态页 — 独立样式，不依赖管理端 admin.css / main.js */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* —— 顶栏 —— */
.shop-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 250, 252, 0.94) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 4px 28px rgba(49, 46, 129, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.shop-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.shop-topbar-accent {
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #a78bfa 45%, #764ba2 100%);
    opacity: 0.9;
}

.shop-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.shop-brand-mark {
    flex-shrink: 0;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    box-shadow:
        0 4px 16px rgba(102, 126, 234, 0.42),
        0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.shop-brand-mark--logo {
    padding: 5px;
    background: #fff;
    font-size: 0;
    line-height: 0;
    box-shadow:
        0 4px 16px rgba(15, 23, 42, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.shop-brand-mark--logo img {
    height: 100%;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

.shop-brand-mark--link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-brand-mark--link:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 8px 22px rgba(102, 126, 234, 0.48),
        0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.shop-brand-mark--link:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 3px;
}

.shop-brand-text {
    min-width: 0;
}

.shop-brand-title {
    font-size: clamp(1.2rem, 4vw, 1.55rem);
    font-weight: 800;
    color: #1a202c;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.shop-brand-tagline {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #718096;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 400px) {
    .shop-brand-tagline {
        font-size: 13px;
    }
}

.shop-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #667eea;
    background: rgba(102, 126, 234, 0.12);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.btn-link:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.btn-link:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.btn-link--outline {
    color: #4a5568;
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(102, 126, 234, 0.35);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-link--outline:hover {
    color: #5a67d8;
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.55);
}

.btn-link--solid {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.38);
}

.btn-link--solid:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46a8 100%);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.45);
}

@media (max-width: 360px) {
    .shop-topbar-inner {
        padding: 12px 14px;
    }

    .shop-brand-mark,
    .shop-brand-mark--link {
        height: 42px;
        font-size: 20px;
        border-radius: 12px;
    }

    .shop-brand-mark--logo img {
        border-radius: 8px;
    }

    .btn-link {
        padding: 9px 14px;
        font-size: 13px;
    }
}

.shop-wrap {
    flex: 1 0 auto;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

/* —— 重点推荐轮播（列表页） —— */
.shop-hero {
    margin-bottom: 22px;
}

.shop-hero-heading {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
    margin-bottom: 12px;
    letter-spacing: 0.04em;
}

.shop-hero-viewport {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.shop-hero-track-clip {
    overflow: hidden;
    background: #1a1035;
}

.shop-hero-track {
    display: flex;
    width: 100%;
    transition: transform 0.48s cubic-bezier(0.33, 1, 0.68, 1);
}

@media (prefers-reduced-motion: reduce) {
    .shop-hero-track {
        transition: none;
    }
}

.shop-hero-slide {
    flex: 0 0 100%;
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    aspect-ratio: 16 / 9;
    max-height: min(52vh, 380px);
}

.shop-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    vertical-align: middle;
}

.shop-hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(15, 10, 35, 0.75) 100%);
    pointer-events: none;
}

.shop-hero-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 18px 18px;
    z-index: 1;
    pointer-events: none;
}

.shop-hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fff;
    background: linear-gradient(135deg, #f56565, #e53e3e);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.45);
}

.shop-hero-title {
    display: block;
    font-size: clamp(1.15rem, 4vw, 1.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 6px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.shop-hero-sub {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

@media (min-width: 480px) {
    .shop-hero-sub {
        font-size: 13px;
    }

    .shop-hero-caption {
        padding: 20px 24px 22px;
    }
}

.shop-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 4px;
}

.shop-hero-arrow:hover {
    background: rgba(102, 126, 234, 0.85);
}

.shop-hero-arrow:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.shop-hero-arrow--prev {
    left: 10px;
}

.shop-hero-arrow--next {
    right: 10px;
}

.shop-hero-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.shop-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.4);
    transition: transform 0.2s, background 0.2s, width 0.25s;
}

.shop-hero-dot:hover {
    background: rgba(255, 255, 255, 0.65);
}

.shop-hero-dot.is-active {
    background: #fff;
    width: 22px;
    border-radius: 4px;
    transform: scaleY(1.1);
}

.shop-hero-dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 420px) {
    .shop-hero-arrow {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .shop-hero-arrow--prev {
        left: 6px;
    }

    .shop-hero-arrow--next {
        right: 6px;
    }

    .shop-hero-viewport {
        border-radius: 16px;
    }
}

.shop-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.shop-tab {
    padding: 8px 18px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.shop-tab:hover {
    background: rgba(255, 255, 255, 0.35);
}

.shop-tab.is-active {
    background: #fff;
    color: #667eea;
    border-color: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

@media (min-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (min-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.product-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: #e2e8f0;
}

.product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: 14px 16px 16px;
}

.product-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-spec-tags {
    font-size: 12px;
    line-height: 1.45;
    min-height: calc(1.45 * 1em);
    color: #718096;
    margin: 0 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card-sub {
    font-size: 13px;
    line-height: 1.5;
    color: #718096;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.product-card-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.product-card-price {
    font-size: 17px;
    font-weight: 700;
    color: #e53e3e;
    flex-shrink: 0;
    min-width: 0;
}

.product-card-sold {
    font-size: 12px;
    font-weight: 400;
    color: #718096;
    white-space: nowrap;
    flex-shrink: 0;
}

.shop-empty,
.shop-error {
    text-align: center;
    padding: 48px 24px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    color: #4a5568;
}

.shop-error {
    color: #c53030;
}

/* 详情页 */
.detail-shell {
    max-width: 1120px;
    margin: 0 auto;
}

.detail-breadcrumb {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 14px;
    line-height: 1.5;
    flex-wrap: wrap;
}

.detail-breadcrumb a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    transition: border-color 0.2s, opacity 0.2s;
}

.detail-breadcrumb a:hover {
    border-bottom-color: #fff;
}

.detail-breadcrumb__sep {
    margin: 0 6px;
    opacity: 0.65;
    user-select: none;
}

.detail-breadcrumb__current {
    font-weight: 500;
    opacity: 0.9;
}

.detail-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    margin-bottom: 20px;
}

.detail-layout {
    display: grid;
    gap: 0;
}

@media (min-width: 900px) {
    .detail-layout {
        grid-template-columns: minmax(300px, 1.05fr) minmax(0, 1fr);
        align-items: stretch;
    }

    .detail-gallery-col {
        border-right: 1px solid #edf2f7;
    }
}

.detail-gallery {
    position: relative;
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    min-height: 200px;
}

.detail-gallery-main {
    width: 100%;
    max-height: min(440px, 52vh);
    object-fit: contain;
    display: block;
    margin: 0 auto;
    padding: 12px;
    box-sizing: border-box;
}

.detail-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(255, 255, 255, 0.65);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.detail-thumb {
    flex: 0 0 72px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.75;
    transition: border-color 0.2s, opacity 0.2s;
}

.detail-thumb:hover,
.detail-thumb.is-current {
    opacity: 1;
    border-color: #667eea;
}

.detail-main-col {
    padding: 20px 20px 24px;
}

.detail-category {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: none;
    color: #5a67d8;
    margin: 0 0 8px;
}

.detail-title {
    font-size: clamp(1.35rem, 3.5vw, 1.65rem);
    font-weight: 800;
    color: #1a202c;
    line-height: 1.3;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.detail-subtitle {
    font-size: 15px;
    color: #718096;
    line-height: 1.55;
    margin: 0 0 16px;
}

.detail-spec-tags-line {
    font-size: 13px;
    line-height: 1.45;
    min-height: calc(1.45 * 1em);
    color: #718096;
    margin: 0 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 14px;
    margin-bottom: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf2f7;
}

.detail-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #e53e3e;
    letter-spacing: -0.02em;
}

.detail-price-hint {
    font-size: 12px;
    font-weight: 600;
    color: #a0aec0;
}

.detail-section-title {
    font-size: 15px;
    font-weight: 800;
    color: #2d3748;
    margin: 0 0 10px;
    padding-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section-title::before {
    content: '';
    width: 4px;
    height: 1em;
    border-radius: 2px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    flex-shrink: 0;
}

.detail-highlights {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}

.detail-highlights li {
    position: relative;
    padding: 10px 12px 10px 36px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.55;
    color: #4a5568;
    background: #f7fafc;
    border-radius: 10px;
    border: 1px solid #edf2f7;
}

.detail-highlights li::before {
    content: '✓';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 800;
    color: #48bb78;
}

.detail-section {
    margin-bottom: 18px;
}

.detail-section--soft {
    background: #f7fafc;
    margin-left: -20px;
    margin-right: -20px;
    padding: 16px 20px 18px;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
}

.detail-section--warn {
    background: #fffaf0;
    border: 1px solid #feebc8;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 8px;
}

.detail-section--warn .detail-section-title::before {
    background: linear-gradient(180deg, #ed8936, #dd6b20);
}

.detail-notice-list {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 14px;
    line-height: 1.65;
    color: #4a5568;
}

.detail-notice-list li {
    margin-bottom: 8px;
}

.detail-notice-list li:last-child {
    margin-bottom: 0;
}

.detail-warn-text {
    font-size: 13px;
    line-height: 1.65;
    color: #744210;
    margin: 0;
}

.detail-desc {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.75;
}

.detail-desc p {
    margin-bottom: 12px;
}

.detail-desc ul {
    margin: 8px 0 12px 1.25rem;
}

.detail-desc-muted {
    color: #a0aec0;
    font-style: italic;
}

.detail-related {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 20px 18px 22px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
}

.detail-related__title {
    font-size: 17px;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.detail-related__grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

@media (min-width: 480px) {
    .detail-related__grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }
}

.detail-footer {
    text-align: center;
    padding: 8px 0 28px;
    max-width: 520px;
    margin: 0 auto;
}

.detail-footer-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.55;
    margin: 0 0 14px;
}

/* —— 全站底部（备案与主体信息）全宽、低高度 —— */
.shop-site-footer {
    margin-top: auto;
    width: 100%;
    padding: 12px 0 0;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(45, 27, 78, 0.35) 40%, rgba(30, 20, 55, 0.55) 100%);
}

.shop-site-footer-card {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 8px 16px 10px;
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 10px;
    row-gap: 6px;
}

.shop-site-footer-card::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #a78bfa 50%, #764ba2 100%);
}

.shop-site-footer-name {
    font-size: 13px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    letter-spacing: 0.02em;
    line-height: 1.35;
    white-space: nowrap;
}

.shop-site-footer-copy {
    font-size: 12px;
    color: #718096;
    margin: 0;
    line-height: 1.35;
    white-space: nowrap;
}

.shop-site-footer-copy::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 10px;
    margin: 0 10px;
    background: #e2e8f0;
    vertical-align: middle;
}

.shop-site-footer-about-link {
    font-size: 12px;
    font-weight: 600;
    color: #5a67d8;
    text-decoration: none;
    border-bottom: 1px solid rgba(102, 126, 234, 0.35);
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.shop-site-footer-about-link:hover {
    color: #667eea;
    border-bottom-color: #667eea;
}

.shop-site-footer-beian-wrap {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 8px;
    padding: 4px 10px;
    margin-left: 8px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: none;
}

.shop-site-footer-beian-label {
    font-size: 11px;
    font-weight: 700;
    color: #5a67d8;
    letter-spacing: 0.06em;
    padding: 2px 6px;
    background: rgba(102, 126, 234, 0.12);
    border-radius: 4px;
}

.shop-site-footer-beian-link {
    font-size: 12px;
    font-weight: 600;
    color: #4c51bf;
    text-decoration: none;
    border-bottom: 1px solid rgba(102, 126, 234, 0.4);
    transition: color 0.2s, border-color 0.2s;
}

.shop-site-footer-beian-link:hover {
    color: #667eea;
    border-bottom-color: #667eea;
}

@media (max-width: 520px) {
    .shop-site-footer-card {
        flex-direction: column;
        padding: 8px 12px 10px;
        row-gap: 6px;
    }

    .shop-site-footer-name,
    .shop-site-footer-copy {
        white-space: normal;
        text-align: center;
        max-width: 100%;
    }

    .shop-site-footer-copy::before {
        display: none;
    }

    .shop-site-footer-beian-wrap {
        margin-left: 0;
    }
}

/* —— 右侧固定快捷栏 + 回到顶部 + 浮层（shop-float.js） —— */
.shop-float-rail {
    position: fixed;
    z-index: 96;
    right: max(10px, env(safe-area-inset-right, 0px));
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shop-float-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 56px;
    padding: 10px 6px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.96);
    color: #2d3748;
    box-shadow:
        0 4px 18px rgba(49, 46, 129, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.shop-float-item:hover {
    transform: translateX(-3px);
    box-shadow:
        0 8px 24px rgba(102, 126, 234, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.95) inset;
    background: #fff;
}

.shop-float-item:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.shop-float-item__icon {
    font-size: 22px;
    line-height: 1;
}

.shop-float-item__text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.shop-back-top {
    position: fixed;
    z-index: 95;
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: max(20px, env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 56px;
    padding: 10px 6px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
}

.shop-back-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.shop-back-top:hover {
    filter: brightness(1.06);
}

.shop-back-top:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.shop-back-top__icon {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.shop-back-top__text {
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .shop-float-rail {
        top: auto;
        bottom: calc(96px + env(safe-area-inset-bottom, 0px));
        transform: none;
    }

    .shop-back-top {
        bottom: max(16px, env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-float-item,
    .shop-back-top {
        transition: none;
    }
}

/* 浮层 */
.shop-float-sheet {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.shop-float-sheet[hidden] {
    display: none !important;
}

.shop-float-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 10, 35, 0.55);
    backdrop-filter: blur(4px);
}

.shop-float-sheet__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    max-height: min(80vh, 520px);
    overflow: auto;
    padding: 22px 22px 20px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    -webkit-overflow-scrolling: touch;
}

.shop-float-sheet__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #718096;
    background: #f7fafc;
    transition: background 0.2s, color 0.2s;
}

.shop-float-sheet__close:hover {
    background: #edf2f7;
    color: #2d3748;
}

.shop-float-sheet__title {
    font-size: 18px;
    font-weight: 800;
    color: #1a202c;
    margin: 0 36px 14px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #edf2f7;
}

.shop-float-sheet__body {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.65;
}

.shop-float-sheet__p {
    margin-bottom: 12px;
}

.shop-float-sheet__phone {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
}

.shop-float-sheet__phone a {
    color: #5a67d8;
    text-decoration: none;
    border-bottom: 2px solid rgba(102, 126, 234, 0.35);
}

.shop-float-sheet__phone a:hover {
    color: #667eea;
}

.shop-float-sheet__hint {
    font-size: 13px;
    color: #a0aec0;
    margin-top: 8px;
}

.shop-float-sheet--feedback .shop-float-sheet__panel {
    max-width: 420px;
    max-height: min(90vh, 640px);
}

.shop-float-feedback-form {
    margin: 0;
}

.shop-float-feedback-intro {
    margin: 0 0 14px;
    line-height: 1.55;
}

.shop-float-feedback-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 6px;
    margin-top: 12px;
}

.shop-float-feedback-label:first-of-type {
    margin-top: 0;
}

.shop-float-feedback-optional {
    font-weight: 500;
    color: #a0aec0;
}

.shop-float-feedback-required {
    color: #e53e3e;
}

.shop-float-feedback-input,
.shop-float-feedback-textarea {
    width: 100%;
    box-sizing: border-box;
    font-size: 15px;
    font-family: inherit;
    color: #2d3748;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    background: #f7fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.shop-float-feedback-input::placeholder,
.shop-float-feedback-textarea::placeholder {
    color: #a0aec0;
}

.shop-float-feedback-input:focus,
.shop-float-feedback-textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.shop-float-feedback-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.55;
}

.shop-float-feedback-msg {
    font-size: 13px;
    color: #c53030;
    margin: 10px 0 0;
    min-height: 1.2em;
}

.shop-float-feedback-msg:not([hidden]) {
    display: block;
}

.shop-float-feedback-msg--error {
    color: #c53030;
}

.shop-float-feedback-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 4px;
}

.shop-float-feedback-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

.shop-float-feedback-btn--ghost {
    background: #edf2f7;
    color: #4a5568;
}

.shop-float-feedback-btn--ghost:hover {
    background: #e2e8f0;
    color: #2d3748;
}

.shop-float-feedback-btn--primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
}

.shop-float-feedback-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.4);
}

.shop-float-feedback-btn:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

body.shop-float-sheet-open {
    overflow: hidden;
}

/* —— 系统充值页 recharge.html —— */
.shop-wrap--recharge {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 18px 48px;
    width: 100%;
}

.recharge-breadcrumb {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 18px;
}

.recharge-breadcrumb a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.recharge-breadcrumb a:hover {
    opacity: 0.95;
}

.recharge-breadcrumb__sep {
    margin: 0 8px;
    opacity: 0.75;
}

.recharge-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

@media (max-width: 768px) {
    .recharge-layout {
        grid-template-columns: 1fr;
    }
}

.recharge-sidebar {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.recharge-sidebar__head {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 16px;
    text-align: center;
}

.recharge-sidebar__user {
    padding: 20px 16px;
    text-align: center;
    border-bottom: 1px solid #edf2f7;
}

.recharge-sidebar__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(145deg, #e9e3ff, #f0f4ff);
    color: #5a67d8;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.recharge-sidebar__id {
    display: block;
    font-size: 13px;
    color: #718096;
    word-break: break-all;
}

.recharge-sidebar__nav {
    list-style: none;
    padding: 8px 0 12px;
}

.recharge-sidebar__nav a {
    display: block;
    padding: 12px 18px;
    font-size: 14px;
    color: #4a5568;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.recharge-sidebar__nav a:hover {
    background: rgba(102, 126, 234, 0.08);
    color: #5a67d8;
}

.recharge-sidebar__nav a.is-active {
    background: rgba(102, 126, 234, 0.12);
    color: #5a67d8;
    font-weight: 600;
    border-left-color: #667eea;
}

.recharge-main {
    min-width: 0;
}

.recharge-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    padding: 24px 22px 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.recharge-card__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.recharge-tabs {
    position: relative;
}

.recharge-tabs__radio {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.recharge-tabs__labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
}

.recharge-tabs__label {
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    margin-bottom: -2px;
    border: 2px solid transparent;
    border-bottom: none;
    transition: color 0.15s, background 0.15s;
}

.recharge-tabs__label:hover {
    color: #5a67d8;
    background: rgba(102, 126, 234, 0.06);
}

#recharge-tab-1:checked ~ .recharge-tabs__labels label[for="recharge-tab-1"],
#recharge-tab-2:checked ~ .recharge-tabs__labels label[for="recharge-tab-2"],
#recharge-tab-3:checked ~ .recharge-tabs__labels label[for="recharge-tab-3"] {
    color: #5a67d8;
    background: #fff;
    border-color: #e2e8f0;
    border-bottom-color: #fff;
}

.recharge-tabs__panels .recharge-panel {
    display: none;
}

#recharge-tab-1:checked ~ .recharge-tabs__panels .recharge-panel:nth-child(1),
#recharge-tab-2:checked ~ .recharge-tabs__panels .recharge-panel:nth-child(2),
#recharge-tab-3:checked ~ .recharge-tabs__panels .recharge-panel:nth-child(3) {
    display: block;
}

.recharge-form {
    max-width: 640px;
}

.recharge-field {
    margin-bottom: 20px;
}

.recharge-field__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
}

.recharge-field__hint {
    font-size: 12px;
    color: #a0aec0;
    margin-bottom: 10px;
}

.recharge-field__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.recharge-input {
    flex: 1;
    min-width: 140px;
    max-width: 220px;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #cbd5e0;
    border-radius: 10px;
    font-family: inherit;
    background: #f7fafc;
}

.recharge-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    background: #fff;
}

.recharge-balance {
    font-size: 14px;
    color: #4a5568;
}

.recharge-balance em {
    font-style: normal;
    font-weight: 700;
    color: #dd6b20;
}

.recharge-due {
    font-size: 1.25rem;
    color: #2d3748;
    margin-top: 4px;
}

.recharge-due strong {
    color: #38a169;
    font-weight: 800;
}

.recharge-pay {
    border: none;
    margin: 0;
    padding: 0;
}

.recharge-pay__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.recharge-pay__option {
    cursor: pointer;
    display: block;
}

.recharge-pay__option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.recharge-pay__box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.recharge-pay__option input:focus-visible + .recharge-pay__box {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.recharge-pay__option input:checked + .recharge-pay__box {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.08);
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.2);
}

.recharge-pay__name {
    font-weight: 700;
    font-size: 15px;
    color: #2d3748;
}

.recharge-pay__sub {
    font-size: 12px;
    color: #718096;
}

.recharge-submit {
    display: block;
    width: 100%;
    max-width: 280px;
    margin-top: 22px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    transition: transform 0.15s, box-shadow 0.2s;
}

.recharge-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
}

.recharge-static-note {
    margin-top: 14px;
    font-size: 12px;
    color: #a0aec0;
    line-height: 1.5;
}

.recharge-placeholder {
    font-size: 14px;
    color: #718096;
    line-height: 1.7;
    padding: 8px 0 16px;
}

.recharge-rules {
    margin-top: 28px;
    padding: 18px 18px 18px 36px;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.75;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.recharge-rules li {
    margin-bottom: 8px;
}

.recharge-rules li:last-child {
    margin-bottom: 0;
}

/* —— 登录注册与顶栏会话区 —— */
.shop-auth-slot {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.shop-auth-user {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.shop-auth-nickname {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

button.shop-auth-logout-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.shop-wrap--narrow {
    max-width: 520px;
    margin: 0 auto;
    padding: 28px 16px 48px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    padding: 28px 24px 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.auth-card__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 10px;
}

.auth-card__hint {
    font-size: 13px;
    color: #a0aec0;
    line-height: 1.55;
    margin-bottom: 20px;
}

.auth-form {
    margin: 0;
}

.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 6px;
    margin-top: 14px;
}

.auth-label:first-of-type {
    margin-top: 0;
}

.auth-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #cbd5e0;
    border-radius: 10px;
    font-family: inherit;
    background: #f7fafc;
}

.auth-input:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.auth-msg {
    font-size: 13px;
    color: #c53030;
    margin: 12px 0 0;
    min-height: 1.2em;
}

.auth-msg:not([hidden]) {
    display: block;
}

.auth-submit {
    display: block;
    width: 100%;
    margin-top: 22px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.auth-footer-link {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
    color: #718096;
}

.auth-footer-link a {
    color: #5a67d8;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(102, 126, 234, 0.35);
}

.auth-footer-link a:hover {
    color: #667eea;
}

/* —— 用户中心（参考经典后台布局） —— */
.uc-topnav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.uc-topnav__link {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
}

.uc-topnav__link:hover {
    background: rgba(255, 255, 255, 0.22);
}

.uc-topnav__link--active {
    background: #fff;
    color: #2b6cb0;
    border-color: #fff;
    font-weight: 700;
}

.uc-breadcrumb {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 14px;
}

.uc-breadcrumb a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.uc-breadcrumb__sep {
    margin: 0 6px;
    opacity: 0.75;
}

.uc-sidebar__nav a[data-icon] {
    padding-left: 14px;
}

.uc-sidebar__cta {
    padding: 12px 14px 16px;
    border-top: 1px solid #edf2f7;
}

.uc-sidebar__cta-btn {
    display: block;
    text-align: center;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #744210;
    text-decoration: none;
    background: linear-gradient(180deg, #f6e05e 0%, #ecc94b 100%);
    border-radius: 8px;
    border: 1px solid #d69e2e;
}

.uc-sidebar__cta-btn:hover {
    filter: brightness(1.03);
}

.uc-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.uc-panel__title {
    margin-bottom: 0;
}

.uc-panel__action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #276749;
    text-decoration: none;
}

.uc-panel__action:hover {
    text-decoration: underline;
}

.uc-panel__action-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #48bb78;
    color: #fff;
    font-size: 16px;
    line-height: 1;
}

.uc-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.uc-subtabs__btn {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    background: #edf2f7;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
}

.uc-subtabs__btn.is-active {
    color: #fff;
    background: #3182ce;
    border-color: #2b6cb0;
}

.uc-subtabs__btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.uc-empty-box {
    min-height: 220px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uc-empty-box__text {
    font-size: 14px;
    color: #718096;
}

/* —— 企业/法务风白底页（参考图） —— */
.corp-body {
    background: #fff;
    color: #1a1a1a;
}

.corp-body .corp-main {
    flex: 1 0 auto;
}

.corp-header {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}

.corp-header__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.corp-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.corp-header__logo {
    font-size: 28px;
    line-height: 1;
}

.corp-header__company {
    font-size: clamp(1.05rem, 3.5vw, 1.35rem);
    font-weight: 800;
    color: #111;
    letter-spacing: 0.02em;
}

.corp-header__inner .corp-header__brand > div:last-child {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.corp-header__divider {
    width: 1px;
    height: 22px;
    background: #ccc;
}

.corp-header__page-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
}

.corp-header__links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.corp-header__announce {
    font-size: 13px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.corp-header__announce:hover {
    text-decoration: underline;
}

.corp-header__line {
    height: 1px;
    background: #e8e8e8;
}

.corp-subnav {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}

.corp-subnav__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.corp-subnav__link {
    padding: 6px 12px;
    font-size: 14px;
    color: #111;
    text-decoration: none;
    border-radius: 6px;
}

.corp-subnav__link:hover {
    background: #f5f5f5;
}

.corp-subnav__link--active {
    background: #a6a6a6;
    color: #fff;
}

.corp-subnav__link--active:hover {
    background: #959595;
    color: #fff;
}

.corp-main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 28px 18px 48px;
}

.corp-article__h1 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #111;
}

.corp-article__h2 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 22px 0 12px;
    color: #111;
}

.corp-article__p {
    font-size: 15px;
    line-height: 1.85;
    margin-bottom: 12px;
    color: #222;
}

.corp-article__indent {
    padding-left: 0.5em;
}

.corp-article__ul {
    margin: 8px 0 12px 1.25rem;
    font-size: 15px;
    line-height: 1.85;
    color: #222;
}

.corp-article__ul li {
    margin-bottom: 6px;
}

.corp-back-wrap {
    margin-top: 28px;
}

.corp-back-link {
    font-size: 14px;
    font-weight: 600;
    color: #2b6cb0;
    text-decoration: none;
}

.corp-back-link:hover {
    text-decoration: underline;
}

.corp-inline-link {
    color: #2b6cb0;
    text-decoration: none;
}

.corp-inline-link:hover {
    text-decoration: underline;
}

.corp-footer {
    margin-top: auto;
    padding: 16px 18px 24px;
    border-top: 1px solid #e8e8e8;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.corp-footer a {
    color: #666;
    text-decoration: none;
}

.corp-footer a:hover {
    text-decoration: underline;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* —— 发布信息三步（与商城主色一致） —— */
.publish-flow {
    padding-top: 22px;
}

.publish-steps {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 28px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.publish-steps__item {
    flex: 1 1 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    background: #f7fafc;
    color: #718096;
    font-size: 14px;
    font-weight: 600;
    position: relative;
}

.publish-steps__item.is-done {
    background: rgba(102, 126, 234, 0.12);
    color: #5a67d8;
}

.publish-steps__item.is-current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
}

.publish-steps__num {
    font-weight: 800;
}

.publish-cat-hint {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.65;
    margin-bottom: 12px;
}

.publish-cat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.publish-cat-tag {
    font-size: 12px;
    font-weight: 600;
    color: #5a67d8;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.25);
}

.publish-cat-grid {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #fff;
}

@media (max-width: 600px) {
    .publish-cat-grid {
        grid-template-columns: 1fr;
    }
}

.publish-cat-list {
    border-right: 1px solid #e2e8f0;
    background: #f7fafc;
}

@media (max-width: 600px) {
    .publish-cat-list {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
}

.publish-cat-list__item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: transparent;
    border: none;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-family: inherit;
}

.publish-cat-list__item:last-child {
    border-bottom: none;
}

.publish-cat-list__item:hover {
    background: #f3f3f3;
}

.publish-cat-list__item.is-selected {
    background: #fff;
    color: #5a67d8;
    font-weight: 800;
    box-shadow: inset 3px 0 0 #667eea;
}

.publish-cat-detail {
    padding: 18px 16px;
    background: #fff;
}

.publish-cat-detail__title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #1a202c;
}

.publish-cat-detail__desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.publish-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.publish-actions--center {
    justify-content: center;
}

.publish-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.38);
    transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}

.publish-btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.45);
}

.publish-btn-ghost {
    text-decoration: none;
}

.publish-form {
    max-width: 640px;
}

.publish-field {
    display: block;
    margin-bottom: 16px;
}

.publish-field__label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 6px;
}

.publish-field__input,
.publish-field__textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid #cbd5e0;
    border-radius: 10px;
    background: #f7fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.publish-field__input:focus,
.publish-field__textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.publish-field__textarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.6;
}

.publish-static-note {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

.publish-step--center {
    display: flex;
    justify-content: center;
}

.publish-success {
    text-align: center;
    padding: 32px 16px;
    max-width: 420px;
}

.publish-success__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(72, 187, 120, 0.4);
}

.publish-success__title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #111;
}

.publish-success__desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.publish-flow .shop-policy-inline-link {
    color: #5a67d8;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(102, 126, 234, 0.35);
}

.publish-flow .shop-policy-inline-link:hover {
    color: #667eea;
}

/* —— 规则/说明页（与商城首页同系：渐变背景 + 顶栏 + 白卡片） —— */
.shop-wrap--policy {
    max-width: 920px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    width: 100%;
}

.shop-policy-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.shop-policy-tabs__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.shop-policy-tabs__link:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.65);
}

.shop-policy-tabs__link.is-active {
    background: #fff;
    color: #667eea;
    border-color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.shop-policy-card {
    padding: 26px 22px 28px;
}

.shop-policy-body h1 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.shop-policy-body h2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #2d3748;
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #edf2f7;
}

.shop-policy-body h2:first-of-type {
    margin-top: 0;
}

.shop-policy-body p {
    font-size: 15px;
    line-height: 1.85;
    color: #4a5568;
    margin: 0 0 12px;
}

.shop-policy-body p strong {
    color: #2d3748;
}

.shop-policy-body .shop-policy-indent {
    padding-left: 0.5em;
}

.shop-policy-body ul {
    margin: 8px 0 14px 1.25rem;
    font-size: 15px;
    line-height: 1.85;
    color: #4a5568;
}

.shop-policy-body ul li {
    margin-bottom: 6px;
}

.shop-policy-body a.shop-policy-inline-link {
    color: #5a67d8;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(102, 126, 234, 0.35);
}

.shop-policy-body a.shop-policy-inline-link:hover {
    color: #667eea;
    border-bottom-color: #667eea;
}

.shop-policy-footer-actions {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid #edf2f7;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
