/* ===== 瑞源桁商城 - 仿 uni-app 移动端风格 ===== */
/* ===== Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background: #f5f5f5;
    line-height: 1.5;
    padding-bottom: 55px;
    -webkit-font-smoothing: antialiased;
}
a { color: #333; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; vertical-align: middle; }
input, button, select { outline: none; border: none; background: none; }

/* ===== 移动端点击样式：去除点击时的默认蓝色高亮/选择框 ===== */
a, button, input, select, textarea, label {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
a:focus, a:active, button:focus, button:active, label:focus {
    outline: none;
}

/* ===== Status Bar Placeholder ===== */
.status-bar {
    height: 44px;
    background: #fff;
}

/* ===== Nav Bar ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}
.navbar-inner {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 12px;
    position: relative;
}
.navbar-title {
    flex: 1;
    text-align: center;
    font-size: 17px;
    font-weight: 500;
    color: #000;
}
.navbar-left {
    width: 60px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.navbar-right {
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
.navbar .back-btn {
    font-size: 22px;
    padding: 4px;
    color: #333;
}
.navbar .icon-btn {
    font-size: 20px;
    padding: 4px;
    color: #333;
}

/* ===== Home Banner Wrap (full width + overlay search) ===== */
.home-banner-wrap {
    position: relative;
    width: 100%;
}

/* ===== Carousel ===== */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}
.carousel-item {
    flex: 0 0 100%;
    width: 100%;
}
.carousel-item img {
    width: 100%;
    height: auto;
    display: block;
}
.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}
.carousel-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}
.carousel-dots span.active {
    background: #fff;
    width: 20px;
    border-radius: 4px;
}

/* ===== Home Search Bar (overlay on banner) ===== */
.home-search-bar {
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 16px;
}
.home-search-bar .search-bar {
    display: flex;
    align-items: center;
    height: 36px;
    background: #fff;
    border-radius: 18px;
    padding: 0 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.search-bar-transparent {
    background: rgba(255,255,255,0.5) !important;
    backdrop-filter: blur(4px);
}
.home-search-bar .search-bar .search-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    object-fit: contain;
}
.home-search-bar .search-bar .search-placeholder {
    font-size: 13px;
    color: #999;
}

/* ===== Home Card ===== */
.home-card {
    background: #fff;
    margin: 12px;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.home-card-overlap {
    margin-top: -28px;
    position: relative;
    z-index: 10;
}
.home-card .section-header {
    padding: 0 0 12px;
    margin-bottom: 12px;
}
.home-card .product-grid {
    gap: 12px;
    background: transparent;
}
.home-card .product-card {
    border: 1px solid #f5f5f5;
    border-radius: 8px;
}
.home-card .product-card:nth-child(odd) {
    border-right: 1px solid #f5f5f5;
}

/* ===== Category Icons (首页宫格) ===== */
.cate-grid {
    background: #fff;
}
.cate-grid-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    text-align: center;
}
.cate-grid-item {
    padding: 8px 0;
}
.cate-grid-item:active { opacity: 0.7; }
.cate-grid-item .icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 6px;
    background: #f5f5f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.cate-grid-item .cate-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 6px;
    object-fit: contain;
}
.cate-grid-item .name {
    font-size: 12px;
    color: #666;
}

/* ===== Swiper / Banner ===== */
.banner {
    margin: 0 12px 8px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.banner img {
    width: 100%;
    display: block;
}

/* ===== Section ===== */
.section {
    background: #fff;
    margin-bottom: 8px;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f5f5f5;
}
.section-title {
    font-size: 16px;
    font-weight: 500;
    color: #000;
}
.section-more {
    font-size: 12px;
    color: #999;
}

/* ===== Product Grid - 2列 ===== */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #f5f5f5;
    padding: 0;
}
.home-card .product-grid {
    grid-template-columns: 1fr;
    gap: 0;
}
.product-card {
    background: #fff;
    overflow: hidden;
}
.product-card:active { opacity: 0.9; }
.product-card:nth-child(odd) {
    border-right: 1px solid #f0f0f0;
}
.product-img {
    width: 100%;
    aspect-ratio: 1;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-info {
    padding: 10px 12px 14px;
}
.product-name {
    font-size: 13px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    margin-bottom: 6px;
}
.product-price {
    font-size: 16px;
    font-weight: 500;
    color: #e4393c;
}
.product-price .symbol {
    font-size: 12px;
}
.original-price {
    font-size: 12px;
    color: #bbb;
    text-decoration: line-through;
    margin-left: 6px;
}

/* ===== Tab Bar ===== */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    z-index: 200;
    padding-bottom: 0;
}
.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    position: relative;
}
.tab-item.active { color: #30bcbe; }
.tab-item.active .tab-label { color: #30bcbe; }
.tab-item .tab-icon { 
    width: 24px; 
    height: 24px; 
    margin-bottom: 2px; 
    object-fit: contain;
}
.tab-item .tab-label { font-size: 10px; color: #999; }
.tab-item .badge {
    position: absolute;
    top: 2px;
    left: 50%;
    margin-left: 8px;
    background: #30bcbe;
    color: #fff;
    font-size: 9px;
    min-width: 14px;
    height: 14px;
    line-height: 14px;
    text-align: center;
    border-radius: 7px;
    padding: 0 3px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    height: 44px;
    line-height: 44px;
    padding: 0 24px;
    border: none;
    border-radius: 22px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { opacity: 0.8; }
.btn-primary {
    background: #30bcbe;
    color: #fff;
}
.btn-block { display: block; width: 100%; }
.btn-lg { height: 48px; line-height: 48px; font-size: 17px; border-radius: 24px; }
.btn-sm { height: 32px; line-height: 32px; padding: 0 16px; font-size: 13px; border-radius: 16px; }
.btn-outline {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    line-height: 42px;
}
.btn-danger {
    background: #fff;
    border: 1px solid #e4393c;
    color: #e4393c;
    line-height: 42px;
}

/* ===== Forms ===== */
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
}
.form-input {
    width: 100%;
    height: 46px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 15px;
    background: #fafafa;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}
.form-input:focus {
    border-color: #e4393c;
    background: #fff;
}
textarea.form-input {
    height: auto;
    padding: 12px 14px;
    resize: vertical;
}

/* ===== Login Page ===== */
.login-page {
    min-height: 100vh;
    background: #fff;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
}
.login-header {
    padding-top: 80px;
    margin-bottom: 50px;
}
.login-logo {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.login-welcome {
    font-size: 28px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
    line-height: 1.3;
}
.login-subtitle {
    font-size: 14px;
    color: #999;
    line-height: 1.5;
}
.login-form {
    flex: 1;
}
.login-input-group {
    margin-bottom: 24px;
}
.login-input-wrap {
    display: flex;
    align-items: center;
    height: 52px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 4px;
}
.login-input-icon {
    font-size: 18px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.5;
}
.login-input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    background: none;
    -webkit-appearance: none;
}
.login-input::placeholder {
    color: #c0c0c0;
    font-size: 15px;
}
/* 登录页「忘记」与「立即注册」同色 */
.login-forgot,
.login-register a {
    color: #30bcbe;
}
.login-forgot {
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 10px;
    padding: 4px 0 4px 6px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.login-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 25px;
    font-size: 17px;
    font-weight: 500;
    color: #fff;
    background: #30bcbe;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    margin-top: 12px;
    transition: opacity 0.2s;
}
.login-btn:active { opacity: 0.85; }
.login-btn:disabled { opacity: 0.6; }
.login-register {
    text-align: center;
    margin-top: 28px;
    font-size: 14px;
    color: #999;
}
.login-register a { color: #30bcbe; }
.msg-box {
    margin-top: 12px;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    display: none;
}
.msg-error {
    display: block;
    background: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

/* ===== Page Layout ===== */
.page-body {
    min-height: calc(100vh - 99px);
    padding-bottom: 8px;
}
.page-body.full {
    min-height: calc(100vh - 55px);
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state .empty-icon {
    font-size: 56px;
    margin-bottom: 16px;
    color: #ddd;
}
.empty-state p {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 20px;
}

/* ===== Product Detail ===== */
.detail-page {
    padding-bottom: 60px;
}
.detail-img {
    width: 100%;
    aspect-ratio: 1;
    background: #f9f9f9;
}
.detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detail-info {
    padding: 16px;
    background: #fff;
    margin-bottom: 8px;
}
.detail-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.4;
}
.detail-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}
.detail-price .price {
    font-size: 24px;
    font-weight: 500;
    color: #e4393c;
}
.detail-price .original {
    font-size: 13px;
    color: #bbb;
    text-decoration: line-through;
}
.detail-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    padding-top: 12px;
    border-top: 1px solid #f5f5f5;
}
.detail-desc {
    background: #fff;
    padding: 16px;
}
.detail-desc h3 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #000;
}
.desc-content {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}
.desc-content .ql-align-center { text-align: center; }
.desc-content .ql-align-right { text-align: right; }
.desc-content .ql-align-justify { text-align: justify; }

.detail-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    padding: 6px 12px;
    z-index: 200;
}
.detail-action-bar .da-right {
    flex: 1;
    text-align: center;
}
.detail-action-bar .btn-cart {
    width: 100%;
    height: 40px;
    background: linear-gradient(135deg, #ff6b35, #e4393c);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

/* ===== Cart ===== */
.cart-page {
    min-height: calc(100vh - 105px);
}
.cart-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 14px 12px;
    border-bottom: 1px solid #f5f5f5;
    gap: 10px;
}
.cart-check { width: 24px; flex-shrink: 0; }
.cart-check input {
    width: 18px; height: 18px;
    accent-color: #e4393c;
}
.cart-img {
    width: 80px; height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f9f9f9;
}
.cart-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { flex: 1; min-width: 0; }
.cart-name {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 10px;
}
.cart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cart-price {
    color: #e4393c;
    font-weight: 500;
    font-size: 14px;
}
.cart-qty {
    display: flex;
    align-items: center;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}
.cart-qty .qty-btn {
    width: 30px; height: 28px;
    background: #fafafa;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    user-select: none;
}
.cart-qty .qty-input {
    width: 40px; height: 28px;
    text-align: center;
    font-size: 12px;
    border-left: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
    background: #fff;
}
.cart-del {
    padding: 8px;
    color: #bbb;
    font-size: 16px;
    cursor: pointer;
}
.cart-footer {
    position: fixed;
    bottom: 50px;
    left: 0; right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 8px 12px;
    border-top: 1px solid #f0f0f0;
    z-index: 150;
}
.cart-footer .cf-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cart-footer .cf-left input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: #e4393c;
}
.cart-footer .cf-left label { font-size: 13px; }
.cart-footer .cf-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cart-total {
    font-size: 13px; color: #666;
}
.cart-total em {
    font-style: normal;
    font-size: 18px;
    color: #e4393c;
    font-weight: 500;
}

/* ===== User Center ===== */
.user-center { min-height: calc(100vh - 105px); }
.user-header {
    background: linear-gradient(135deg, #e4393c, #c1272d);
    padding: 28px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
}
.user-avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-detail h3 { font-size: 18px; font-weight: 500; margin-bottom: 4px; }
.user-detail p { font-size: 12px; opacity: 0.8; }
.order-stats {
    display: flex;
    background: #fff;
    border-bottom: 8px solid #f5f5f5;
}
.order-stat-item {
    flex: 1;
    text-align: center;
    padding: 16px 0;
}
.order-stat-item .num {
    font-size: 20px; font-weight: 500; color: #333;
}
.order-stat-item .label {
    font-size: 11px; color: #999; margin-top: 4px;
}
.user-menu { background: #fff; }
.menu-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f5f5f5;
}
.menu-item:active { background: #fafafa; }
.menu-icon { font-size: 18px; margin-right: 12px; width: 24px; text-align: center; }
.menu-text { flex: 1; font-size: 14px; }
.menu-value { font-size: 13px; color: #999; margin-right: 8px; }
.menu-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: block; }
.menu-arrow { color: #ccc; font-size: 14px; }

/* ===== Agent Center ===== */
.agent-center { min-height: calc(100vh - 105px); padding-bottom: 8px; }
.agent-header {
    background: linear-gradient(180deg, #4a90c2 0%, #3a7bc8 50%, #2d6ab3 100%);
    padding: 20px 16px 24px;
    position: relative;
    overflow: hidden;
}
.agent-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Cpath fill='rgba(255,255,255,0.05)' d='M0,150 Q100,50 200,100 T400,80 L400,0 L0,0 Z'/%3E%3Cpath fill='rgba(255,255,255,0.08)' d='M0,200 Q80,120 160,160 T320,140 L400,140 L400,200 Z'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
}
.company-name {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.agent-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.agent-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
}
.agent-detail h3 {
    font-size: 17px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
}
.agent-detail p {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    gap: 4px;
}
.copy-btn {
    font-size: 12px;
    opacity: 0.7;
    cursor: pointer;
}
.copy-btn:active { opacity: 1; }
.finance-row {
    display: flex;
    justify-content: space-around;
    position: relative;
    z-index: 1;
}
.finance-item {
    text-align: center;
    flex: 1;
    text-decoration: none;
    color: inherit;
    display: block;
}
.finance-value {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}
.finance-label {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
}

.section-card {
    background: #fff;
    margin: 8px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.section-header {
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
}
.section-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}
.section-body {
    padding: 12px 0;
}
.grid-3 {
    display: flex;
}
.grid-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    color: #333;
}
.grid-item:active { background: #fafafa; }
.grid-icon {
    font-size: 24px;
    margin-bottom: 4px;
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.grid-label {
    font-size: 12px;
    color: #666;
}

.tool-list {
    padding: 4px 0;
}
.tool-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
}
.tool-item:last-child { border-bottom: none; }
.tool-item:active { background: #fafafa; }
.tool-icon {
    font-size: 18px;
    margin-right: 12px;
    width: 24px;
    height: 24px;
    object-fit: contain;
    text-align: center;
}
.tool-text {
    flex: 1;
    font-size: 14px;
}
.tool-arrow {
    color: #ccc;
    font-size: 14px;
}

/* ===== Payment Page ===== */
.payment-page {
    padding: 16px;
    background: #f5f5f5;
    min-height: calc(100vh - 99px);
}
.payment-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #9b85d1 0%, #7a67c4 100%);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    color: #fff;
}
.payment-card-left {
    flex: 1;
}
.payment-type {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 6px;
}
.payment-value {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}
.payment-name {
    font-size: 12px;
    opacity: 0.8;
}
.payment-card-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.payment-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}
.payment-icon.unionpay {
    background: rgba(255,255,255,0.2);
    font-size: 10px;
    font-weight: bold;
}
.payment-icon.alipay {
    background: rgba(255,255,255,0.2);
    font-size: 28px;
}
.payment-set-btn {
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}
.payment-set-btn:active {
    opacity: 0.8;
}

/* ===== Fans Page ===== */
.fans-page {
    background: #f5f5f5;
    min-height: calc(100vh - 99px);
}
.fans-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 24px 0;
    margin-bottom: 8px;
}
.fans-stat-item {
    flex: 1;
    text-align: center;
}
.fans-stat-value {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}
.fans-stat-label {
    font-size: 13px;
    color: #999;
}
.fans-stat-divider {
    width: 1px;
    height: 40px;
    background: #f0f0f0;
}
.active-members-header {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f0;
    padding: 12px 16px;
    margin-bottom: 8px;
}
.active-badge {
    font-size: 16px;
}
.active-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}
.fans-list {
    padding: 0 8px;
}
.fans-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 14px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
}
.fans-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(74, 144, 194, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.fans-info {
    flex: 1;
    min-width: 0;
}
.fans-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.fans-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}
.fans-phone {
    font-size: 12px;
    color: #999;
}
.fans-detail {
    font-size: 12px;
    color: #999;
    margin-bottom: 2px;
}

/* ===== Flash Sale Banner ===== */
.flash-banner-wrap {
    position: relative;
}
.flash-sale-banner {
    width: 100%;
    display: block;
    line-height: 0;
}
.flash-sale-banner .flash-banner-img {
    width: 100%;
    height: auto;
    display: block;
}
.home-card-notice {
    position: relative;
    z-index: 10;
    margin-top: -20px;
    margin-left: 12px;
    margin-right: 12px;
    margin-bottom: 12px;
    padding: 1px 16px !important;
}
.notification-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
}
.notification-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
}
.notification-text {
    font-size: 13px;
    color: #333;
    flex: 1;
}
.flash-sale-area {
    background: #fff;
    margin: 12px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.sale-header {
    padding: 14px 16px;
    padding-right: 132px;
}
.sale-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.sale-time {
    font-size: 12px;
    color: #999;
}
.sale-content {
    padding: 16px;
    padding-right: 132px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.sale-status-box {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid #999;
    border-radius: 6px;
    overflow: hidden;
    flex: 1;
}
.sale-status-box .status-badge {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    border-radius: 0;
}
.sale-status-box .status-badge.ended {
    background: #999;
    color: #fff;
}
.sale-status-box .countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #666;
    font-family: 'Courier New', monospace;
    padding: 6px 12px;
    background: #fff;
    flex: 1;
}
.sale-product {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}
.sale-product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Flash Sale Area Clickable ===== */
.flash-sale-area {
    cursor: pointer;
    position: relative;
}
.flash-sale-area::after {
    content: none;
}

/* ===== Auction Page ===== */
.auction-header {
    background: #fff;
    padding: 16px;
    border-bottom: 1px solid #f5f5f5;
}
.auction-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.status-text {
    font-size: 14px;
    color: #666;
    padding: 4px 12px;
    background: #f5f5f5;
    border-radius: 4px;
}
.countdown-display {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    font-family: 'Courier New', monospace;
}
.auction-pagination {
    display: flex;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #f5f5f5;
    gap: 8px;
    overflow-x: auto;
}
.page-link {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
    border-radius: 4px;
}
.page-link.active {
    background: #30bcbe;
    color: #fff;
}
.auction-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px;
    background: #f5f5f5;
    min-height: calc(100vh - 180px);
}
.auction-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}
.item-image {
    width: 100%;
    padding-top: 100%;
    position: relative;
}
.item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.item-info {
    padding: 10px;
}
.item-name {
    font-size: 12px;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.item-sets {
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
}
.item-price {
    font-size: 15px;
    font-weight: 600;
    color: #e4393c;
}
.item-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.btn-buy {
    background: #30bcbe;
    color: #fff;
    border: none;
    padding: 1px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.btn-secondary {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    border-radius: 4px;
    font-size: 12px;
}

/* ===== Auction Detail Page ===== */
.auction-detail {
    padding-bottom: 80px;
}
.detail-image {
    width: 100%;
    background: #fff;
}
.detail-image img {
    width: 100%;
    display: block;
}
.detail-header {
    background: #fff;
    padding: 16px;
    margin-bottom: 12px;
}
.detail-title {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.5;
}
.detail-sets {
    font-size: 13px;
    color: #999;
}
.price-section {
    background: linear-gradient(135deg, #f8e4e8 0%, #f0d4da 100%);
    padding: 20px 16px;
    margin-bottom: 12px;
}
.current-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}
.current-price .label {
    font-size: 14px;
    color: #999;
}
.current-price .price {
    font-size: 28px;
    font-weight: 700;
    color: #e4393c;
}
.price-hint {
    font-size: 13px;
    color: #999;
}
.time-section {
    background: #fff;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.time-label {
    font-size: 14px;
    color: #666;
}
.countdown {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    font-family: 'Courier New', monospace;
    flex: 1;
}
.bid-section {
    background: #fff;
    padding: 16px;
}
.bid-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}
.bid-list {
    border-top: 1px solid #f5f5f5;
}
.bid-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}
.bid-item:last-child {
    border-bottom: none;
}
.bid-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bidder {
    font-size: 14px;
    color: #333;
}
.bid-time {
    font-size: 12px;
    color: #999;
}
.bid-price {
    font-size: 16px;
    font-weight: 600;
    color: #e4393c;
}
.auction-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

/* ===== Orders ===== */
.orders-page { min-height: calc(100vh - 105px); }
.order-card {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.order-items { padding: 4px 16px; }
.order-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
}
.order-no { font-size: 12px; color: #999; }
.order-status { font-size: 12px; color: #e4393c; font-weight: 500; }
.order-body { padding: 8px 16px; }
.order-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}
.order-item-img {
    width: 56px; height: 56px;
    border-radius: 4px;
    object-fit: cover;
    background: #f9f9f9;
    flex-shrink: 0;
}
.order-item-info { flex: 1; }
.order-item-name {
    font-size: 13px; margin-bottom: 4px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.order-item-price { font-size: 11px; color: #999; }
.order-item-subtotal {
    font-size: 13px; color: #e4393c; font-weight: 500;
    flex-shrink: 0;
}
.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-top: 1px solid #f5f5f5;
}
.order-total { font-size: 12px; color: #666; }
.order-total em {
    font-style: normal; color: #e4393c;
    font-weight: 500; font-size: 15px;
}
.order-time { font-size: 11px; color: #bbb; }

/* ===== Checkout ===== */
.checkout-page { padding-bottom: 70px; }
.checkout-section {
    background: #fff;
    margin-bottom: 8px;
    padding: 16px;
}
.checkout-section h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #000;
}
.ck-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}
.ck-item-img {
    width: 48px; height: 48px;
    border-radius: 4px; object-fit: cover;
    background: #f9f9f9; flex-shrink: 0;
}
.ck-item-info { flex: 1; }
.ck-item-name { font-size: 13px; margin-bottom: 2px; }
.ck-item-spec { font-size: 11px; color: #999; }
.ck-item-total { font-size: 13px; color: #e4393c; font-weight: 500; }
.checkout-bar {
    position: fixed;
    bottom: 50px;
    left: 0; right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 10px 16px;
    border-top: 1px solid #f0f0f0;
    z-index: 150;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 999;
    pointer-events: none;
    animation: toastIn 0.25s ease;
}
@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ===== Loading ===== */
.loading {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 13px;
}

/* ===== Pagination ===== */
.pagination {
    text-align: center;
    padding: 20px 0;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    background: #fff;
}
.pagination .current {
    background: #e4393c;
    color: #fff;
    border-color: #e4393c;
}

/* ===== Modal / Dialog ===== */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
}
.modal-box {
    background: #fff; border-radius: 12px; width: 280px;
    overflow: hidden; text-align: center;
}
.modal-title {
    font-size: 16px; font-weight: 600; color: #333;
    padding: 20px 20px 0;
}
.modal-body {
    font-size: 14px; color: #666; padding: 16px 20px 20px;
}
.modal-footer {
    display: flex; border-top: 1px solid #f0f0f0;
}
.modal-btn {
    flex: 1; height: 44px; border: none; font-size: 15px;
    cursor: pointer; background: #fff;
}
.modal-btn-cancel {
    color: #666; border-right: 1px solid #f0f0f0;
}
.modal-btn-confirm {
    color: #e4393c; font-weight: 600;
}
.modal-btn:disabled { opacity: 0.5; }
