/* ================================================
   SPA 页面切换核心样式
   ================================================ */

/* SPA 页面容器 */
.page-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    display: none;
}

.page-section.active {
    display: block;
}

/* ================================================
   共享顶部横幅（登录账号 + 监控主播）
   ================================================ */
.host-banner {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 34px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 1001;
    gap: 8px;
}
.host-banner .host-info {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}
.host-banner .host-label { font-size: 11px; opacity: 0.75; flex-shrink: 0; }
.host-banner .host-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100px; }
.host-banner .host-uid { font-size: 11px; opacity: 0.7; white-space: nowrap; flex-shrink: 0; }
.host-banner .host-switch {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    flex-shrink: 0;
}

/* ================================================
   首页样式
   ================================================ */
.home-section .host-banner {
    /* 复用共享样式，仅调整顶部偏移 */
}

.home-section .header {
    position: absolute;
    top: 34px;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
}
.home-section .header-content { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.home-section .header-title { font-size: 17px; font-weight: 600; }
.home-section .header-link { font-size: 14px; color: rgba(255,255,255,0.8); text-decoration: none; padding: 6px 12px; background: rgba(255,255,255,0.1); border-radius: 20px; }

.home-section .page-container {
    position: absolute;
    top: 94px;
    left: 0;
    right: 0;
    bottom: 60px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
    background: #f0f2f5;
}

.home-section .card { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.home-section .card-header { margin-bottom: 14px; }
.home-section .card-header h2 { font-size: 15px; font-weight: 600; color: #333; }
.home-section .card-body { padding: 0; }

.home-section .form-group { margin-bottom: 14px; }
.home-section .form-label { font-size: 14px; color: #666; margin-bottom: 6px; display: block; }
.home-section .form-input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid #e5e5e5; border-radius: 8px; font-size: 15px; background: #fff; }
.home-section .form-input:focus { border-color: #1677ff; outline: none; }
.home-section .input-with-history { position: relative; }

.home-section .dropdown-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
}
.home-section .dropdown-list.show { display: block; }
.home-section .dropdown-item { padding: 12px 14px; border-bottom: 1px solid #f5f5f5; min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.home-section .dropdown-item:active { background: #f5f5f5; }
.home-section .dropdown-item-value { font-weight: 600; font-size: 14px; }
.home-section .dropdown-item-subtitle { font-size: 12px; color: #999; margin-top: 2px; }
.home-section .dropdown-header { padding: 8px 14px; font-size: 12px; color: #999; border-bottom: 1px solid #f5f5f5; }
.home-section .tiktok-id-item { justify-content: space-between; }
.home-section .tiktok-id-text { font-weight: 500; color: #333; }
.home-section .tiktok-id-delete { color: #999; font-size: 18px; padding: 0 8px; cursor: pointer; transition: color 0.2s; }
.home-section .tiktok-id-delete:hover { color: #ff4d4f; }
.home-section .btn-clear-history { margin-top: 6px; background: none; border: none; color: #999; font-size: 12px; cursor: pointer; text-align: left; padding: 0; }
.home-section .btn-clear-history:hover { color: #ff4d4f; }

/* 全局 reset */
html, body { width: 100%; height: 100%; overflow: hidden; }

.home-section .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}
.home-section .btn-success { background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%); color: #fff; }
.home-section .btn-danger { background: linear-gradient(135deg, #ff4d4f 0%, #cf1322 100%); color: #fff; }
.home-section .btn-small { height: 36px; padding: 0 12px; font-size: 13px; }
.home-section .btn-full { width: 100%; }
.home-section .btn-full-margin { width: 100%; margin-bottom: 10px; }
.home-section .btn:active { opacity: 0.85; }
.home-section .btn:disabled { opacity: 0.5; background: #e5e5e5; color: #999; cursor: not-allowed; }

.home-section .status-display { margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0f0f0; }
.home-section .status-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.home-section .status-row:last-child { margin-bottom: 0; }
.home-section .label-text { color: #999; font-size: 14px; }
.home-section .status-online { color: #52c41a; font-weight: 600; }
.home-section .status-offline { color: #999; font-weight: 600; }

/* ================================================
   弹幕页样式
   ================================================ */
/* Pretendard font loaded via <link> in HTML */

.danmu-section * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.danmu-section html, .danmu-section body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.5;
    width: 100%;
    height: 100%;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.danmu-section .host-banner { height: 34px; }

.danmu-section .header {
    position: absolute;
    top: 34px; left: 0; right: 0;
    height: 64px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 12px;
    z-index: 1000;
}
.danmu-section .header-content { width: 100%; height: 100%; display: flex; justify-content: space-between; align-items: center; }
.danmu-section .header-left { display: flex; align-items: flex-end; gap: 10px; }
.danmu-section .room-block { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.danmu-section .room-label { font-size: 10px; opacity: 0.6; letter-spacing: 0.5px; }
.danmu-section .room-id { font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.danmu-section .print-block { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.danmu-section .print-label-key { font-size: 10px; opacity: 0.6; }
.danmu-section .print-label-val { font-size: 13px; color: #40a9ff; font-weight: 600; text-shadow: 0 0 6px rgba(64, 169, 255, 0.3); }
.danmu-section .header-right { display: flex; align-items: center; }
.danmu-section .status-block { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.danmu-section .status-row { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #52c41a; letter-spacing: 0.5px; }
.danmu-section .danmu-count { font-size: 11px; color: #ffd700; font-weight: 700; letter-spacing: 0.5px; }
.danmu-section .status-indicator { width: 6px; height: 6px; border-radius: 50%; background: #999; flex-shrink: 0; }
.danmu-section .status-indicator.active { background: #52c41a; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.danmu-section .settings-bar {
    position: absolute;
    top: 108px; left: 0; right: 0;
    height: 50px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 999;
}
.danmu-section .setting-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #666; }
.danmu-section .setting-item select { border: 1px solid #d9d9d9; border-radius: 4px; padding: 4px 8px; font-size: 12px; background: #fff; }
.danmu-section .setting-actions { display: flex; gap: 6px; }
.danmu-section .btn-small { border: 1px solid #d9d9d9; background: #fff; padding: 6px 12px; border-radius: 4px; font-size: 12px; color: #666; cursor: pointer; }
.danmu-section .btn-small:active { background: #f5f5f5; }
.danmu-section .btn-small.active { background: #1677ff; color: #fff; border-color: #1677ff; }

.danmu-section .danmu-container {
    position: absolute;
    top: 158px; left: 0; right: 0; bottom: 60px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #f5f5f5;
}
.danmu-section .danmu-list { display: flex; flex-direction: column; }
.danmu-section .empty-message { text-align: center; padding: 60px 20px; color: #999; font-size: 14px; }
.danmu-section .danmu-container::-webkit-scrollbar { width: 4px; }
.danmu-section .danmu-container::-webkit-scrollbar-track { background: transparent; }
.danmu-section .danmu-container::-webkit-scrollbar-thumb { background: #ff4d4f; border-radius: 2px; }

.danmu-section .danmu-item-wrapper { position: relative; overflow: hidden; background: #fff; }
.danmu-section .danmu-item-wrapper.danmu-has-price { background: #ffe0e0; }
.danmu-section .danmu-item-wrapper.danmu-has-price .danmu-item { background: #ffe0e0; }
.danmu-section .danmu-item {
    position: relative; z-index: 1; background: #fff;
    border-bottom: 1px solid #e5e5e5;
    transition: transform 0.15s ease-out;
    min-height: 70px;
    display: flex; align-items: stretch;
}
.danmu-section .danmu-item.swiped { transform: translateX(-70px); }
.danmu-section .danmu-left { flex: 4; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 10px 8px 10px 12px; gap: 4px; }
.danmu-section .danmu-right { flex: 1; min-width: 50px; max-width: 70px; display: flex; align-items: stretch; justify-content: center; padding: 10px 10px 10px 0; }
.danmu-section .danmu-top { display: flex; justify-content: space-between; align-items: flex-start; }
.danmu-section .danmu-user { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.danmu-section .danmu-nickname { font-size: 14px; font-weight: 600; color: #1677ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.danmu-section .danmu-uid { font-size: 11px; color: #999; }
.danmu-section .danmu-time { font-size: 11px; color: #bbb; white-space: nowrap; flex-shrink: 0; margin-left: 8px; }
.danmu-section .danmu-bottom { display: flex; align-items: flex-start; }
.danmu-section .danmu-message { font-size: 14px; color: #333; line-height: 1.5; word-wrap: break-word; word-break: break-all; }
.danmu-section .danmu-order-info { font-size: 13px; color: #f5222d; font-weight: 600; margin-top: 4px; }
.danmu-section .danmu-upload-time { font-size: 11px; color: #999; margin-top: 4px; }

.danmu-section .btn-print { width: 100%; flex: 1; border: 1px solid #d9d9d9; background: #fff; border-radius: 4px; font-size: 12px; color: #666; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.danmu-section .btn-print:active { background: #1677ff; color: #fff; border-color: #1677ff; }
.danmu-section .btn-print.printed { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-color: transparent; color: #fff; }
.danmu-section .btn-print.printed:active { opacity: 0.8; }

.danmu-section .danmu-swipe-actions { position: absolute; right: 0; top: 0; bottom: 0; width: 70px; display: flex; background: #ff4d4f; }
.danmu-section .danmu-swipe-actions-right { position: absolute; left: 0; top: 0; bottom: 0; width: 70px; display: flex; background: #52c41a; }
.danmu-section .btn-price { width: 100%; height: 100%; border: none; background: #52c41a; color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.danmu-section .btn-price:active { background: #73d13d; }
.danmu-section .btn-price-icon { font-size: 16px; }
.danmu-section .btn-order { width: 100%; height: 100%; border: none; background: #ff4d4f; color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.danmu-section .btn-order:active { background: #ff7875; }
.danmu-section .btn-order-icon { font-size: 16px; }

/* ================================================
   订单页样式
   ================================================ */
.orders-section * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.orders-section html, .orders-section body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.5;
    width: 100%;
    height: 100%;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.orders-section .host-banner { height: 34px; }

.orders-section .header {
    position: absolute; top: 34px; left: 0; right: 0;
    height: 50px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff; display: flex; align-items: center; padding: 0 16px; z-index: 1000;
}
.orders-section .header-content { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.orders-section .header-title-wrap { display: flex; align-items: center; gap: 8px; }
.orders-section .header-title { font-size: 15px; font-weight: 600; }
.orders-section .header-stats { font-size: 12px; color: #fff; opacity: 0.9; }
.orders-section .header-stats .stat-num { font-weight: 700; margin: 0 2px; }
.orders-section .header-actions { display: flex; gap: 8px; align-items: center; }
.orders-section .select-all-label { display: flex; align-items: center; gap: 4px; color: #fff; font-size: 12px; cursor: pointer; }
.orders-section .select-all-label input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }

.orders-section .upload-progress {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,0.8); padding: 8px 16px;
}
.orders-section .progress-bar { height: 6px; background: rgba(255,255,255,0.2); border-radius: 3px; overflow: hidden; }
.orders-section .progress-fill { height: 100%; background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); border-radius: 3px; width: 0%; transition: width 0.3s ease; }
.orders-section .progress-text { font-size: 12px; color: #fff; text-align: center; margin-top: 4px; }

.orders-section .btn { border: none; border-radius: 6px; padding: 8px 16px; font-size: 13px; cursor: pointer; transition: all 0.2s; }
.orders-section .btn-small { padding: 6px 12px; font-size: 12px; }
.orders-section .btn-light { background: rgba(255,255,255,0.2); color: #fff; }
.orders-section .btn-light:active { background: rgba(255,255,255,0.3); }
.orders-section .btn-primary { background: #1677ff; color: #fff; }
.orders-section .btn-primary:active { background: #0958d9; }
.orders-section .btn-primary:disabled { background: #0958d9; opacity: 0.5; cursor: not-allowed; }
.orders-section .btn-danger { background: #dc3545; color: white; }
.orders-section .btn-danger:active { background: #c82333; }
.orders-section .btn-danger:disabled { opacity: 0.5; cursor: not-allowed; }

.orders-section .page-container {
    position: absolute;
    top: 84px; left: 0; right: 0; bottom: 60px;
    overflow-y: auto; padding: 12px;
}

.orders-section .order-group { background: #fff; border-radius: 12px; margin-bottom: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.orders-section .group-header { display: flex; align-items: center; padding: 12px 16px; cursor: pointer; transition: background 0.2s; }
.orders-section .group-header:active { background: #f9f9f9; }
.orders-section .group-checkbox { display: flex; align-items: center; margin-right: 8px; cursor: pointer; }
.orders-section .group-checkbox input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
.orders-section .group-info { flex: 1; min-width: 0; }
.orders-section .group-name { font-size: 15px; font-weight: 600; color: #333; display: flex; align-items: center; gap: 4px; }
.orders-section .order-count-badge { font-size: 12px; font-weight: 700; color: #e74c3c; background: #fef0ef; padding: 1px 6px; border-radius: 8px; }
.orders-section .member-badge { font-size: 12px; font-weight: 500; }
.orders-section .member-badge.blacklist { color: #f5222d; }
.orders-section .member-badge.stoppay { color: #fa8c16; }
.orders-section .group-meta { font-size: 12px; color: #999; margin-top: 2px; display: flex; gap: 8px; }
.orders-section .member-id { color: #666; }
.orders-section .old-member { color: #999; }
.orders-section .member-memo { font-size: 11px; color: #fa8c16; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orders-section .group-arrow { font-size: 12px; color: #999; transition: transform 0.2s; padding: 8px; }
.orders-section .group-arrow.expanded { transform: rotate(180deg); }
.orders-section .group-orders { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: #fafafa; }
.orders-section .group-orders.expanded { max-height: 1000px; border-top: 1px solid #eee; }
.orders-section .order-item { display: flex; align-items: flex-start; padding: 10px 16px; border-bottom: 1px solid #f0f0f0; font-size: 12px; transition: background 0.2s; }
.orders-section .order-item:last-child { border-bottom: none; }
.orders-section .order-item.selected { background: #e6f7ff; }
.orders-section .order-checkbox { display: flex; align-items: center; margin-right: 8px; cursor: pointer; }
.orders-section .order-checkbox input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.orders-section .order-main { flex: 1; display: flex; justify-content: space-between; align-items: center; }
.orders-section .order-price-info { font-size: 12px; }
.orders-section .order-price { color: #333; font-weight: 600; }
.orders-section .order-quantity { color: #999; margin: 0 2px; }
.orders-section .order-total { color: #f5222d; font-weight: 600; }
.orders-section .order-time { font-size: 10px; color: #999; }
.orders-section .order-content { font-size: 11px; color: #666; margin-top: 2px; word-break: break-all; flex: 1; }
.orders-section .empty-state { text-align: center; padding: 60px 20px; color: #999; }
.orders-section .empty-state-icon { font-size: 48px; margin-bottom: 12px; }
.orders-section .empty-state-text { font-size: 14px; color: #999; }
.orders-section .loading { text-align: center; padding: 20px; color: #999; font-size: 13px; }
.orders-section .no-orders { text-align: center; padding: 20px; color: #999; font-size: 13px; }

/* ================================================
   商城订单页样式
   ================================================ */
.mall-section * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.mall-section html, .mall-section body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: #f0f2f5;
    color: #333;
    line-height: 1.5;
    width: 100%;
    height: 100%;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.mall-section .host-banner {
    height: 34px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.mall-section .header {
    position: absolute; top: 34px; left: 0; right: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 100;
    padding: 8px 16px 0;
}
.mall-section .header-title-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mall-section .header-title { font-size: 18px; font-weight: 700; }
.mall-section .header-stats { font-size: 13px; color: #666; }
.mall-section .stat-num { color: #11998e; font-weight: 700; font-size: 16px; }
.mall-section .stat-sep { margin: 0 3px; }
.mall-section .refresh-btn { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: none; background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); color: #fff; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.mall-section .date-filter { display: flex; gap: 6px; padding-bottom: 10px; }
.mall-section .date-btn { flex: 1; padding: 5px 0; border: 1px solid #e0e0e0; background: #fff; border-radius: 6px; font-size: 13px; color: #666; cursor: pointer; text-align: center; transition: all 0.2s; }
.mall-section .date-btn.active { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); border-color: #11998e; color: #fff; font-weight: 600; }

.mall-section .page-container {
    position: absolute;
    top: 102px; left: 0; right: 0; bottom: 56px;
    overflow-y: auto; padding: 10px 12px 80px;
    -webkit-overflow-scrolling: touch;
}

.mall-section .date-block { margin-bottom: 14px; }
.mall-section .date-block-header { display: flex; align-items: center; justify-content: space-between; padding: 5px 10px; background: #e8e8e8; border-radius: 6px; margin-bottom: 6px; font-size: 12px; color: #666; }
.mall-section .date-block-title { font-weight: 600; color: #444; }
.mall-section .date-block-count { color: #999; }
.mall-section .date-block-amount { font-weight: 700; color: #11998e; }
.mall-section .buyer-card { background: #fff; border-radius: 10px; margin-bottom: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.mall-section .buyer-card-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; cursor: pointer; }
.mall-section .buyer-card-header-left { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.mall-section .buyer-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mall-section .buyer-info { min-width: 0; }
.mall-section .buyer-name { font-size: 14px; font-weight: 600; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mall-section .buyer-id { font-size: 11px; color: #aaa; }
.mall-section .buyer-card-header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mall-section .buyer-total { font-size: 14px; font-weight: 700; color: #11998e; }
.mall-section .buyer-count { font-size: 11px; color: #999; background: #f0f0f0; border-radius: 10px; padding: 1px 7px; }
.mall-section .buyer-arrow { font-size: 12px; color: #bbb; transition: transform 0.2s; }
.mall-section .buyer-card-header.collapsed .buyer-arrow { transform: rotate(-90deg); }
.mall-section .buyer-card-body { border-top: 1px solid #f0f0f0; padding: 6px 10px 8px; }
.mall-section .buyer-card-header.collapsed + .buyer-card-body { display: none; }
.mall-section .order-row { display: flex; align-items: flex-start; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed #f5f5f5; gap: 8px; }
.mall-section .order-row:last-child { border-bottom: none; }
.mall-section .order-row-left { flex: 1; min-width: 0; }
.mall-section .order-sess { font-size: 10px; color: #bbb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.mall-section .order-items-list { font-size: 12px; color: #666; }
.mall-section .order-item-text { display: flex; justify-content: space-between; padding: 1px 0; }
.mall-section .order-item-price { color: #333; font-weight: 500; }
.mall-section .order-item-name { color: #666; font-size: 12px; flex: 1; }
.mall-section .order-item-num { color: #999; }
.mall-section .order-row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.mall-section .order-price { font-size: 14px; font-weight: 700; color: #11998e; }
.mall-section .order-del-btn { font-size: 10px; color: #ff4d4f; background: none; border: 1px solid #ff4d4f; border-radius: 3px; padding: 1px 5px; cursor: pointer; white-space: nowrap; }
.mall-section .order-del-btn:hover { background: #fff0f0; }
.mall-section .buyer-del-btn { font-size: 10px; color: #ff4d4f; background: none; border: 1px solid #ff4d4f; border-radius: 3px; padding: 1px 5px; cursor: pointer; }
.mall-section .buyer-del-btn:hover { background: #fff0f0; }
.mall-section .empty-state { text-align: center; padding: 60px 20px; color: #999; }
.mall-section .empty-state-icon { font-size: 48px; margin-bottom: 12px; }
.mall-section .empty-state-text { font-size: 14px; }
.mall-section .loading { text-align: center; padding: 40px; color: #999; font-size: 14px; }
.mall-section .btn { padding: 8px 16px; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; font-weight: 500; }
.mall-section .btn-small { padding: 5px 12px; font-size: 12px; }

/* ================================================
   共享样式（底部导航 + Toast + 弹窗）
   ================================================ */

/* 底部导航 - SPA 共享，统一 fixed */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: #fff;
    display: flex;
    border-top: 1px solid #e5e5e5;
    z-index: 1000;
}
.nav-container { width: 100%; display: flex; justify-content: space-around; align-items: center; height: 100%; }
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #999; cursor: pointer; height: 100%; transition: color 0.2s; }
.nav-item.active { color: #1677ff; }
.nav-item-icon { font-size: 22px; margin-bottom: 2px; }
.nav-item-text { font-size: 10px; }

/* 商城页面导航高亮为绿色 */
[data-active-page="mall"] .bottom-nav .nav-item.active { color: #11998e; }
.mall-section .bottom-nav { box-shadow: 0 -2px 8px rgba(0,0,0,0.06); z-index: 100; border-top: none; }
.mall-section .nav-container { height: 56px; }
.mall-section .nav-item-icon { font-size: 20px; }

/* Toast */
.toast {
    position: fixed;
    top: 120px; left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 24px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s;
    max-width: 80%;
    text-align: center;
    pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: rgba(82, 196, 26, 0.9); }
.toast.error { background: rgba(255, 77, 79, 0.9); }
.toast.warning { background: rgba(250, 173, 20, 0.9); }

/* 自定义弹窗 */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}
.modal.show { display: flex; }
.modal-content {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 320px;
    padding: 24px 20px 20px;
    animation: modalIn 0.2s ease;
}
@keyframes modalIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-title { font-size: 17px; font-weight: 600; color: #333; margin-bottom: 12px; text-align: center; }
.modal-message { font-size: 15px; color: #666; line-height: 1.6; text-align: center; margin-bottom: 24px; white-space: pre-line; }
.modal-buttons { display: flex; gap: 12px; }
.modal-btn { flex: 1; height: 44px; border: none; border-radius: 8px; font-size: 15px; font-weight: 500; cursor: pointer; }
.modal-btn-cancel { background: #f5f5f5; color: #666; }
.modal-btn-cancel:active { background: #e8e8e8; }
.modal-btn-confirm { background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%); color: #fff; }
.modal-btn-confirm:active { opacity: 0.85; }
.modal-btn-confirm.danger { background: linear-gradient(135deg, #ff4d4f 0%, #cf1322 100%); }
.modal-btn-confirm.success { background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%); }

/* 弹幕页弹窗 */
.danmu-section .modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000; opacity: 1; transition: opacity 0.2s ease;
}
.danmu-section .modal-overlay.closing { opacity: 0; }
.danmu-section .modal-content {
    background: #fff; border-radius: 12px;
    width: 85%; max-width: 320px; padding: 20px;
    opacity: 1; transform: scale(1);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.danmu-section .modal-title { font-size: 18px; font-weight: 600; text-align: center; margin-bottom: 20px; color: #333; }
.danmu-section .modal-body { margin-bottom: 20px; }
.danmu-section .input-group { margin-bottom: 16px; }
.danmu-section .input-group label { display: block; font-size: 14px; color: #666; margin-bottom: 6px; }
.danmu-section .input-group input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 16px; text-align: center; }
.danmu-section .input-group input:focus { outline: none; border-color: #1677ff; }
.danmu-section .modal-actions { display: flex; gap: 12px; }
.danmu-section .modal-actions button { flex: 1; padding: 12px; border-radius: 8px; font-size: 15px; cursor: pointer; border: none; }
.danmu-section .btn-cancel { background: #f5f5f5; color: #666; }
.danmu-section .btn-confirm { background: #1677ff; color: #fff; }
.danmu-section .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.danmu-section .modal-close { width: 28px; height: 28px; border: none; background: #f5f5f5; border-radius: 50%; font-size: 18px; color: #999; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; }
.danmu-section .modal-close:hover { background: #e5e5e5; color: #666; }
.danmu-section .price-filter-modal .modal-body { padding: 0 10px; }
.danmu-section .price-filter-inputs { display: flex; align-items: center; justify-content: center; gap: 12px; }
.danmu-section .price-filter-separator { font-size: 20px; color: #999; padding-top: 24px; }
.danmu-section .price-filter-inputs .input-group { flex: 1; margin-bottom: 0; }
.danmu-section .price-filter-inputs .input-group label { text-align: center; }
.danmu-section .price-filter-inputs .input-group input { text-align: center; }

/* 隐藏 */
.hidden { display: none !important; }
