/* ========== 基础样式 ========== */
.consumer-layout {
    min-height: 100vh;
    background-color: #f5f5f5;
    padding-bottom: 60px;
}

/* ========== 顶部导航 ========== */
.top-header {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.back-btn {
    font-size: 20px;
    color: #333;
    text-decoration: none;
    width: 28px;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b35;
}

.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 20px;
    padding: 6px 12px;
}

.search-bar input {
    flex: 1;
    border: none;
    background: none;
    padding: 4px;
    font-size: 14px;
}

.search-bar .search-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #999;
}

.cart-icon {
    font-size: 20px;
    position: relative;
    color: #333;
    text-decoration: none;
}

.badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #ff4d4f;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

/* ========== 主内容区 ========== */
.main-content {
    padding: 12px;
}

/* ========== 轮播图 ========== */
.banner-section {
    margin-bottom: 12px;
}

.banner-slider {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 160px;
}

.banner-item {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    padding: 20px 16px 16px;
    color: white;
}

.banner-text h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.banner-text p {
    font-size: 12px;
    opacity: 0.9;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ddd;
}

.dot.active {
    background-color: #ff6b35;
}

/* ========== 快捷入口 ========== */
.quick-entry {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    background: white;
    border-radius: 8px;
    padding: 16px 8px;
    margin-bottom: 12px;
}

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

.entry-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.entry-item span:last-child {
    font-size: 12px;
}

/* ========== 公告栏 ========== */
.notice-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff8f5;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.notice-icon {
    font-size: 16px;
}

.notice-content {
    flex: 1;
    font-size: 12px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-more {
    font-size: 12px;
    color: #ff6b35;
}

/* ========== 区块标题 ========== */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-title h2 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.more-link {
    color: #999;
    font-size: 13px;
    text-decoration: none;
}

/* ========== 商品网格 ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:active {
    transform: scale(0.98);
}

.product-image {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    background-color: #f5f5f5;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    color: white;
}

.product-tag.hot {
    background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
}

.product-tag.new {
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
}

.product-info {
    padding: 10px;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-desc {
    font-size: 11px;
    color: #999;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 6px;
}

.product-price .price {
    font-size: 16px;
    font-weight: 700;
    color: #ff4d4f;
}

.product-price .price::before {
    content: '¥';
    font-size: 12px;
}

.product-price .original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.product-tags .tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    background-color: #fff0f6;
    color: #ff6b35;
}

.product-tags .tag.points {
    background-color: #f6ffed;
    color: #52c41a;
}

.product-sales {
    font-size: 11px;
    color: #999;
}

/* ========== 商家卡片 ========== */
.merchant-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.merchant-scroll::-webkit-scrollbar {
    display: none;
}

.merchant-card-mini {
    flex-shrink: 0;
    width: 100px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding: 10px;
}

.merchant-card-mini img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 6px;
}

.merchant-card-mini h4 {
    font-size: 12px;
    margin-bottom: 2px;
    color: #333;
}

.merchant-card-mini p {
    font-size: 11px;
    color: #ff6b35;
}

/* ========== 优势区块 ========== */
.benefits-section {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.benefits-section h3 {
    color: white;
    font-size: 16px;
    margin-bottom: 12px;
}

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

.benefit-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    color: white;
}

.benefit-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.benefit-item h4 {
    font-size: 13px;
    margin-bottom: 4px;
}

.benefit-item p {
    font-size: 11px;
    opacity: 0.9;
}

/* ========== 分类页面 ========== */
.category-page {
    display: flex;
    height: calc(100vh - 120px);
}

.category-sidebar {
    width: 90px;
    background: #f5f5f5;
    overflow-y: auto;
}

.category-sidebar ul {
    list-style: none;
}

.category-sidebar li {
    padding: 16px 8px;
    font-size: 13px;
    text-align: center;
    color: #666;
    border-left: 3px solid transparent;
}

.category-sidebar li.active {
    background: white;
    color: #ff6b35;
    border-left-color: #ff6b35;
    font-weight: 500;
}

.category-sidebar a {
    text-decoration: none;
    color: inherit;
}

.category-content {
    flex: 1;
    background: white;
    overflow-y: auto;
    padding: 12px;
}

.category-banner {
    width: 100%;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.category-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sub-category h3,
.category-products h3 {
    font-size: 14px;
    margin-bottom: 12px;
    color: #333;
}

.sub-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

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

.sub-category-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.sub-category-item span {
    font-size: 12px;
}

/* ========== 商品详情页 ========== */
.product-detail-page {
    background: #f5f5f5;
    min-height: calc(100vh - 120px);
}

.product-gallery {
    position: relative;
    background: white;
}

.gallery-slider {
    width: 100%;
    height: 300px;
    position: relative;
}

.gallery-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.gallery-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
}

.gallery-dots .dot.active {
    background-color: white;
}

.product-basic-info {
    background: white;
    padding: 16px;
    margin-bottom: 8px;
}

.product-basic-info .price {
    font-size: 24px;
    font-weight: 700;
    color: #ff4d4f;
    margin-bottom: 8px;
}

.product-basic-info .price::before {
    content: '¥';
    font-size: 16px;
}

.product-basic-info .original-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.product-basic-info .product-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-basic-info .product-subtitle {
    font-size: 13px;
    color: #999;
}

.product-specs {
    background: white;
    padding: 16px;
    margin-bottom: 8px;
}

.specs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.specs-row:last-child {
    border-bottom: none;
}

.specs-label {
    font-size: 14px;
    color: #666;
    width: 70px;
}

.specs-value {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.specs-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spec-option {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.spec-option.selected {
    border-color: #ff6b35;
    color: #ff6b35;
    background: #fff0f6;
}

.spec-arrow {
    color: #999;
}

.product-tabs {
    background: white;
    margin-bottom: 8px;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab-item.active {
    color: #ff6b35;
    border-bottom-color: #ff6b35;
}

.tabs-content {
    padding: 16px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.detail-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.detail-content img {
    width: 100%;
    border-radius: 8px;
    margin: 12px 0;
}

/* ========== 购物车 ========== */
.cart-page {
    background: #f5f5f5;
    min-height: calc(100vh - 120px);
}

.cart-list {
    background: white;
    margin-bottom: 8px;
}

.cart-item {
    display: flex;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    gap: 10px;
}

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

.cart-checkbox {
    width: 20px;
    height: 20px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cart-checkbox.checked {
    background: #ff6b35;
    border-color: #ff6b35;
    color: white;
}

.cart-item-image {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.4;
}

.cart-item-spec {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

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

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: #ff4d4f;
}

.cart-item-price::before {
    content: '¥';
    font-size: 12px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-control .btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    color: #666;
}

.quantity-control .value {
    font-size: 14px;
    color: #333;
    min-width: 20px;
    text-align: center;
}

.cart-footer {
    position: fixed;
    bottom: 56px;
    left: 0;
    right: 0;
    background: white;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f0f0f0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}

.cart-footer .select-all {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333;
}

.cart-footer .total {
    font-size: 14px;
    color: #333;
}

.cart-footer .total .price {
    font-size: 18px;
    font-weight: 700;
    color: #ff4d4f;
}

.cart-footer .checkout-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

/* ========== 结算页 ========== */
.checkout-page {
    background: #f5f5f5;
    min-height: calc(100vh - 120px);
}

.address-card {
    background: white;
    padding: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.address-icon {
    font-size: 24px;
}

.address-info {
    flex: 1;
}

.address-info .user {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.address-info .detail {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.address-arrow {
    color: #999;
}

.order-items {
    background: white;
    margin-bottom: 8px;
    padding: 16px;
}

.order-items h3 {
    font-size: 14px;
    margin-bottom: 12px;
    color: #333;
}

.order-item {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.order-item-image {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.order-item-spec {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

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

.order-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #ff4d4f;
}

.order-item-price::before {
    content: '¥';
    font-size: 12px;
}

.order-item-qty {
    font-size: 12px;
    color: #999;
}

.order-summary {
    background: white;
    margin-bottom: 8px;
    padding: 16px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 13px;
    color: #666;
}

.summary-item .value {
    color: #333;
}

.summary-item .value.highlight {
    color: #ff4d4f;
    font-weight: 600;
}

.checkout-footer {
    position: fixed;
    bottom: 56px;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f0f0f0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}

.checkout-footer .total {
    font-size: 14px;
    color: #666;
}

.checkout-footer .total .price {
    font-size: 18px;
    font-weight: 700;
    color: #ff4d4f;
}

.submit-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    color: white;
    padding: 10px 32px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

/* ========== 个人中心 ========== */
.profile-page {
    background: #f5f5f5;
    min-height: calc(100vh - 120px);
}

.profile-header {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    padding: 30px 16px 20px;
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.user-level {
    font-size: 12px;
    opacity: 0.9;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.stat-item {
    text-align: center;
}

.stat-item .value {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-item .label {
    font-size: 12px;
    opacity: 0.9;
}

.order-nav {
    background: white;
    margin-bottom: 8px;
    padding: 0 16px;
}

.order-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.order-nav-header h3 {
    font-size: 15px;
    color: #333;
}

.order-nav-header .more {
    font-size: 13px;
    color: #999;
}

.order-types {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding-bottom: 16px;
    gap: 8px;
}

.order-type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #333;
}

.order-type-item .icon {
    font-size: 24px;
    position: relative;
}

.order-type-item .badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ff4d4f;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

.order-type-item span {
    font-size: 12px;
}

.wallet-card {
    background: linear-gradient(135deg, #ffd666 0%, #ffe58f 100%);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 8px;
}

.wallet-card h3 {
    font-size: 15px;
    margin-bottom: 12px;
    color: #333;
}

.wallet-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.wallet-item {
    text-align: center;
}

.wallet-item .value {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #333;
}

.wallet-item .label {
    font-size: 12px;
    color: #666;
}

.menu-list {
    background: white;
    margin-bottom: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
}

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

.menu-item .icon {
    font-size: 20px;
    margin-right: 12px;
}

.menu-item .label {
    flex: 1;
    font-size: 14px;
}

.menu-item .arrow {
    color: #999;
}

/* ========== 逛逛页面 ========== */
.explore-page {
    background: #f5f5f5;
    min-height: calc(100vh - 120px);
}

.explore-header {
    background: white;
    padding: 12px 16px;
    margin-bottom: 8px;
}

.explore-tabs {
    display: flex;
    gap: 20px;
    overflow-x: auto;
}

.explore-tab {
    font-size: 14px;
    color: #666;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    cursor: pointer;
}

.explore-tab.active {
    color: #ff6b35;
    border-bottom-color: #ff6b35;
    font-weight: 500;
}

.content-feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.content-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.content-header {
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 10px;
}

.content-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.content-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-user {
    flex: 1;
}

.content-user .name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.content-user .time {
    font-size: 12px;
    color: #999;
}

.content-follow {
    padding: 4px 12px;
    border: 1px solid #ff6b35;
    border-radius: 14px;
    font-size: 12px;
    color: #ff6b35;
    background: white;
    cursor: pointer;
}

.content-body {
    padding: 0 12px 12px;
}

.content-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.content-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.content-images {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
}

.content-images.single {
    grid-template-columns: 1fr;
}

.content-images.double {
    grid-template-columns: repeat(2, 1fr);
}

.content-images.multiple {
    grid-template-columns: repeat(3, 1fr);
}

.content-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-footer {
    display: flex;
    align-items: center;
    padding: 12px;
    border-top: 1px solid #f0f0f0;
}

.content-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.content-action .icon {
    font-size: 18px;
}

/* ========== 底部导航 ========== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    border-top: 1px solid #f0f0f0;
    z-index: 100;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    text-decoration: none;
    color: #999;
    gap: 2px;
}

.nav-item.active {
    color: #ff6b35;
}

.nav-item .icon {
    font-size: 22px;
}

.nav-item span {
    font-size: 10px;
}

/* ========== 响应式 ========== */
@media (min-width: 768px) {
    .consumer-layout {
        max-width: 480px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }

    .bottom-nav {
        max-width: 480px;
        margin: 0 auto;
    }

    .cart-footer,
    .checkout-footer {
        max-width: 480px;
        margin: 0 auto;
    }
}

/* ========== 商家列表页 ========== */
.search-header {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-header .search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 8px 12px;
    gap: 6px;
}

.search-header .search-icon {
    font-size: 14px;
    color: #999;
}

.search-header .search-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 13px;
    outline: none;
}

.search-header .location {
    display: flex;
    align-items: center;
    gap: 4px;
    color: white;
    font-size: 13px;
}

.category-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px;
    background: white;
    margin-bottom: 8px;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tabs .tab-item {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
    background: #f5f5f5;
}

.category-tabs .tab-item.active {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    color: white;
}

.filter-bar {
    display: flex;
    gap: 4px;
    background: white;
    padding: 10px 12px;
    margin-bottom: 8px;
}

.filter-bar .filter-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 13px;
    color: #666;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
}

.filter-bar .filter-item:hover {
    background: #f5f5f5;
}

.filter-bar .filter-item .arrow {
    font-size: 10px;
}

.merchant-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.merchant-card {
    background: white;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.merchant-card:active {
    transform: scale(0.98);
}

.merchant-header {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.merchant-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.merchant-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.merchant-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.merchant-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.merchant-rating .stars {
    color: #ffc53d;
}

.merchant-rating .score {
    color: #ff6b35;
    font-weight: 600;
}

.merchant-rating .sales {
    color: #999;
}

.merchant-tags {
    display: flex;
    gap: 6px;
}

.merchant-tags .tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 3px;
}

.merchant-tags .tag.discount {
    background: #fff0f6;
    color: #ff6b35;
}

.merchant-tags .tag.points {
    background: #f6ffed;
    color: #52c41a;
}

.merchant-tags .tag.coupon {
    background: #fff7e6;
    color: #fa8c16;
}

.enter-shop-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 14px;
    font-size: 13px;
    cursor: pointer;
}

.merchant-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #999;
}

.merchant-goods {
    display: flex;
    gap: 8px;
}

.merchant-goods .goods-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.merchant-apply-banner {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: white;
    margin: 12px;
}

.merchant-apply-banner h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.merchant-apply-banner p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.merchant-apply-banner .apply-btn {
    background: white;
    color: #ff6b35;
    padding: 10px 28px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

/* ========== 商家详情页 ========== */
.merchant-detail-header {
    position: relative;
}

.merchant-cover {
    width: 100%;
    height: 150px;
    position: relative;
    overflow: hidden;
}

.merchant-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.merchant-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
}

.merchant-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.merchant-top-bar .back-btn {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    color: #333;
}

.merchant-actions {
    display: flex;
    gap: 8px;
}

.merchant-actions .action-btn {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
}

.merchant-header-info {
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    padding: 0 12px;
}

.merchant-header-info .merchant-avatar {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: white;
    padding: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.merchant-header-info .merchant-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
}

.merchant-header-info .merchant-name {
    font-size: 18px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    margin: 8px 0 4px;
}

.merchant-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: white;
}

.merchant-rating-row .stars {
    font-size: 12px;
}

.merchant-tags-row {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.merchant-tags-row .tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(255,255,255,0.95);
}

.shop-info-section {
    background: white;
    padding: 40px 12px 16px;
    margin-bottom: 8px;
}

.shop-statistics {
    display: flex;
    justify-content: space-around;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.shop-statistics .stat-item {
    text-align: center;
}

.shop-statistics .stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.shop-statistics .stat-label {
    font-size: 12px;
    color: #999;
}

.shop-contact {
    padding-top: 16px;
}

.shop-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.shop-contact .contact-item .icon {
    font-size: 16px;
}

.shop-contact .contact-item .distance {
    margin-left: auto;
    color: #ff6b35;
}

/* ========== 优惠买单 ========== */
.discount-pay-section {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
}

.pay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.pay-title-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 支付页面容器 */
.payment-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #fff8f5 0%, #f5f5f5 100%);
    padding-bottom: 20px;
}

.payment-content {
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.pay-icon {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pay-title-text {
    color: white;
}

.pay-title-text h4 {
    font-size: 20px;
    margin-bottom: 6px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.pay-title-text p {
    font-size: 13px;
    opacity: 0.95;
}

.pay-btn {
    background: white;
    color: #ff6b35;
    border: none;
    padding: 12px 28px;
    border-radius: 26px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.pay-btn:active {
    transform: scale(0.95);
}

.pay-amount-section {
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.2);
}

.amount-label {
    color: white;
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 600;
}

.amount-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.currency-symbol {
    color: white;
    font-size: 32px;
    font-weight: 700;
}

.amount-input {
    flex: 1;
    min-width: 120px;
    background: white;
    border: none;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 28px;
    font-weight: 700;
    color: #ff6b35;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.amount-input::placeholder {
    color: #ccc;
    font-weight: 400;
}

.amount-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.4);
    transform: scale(1.01);
}

.quick-amounts {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.quick-amount-btn {
    background: rgba(255,255,255,0.95);
    border: none;
    color: #ff6b35;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.quick-amount-btn:active {
    transform: scale(0.95);
    background: white;
}

.pay-benefits {
    display: flex;
    gap: 14px;
}

.benefit-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255,255,255,0.15);
    padding: 10px 14px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.benefit-icon {
    font-size: 18px;
}

/* ========== 支付页面 ========== */
.payment-header {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255,107,53,0.2);
}

.payment-back-btn,
.payment-close-btn {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.payment-back-btn:hover,
.payment-close-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.payment-back-btn:active,
.payment-close-btn:active {
    background: rgba(255,255,255,0.4);
    transform: scale(0.95);
}

.payment-back-btn:focus,
.payment-close-btn:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.4);
}

.payment-header h3 {
    color: white;
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* 商家迷你卡片 */
.merchant-mini-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.mini-merchant-logo {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mini-merchant-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
    font-weight: 600;
}

.mini-merchant-info p {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* 支付详情Tab切换 */
.payment-tabs {
    background: white;
    display: flex;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 48px;
    z-index: 9;
}

.payment-tab-item {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.payment-tab-item.active {
    color: #ff6b35;
    font-weight: 600;
}

.payment-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #ff6b35;
    border-radius: 2px;
}

/* 支付Tab内容 */
.payment-tab-content {
    padding: 16px;
    display: none;
}

.payment-tab-content.active {
    display: block;
}

/* 商家迷你卡片 */
.merchant-mini-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.mini-merchant-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.mini-merchant-info h4 {
    font-size: 15px;
    margin-bottom: 6px;
}

.mini-merchant-info p {
    font-size: 13px;
    color: #666;
}

/* 金额展示 */
.payment-amount-display {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    margin-bottom: 12px;
}

.display-amount-label {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin-bottom: 8px;
}

.display-amount-value {
    color: white;
}

.display-amount-value .currency {
    font-size: 24px;
    font-weight: 600;
}

.display-amount-value .amount {
    font-size: 36px;
    font-weight: 700;
}

/* 支付方式 */
.payment-methods {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.method-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    position: relative;
    padding-left: 12px;
}

.method-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, #ff6b35 0%, #ff8f6b 100%);
    border-radius: 2px;
}

.method-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.method-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ff6b35 0%, #ff8f6b 100%);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.method-item.active::before {
    transform: scaleY(1);
}

.method-item input {
    display: none;
}

.method-item.active {
    border-color: #ff6b35;
    background: linear-gradient(135deg, #fff8f5 0%, #ffffff 100%);
    box-shadow: 0 2px 12px rgba(255,107,53,0.15);
}

.method-icon {
    font-size: 26px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.method-name {
    flex: 1;
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.method-check {
    color: #ff6b35;
    font-weight: 700;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 20px;
}

.method-item.active .method-check {
    opacity: 1;
    transform: scale(1);
}

/* 支付汇总 */
.payment-summary {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
}

.summary-row .label {
    color: #666;
    font-weight: 500;
}

.summary-row .value {
    color: #333;
    font-weight: 600;
}

.summary-row.discount .value {
    color: #ff4d4f;
    font-weight: 600;
}

.summary-row.total {
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
    margin-top: 8px;
}

.summary-row.total .label {
    font-size: 17px;
    color: #333;
    font-weight: 600;
}

.summary-row.total .value {
    font-size: 22px;
    font-weight: 700;
    color: #ff4d4f;
    letter-spacing: -0.5px;
}

/* 确认支付按钮 */
.confirm-pay-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(255,107,53,0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.confirm-pay-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.confirm-pay-btn:hover::before {
    left: 100%;
}

.confirm-pay-btn:active {
    transform: scale(0.98) translateY(1px);
    box-shadow: 0 4px 16px rgba(255,107,53,0.3);
}

.confirm-pay-btn:disabled {
    background: linear-gradient(135deg, #d9d9d9 0%, #e8e8e8 100%);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* 支付金额展示 */
.payment-amount-display {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(255,107,53,0.25);
    position: relative;
    overflow: hidden;
}

.payment-amount-display::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.display-amount-label {
    color: rgba(255,255,255,0.95);
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 500;
    position: relative;
}

.display-amount-value {
    color: white;
    position: relative;
}

.display-amount-value .currency {
    font-size: 28px;
    font-weight: 700;
    margin-right: 4px;
}

.display-amount-value .amount {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
}

/* 支付评价Tab */
.payment-review-summary {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

/* 优惠买单区域优化 */
.discount-pay-section {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    border-radius: 20px;
    padding: 24px 20px;
    margin-bottom: 16px;
    box-shadow: 0 8px 32px rgba(255,107,53,0.3);
    position: relative;
    overflow: hidden;
}

.discount-pay-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 50%);
}

.pay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}

.pay-title-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.score-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

.score-box .score {
    font-size: 36px;
    font-weight: 700;
    color: #ff6b35;
}

.score-box .score-label {
    font-size: 14px;
    color: #666;
}

.review-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.review-tag {
    background: #f5f5f5;
    color: #666;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.review-tag.active {
    background: #fff8f5;
    color: #ff6b35;
    font-weight: 600;
}

/* 支付评价列表 */
.payment-review-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.payment-review-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.reviewer-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-details {
    flex: 1;
}

.reviewer-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.reviewer-stars {
    font-size: 13px;
}

.review-date {
    font-size: 12px;
    color: #999;
}

.review-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.review-images {
    display: flex;
    gap: 8px;
}

.review-images img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.load-more-reviews {
    width: 100%;
    background: white;
    color: #ff6b35;
    border: 1px solid #ff6b35;
    padding: 12px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-reviews:active {
    background: #fff8f5;
}

/* 支付商家信息Tab */
.payment-merchant-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.merchant-logo-large {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.merchant-info-text h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.merchant-stars {
    font-size: 14px;
    margin-bottom: 8px;
}

.merchant-stars .score {
    color: #ff6b35;
    font-weight: 600;
    margin-left: 4px;
}

.merchant-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.merchant-tags .tag {
    background: #fff8f5;
    color: #ff6b35;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* 支付商家统计 */
.payment-merchant-stats {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.stat-row {
    display: flex;
    gap: 20px;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-num {
    font-size: 20px;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 6px;
}

.stat-desc {
    font-size: 13px;
    color: #666;
}

/* 支付商家详情 */
.payment-merchant-details {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.detail-text {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.detail-action {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

/* 支付商家描述 */
.payment-merchant-desc {
    background: white;
    border-radius: 12px;
    padding: 16px;
}

.desc-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.payment-merchant-desc p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.section-box {
    background: white;
    padding: 16px 12px;
    margin-bottom: 8px;
}

.section-box .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-box .section-header h3 {
    font-size: 15px;
    color: #333;
    margin: 0;
}

.section-box .more-link {
    font-size: 13px;
    color: #ff6b35;
    text-decoration: none;
}

.coupon-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.coupon-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #fff7e6 0%, #fffbe6 100%);
    border-radius: 8px;
    border: 1px dashed #ffd591;
}

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

.coupon-value {
    font-size: 20px;
    font-weight: 700;
    color: #ff6b35;
    display: block;
}

.coupon-condition {
    font-size: 11px;
    color: #999;
}

.coupon-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.coupon-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.coupon-desc {
    font-size: 11px;
    color: #999;
}

.coupon-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
}

.merchant-tabs {
    display: flex;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.merchant-tabs .tab-item {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.merchant-tabs .tab-item.active {
    color: #ff6b35;
    border-bottom-color: #ff6b35;
    font-weight: 500;
}

.merchant-goods-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
}

.goods-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
}

.goods-card .goods-img {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    object-fit: cover;
}

.goods-card .goods-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.goods-card .goods-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.4;
}

.goods-card .goods-tags {
    display: flex;
    gap: 4px;
}

.goods-card .goods-tags .tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    background: #f0f0f0;
    color: #666;
}

.goods-card .goods-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.goods-card .goods-price-row .price {
    font-size: 16px;
    font-weight: 700;
    color: #ff4d4f;
}

.goods-card .goods-price-row .price::before {
    content: '¥';
    font-size: 12px;
}

.goods-card .goods-price-row .sales {
    font-size: 11px;
    color: #999;
}

.goods-card .add-cart-btn {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-summary {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.review-summary .summary-item {
    text-align: center;
}

.review-summary .summary-item .score {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b35;
    display: block;
    margin-bottom: 4px;
}

.review-summary .summary-item .label {
    font-size: 12px;
    color: #999;
}

.review-tags {
    display: flex;
    gap: 8px;
}

.review-tags .tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    background: #f5f5f5;
    color: #666;
}

.review-list {
    padding-top: 16px;
}

.review-item {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.review-user-info {
    flex: 1;
}

.review-user-info .review-user {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.review-user-info .review-stars {
    font-size: 12px;
    color: #ffc53d;
}

.review-date {
    font-size: 12px;
    color: #999;
}

.review-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.review-images {
    display: flex;
    gap: 6px;
}

.review-images img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.review-footer {
    font-size: 12px;
    color: #999;
}

.shop-detail-info {
    padding: 12px 0;
}

.shop-detail-info .info-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.shop-detail-info .info-item:last-child {
    border-bottom: none;
}

.shop-detail-info .info-item .label {
    width: 80px;
    font-size: 13px;
    color: #999;
}

.shop-detail-info .info-item .value {
    flex: 1;
    font-size: 13px;
    color: #333;
}

/* ========== 商家入驻页 ========== */
.apply-advantages {
    background: white;
    padding: 16px;
    margin-bottom: 8px;
}

.apply-advantages h3 {
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
}

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

.advantage-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.advantage-item .icon {
    font-size: 24px;
}

.advantage-text h4 {
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
}

.advantage-text p {
    font-size: 11px;
    color: #999;
}

.apply-process {
    background: white;
    padding: 16px;
    margin-bottom: 8px;
}

.apply-process h3 {
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
}

.process-steps {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-item {
    flex: 1;
    text-align: center;
}

.step-item .step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    margin: 0 auto 6px;
}

.step-item .step-text {
    font-size: 11px;
    color: #666;
}

.step-arrow {
    color: #ddd;
    font-size: 16px;
}

.apply-form-section {
    background: white;
    padding: 16px;
}

.apply-form-section h3 {
    font-size: 15px;
    color: #333;
    margin-bottom: 16px;
}

.apply-form .form-group {
    margin-bottom: 16px;
}

.apply-form .form-group label {
    display: block;
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.apply-form .form-group input,
.apply-form .form-group select,
.apply-form .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.apply-form .form-group input:focus,
.apply-form .form-group select:focus,
.apply-form .form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
}

.upload-box {
    border: 2px dashed #e8e8e8;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.upload-box input[type="file"] {
    display: none;
}

.upload-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #999;
}

.upload-icon {
    font-size: 32px;
}

.upload-tip {
    font-size: 11px;
    color: #999;
    margin-top: 8px;
}

.form-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.agreement-box {
    margin: 16px 0;
}

.agreement-box .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
}

.agreement-box input[type="checkbox"] {
    margin-top: 2px;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* ========== 商家中心 ========== */
.merchant-center-header {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    padding: 16px;
}

.merchant-info-bar {
    display: flex;
    gap: 12px;
    align-items: center;
}

.merchant-info-bar .merchant-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
}

.merchant-header-details {
    flex: 1;
    color: white;
}

.merchant-header-details h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.merchant-status {
    display: flex;
    gap: 8px;
    align-items: center;
}

.merchant-status .status-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}

.merchant-status .status-badge.active {
    background: rgba(82, 196, 26, 0.2);
    color: #52c41a;
}

.merchant-status .merchant-level {
    font-size: 11px;
    opacity: 0.9;
}

.merchant-data-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 16px;
    background: white;
    margin-bottom: 8px;
}

.merchant-data-summary .data-card {
    text-align: center;
    padding: 12px 8px;
    background: #f9f9f9;
    border-radius: 8px;
}

.data-card .data-icon {
    font-size: 20px;
    margin-bottom: 6px;
}

.data-card .data-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.data-card .data-label {
    font-size: 11px;
    color: #999;
}

.todo-section {
    background: white;
    padding: 16px;
    margin-bottom: 8px;
}

.todo-section .section-title {
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
}

.todo-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
}

.todo-item .todo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.todo-item .todo-icon.pending {
    background: #fff7e6;
}

.todo-item .todo-icon.warning {
    background: #fff1f0;
}

.todo-item .todo-icon.info {
    background: #e6f7ff;
}

.todo-item .todo-info {
    flex: 1;
}

.todo-item .todo-title {
    font-size: 13px;
    color: #333;
}

.todo-item .todo-count {
    font-size: 11px;
    color: #999;
}

.todo-item .todo-arrow {
    font-size: 18px;
    color: #999;
}

.function-menu {
    background: white;
    padding: 16px;
    margin-bottom: 8px;
}

.function-menu .section-title {
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.menu-grid .menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
}

.menu-grid .menu-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.menu-grid .menu-text {
    font-size: 12px;
    color: #666;
}

.quick-links {
    background: white;
    padding: 16px;
    margin-bottom: 8px;
}

.quick-links .section-title {
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
}

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

.link-list .link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
}

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

.link-list .link-item span:first-child {
    font-size: 14px;
    color: #333;
}

.link-list .link-item .arrow {
    font-size: 18px;
    color: #999;
}

.recent-orders {
    background: white;
    padding: 16px;
    margin-bottom: 8px;
}

.recent-orders .section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.recent-orders .section-title h3 {
    font-size: 15px;
    color: #333;
}

.recent-orders .more-link {
    font-size: 13px;
    color: #ff6b35;
    text-decoration: none;
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 12px;
}

.order-card .order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.order-card .order-id {
    font-size: 12px;
    color: #999;
}

.order-card .order-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

.order-card .order-status.pending {
    background: #fff7e6;
    color: #fa8c16;
}

.order-card .order-status.shipping {
    background: #e6f7ff;
    color: #1890ff;
}

.order-card .order-status.completed {
    background: #f6ffed;
    color: #52c41a;
}

.order-card .order-items {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.order-card .order-item-img {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
}

.order-card .order-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.order-card .order-item-name {
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
}

.order-card .order-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #ff4d4f;
}

.order-card .order-item-price::before {
    content: '¥';
    font-size: 12px;
}

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

.order-card .order-time {
    font-size: 11px;
    color: #999;
}

.order-card .order-action-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
}

.merchant-notice {
    background: white;
    padding: 16px;
}

.merchant-notice .section-title {
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
}

.notice-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 6px;
}

/* ========== 商家订单管理 ========== */
.order-stats-tabs {
    display: flex;
    background: white;
    padding: 12px 8px;
    margin-bottom: 8px;
}

.order-stats-tabs .stat-tab {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    border-radius: 8px;
    cursor: pointer;
}

.order-stats-tabs .stat-tab.active {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    color: white;
}

.stat-tab .stat-number {
    font-size: 16px;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.stat-tab .stat-label {
    font-size: 11px;
}

.order-search-bar {
    display: flex;
    gap: 10px;
    background: white;
    padding: 12px;
    margin-bottom: 8px;
}

.order-search-bar .search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 16px;
    padding: 8px 12px;
    gap: 6px;
}

.order-search-bar .search-icon {
    font-size: 14px;
    color: #999;
}

.order-search-bar .search-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 13px;
    outline: none;
}

.order-search-bar .filter-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 16px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.order-search-bar .filter-btn .arrow {
    font-size: 10px;
}

.merchant-order-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 12px;
}

.merchant-order-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.merchant-order-card .order-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f9f9f9;
    border-bottom: 1px solid #f0f0f0;
}

.merchant-order-card .order-header-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.merchant-order-card .order-time {
    font-size: 12px;
    color: #999;
}

.merchant-order-card .order-id {
    font-size: 12px;
    color: #666;
}

.merchant-order-card .order-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 10px;
}

.merchant-order-card .order-status.pending {
    background: #fff7e6;
    color: #fa8c16;
}

.merchant-order-card .order-status.shipping {
    background: #e6f7ff;
    color: #1890ff;
}

.merchant-order-card .order-status.completed {
    background: #f6ffed;
    color: #52c41a;
}

.merchant-order-card .order-status.refund {
    background: #fff1f0;
    color: #ff4d4f;
}

.merchant-order-card .order-content {
    padding: 12px;
}

.merchant-order-card .order-goods-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.merchant-order-card .order-goods-item .goods-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.merchant-order-card .order-goods-item .goods-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.merchant-order-card .order-goods-item .goods-name {
    font-size: 13px;
    color: #333;
}

.merchant-order-card .order-goods-item .goods-spec {
    font-size: 11px;
    color: #999;
}

.merchant-order-card .order-goods-item .goods-quantity {
    font-size: 11px;
    color: #999;
}

.merchant-order-card .order-goods-item .goods-price {
    font-size: 14px;
    font-weight: 600;
    color: #ff4d4f;
}

.merchant-order-card .order-goods-item .goods-price::before {
    content: '¥';
    font-size: 12px;
}

.merchant-order-card .order-amount {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #666;
}

.merchant-order-card .order-amount .amount-value {
    font-size: 16px;
    font-weight: 700;
    color: #ff4d4f;
}

.merchant-order-card .order-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #f0f0f0;
}

.merchant-order-card .order-actions .action-btn {
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    background: white;
}

.merchant-order-card .order-actions .action-btn.primary {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    border-color: transparent;
    color: white;
}

/* ========== 商家商品管理 ========== */
.goods-stats-bar {
    display: flex;
    background: white;
    padding: 12px;
    margin-bottom: 8px;
}

.goods-stats-bar .stat-item {
    flex: 1;
    text-align: center;
}

.goods-stats-bar .stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.goods-stats-bar .stat-label {
    font-size: 11px;
    color: #999;
}

.goods-filter-bar {
    display: flex;
    gap: 10px;
    background: white;
    padding: 12px;
    margin-bottom: 8px;
}

.goods-filter-bar .search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 16px;
    padding: 8px 12px;
    gap: 6px;
}

.goods-filter-bar .search-icon {
    font-size: 14px;
    color: #999;
}

.goods-filter-bar .search-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 13px;
    outline: none;
}

.goods-filter-bar .filter-dropdown {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 16px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.goods-filter-bar .filter-dropdown .arrow {
    font-size: 10px;
}

.merchant-goods-manage-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 12px;
}

.goods-manage-card {
    background: white;
    border-radius: 8px;
    padding: 12px;
}

.goods-manage-header {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.goods-manage-header .goods-img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.goods-manage-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.goods-manage-info .goods-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.goods-manage-info .goods-status-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 3px;
    display: inline-block;
}

.goods-manage-info .goods-status-tag.on-sale {
    background: #f6ffed;
    color: #52c41a;
}

.goods-manage-info .goods-status-tag.off-sale {
    background: #f5f5f5;
    color: #999;
}

.goods-manage-info .goods-status-tag.sold-out {
    background: #fff1f0;
    color: #ff4d4f;
}

.goods-manage-price {
    font-size: 16px;
    font-weight: 700;
    color: #ff4d4f;
}

.goods-manage-price::before {
    content: '¥';
    font-size: 12px;
}

.goods-manage-details {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
}

.goods-manage-details .detail-row {
    text-align: center;
}

.goods-manage-details .detail-row span:first-child {
    font-size: 11px;
    color: #999;
    margin-right: 4px;
}

.goods-manage-details .detail-row span:last-child {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.goods-manage-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.goods-manage-actions .action-btn {
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    background: white;
}

.goods-manage-actions .action-btn.primary {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    border-color: transparent;
    color: white;
}

.goods-manage-actions .action-btn.danger {
    background: #fff1f0;
    border-color: #ff4d4f;
    color: #ff4d4f;
}

.goods-manage-actions .action-btn.secondary {
    color: #666;
}

/* ========== 商家商品列表 ========== */
.shop-mini-info {
    display: flex;
    gap: 10px;
    padding: 12px;
    background: white;
    margin-bottom: 8px;
}

.shop-mini-info .shop-mini-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.shop-mini-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.shop-mini-details h3 {
    font-size: 14px;
    color: #333;
    margin: 0 0 4px;
}

.shop-mini-rating {
    font-size: 12px;
    color: #666;
}

.shop-mini-rating span {
    margin-right: 12px;
}

.sort-bar {
    display: flex;
    background: white;
    padding: 12px;
    margin-bottom: 8px;
    gap: 4px;
}

.sort-bar .sort-item {
    flex: 1;
    text-align: center;
    padding: 8px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
}

.sort-bar .sort-item.active {
    background: #fff0f6;
    color: #ff6b35;
}

.sort-bar .sort-item .arrow {
    font-size: 10px;
}

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

.goods-card-vertical {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.goods-card-vertical .goods-img {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    background: #f5f5f5;
}

.goods-card-vertical .goods-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.goods-info-vertical {
    padding: 10px;
}

.goods-info-vertical .goods-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
}

.goods-info-vertical .goods-tags {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.goods-info-vertical .goods-tags .tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    background: #f0f0f0;
    color: #666;
}

.goods-info-vertical .goods-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.goods-info-vertical .goods-price-row .price {
    font-size: 14px;
    font-weight: 700;
    color: #ff4d4f;
}

.goods-info-vertical .goods-price-row .price::before {
    content: '¥';
    font-size: 12px;
}

.goods-info-vertical .goods-price-row .sales {
    font-size: 11px;
    color: #999;
}

.goods-card-vertical .add-cart-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    cursor: pointer;
}

/* ========== 商家端底部导航 ========== */
.merchant-nav .nav-item .icon {
    font-size: 22px;
}

/* ========== 商家模块概览 ========== */
.module-intro {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    padding: 30px 20px;
    text-align: center;
    color: white;
}

.module-intro h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.module-intro p {
    font-size: 13px;
    opacity: 0.9;
}

.module-section {
    background: white;
    padding: 16px;
    margin-bottom: 8px;
}

.module-section h3 {
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
}

.feature-item .feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.feature-item .feature-info {
    flex: 1;
}

.feature-item .feature-info h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.feature-item .feature-info p {
    font-size: 11px;
    color: #999;
}

.feature-item .feature-arrow {
    font-size: 18px;
    color: #999;
}

.flow-section {
    background: white;
    padding: 16px;
    margin-bottom: 8px;
}

.flow-section h3 {
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
}

.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flow-step {
    display: flex;
    gap: 12px;
}

.flow-step .step-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.flow-step .step-content {
    flex: 1;
}

.flow-step .step-content h4 {
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
}

.flow-step .step-content p {
    font-size: 12px;
    color: #999;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
}

.feature-box {
    background: white;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.feature-box .feature-emoji {
    font-size: 28px;
    margin-bottom: 8px;
}

.feature-box h4 {
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
}

.feature-box p {
    font-size: 11px;
    color: #999;
}

/* ========== 小店相关页面 ========== */

/* 佣金余额卡片 */
.commission-balance-card {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    border-radius: 12px;
    padding: 24px 20px;
    color: white;
    margin-bottom: 12px;
}

.balance-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.balance-tips {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tip-item {
    font-size: 12px;
    opacity: 0.9;
}

/* 提现方式 */
.withdraw-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.withdraw-method-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.withdraw-method-item input {
    display: none;
}

.withdraw-method-item.active {
    border-color: #ff6b35;
    background: #fff8f5;
}

.method-icon {
    font-size: 24px;
}

.method-info {
    flex: 1;
}

.method-info .method-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.method-info .method-desc {
    font-size: 12px;
    color: #999;
}

.method-check {
    color: #ff6b35;
    font-weight: 600;
    opacity: 0;
}

.withdraw-method-item.active .method-check {
    opacity: 1;
}

/* 提现金额 */
.withdraw-amount-section {
    margin-top: 16px;
}

.amount-tips {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.9);
}

.all-withdraw-btn {
    background: white;
    color: #ff6b35;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

/* 提现账户 */
.withdraw-account {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-label {
    font-size: 12px;
    color: #999;
}

.account-value {
    font-size: 14px;
    color: #333;
}

.change-account-btn {
    background: #f5f5f5;
    color: #666;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

/* 提现规则 */
.withdraw-rules {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rule-item {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* 确认提现按钮 */
.confirm-withdraw-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    box-shadow: 0 4px 16px rgba(255,107,53,0.3);
}

/* 提现记录 */
.withdraw-records {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.record-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.record-title {
    font-size: 14px;
    color: #333;
}

.record-time {
    font-size: 12px;
    color: #999;
}

.record-amount {
    font-size: 16px;
    font-weight: 600;
}

.record-amount.success {
    color: #ff4d4f;
}

/* 小店设置表单 */
.shop-info-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.form-input,
.form-textarea {
    padding: 10px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #ff6b35;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* 头像上传 */
.avatar-upload,
.cover-upload {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-preview,
.cover-preview {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.cover-preview {
    width: 120px;
    height: 60px;
}

.avatar-preview img,
.cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-btn {
    background: #f5f5f5;
    color: #666;
    border: 1px dashed #ddd;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

/* 分佣设置 */
.commission-setting {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.percent-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.percent-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.percent-symbol {
    font-size: 16px;
    font-weight: 600;
    color: #ff6b35;
}

/* 设置开关 */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.setting-label {
    flex: 1;
}

.setting-label span:first-child {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.setting-desc {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #ff6b35;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* 店主信息 */
.shop-owner-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.owner-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.owner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.owner-details {
    flex: 1;
}

.owner-name {
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
}

.owner-phone {
    font-size: 13px;
    color: #999;
}

.edit-owner-btn {
    background: #f5f5f5;
    color: #666;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

/* 账户绑定 */
.bind-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 12px;
}

.status-icon {
    width: 32px;
    height: 32px;
    background: #52c41a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.bind-info {
    flex: 1;
}

.bind-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}

.bind-account {
    font-size: 12px;
    color: #999;
}

.unbind-btn {
    background: #fff1f0;
    color: #ff4d4f;
    border: 1px solid #ff4d4f;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

.add-bankcard-btn {
    width: 100%;
    background: white;
    color: #ff6b35;
    border: 1px dashed #ff6b35;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

/* 保存设置按钮 */
.save-settings-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
}

/* ========== 推广页面 ========== */

/* 推广收益卡片 */
.extension-revenue-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 24px 20px;
    color: white;
    margin-bottom: 12px;
}

.revenue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.revenue-title {
    font-size: 16px;
    font-weight: 600;
}

.revenue-icon {
    font-size: 32px;
}

.revenue-amount {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.revenue-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.revenue-stats .stat-item {
    text-align: center;
}

.revenue-stats .stat-value {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.revenue-stats .stat-label {
    font-size: 12px;
    opacity: 0.9;
}

.withdraw-btn {
    width: 100%;
    background: white;
    color: #667eea;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* 推广数据网格 */
.extension-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.stat-card {
    background: white;
    padding: 16px 8px;
    border-radius: 8px;
    text-align: center;
}

.stat-card .stat-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.stat-card .stat-number {
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 11px;
    color: #999;
}

/* 邀请好友 */
.invite-section {
    text-align: center;
}

.invite-qr {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.invite-qr img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
}

.invite-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.invite-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.invite-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.invite-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    padding: 10px 12px;
    border-radius: 8px;
}

.link-text {
    flex: 1;
    font-size: 12px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-link-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

/* 推广订单 */
.extension-orders {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-item {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 8px;
}

.order-info {
    margin-bottom: 8px;
}

.order-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.order-time {
    font-size: 12px;
    color: #999;
}

.order-product {
    font-size: 12px;
    color: #666;
}

.order-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.amount-value {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.commission {
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
}

/* 推广等级 */
.extension-level {
    background: #f9f9f9;
    padding: 16px;
    border-radius: 8px;
}

.level-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.level-icon {
    font-size: 36px;
}

.level-details {
    flex: 1;
}

.level-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

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

.level-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-label {
    font-size: 11px;
    color: #999;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #e8e8e8;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.progress-text {
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
}

.level-requirements {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.requirement-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.req-label {
    color: #666;
}

.req-value {
    color: #333;
    font-weight: 600;
}

/* 推广排行榜 */
.extension-rank {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
}

.rank-number {
    width: 28px;
    height: 28px;
    background: #e8e8e8;
    color: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.rank-number.rank-1 {
    background: #ffd700;
    color: white;
}

.rank-number.rank-2 {
    background: #c0c0c0;
    color: white;
}

.rank-number.rank-3 {
    background: #cd7f32;
    color: white;
}

.rank-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
}

.rank-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-info {
    flex: 1;
}

.rank-name {
    font-size: 13px;
    color: #333;
    margin-bottom: 2px;
}

.rank-desc {
    font-size: 11px;
    color: #999;
}

.rank-amount {
    font-size: 14px;
    font-weight: 700;
    color: #667eea;
}

/* 推广规则 */
.extension-rules {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.extension-rules .rule-item {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* ========== 素材中心 ========== */
.material-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 0;
    overflow-x: auto;
    margin-bottom: 12px;
    -webkit-overflow-scrolling: touch;
}

.material-tabs .tab-item {
    background: white;
    color: #666;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
    border: 1px solid #e8e8e8;
}

.material-tabs .tab-item.active {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

.material-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.material-image {
    position: relative;
    width: 100%;
    padding-top: 133%;
}

.material-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.material-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.material-info {
    padding: 12px;
}

.material-action {
    background: #4caf50;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.material-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.material-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
}

.material-thumb {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.material-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.material-action-small {
    background: #4caf50;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
}

/* ========== 文章中心 ========== */
.article-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 0;
    overflow-x: auto;
    margin-bottom: 12px;
    -webkit-overflow-scrolling: touch;
}

.article-tabs .tab-item {
    background: white;
    color: #666;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
    border: 1px solid #e8e8e8;
}

.article-tabs .tab-item.active {
    background: #2196f3;
    color: white;
    border-color: #2196f3;
}

.article-featured {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.featured-image {
    width: 100%;
    padding-top: 50%;
    position: relative;
}

.featured-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-info {
    padding: 16px;
}

.article-share {
    background: #2196f3;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
}

.article-thumb {
    width: 100px;
    height: 75px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.article-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-action {
    background: #2196f3;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
}

/* ========== 小店数据页面 ========== */
/* 时间筛选 */
.data-filter {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.filter-tabs {
    display: flex;
    gap: 8px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 4px;
}

.filter-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-tab.active {
    background: white;
    color: #ff6b35;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* 数据卡片网格 */
.data-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.data-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.data-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.data-icon {
    font-size: 32px;
    z-index: 1;
}

.data-content {
    flex: 1;
    z-index: 1;
}

.data-label {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 4px;
}

.data-value {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.data-trend {
    font-size: 11px;
    font-weight: 600;
}

.data-trend.up {
    color: rgba(255,255,255,0.95);
}

.data-trend.down {
    color: rgba(255,255,255,0.95);
}

/* 不同颜色的数据卡片 */
.data-card-orange {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
}

.data-card-blue {
    background: linear-gradient(135deg, #2196f3 0%, #42a5f5 100%);
}

.data-card-green {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
}

.data-card-purple {
    background: linear-gradient(135deg, #9c27b0 0%, #ba68c8 100%);
}

/* 转化漏斗 */
.funnel-chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.funnel-item {
    display: flex;
    align-items: center;
}

.funnel-bar {
    height: 44px;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 12px;
    transition: all 0.3s;
}

.funnel-bar:nth-child(1) {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f6b 100%);
}

.funnel-bar:nth-child(2) {
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
}

.funnel-bar:nth-child(3) {
    background: linear-gradient(135deg, #ffc107 0%, #ffd54f 100%);
}

.funnel-bar:nth-child(4) {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
}

.funnel-bar:nth-child(5) {
    background: linear-gradient(135deg, #2196f3 0%, #42a5f5 100%);
}

.funnel-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.funnel-label {
    font-size: 13px;
    color: white;
    font-weight: 500;
}

.funnel-value {
    font-size: 16px;
    color: white;
    font-weight: 700;
}

/* 访客趋势图 */
.trend-chart {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px 12px;
}

.trend-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 180px;
}

.trend-bar {
    flex: 1;
    background: linear-gradient(180deg, #ff6b35 0%, #ff8f6b 100%);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s;
    min-height: 40px;
}

.trend-bar:hover {
    opacity: 0.8;
}

.trend-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #666;
    white-space: nowrap;
}

/* 商品排行 */
.product-rank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s;
}

.product-rank-item:hover {
    background: #f0f0f0;
}

.rank-num {
    width: 28px;
    height: 28px;
    background: #e8e8e8;
    color: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.rank-num.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: white;
}

.rank-num.rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e0e0e0 100%);
    color: white;
}

.rank-num.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #daa06d 100%);
    color: white;
}

.rank-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.rank-detail {
    flex: 1;
    min-width: 0;
}

.rank-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-stats {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #999;
}

.rank-amount {
    font-size: 15px;
    font-weight: 700;
    color: #ff6b35;
    flex-shrink: 0;
}

/* 详细数据表格 */
.detail-data-table {
    display: flex;
    flex-direction: column;
}

.data-table-header {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr 1fr;
    gap: 8px;
    padding: 12px 8px;
    background: #f5f5f5;
    border-radius: 8px 8px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.data-table-body {
    display: flex;
    flex-direction: column;
}

.data-table-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr 1fr;
    gap: 8px;
    padding: 14px 8px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    align-items: center;
}

.data-table-row:last-child {
    border-bottom: none;
}

.data-date {
    color: #333;
    font-weight: 500;
}

.data-visitor,
.data-order {
    text-align: center;
    color: #666;
}

.data-amount,
.data-commission {
    text-align: right;
    color: #333;
    font-weight: 600;
}

.data-commission {
    color: #ff6b35;
}
