/* 移动端商城基础样式 */
:root {
    --brand: #f37021;
    --brand-dark: #d85a0f;
    --brand-soft: #fff4ec;
    --text: #333;
    --text-sub: #666;
    --text-muted: #999;
    --line: #f0f0f0;
    --bg: #f5f5f5;
    --card: #fff;
    --radius: 12px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background-color: var(--bg);
}

/* 清除浮动 */
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* 通用样式 */
.container {
    max-width: 750px;
    margin: 0 auto;
    background-color: var(--bg);
    min-height: 100vh;
}

/* 头部样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    max-width: 750px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f37021 0%, #ff9a56 100%);
    border-bottom: none;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.header-content {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 15px;
}

.header-title {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}

.header-left, .header-right {
    min-width: 60px;
    display: flex;
    align-items: center;
}

.header-left {
    justify-content: flex-start;
}

.header-right {
    justify-content: flex-end;
    gap: 2px;
}

.header-btn {
    background: none;
    border: none;
    font-size: 14px;
    color: #fff;
    padding: 5px;
    text-decoration: none;
}

.header-btn.header-share {
    width: 32px;
    height: 32px;
    padding: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='2.4'/%3E%3Ccircle cx='6' cy='12' r='2.4'/%3E%3Ccircle cx='18' cy='19' r='2.4'/%3E%3Cpath d='M8.2 13.1l7.6 4.2M15.8 6.7l-7.6 4.2'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}

.header-btn.header-search {
    width: 32px;
    height: 32px;
    padding: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}

.header-back {
    width: 32px;
    height: 32px;
    padding: 0;
    color: transparent;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5L8 12l7 7'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}

/* 搜索框样式 */
.search-box {
    padding: 10px 15px;
    background-color: #fff;
}

.search-input {
    width: 100%;
    height: 36px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 18px;
    padding: 0 15px;
    font-size: 14px;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

/* 内容区域 */
.content {
    padding-top: 44px;
    padding-bottom: 62px;
}

/* 加载 */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #fff;
    border-top: 1px solid #f2f2f2;
    max-width: 750px;
    margin: 0 auto;
    padding-bottom: env(safe-area-inset-bottom);
}

.tab-bar-content {
    display: flex;
    height: 52px;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    text-decoration: none;
    font-size: 11px;
}

.tab-item.active {
    color: var(--brand);
}

.tab-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 3px;
    background-color: #999;
    -webkit-mask: var(--tab-icon) center / contain no-repeat;
    mask: var(--tab-icon) center / contain no-repeat;
}

.tab-item.active .tab-icon {
    background-color: var(--brand);
}

.icon-home { --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11.5L12 4l8 7.5V20a1 1 0 0 1-1 1h-5v-6H10v6H5a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.icon-category { --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='4' y='13' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='13' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); }
.icon-store { --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8l1.2-4h13.6L20 8M4 8h16v2a3 3 0 0 1-3 3 3 3 0 0 1-3-3 3 3 0 0 1-3 3 3 3 0 0 1-3-3 3 3 0 0 1-3 3 3 3 0 0 1-3-3V8zM6 13v7h12v-7'/%3E%3C/svg%3E"); }
.icon-order { --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='4' width='12' height='17' rx='2'/%3E%3Cpath d='M9 4.5V3h6v1.5M9 10h6M9 14h6M9 18h4'/%3E%3C/svg%3E"); }
.icon-user { --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 19.5c1.2-3.2 3.7-5 7-5s5.8 1.8 7 5'/%3E%3C/svg%3E"); }

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #f37021;
    color: #fff;
    border-radius: 20px;
}

.btn-primary:hover {
    background-color: #d85a0f;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #666;
    border-radius: 20px;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 0;
    margin-bottom: 8px;
    overflow: hidden;
    box-shadow: none;
}

.card-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.card-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.card-body {
    padding: 15px;
}

.card-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

/* 列表样式 */
.list {
    background-color: #fff;
    margin: 0 0 8px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
    background: #f0f0f0;
    flex-shrink: 0;
}

.list-item-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.list-item-desc {
    font-size: 12px;
    color: #999;
}

.list-item-right {
    color: #999;
    font-size: 14px;
}

/* 商品卡片 */
.goods-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.goods-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.goods-info {
    padding: 10px;
}

.goods-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.goods-price {
    font-size: 16px;
    color: #f37021;
    font-weight: 500;
}

.goods-original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-left: 5px;
}

.goods-sales {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* 轮播图：块级自适应，避免 width:100% 叠加左右 margin 撑出横向滚动 */
.banner {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 140px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    touch-action: pan-y;
    background: #f5f5f5;
}

.banner-track {
    display: flex;
    height: 100%;
    will-change: transform;
}

.banner-item {
    flex: 0 0 auto;
    height: 100%;
}

.banner-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.banner-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.banner-dot.active {
    background-color: #fff;
}

/* 分类导航 */
.category-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px 15px;
    background-color: #fff;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.category-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.category-name {
    font-size: 12px;
    text-align: center;
}

/* 价格样式 */
.price {
    color: #f37021;
    font-weight: 500;
}

.price-large {
    font-size: 18px;
}

.price-medium {
    font-size: 16px;
}

.price-small {
    font-size: 14px;
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 10px;
    background-color: #f37021;
    color: #fff;
}

.badge-secondary {
    background-color: #999;
}

/* 加载更多 */
.load-more {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #f3f3f3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8c8c8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='6' width='16' height='13' rx='2'/%3E%3Cpath d='M4 10h16M9 6V5a3 3 0 0 1 6 0v1'/%3E%3C/svg%3E") center / 36px 36px no-repeat;
}

.empty-text {
    font-size: 14px;
    margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 375px) {
    .category-nav {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 15px 10px;
    }
    
    .category-icon {
        width: 35px;
        height: 35px;
    }
    
    .category-name {
        font-size: 11px;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* 工具类 */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: #f37021;
}

.text-secondary {
    color: #999;
}

.text-success {
    color: #52c41a;
}

.text-warning {
    color: #faad14;
}

.text-danger {
    color: #ff4d4f;
}

.mt-10 {
    margin-top: 10px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.ml-10 {
    margin-left: 10px;
}

.mr-10 {
    margin-right: 10px;
}

.p-10 {
    padding: 10px;
}

.p-15 {
    padding: 15px;
}

.p-20 {
    padding: 20px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(243, 112, 33, 0.18);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ui-icon {
    width: 22px;
    height: 22px;
    background-color: currentColor;
    -webkit-mask: var(--ui-icon) center / contain no-repeat;
    mask: var(--ui-icon) center / contain no-repeat;
}

.icon-unpaid { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.icon-undeliver { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5L12 4l9 4.5-9 4.5L3 8.5z'/%3E%3Cpath d='M3 8.5V16l9 4.5 9-4.5V8.5M12 13v8.5'/%3E%3C/svg%3E"); }
.icon-unreceive { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8h11v9H2zM13 11h5l3 3v3h-8M6 19.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm11 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z'/%3E%3C/svg%3E"); }
.icon-finished { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M8.5 12.2l2.4 2.4 4.6-5'/%3E%3C/svg%3E"); }
.icon-aftersale { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12a8 8 0 0 1 13.5-5.8L20 8'/%3E%3Cpath d='M20 4v4h-4'/%3E%3Cpath d='M20 12a8 8 0 0 1-13.5 5.8L4 16'/%3E%3Cpath d='M4 20v-4h4'/%3E%3C/svg%3E"); }
.icon-cart { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h1.5L8 16h10l2-8H7'/%3E%3Ccircle cx='9.5' cy='19.5' r='1.3'/%3E%3Ccircle cx='17' cy='19.5' r='1.3'/%3E%3C/svg%3E"); }
.icon-poster { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Crect x='7' y='7' width='4' height='4'/%3E%3Crect x='13' y='7' width='4' height='4'/%3E%3Crect x='7' y='13' width='4' height='4'/%3E%3Cpath d='M13 13h4v4h-4z'/%3E%3C/svg%3E"); }
.icon-withdraw { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M7 12h.01M17 12h.01'/%3E%3C/svg%3E"); }
.icon-stats { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V5M4 19h16M8 16v-5M12 16V8M16 16v-8'/%3E%3C/svg%3E"); }
.icon-video { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='6' width='12' height='12' rx='2'/%3E%3Cpath d='M16 10l5-2.5v9L16 14z'/%3E%3C/svg%3E"); }
.icon-article { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4h8l4 4v12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z'/%3E%3Cpath d='M15 4v4h4M8 12h8M8 16h6'/%3E%3C/svg%3E"); }
.icon-moment { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='7' height='7' rx='1.2'/%3E%3Crect x='13.5' y='3.5' width='7' height='7' rx='1.2'/%3E%3Crect x='3.5' y='13.5' width='7' height='7' rx='1.2'/%3E%3Cpath d='M14 17h6M17 14v6'/%3E%3C/svg%3E"); }
.icon-address { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-5.8 7-11a7 7 0 1 0-14 0c0 5.2 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.2'/%3E%3C/svg%3E"); }
.icon-about { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 11v6M12 8h.01'/%3E%3C/svg%3E"); }
.icon-logout { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 7V5a2 2 0 0 1 2-2h7v18h-7a2 2 0 0 1-2-2v-2M4 12h11M12 8l4 4-4 4'/%3E%3C/svg%3E"); }
.icon-distribution { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='6' r='2.2'/%3E%3Ccircle cx='6' cy='17' r='2.2'/%3E%3Ccircle cx='18' cy='17' r='2.2'/%3E%3Cpath d='M12 8.2v2.2M12 10.4L6.8 15M12 10.4l5.2 4.6'/%3E%3C/svg%3E"); }
.icon-hot { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c1.8 3.2-.6 4.6.2 8.2 2.6-1.2 5.6-3 5.6-7.2 2.8 3.6 2 9.2-1.6 12.2-2.6 2.2-6.6 2.2-8.8-.6-2-2.6-1.2-7.4 1.8-10.4-.2 2.6 1.4 3.8 3.4 4C11.8 7.4 11.6 5.4 12 3z'/%3E%3C/svg%3E"); }
.icon-coupon { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5A2.5 2.5 0 0 0 6.5 11 2.5 2.5 0 0 0 4 13.5V18a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-4.5A2.5 2.5 0 0 0 17.5 11 2.5 2.5 0 0 0 20 8.5V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2z'/%3E%3Cpath d='M14 8v8'/%3E%3C/svg%3E"); }
.icon-score { --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='10' width='17' height='10.5' rx='1.8'/%3E%3Cpath d='M12 10v10.5M3.5 14h17'/%3E%3Cpath d='M12 10C9.6 6.4 6.6 6 5.8 7.8 5 9.6 8.4 11.6 12 10z'/%3E%3Cpath d='M12 10c2.4-3.6 5.4-4 6.2-2.2.8 1.8-2.6 3.8-6.2 2.2z'/%3E%3C/svg%3E"); }

body.no-tab .content {
    padding-bottom: 20px;
}

body.has-bottom-bar .content,
body.no-tab.has-bottom-bar .content {
    padding-bottom: 70px;
}

body.no-tab .bottom-bar {
    bottom: 0;
}

.app-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 9999;
    display: none;
    max-width: 80%;
    text-align: center;
}

.app-toast.show {
    display: block;
}

.app-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.app-loading[style*="block"] {
    display: flex !important;
}

.page-main {
    min-height: calc(100vh - 94px);
}

body.no-tab .page-main {
    min-height: calc(100vh - 44px);
}

.media-card {
    display: flex;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    margin: 0 0 8px;
    box-shadow: none;
}

.media-card img,
.media-cover {
    width: 96px;
    height: 96px;
    object-fit: cover;
    background: #f0f0f0;
    flex-shrink: 0;
}

.media-body {
    padding: 12px;
    flex: 1;
}

.media-title {
    font-size: 15px;
    color: #333;
    margin-bottom: 6px;
}

.media-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
}

.store-card {
    background: #fff;
    margin: 0 0 8px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.store-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: #f5f5f5;
}

.store-card .store-info {
    padding: 12px 15px 16px;
}

.store-card .store-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.store-card .store-meta {
    font-size: 12px;
    color: #999;
    line-height: 1.6;
}

.article-html,
.store-html {
    padding: 0;
    margin: 0;
    background: #fff;
    border-radius: 0;
    line-height: 1.75;
    color: #333;
    overflow: hidden;
}

.article-html img,
.article-html video,
.article-html iframe,
.store-html img,
.store-html video,
.store-html iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
}

[data-bg] {
    background-color: #f3f3f3;
}

.no-save,
.no-save-media img,
.no-save-media video {
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}

.no-copy,
.no-copy * {
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none;
}

.article-html table,
.store-html table {
    width: 100% !important;
    max-width: 100%;
}

.order-tabs {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 44px;
    z-index: 100;
}

.order-tab {
    flex: 1;
    text-align: center;
    padding: 12px 4px;
    font-size: 13px;
    color: #666;
    position: relative;
}

.order-tab.active {
    color: var(--brand);
    font-weight: 600;
}

.order-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: #f37021;
}

.share-sheet {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
}

.share-sheet.show {
    display: block;
}

.share-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.share-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}

.share-title {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.share-actions {
    display: flex;
    justify-content: space-around;
    margin-bottom: 12px;
}

.share-action {
    text-align: center;
    font-size: 12px;
    color: #666;
}

.share-ico {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin: 0 auto 8px;
    background: #f5f5f5 center / 26px 26px no-repeat;
}

.share-ico.friend {
    background-color: #07c160;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8'%3E%3Cpath d='M8 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm8 2a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7zM2 20c.8-3.2 3.4-5 6-5s5.2 1.8 6 5m2-4c2.2 0 4.4 1.2 5.5 4'/%3E%3C/svg%3E");
}

.share-ico.moments {
    background-color: #07c160;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 4v8l5 3'/%3E%3C/svg%3E");
}

.share-ico.copy {
    background-color: #f37021;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8'%3E%3Crect x='8' y='8' width='11' height='12' rx='2'/%3E%3Cpath d='M5 16V5a2 2 0 0 1 2-2h9'/%3E%3C/svg%3E");
}

.share-cancel {
    text-align: center;
    padding: 12px;
    color: #999;
    border-top: 1px solid #f3f3f3;
}

.share-guide {
    position: fixed;
    inset: 0;
    z-index: 3100;
    display: none;
    background: rgba(0, 0, 0, 0.65);
}

.share-guide.show {
    display: block;
}

.share-guide-inner {
    padding: 18px 20px;
    color: #fff;
    text-align: right;
}

.share-guide-arrow {
    width: 46px;
    height: 46px;
    margin: 8px 12px 8px auto;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.share-guide-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.share-guide-btn {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid #fff;
    border-radius: 18px;
    font-size: 13px;
}