/* ============================================
   小区互助 H5 应用 - 样式表 v3
   暖橙主色 + 浅蓝点缀 | 药丸风格 | 社区温馨感
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #FF6B35;
    --primary-dark: #E85D2A;
    --primary-light: #FF8C5A;
    --primary-bg: rgba(255,107,53,0.08);
    --accent: #5B8DEF;
    --accent-light: #EDF3FE;
    --bg: #F2F3F7;
    --bg-white: #FFFFFF;
    --bg-card: #FFFFFF;
    --text: #1D1D1F;
    --text-secondary: #8E8E93;
    --text-light: #B0B0B5;
    --text-hint: #C6C6CA;
    --success: #34C759;
    --danger: #FA5151;
    --warning: #FF9F0A;
    --price: #FF6B35;
    --price-old: #C0C0C6;
    --border: #E8E8ED;
    --border-light: #F0F0F5;
    --shadow-card: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-sm: 0 1px 6px rgba(0,0,0,0.04);
    --shadow-float: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-pill: 0 4px 14px rgba(255,107,53,0.28);
    --radius: 12px;
    --radius-sm: 10px;
    --radius-mini: 8px;
    --radius-full: 24px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --page-px: 16px;
    --section-gap: 18px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100vw;
}

#app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background: var(--bg);
}

#page-container {
    padding-bottom: 64px;
}

.page {
    padding: 0 var(--page-px);
}

/* ===================== Header (三段式) ===================== */
.header {
    display: flex;
    align-items: center;
    padding: 10px var(--page-px) 14px;
    gap: 10px;
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    cursor: pointer;
}

.brand-icon {
    font-size: 22px;
    line-height: 1;
}

.brand-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border-radius: var(--radius-full);
    padding: 7px 14px;
    gap: 6px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-hint);
    transition: background 0.2s;
    box-shadow: var(--shadow-sm);
}

.search-bar:active {
    background: var(--bg);
}

.search-bar .search-icon {
    font-size: 13px;
    color: var(--text-light);
    opacity: 0.8;
}

.header-right {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    position: relative;
}

.header-right:active {
    opacity: 0.6;
}

.header-right svg {
    width: 22px;
    height: 22px;
}

.header-cart-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    padding: 0 4px;
    font-weight: 500;
}

/* ===================== Home Pill Tabs ===================== */
.home-tabs {
    display: flex;
    gap: 10px;
    padding: 6px 0 6px;
}

.home-tab {
    flex: 1;
    text-align: center;
    padding: 9px 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: all 0.25s ease;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
}

.home-tab.active {
    background: rgba(255,107,53,0.10);
    color: var(--primary);
    font-weight: 700;
    border-color: rgba(255,107,53,0.25);
}

/* ===================== Category Chips (横向滚动) ===================== */
.cat-scroll {
    padding: 6px 0 4px;
    position: relative;
}

/* 右侧渐变提示 - 有更多内容可滑动 */
.cat-scroll::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 0;
    bottom: 0;
    width: 36px;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, var(--bg) 80%);
    pointer-events: none;
    z-index: 2;
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    transition: opacity 0.2s;
}

/* 左侧渐变提示 - 滚动后显示 */
.cat-scroll::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 16px;
    background: linear-gradient(to right, var(--bg) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    z-index: 2;
    border-radius: var(--radius-full) 0 0 var(--radius-full);
    opacity: 0;
    transition: opacity 0.2s;
}

.cat-scroll.show-left::before {
    opacity: 1;
}

.cat-scroll.show-right::after {
    opacity: 1;
}

.cat-chips {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 4px 0 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
    align-items: center;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
}

/* Webkit 细滚动条（桌面端可见） */
.cat-chips::-webkit-scrollbar {
    height: 4px;
    display: block;
}

.cat-chips::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 2px;
}

.cat-chips::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
    transition: background 0.2s;
}

.cat-chips::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.cat-chip {
    flex-shrink: 0;
    padding: 6px 13px;
    background: var(--bg-white);
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--text-secondary);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
    scroll-snap-align: start;
}

.cat-chip.active {
    color: var(--primary);
    background: var(--primary-bg);
    border-color: var(--primary);
    font-weight: 600;
}

/* ===================== Banner (柔和社区风) ===================== */
.banner-container {
    margin: 10px 0 16px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    height: 148px;
    box-shadow: var(--shadow-card);
}

.banner-slider {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease;
    will-change: transform;
}

.banner-item {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Banner 1: 邻里互助 - 浅蓝青渐变 + 装饰 */
.banner-item:nth-child(1) {
    background: linear-gradient(135deg, #BFE3FF 0%, #A8D8F0 50%, #D4F1E8 100%);
    color: #2C5F7F;
}

.banner-item:nth-child(2) {
    background: linear-gradient(135deg, #FFD8B5 0%, #FFC4A3 50%, #FFB088 100%);
    color: #8B4513;
}

.banner-item:nth-child(3) {
    background: linear-gradient(135deg, #C8E6C9 0%, #A5D6A7 50%, #81C784 100%);
    color: #2E5D2E;
}

.banner-text-wrap {
    flex: 1;
    z-index: 2;
    position: relative;
}

.banner-text {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

.banner-sub {
    font-size: 13px;
    opacity: 0.75;
    font-weight: 500;
}

.banner-illust {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    flex-shrink: 0;
    margin-left: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    position: relative;
    z-index: 2;
}

.banner-illust::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    z-index: -1;
}

/* Banner 装饰小圆 */
.banner-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.banner-deco-1 {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.35);
    top: -20px;
    right: 80px;
}

.banner-deco-2 {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.25);
    bottom: -10px;
    left: 50%;
}

.banner-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 3;
    align-items: center;
}

.banner-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    transition: all 0.3s ease;
    cursor: pointer;
}

.banner-dot.active {
    width: 14px;
    background: rgba(255,255,255,0.9);
    border-radius: 3px;
}

/* ===================== Section Title ===================== */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 2px 10px;
}

.title-text {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.title-more {
    font-size: 12px;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
}

.title-more::after {
    content: '›';
    font-size: 16px;
    line-height: 1;
    margin-left: 2px;
    font-weight: 600;
}

/* ===================== Product Cards ===================== */
.product-section {
    margin-bottom: 16px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.product-card:active {
    transform: scale(0.97);
    box-shadow: var(--shadow-sm);
}

/* --- 商品仿真图 --- */
.product-card .prod-img {
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-card .prod-img-label {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
    letter-spacing: 0.5px;
    z-index: 2;
    text-align: center;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.product-card .prod-img-emoji {
    font-size: 42px;
    margin-right: 6px;
    display: inline-block;
    vertical-align: middle;
}

.product-card .prod-img-label span {
    display: inline-block;
    vertical-align: middle;
}

.product-card .prod-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.06) 100%);
    z-index: 1;
    pointer-events: none;
}

/* --- 商品信息 --- */
.product-card .prod-info {
    padding: 10px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .prod-name {
    font-size: 13px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text);
    min-height: 36px;
}

.product-card .prod-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}

.product-card .prod-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 3px;
    flex-wrap: nowrap;
}

.product-card .price-symbol {
    font-size: 12px;
    font-weight: 600;
    color: var(--price);
    margin-right: -1px;
}

.product-card .price-now {
    font-size: 17px;
    font-weight: 800;
    color: var(--price);
    letter-spacing: -0.5px;
    line-height: 1;
}

.product-card .price-original {
    font-size: 10px;
    color: var(--price-old);
    text-decoration: line-through;
    margin-left: 4px;
}

.product-card .prod-sold {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
}

/* ===================== Tab Bar (底部导航) ===================== */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    padding: 5px 0 calc(5px + var(--safe-bottom));
    z-index: 200;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    padding: 2px 0;
    transition: all 0.2s;
}

.tab-item .tab-icon-wrap {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1px;
    position: relative;
    transition: transform 0.2s;
}

.tab-item .tab-icon-wrap svg {
    width: 22px;
    height: 22px;
    fill: var(--text-hint);
    transition: fill 0.2s;
}

.tab-item .tab-icon-wrap svg.tab-stroke {
    fill: none;
    stroke: var(--text-hint);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tab-item.active .tab-icon-wrap svg {
    fill: var(--primary);
}

.tab-item.active .tab-icon-wrap svg.tab-stroke {
    stroke: var(--primary);
    fill: none;
}

.tab-item .tab-label {
    font-size: 10px;
    color: var(--text-light);
    transition: color 0.2s;
    margin-top: 1px;
}

.tab-item.active .tab-label {
    color: var(--primary);
    font-weight: 600;
}

.tab-item:active .tab-icon-wrap {
    transform: scale(0.9);
}

/* --- 发布按钮已与其他 tab 统一，无特殊突出样式 --- */

.tab-badge {
    position: absolute;
    top: -3px;
    right: -10px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    min-width: 17px;
    height: 17px;
    line-height: 17px;
    text-align: center;
    border-radius: 9px;
    padding: 0 5px;
    font-weight: 600;
    border: 2px solid var(--bg-white);
    white-space: nowrap;
}

/* ===================== Video Page ===================== */
.video-tabs {
    display: flex;
    background: transparent;
    padding: 8px var(--page-px) 12px;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: sticky;
    top: 56px;
    z-index: 40;
}

.video-tabs::-webkit-scrollbar { display: none; }

.video-tab {
    padding: 7px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    border-radius: var(--radius-full);
    background: var(--bg-white);
    transition: all 0.2s;
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
}

.video-tab.active {
    color: var(--accent);
    background: var(--accent-light);
    border-color: var(--accent);
    font-weight: 600;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 var(--page-px) 16px;
}

.video-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-card);
}

.video-card .video-cover {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: #1a1a30;
    position: relative;
}

.video-card .play-icon {
    position: absolute;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.video-card .video-info {
    padding: 10px 12px 12px;
}

.video-card .video-title {
    font-size: 13px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
}

.video-card .video-meta {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
}

.video-card .live-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(250,81,81,0.3);
}

/* ===================== Chat Page ===================== */
.chat-categories {
    display: flex;
    padding: 4px 0 8px;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.chat-categories::-webkit-scrollbar { display: none; }

.chat-cat {
    flex-shrink: 0;
    padding: 7px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-full);
    white-space: nowrap;
    transition: all 0.2s;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.chat-cat.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255,107,53,0.25);
}

.chat-list {
    margin: 0 calc(-1 * var(--page-px));
}

.chat-item {
    display: flex;
    align-items: center;
    padding: 14px var(--page-px);
    background: var(--bg-white);
    cursor: pointer;
    gap: 12px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}

.chat-item:active {
    background: #f6f6f9;
}

.chat-item:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
}

.chat-item:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
    border-bottom: none;
}

.chat-item:only-child {
    border-radius: var(--radius);
}

.chat-item .chat-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: var(--primary-bg);
}

.chat-item .chat-content {
    flex: 1;
    min-width: 0;
}

.chat-item .chat-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--text);
}

.chat-item .chat-preview {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-item .chat-meta {
    text-align: right;
    flex-shrink: 0;
}

.chat-item .chat-time {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.chat-item .chat-unread {
    display: inline-block;
    background: var(--danger);
    color: white;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 5px;
    font-weight: 500;
}

/* ===================== Cart Page ===================== */
.cart-list {
    margin: 0 calc(-1 * var(--page-px));
    margin-bottom: 64px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 12px var(--page-px);
    background: var(--bg-white);
    gap: 12px;
    border-bottom: 1px solid var(--border-light);
}

.cart-item .check-icon {
    font-size: 22px;
    cursor: pointer;
    flex-shrink: 0;
    color: var(--text-hint);
    transition: color 0.15s;
}

.cart-item .check-icon.checked {
    color: var(--primary);
}

.cart-item .cart-img {
    width: 78px;
    height: 78px;
    border-radius: var(--radius-mini);
    background: var(--bg);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.cart-item .cart-info {
    flex: 1;
    min-width: 0;
}

.cart-item .cart-name {
    font-size: 13px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    color: var(--text);
}

.cart-item .cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item .cart-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--price);
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-mini);
    overflow: hidden;
}

.quantity-control .qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #F5F5F8;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: background 0.15s;
}

.quantity-control .qty-btn:active {
    background: #E8E8EE;
}

.quantity-control .qty-num {
    width: 36px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    outline: none;
    padding: 0;
    background: var(--bg-white);
}

.cart-footer {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: flex;
    align-items: center;
    background: var(--bg-white);
    padding: 10px var(--page-px);
    border-top: 1px solid var(--border-light);
    z-index: 50;
    gap: 12px;
    box-shadow: 0 -1px 6px rgba(0,0,0,0.04);
}

.cart-select-all {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    color: var(--text-secondary);
}

.cart-total {
    flex: 1;
    text-align: right;
    font-size: 13px;
    color: var(--text-secondary);
}

.total-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--price);
}

.cart-checkout-btn {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(255,107,53,0.25);
}

.cart-checkout-btn:active {
    background: var(--primary-dark);
}

.cart-checkout-btn.disabled {
    background: #DEDEE3;
    box-shadow: none;
    pointer-events: none;
}

/* ===================== Profile Page ===================== */
.profile-header {
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
    padding-bottom: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    margin: 0 calc(-1 * var(--page-px));
    box-shadow: var(--shadow-sm);
}

.profile-bg {
    height: 44px;
    background: linear-gradient(160deg, var(--primary) 0%, #FF8C5A 40%, #FFB088 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.25);
}

.profile-bg::before {
    content: '';
    position: absolute;
    right: -16px;
    top: -30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.10);
}

.profile-bg::after {
    content: '';
    position: absolute;
    right: 40px;
    top: -18px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.profile-top-bar {
    position: relative;
    z-index: 2;
    height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 18px 0 10px;
    color: #fff;
}

.profile-top-bar .ptb-back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.profile-top-bar .ptb-back:active {
    opacity: 0.5;
}

.profile-top-bar .ptb-back svg {
    width: 22px;
    height: 22px;
}

.profile-top-bar .ptb-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.92;
    flex: 1;
    text-align: center;
}

.profile-top-bar .ptb-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.profile-top-bar .ptb-icon:active {
    opacity: 0.5;
}

.profile-top-bar .ptb-icon svg {
    width: 20px;
    height: 20px;
}

.profile-info {
    text-align: center;
    margin-top: 1px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--bg-white);
    margin: 0 auto 8px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.profile-id {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 10px;
    padding: 0 20px;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 3px;
}

.profile-referrer {
    text-align: center;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 8px;
    padding-bottom: 12px;
}

/* ===================== Section Card ===================== */
.section-card {
    background: var(--bg-card);
    margin: 14px 0;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-card);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.section-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.section-more {
    font-size: 12px;
    color: var(--text-light);
    cursor: pointer;
}

/* ===================== Order Icons ===================== */
.order-icons {
    display: flex;
    justify-content: space-around;
}

.order-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    gap: 6px;
}

.oi-icon {
    font-size: 26px;
}

.oi-label {
    font-size: 11px;
    color: var(--text-secondary);
}

.oi-badge {
    position: absolute;
    top: -6px;
    right: 2px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    padding: 0 4px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(250,81,81,0.2);
    display: none;
}

.oi-badge.show {
    display: block;
}

/* ===================== Menu Grid ===================== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px 0;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 4px;
    cursor: pointer;
    border-radius: var(--radius-mini);
    transition: background 0.15s;
}

.menu-item:active {
    background: var(--bg);
}

.menu-icon {
    font-size: 26px;
    margin-bottom: 5px;
}

.menu-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
}

/* ===================== Service Entries ===================== */
.service-entries {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-entry {
    display: flex;
    align-items: center;
    padding: 14px 0;
    cursor: pointer;
    gap: 12px;
    border-bottom: 1px solid var(--border-light);
}

.service-entry:last-child {
    border-bottom: none;
}

.service-entry:active {
    background: #fafafd;
    margin: 0 -16px;
    padding: 14px 16px;
}

.se-icon {
    font-size: 30px;
    flex-shrink: 0;
}

.se-info {
    flex: 1;
}

.se-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.se-desc {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.se-arrow {
    font-size: 20px;
    color: var(--text-hint);
}

/* ===================== Sub Pages ===================== */
.sub-page {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background: var(--bg);
    z-index: 300;
    overflow-y: auto;
}

.sub-header {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    padding: 13px var(--page-px);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.back-btn {
    font-size: 26px;
    cursor: pointer;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    flex-shrink: 0;
    border-radius: 50%;
}

.back-btn:active {
    background: var(--bg);
}

.sub-header-title {
    font-size: 17px;
    font-weight: 700;
    flex: 1;
    text-align: center;
    margin-right: 34px;
}

.sub-content {
    padding: 14px var(--page-px);
    padding-bottom: 30px;
}

.sub-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    transition: transform 0.15s;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.sub-card:active {
    transform: scale(0.98);
}

.sub-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text);
}

.sub-card-desc {
    font-size: 12px;
    color: var(--text-light);
}

.sub-card-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--text-hint);
}

/* ===================== Detail Page ===================== */
.detail-content {
    padding: 16px var(--page-px);
}

.detail-article {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px 18px;
    box-shadow: var(--shadow-card);
}

.detail-article h2 {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text);
}

.detail-article .detail-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 18px;
    display: flex;
    gap: 14px;
}

.detail-article .detail-body {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text);
}

.detail-article .detail-body p {
    margin-bottom: 10px;
}

/* ===================== Content List ===================== */
.content-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.content-list-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 14px 16px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.content-list-item:active {
    background: var(--bg);
}

.content-list-item .cli-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
}

.content-list-item .cli-meta {
    font-size: 11px;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-list-item .cli-tag {
    display: inline-block;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-right: 6px;
    font-weight: 500;
}

.tag-top {
    background: #FFF3ED;
    color: var(--primary);
}

.tag-new {
    background: var(--accent-light);
    color: var(--accent);
}

/* ===================== Area Settings ===================== */
.area-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.area-item {
    display: flex;
    align-items: center;
    padding: 13px 0;
    gap: 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
}

.area-item .check-icon {
    font-size: 22px;
    flex-shrink: 0;
    color: var(--text-hint);
    transition: color 0.15s;
}

.area-item .check-icon.checked {
    color: var(--primary);
}

.area-item .area-name {
    flex: 1;
    font-size: 14px;
    color: var(--text);
}

/* ===================== Grid Management ===================== */
.grid-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
}

.grid-card .grid-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.grid-card .grid-info {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.grid-card .grid-tag {
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-weight: 500;
}

/* ===================== Modal ===================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-box {
    background: var(--bg-card);
    border-radius: 16px;
    width: 88%;
    max-width: 360px;
    max-height: 82vh;
    overflow-y: auto;
    animation: slideUp 0.25s ease;
    box-shadow: var(--shadow-float);
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.modal-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.modal-close {
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-light);
}

.modal-close:active {
    background: var(--bg);
}

.modal-body {
    padding: 20px;
}

/* 信息行（店铺详情等） */
.info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.info-row-text {
    flex: 1;
    min-width: 0;
}

.info-row-label {
    font-size: 11px;
    color: var(--text-light);
}

.info-row-value {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.info-row-extra {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    flex-shrink: 0;
}

/* 列表行（订单、动态等） */
.content-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
}

.content-list-item:last-child {
    border-bottom: none;
}

.content-list-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.content-list-info {
    flex: 1;
    min-width: 0;
}

.content-list-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-list-desc {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.content-list-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.badge-tag {
    background: var(--primary-bg);
    color: var(--primary);
}

.badge-done {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-pending {
    background: #fff3e0;
    color: #e65100;
}

/* 视频播放模态 */
.video-player {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-mini);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
    cursor: pointer;
    margin-bottom: 12px;
}

.video-player::after {
    content: '▶';
    position: absolute;
    color: #fff;
    font-size: 28px;
    background: rgba(0,0,0,0.5);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.video-info {
    padding: 0 4px;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.video-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-light);
}

/* 发布表单 */
.publish-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.publish-form textarea {
    width: 100%;
    min-height: 100px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-mini);
    padding: 12px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
}

.publish-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* 聊天弹窗 */
.chat-box {
    display: flex;
    flex-direction: column;
    max-height: 75vh;
}

.chat-messages {
    flex: 1;
    min-height: 280px;
    max-height: 50vh;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg);
}

.chat-msg {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    animation: fadeIn 0.15s;
}

.chat-msg.mine {
    align-self: flex-end;
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-msg.other {
    align-self: flex-start;
    background: #fff;
    color: var(--text);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.chat-msg .time {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 4px;
}

.chat-input-bar {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-card);
    box-sizing: border-box;
}

.chat-input {
    flex: 1;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 8px 14px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary);
}

.chat-send-btn {
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

.chat-send-btn:active {
    background: var(--primary-dark);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-state-text {
    font-size: 14px;
}

/* ===================== Form ===================== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-mini);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    background: var(--bg);
    color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: var(--bg-white);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.btn-primary {
    width: 100%;
    padding: 13px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(255,107,53,0.25);
}

.btn-primary:active {
    background: var(--primary-dark);
}

.btn-outline {
    width: 100%;
    padding: 13px;
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

/* ===================== Toast ===================== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.78);
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-size: 14px;
    z-index: 999;
    animation: toastIn 0.3s;
    white-space: nowrap;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ===================== Empty State ===================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-icon {
    font-size: 52px;
    margin-bottom: 14px;
    opacity: 0.5;
}

.empty-text {
    font-size: 14px;
    margin-bottom: 18px;
}

.empty-btn {
    display: inline-block;
    padding: 10px 28px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255,107,53,0.2);
}

/* ===================== Publish Page ===================== */
.publish-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 12px 0 20px;
}

.publish-type-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 18px 10px;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: transform 0.15s;
}

.publish-type-item:active {
    transform: scale(0.96);
}

.publish-type-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.publish-type-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.publish-type-desc {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}

/* ===================== Category Page (新设计) ===================== */
.cat-page-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px var(--page-px) 12px;
    background: var(--bg-card);
    position: sticky;
    top: 0;
    z-index: 50;
}

.cat-page-brand {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
    cursor: pointer;
}

.cat-page-brand .brand-icon {
    font-size: 18px;
}

.cat-page-search {
    flex: 1;
    height: 34px;
    background: var(--bg);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    color: var(--text-light);
    font-size: 13px;
    cursor: pointer;
}

.cat-page-search .search-icon {
    width: 14px;
    height: 14px;
    color: var(--text-light);
    flex-shrink: 0;
}

.cat-page-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 18px 4px;
    margin-bottom: var(--section-gap);
    box-shadow: var(--shadow-card);
}

.cat-page-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    cursor: pointer;
    border-radius: var(--radius-mini);
    transition: background 0.15s, transform 0.1s;
}

.cat-page-item:active {
    transform: scale(0.96);
}

.cat-page-item.active {
    background: linear-gradient(135deg, rgba(255,107,53,0.12) 0%, rgba(255,140,90,0.08) 100%);
}

.cat-page-item.active .cat-page-item-name {
    color: var(--primary);
    font-weight: 700;
}

.cat-page-item.active .cat-page-item-icon {
    box-shadow: 0 0 0 2px var(--primary), 0 2px 8px rgba(255,107,53,0.25);
}

.cat-page-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 5px;
    line-height: 1;
}

.cat-page-item-name {
    font-size: 11px;
    color: var(--text);
    text-align: center;
    font-weight: 500;
}

.cat-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 4px 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.cat-section-title .cst-icon {
    color: var(--primary);
    font-size: 14px;
}

.cat-section-title .cst-text {
    font-weight: 700;
}

.cat-filter-chip {
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: linear-gradient(135deg, rgba(255,107,53,0.10) 0%, rgba(255,140,90,0.06) 100%);
    border: 1px solid rgba(255,107,53,0.25);
    border-radius: 12px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

.cat-filter-chip:active {
    transform: scale(0.96);
}

.cat-filter-chip.active {
    background: linear-gradient(135deg, var(--primary) 0%, #FF8C5A 100%);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(255,107,53,0.30);
}

.cat-filter-chip .cfc-icon {
    font-size: 12px;
    line-height: 1;
}

.cat-filter-chip .cfc-text {
    letter-spacing: 0.5px;
}

.cat-filter-chip .cfc-close {
    margin-left: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.30);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
}

.cat-shop-counter {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-light);
    font-weight: 400;
}

.cat-end-tip {
    text-align: center;
    color: var(--text-light);
    font-size: 12px;
    padding: 18px 0 6px;
}

/* ===================== Shop List (商家列表) ===================== */
.shop-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 0 12px;
}

.shop-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow-card);
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
}

.shop-card:active {
    transform: scale(0.99);
    box-shadow: var(--shadow-sm);
}

.shop-card-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shop-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
}

.shop-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-card-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.shop-card-rating .star {
    color: #ff9500;
    font-size: 12px;
}

.shop-card-rating .score {
    color: #ff9500;
    font-weight: 600;
}

.shop-card-tag {
    font-size: 12px;
    color: var(--text-secondary);
    padding-left: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: -2px;
}

.shop-card-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 44px;
    margin-top: auto;
    font-size: 11px;
    color: var(--text-light);
}

.shop-card-stat {
    display: flex;
    align-items: center;
    gap: 2px;
}

.shop-card-distance {
    margin-left: auto;
    color: var(--text-light);
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.shop-card-right {
    width: 88px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 4px;
}

.shop-card-cover {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-mini);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    position: relative;
    overflow: hidden;
}

.shop-card-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.04));
}

.shop-card-price {
    display: flex;
    align-items: baseline;
    gap: 1px;
    color: var(--primary);
    font-weight: 700;
}

.shop-card-price .yen {
    font-size: 11px;
    font-weight: 600;
}

.shop-card-price .num {
    font-size: 18px;
    line-height: 1;
}

.shop-card-price .plus {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
    margin-left: 2px;
}

.shop-card-price.negotiable {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 500;
}

/* ===================== Checkout / Bill / Order ===================== */
.checkout-address {
    background: var(--bg-card);
    margin: 14px 0;
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.checkout-address .addr-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.checkout-address .addr-phone {
    margin-left: 12px;
    color: var(--text-secondary);
}

.checkout-address .addr-detail {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
}

.checkout-items {
    background: var(--bg-card);
    margin: 14px 0;
    border-radius: var(--radius);
    padding: 0 16px;
    box-shadow: var(--shadow-sm);
}

.checkout-items .checkout-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    gap: 10px;
    border-bottom: 1px solid var(--border-light);
}

.checkout-items .checkout-item:last-child {
    border-bottom: none;
}

.checkout-items .coi-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-mini);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.checkout-items .coi-info {
    flex: 1;
}

.checkout-items .coi-name {
    font-size: 13px;
    color: var(--text);
}

.checkout-items .coi-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--price);
    margin-top: 4px;
}

.checkout-total-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    padding: 13px var(--page-px);
    border-top: 1px solid var(--border-light);
    z-index: 10;
    box-shadow: 0 -1px 6px rgba(0,0,0,0.04);
}

.checkout-total-bar .total-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.checkout-total-bar .total-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--price);
}

.checkout-total-bar .pay-btn {
    background: var(--primary);
    color: white;
    padding: 12px 36px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(255,107,53,0.3);
}

.checkout-total-bar .pay-btn:active {
    background: var(--primary-dark);
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
}

.order-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
}

.order-card .order-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.order-card .order-status {
    color: var(--primary);
    font-weight: 600;
}

.order-card .order-product {
    display: flex;
    gap: 10px;
    align-items: center;
}

.order-card .op-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-mini);
    background: var(--bg);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.order-card .op-info {
    flex: 1;
}

.order-card .op-name {
    font-size: 13px;
    margin-bottom: 4px;
    color: var(--text);
}

.order-card .op-price {
    font-size: 13px;
    color: var(--text-secondary);
}

.order-card .op-qty {
    color: var(--text-light);
    margin-left: 8px;
}

.order-card .order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.order-card .order-total {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.order-card .order-actions {
    display: flex;
    gap: 8px;
}

.order-card .oa-btn {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-secondary);
    transition: all 0.15s;
    font-weight: 500;
}

.order-card .oa-btn.primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.bill-list {
    display: flex;
    flex-direction: column;
}

.bill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.bill-item:last-child {
    border-bottom: none;
}

.bill-item .bill-desc {
    font-size: 14px;
    color: var(--text);
}

.bill-item .bill-date {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 3px;
}

.bill-item .bill-amount {
    font-size: 16px;
    font-weight: 700;
}

.bill-item .bill-amount.income {
    color: var(--success);
}

.bill-item .bill-amount.expense {
    color: var(--text);
}

/* ===================== Responsive ===================== */
@media (max-width: 360px) {
    .product-grid {
        gap: 8px;
    }
    .product-card .prod-img {
        height: 96px;
    }
    .product-card .prod-img-label {
        font-size: 12px;
    }
    .product-card .prod-img-emoji {
        font-size: 34px;
    }
    .product-card .price-now {
        font-size: 15px;
    }
    .brand-text {
        font-size: 14px;
    }
}