:root {
    --primary: #1a1a2e;
    --accent: #e94560;
    --accent-light: #ff6b6b;
    --bg: #fafafa;
    --text: #333;
    --text-light: #999;
    --radius: 12px;
    --shadow: 0 2px 20px rgba(0,0,0,0.06);
    --page-gutter: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
    background: var(--bg);
    color: var(--text);
    padding-bottom: 70px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
}

/* Header */
.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.logo-img {
    display: block;
    height: 36px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
}

.search-box {
    flex: 1;
    display: flex;
    background: #f5f5f5;
    border-radius: 24px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    border: none;
    background: none;
    padding: 8px 16px;
    outline: none;
    font-size: 0.875rem;
}

.search-box button {
    border: none;
    background: none;
    padding: 8px 16px;
    color: var(--text-light);
}

.header-nav { display: flex; gap: 16px; align-items: center; }
.header-nav a { color: var(--text); text-decoration: none; font-size: 1.25rem; }

/* Banner */
.hero-banner { margin-bottom: 0; }

.banner-slide {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--primary);
}

.default-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.banner-text { text-align: center; color: #fff; }
.banner-text h1 { font-size: 1.75rem; font-weight: 300; letter-spacing: 0.1em; }
.banner-text p { opacity: 0.7; margin-top: 8px; }

.hero-banner .carousel-indicators-dash {
    margin-bottom: 10px;
    gap: 6px;
}

.hero-banner .carousel-indicators-dash [data-bs-target] {
    width: 20px;
    height: 3px;
    margin: 0;
    border: none;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.45);
    opacity: 1;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.hero-banner .carousel-indicators-dash [data-bs-target].active {
    width: 28px;
    background-color: #fff;
}

/* Categories */
.categories-section { padding: 24px 0; background: #fff; }

.categories-notice-divider {
    height: 1px;
    background: var(--accent);
    margin: 16px 0 12px;
}

.section-white-gap {
    height: 12px;
    background: #fff;
}

.section-title-decorated {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title-decorated::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}

.featured-section {
    padding-top: 0;
}

.featured-section .section-title-decorated {
    color: var(--accent);
}

.featured-section .more-link {
    color: var(--accent);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.category-item {
    text-align: center;
    text-decoration: none;
    color: var(--text);
    padding: 12px 4px;
}

.category-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    font-size: 1.25rem;
    color: var(--accent);
    overflow: hidden;
}
.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-item span { font-size: 0.75rem; }

/* Notice */
.notice-bar {
    background: #fff;
    padding: 10px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 0.8125rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-bar-inline {
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

.notice-bar i { color: var(--accent); }

/* Section */
.section { padding: 24px 0; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
}

.more-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.8125rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.product-card:active { transform: scale(0.98); }

.product-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.product-img img { width: 100%; height: 100%; object-fit: cover; }

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ddd;
}

.product-info { padding: 12px; }

.product-info h3 {
    font-size: 0.875rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-sub {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-price { margin-top: 8px; }

.price { color: var(--accent); font-weight: 700; font-size: 1rem; }

.market-price {
    color: var(--text-light);
    text-decoration: line-through;
    font-size: 0.75rem;
    margin-left: 6px;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
    z-index: 100;
    /* 减少移动端点击延迟 */
    touch-action: manipulation;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav .nav-item {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.625rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav .nav-item:active,
.bottom-nav .nav-item.is-pressing {
    color: var(--accent);
    background: rgba(233, 69, 96, 0.06);
}

.bottom-nav .nav-item i { display: block; font-size: 1.25rem; margin-bottom: 2px; }
.bottom-nav .nav-item.active { color: var(--accent); }

.btn,
.btn-accent,
.btn-outline-accent,
.btn-wechat-login,
button {
    touch-action: manipulation;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 24px;
    color: var(--text-light);
    font-size: 0.75rem;
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
}

.auth-card h2 { text-align: center; margin-bottom: 24px; font-weight: 600; }

.btn-accent {
    background: var(--accent);
    border: none;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    font-weight: 600;
}

.btn-accent:hover { background: var(--accent-light); color: #fff; }

.btn-wechat-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: #07c160;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border: none;
    transition: background 0.2s;
}
.btn-wechat-login:hover { background: #06ad56; color: #fff; }
.btn-wechat-login i { font-size: 1.25rem; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-light);
    font-size: 0.8125rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}

.text-accent { color: var(--accent); }

/* User Center */
.wallet-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}
.wallet-cards-4 {
    grid-template-columns: repeat(2, 1fr);
}

.wallet-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow);
}

.wallet-card .value { font-size: 1.125rem; font-weight: 700; color: var(--accent); }
.wallet-card .label { font-size: 0.75rem; color: var(--text-light); margin-top: 4px; }

.wallet-card-clickable {
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}
.wallet-card-clickable:active { transform: scale(0.98); }

.commission-modal .wallet-action-tabs { margin: 0 0 16px; padding: 0; border-bottom: 1px solid #f0f0f0; }
.withdraw-method-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.withdraw-method-opt {
    flex: 1;
    min-width: 80px;
    text-align: center;
    padding: 8px 6px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 0.8125rem;
    cursor: pointer;
    margin: 0;
}
.withdraw-method-opt.active {
    border-color: var(--accent);
    background: rgba(201, 169, 98, 0.08);
    color: var(--accent);
    font-weight: 600;
}
.withdraw-method-opt input { display: none; }

.pay-qrcode-upload { max-width: 200px; }
.pay-qrcode-box {
    display: block;
    aspect-ratio: 1;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #fafafa;
}
.pay-qrcode-box img { width: 100%; height: 100%; object-fit: cover; }
.pay-qrcode-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 0.8125rem;
    gap: 6px;
}
.pay-qrcode-placeholder i { font-size: 1.5rem; }

.profile-form .box-title { font-size: 0.9375rem; margin-bottom: 12px; }
.profile-divider { margin: 24px 0; border-color: #f0f0f0; }
.profile-avatar-row { display: flex; align-items: center; gap: 16px; }
.profile-once-tip { margin-top: -8px; }
.profile-avatar-upload { cursor: pointer; margin: 0; }
.profile-avatar-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-preview .avatar-text { font-size: 1.5rem; font-weight: 600; color: var(--accent); }
.avatar-edit-badge {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}
.profile-form .pay-qrcode-box { max-width: 120px; aspect-ratio: 1; }

.wallet-action-panel { padding-top: 0; overflow: hidden; }
.wallet-action-tabs {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    margin: 0 -16px 16px;
    padding: 0 8px;
}
.wallet-action-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 8px;
    font-size: 0.8125rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.wallet-action-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 600;
}
.wallet-action-pane { display: none; }
.wallet-action-pane.active { display: block; }
.wallet-log-meta { font-size: 0.75rem; }
.wallet-log-amount { font-size: 0.9375rem; white-space: nowrap; }

.menu-list {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.menu-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid #f5f5f5;
}
.menu-list .menu-item-left {
    display: flex;
    align-items: center;
    min-width: 0;
}
.menu-list .menu-item-left > i {
    margin-right: 12px;
    color: var(--accent);
    font-size: 1.125rem;
    flex-shrink: 0;
}
.menu-list .menu-item-left > span {
    font-size: 0.9375rem;
}
.menu-list a > i.bi-chevron-right { margin-right: 0; color: #ccc; font-size: 0.875rem; }

.menu-list a:last-child { border-bottom: none; }

.user-app-version {
    margin: 20px 0 8px;
    text-align: center;
    font-size: 12px;
    color: #bbb;
    line-height: 1.4;
}

/* User profile */
.user-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}
.user-avatar-upload {
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
}
.user-avatar {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 1.75rem;
    font-weight: 600;
}
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-avatar .avatar-edit {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    transition: opacity 0.2s;
}
.user-avatar-upload:active .avatar-edit,
.user-avatar-upload:hover .avatar-edit {
    opacity: 1;
}
.user-profile-info {
    flex: 1;
    min-width: 0;
}
.user-profile-info .user-name {
    margin: 0 0 8px;
    font-size: 1.125rem;
    font-weight: 600;
}
.user-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.user-level-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    background: #f5f5f5;
    color: var(--text-light);
    font-size: 0.75rem;
}
.user-cofounder-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #f5d76e;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Common components */
.page-title { font-weight: 600; margin-bottom: 16px; }
.card-box { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.box-title { font-weight: 600; font-size: 0.9375rem; margin-bottom: 12px; }
.box-title-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 600; }
.box-title-row a { font-size: 0.8125rem; color: var(--text-light); text-decoration: none; }

.empty-state { text-align: center; padding: 48px 16px; color: var(--text-light); }
.empty-state i { font-size: 3rem; display: block; margin-bottom: 12px; opacity: 0.4; }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; overflow-x: auto; }
.filter-tag {
    padding: 6px 14px; border-radius: 20px; font-size: 0.8125rem;
    background: #fff; color: var(--text); text-decoration: none;
    border: 1px solid #eee; white-space: nowrap;
}
.filter-tag.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Products page - left categories, right grid */
.products-page-section {
    padding: 0;
}

.products-layout {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - 120px);
}

.products-sidebar {
    width: 88px;
    flex-shrink: 0;
    background: #f5f5f7;
    border-right: 1px solid #eee;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.products-cat-nav {
    display: flex;
    flex-direction: column;
}

.products-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 56px;
    padding: 12px 6px;
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--text);
    text-decoration: none;
    text-align: center;
    border-left: 3px solid transparent;
    word-break: break-all;
}

.products-cat-item.active {
    background: #fff;
    color: var(--accent);
    font-weight: 600;
    border-left-color: var(--accent);
}

.products-cat-icon {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 50%;
}

.products-main {
    flex: 1;
    min-width: 0;
    padding: 12px var(--page-gutter) 24px;
    background: var(--bg);
}

.products-main .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.products-search-tip {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.page-nav { display: flex; justify-content: center; align-items: center; gap: 16px; }
.page-btn { padding: 8px 16px; background: #fff; border-radius: 8px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); font-size: 0.875rem; }
.page-info { color: var(--text-light); font-size: 0.875rem; }

.notice-scroll { flex: 1; overflow: hidden; white-space: nowrap; }
.notice-scroll a { color: var(--text-light); text-decoration: none; margin-right: 24px; }
.notice-more { color: var(--accent); font-size: 0.8125rem; text-decoration: none; white-space: nowrap; }

/* User */
.order-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.order-tabs a { text-decoration: none; color: var(--text); font-size: 0.75rem; padding: 8px 0; }
.order-tabs i { display: block; font-size: 1.25rem; margin-bottom: 4px; color: var(--accent); }

.status-badge { font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; background: #eee; }
.status-0 { background: #fff3cd; color: #856404; }
.status-1 { background: #cce5ff; color: #004085; }
.status-2 { background: #d4edda; color: #155724; }
.status-3 { background: #e2e3e5; color: #383d41; }

.order-card { margin-bottom: 10px; transition: transform 0.15s; }
.order-card:active { transform: scale(0.99); }
.order-amount { font-size: 1.125rem; font-weight: 700; color: var(--accent); }
.order-item-row { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f5f5f5; }
.order-item-row img { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; }
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.recommend-record {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}
.recommend-record:last-child { border-bottom: none; }
.recommend-record-main { display: flex; gap: 12px; align-items: center; min-width: 0; }
.recommend-record-main img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }

.team-title-count {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-light, #999);
    margin-left: 4px;
}
.team-list-box { padding: 0; overflow: hidden; }
.team-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.team-col-name { width: 42%; }
.team-col-level { width: 30%; }
.team-col-time { width: 28%; }
.team-table th,
.team-table td {
    padding: 13px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    line-height: 1.4;
}
.team-table th:first-child,
.team-table td:first-child { padding-left: 16px; padding-right: 14px; }
.team-table th:nth-child(2),
.team-table td:nth-child(2) { padding-left: 14px; padding-right: 14px; }
.team-table th:last-child,
.team-table td:last-child { padding-left: 14px; padding-right: 16px; }
.team-table thead th {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-light, #999);
    background: #f8f9fb;
    border-bottom: 1px solid #eef0f3;
    text-align: left;
}
.team-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.15s ease;
}
.team-table tbody tr:last-child { border-bottom: none; }
.team-table tbody tr:hover { background: #fafbfc; }
.team-cell-name {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text, #333);
}
.team-table th:nth-child(2),
.team-table td:nth-child(2) { text-align: center; }
.team-table th:nth-child(3),
.team-table td:nth-child(3) {
    text-align: right;
    font-size: 0.8125rem;
    color: var(--text-light, #999);
    font-variant-numeric: tabular-nums;
}
.team-level-tag {
    display: inline-block;
    max-width: 100%;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #666;
    font-size: 0.75rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.support-list-box { padding-top: 8px; }
.support-list-head,
.support-list-row {
    display: grid;
    grid-template-columns: 1fr 72px 64px;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
}
.support-list-head {
    font-size: 0.8125rem;
    color: var(--text-muted, #888);
    border-bottom: 1px solid #f0f0f0;
    padding-top: 0;
}
.support-list-row { border-bottom: 1px solid #f5f5f5; }
.support-list-row:last-child { border-bottom: none; }
.support-list-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
.support-detail-item { margin-bottom: 14px; }
.support-detail-item:last-child { margin-bottom: 0; }
.support-detail-label { font-size: 0.8125rem; color: #888; margin-bottom: 4px; }
.support-detail-text,
.support-detail-reply { white-space: pre-wrap; line-height: 1.6; }
.support-detail-reply {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px 12px;
}

.support-image-upload {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}
.support-image-preview-list,
.support-image-view-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.support-image-item,
.support-image-view-item,
.support-image-add-btn {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}
.support-image-item img,
.support-image-view-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.support-image-view-item {
    border: 1px solid #eee;
}
.support-image-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ccc;
    color: #888;
    cursor: pointer;
    background: #fafafa;
}
.support-image-add-btn i { font-size: 1.25rem; }
.support-image-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    line-height: 1;
    font-size: 14px;
    padding: 0;
}

.recommend-top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 8px;
}

.wallet-log-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.wallet-log-row:last-child { border-bottom: none; }

/* Cart */
.cart-page { padding-bottom: 80px; }
.cart-item { display: flex; gap: 12px; align-items: center; }
.cart-item .cart-check { flex-shrink: 0; }
.cart-img img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.cart-name { color: var(--text); text-decoration: none; font-size: 0.875rem; display: block; margin-bottom: 4px; }
.cart-price { color: var(--accent); font-weight: 600; font-size: 0.9375rem; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid #eee; border-radius: 6px; margin-top: 6px; }
.qty-btn { border: none; background: #f8f9fa; width: 28px; height: 28px; cursor: pointer; }
.qty-input { width: 36px; border: none; text-align: center; font-size: 0.875rem; }
.cart-remove { border: none; background: none; color: #ccc; font-size: 1rem; padding: 4px; }

.address-option { display: flex; gap: 10px; padding: 10px; border: 1px solid #eee; border-radius: 8px; margin-bottom: 8px; cursor: pointer; }
.address-option:has(input:checked) { border-color: var(--accent); background: #fff5f5; }
.pay-option { display: block; padding: 8px 0; cursor: pointer; }
.pay-summary-row { display: flex; align-items: center; padding: 6px 0; }
.pay-method-tag {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    font-size: 0.75rem; font-weight: 600;
}
.pay-method-hy { background: #fff5f5; color: var(--accent); }
.pay-method-wechat { background: #e8f5e9; color: #2e7d32; }
.checkout-pay-hint { margin-top: 2px; }

.pay-loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: center;
}
.pay-loading-overlay.show { display: flex; }
.pay-loading-box {
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    min-width: 180px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.pay-loading-spinner {
    width: 32px;
    height: 32px;
    margin: 0 auto 12px;
    border: 3px solid #f0f0f0;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: pay-loading-spin 0.8s linear infinite;
}
.pay-loading-text {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text);
}
@keyframes pay-loading-spin {
    to { transform: rotate(360deg); }
}

.checkout-bar {
    position: fixed; bottom: 60px; left: 0; right: 0;
    background: #fff; padding: 12px var(--page-gutter); display: flex; align-items: center; gap: 12px;
    box-shadow: 0 -2px 10px rgba(0,0,0,.06); z-index: 99;
}
.checkout-bar .check-all { font-size: 0.8125rem; white-space: nowrap; }
.checkout-total { flex: 1; text-align: right; font-size: 0.875rem; }
.checkout-total strong { color: var(--accent); font-size: 1rem; }
.checkout-bar .btn { white-space: nowrap; padding: 10px 20px; width: auto; }

body.auth-body { padding-bottom: 0; }

.poster-page .container { max-width: 420px; }
.poster-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.poster-render-host {
    position: fixed;
    left: 0;
    top: 0;
    width: 375px;
    height: 667px;
    overflow: visible;
    pointer-events: none;
    z-index: -9999;
    /* 用 clip 隐藏，避免 opacity:0 导致 html2canvas 丢绝对定位叠层 */
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
}
.poster-card-source {
    width: 375px;
    pointer-events: none;
    box-shadow: none;
}
.poster-render-host,
.poster-render-host * {
    pointer-events: none !important;
}
.poster-actions { margin-top: 0; }
.poster-result {
    margin-top: 16px;
    line-height: 0;
    -webkit-touch-callout: default;
}
.poster-result img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.poster-result .poster-download-btn { line-height: normal; margin-top: 12px !important; }
.poster-inner {
    position: relative;
    width: 375px;
    height: 667px;
    min-height: 667px;
    overflow: hidden;
    background: linear-gradient(160deg, #ff6b35 0%, #f7931e 50%, #ffd166 100%);
}
.poster-bg-img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    z-index: 1;
}
.poster-footer-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
    /* 贴合海报底部预留区 */
    height: 120px;
    padding: 12px 14px 16px;
    margin: 0;
    background: transparent;
}
.poster-qr-wrap {
    flex-shrink: 0;
    width: 92px;
    height: 92px;
    background: #fff;
    padding: 4px;
    border-radius: 4px;
    line-height: 0;
    z-index: 11;
    box-sizing: border-box;
}
.poster-qr { line-height: 0; width: 100%; height: 100%; }
.poster-qr img,
.poster-qr canvas {
    display: block;
    width: 84px !important;
    height: 84px !important;
}
.poster-footer-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}
.poster-footer-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.poster-user-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.poster-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
}
.poster-user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.poster-user-avatar-text {
    font-size: 16px;
    font-weight: 600;
    color: #666;
    line-height: 1;
}
.poster-name {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: none;
}
.poster-phone {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-shadow: none;
}
.poster-tip {
    color: #333;
    font-size: 11px;
    line-height: 1.35;
    margin: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: none;
}

@media (min-width: 768px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .products-main .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .products-layout {
        max-width: 1200px;
        margin: 0 auto;
        min-height: auto;
    }
    .products-sidebar { width: 120px; }
    .products-cat-item { font-size: 0.8125rem; padding: 14px 10px; }
    .category-grid { grid-template-columns: repeat(8, 1fr); }
    .banner-slide { height: 360px; }
    body { padding-bottom: 0; }
    .bottom-nav { display: none !important; }
    .checkout-bar { bottom: 0; }
    .cart-page { padding-bottom: 70px; }
}
