/**
 * 二手车商城 - 手机端采集页样式（金鱼塘风格）
 */

:root {
    --yellow: #f5c842;
    --yellow-dark: #e5b832;
    --yellow-light: #fef9e7;
}

.mobile-app {
    min-height: 100vh;
    background: #f5f5f5;
    padding-bottom: 100px;
}

/* ========== 顶部导航 ========== */
.mobile-header {
    background: white;
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eee;
}

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

.mobile-header-back {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
}

.mobile-header-title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

.mobile-header-actions {
    display: flex;
    gap: 12px;
    font-size: 18px;
    color: #666;
}

/* ========== 标签切换 ========== */
.tab-bar {
    display: flex;
    background: white;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 53px;
    z-index: 99;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    position: relative;
    border: none;
    background: none;
    font-family: inherit;
}

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

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

/* ========== 表单区域 ========== */
.form-section {
    background: white;
    margin-bottom: 10px;
}

.section-header {
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-header .required-mark {
    color: #ff4d4f;
    margin-left: 2px;
}

.section-header .section-tip {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.section-header .section-link {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* ========== 图片上传 ========== */
.upload-section {
    padding: 0 16px 16px;
}

.upload-hint {
    font-size: 12px;
    color: #ff9500;
    margin-bottom: 12px;
    line-height: 1.5;
}

.upload-hint .highlight {
    color: #ff4d4f;
}

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

.upload-slot {
    aspect-ratio: 1;
    border-radius: 8px;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.upload-slot .plus {
    font-size: 32px;
    color: #ccc;
    font-weight: 300;
}

.upload-slot input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

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

.upload-slot .cover-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: var(--yellow);
    color: #333;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.upload-slot .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ========== 表单行 ========== */
.form-row {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-top: 1px solid #f0f0f0;
    min-height: 52px;
}

.form-row-label {
    width: 90px;
    font-size: 14px;
    color: #333;
    flex-shrink: 0;
}

.form-row-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 14px;
    color: #333;
    outline: none;
    text-align: right;
    font-family: inherit;
}

.form-row-input::placeholder {
    color: #bbb;
}

.form-row-unit {
    font-size: 14px;
    color: #999;
    margin-left: 4px;
}

.form-row-arrow {
    font-size: 14px;
    color: #ccc;
    margin-left: 4px;
}

.form-row-icon {
    font-size: 18px;
    color: #999;
    margin-left: 8px;
    cursor: pointer;
}

/* ========== 证件材料 ========== */
.doc-upload {
    padding: 0 16px 16px;
}

.doc-hint {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.doc-hint .warn {
    color: #ff4d4f;
}

/* ========== 检测报告 ========== */
.report-section {
    padding: 0 16px 16px;
}

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

.report-header .report-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.report-header .report-link {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 2px;
}

.report-tip {
    font-size: 12px;
    color: #ff9500;
    margin-bottom: 12px;
}

.report-type {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
}

.report-type label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.report-type input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--yellow);
}

/* ========== 详细车况 ========== */
.condition-section {
    padding: 0 16px 16px;
}

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

.condition-header span {
    font-size: 13px;
    color: #666;
}

.condition-header .clear-btn {
    font-size: 13px;
    color: #999;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.condition-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

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

.condition-tag.active {
    background: var(--yellow-light);
    color: #333;
    border: 1px solid var(--yellow);
}

.condition-tag.negative {
    color: #ff4d4f;
}

.condition-tag.negative.active {
    background: #fff1f0;
    border-color: #ff4d4f;
    color: #ff4d4f;
}

.textarea-box {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    background: white;
}

.textarea-box textarea {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    resize: none;
    min-height: 80px;
    font-family: inherit;
}

.textarea-box textarea::placeholder {
    color: #bbb;
}

.textarea-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.textarea-footer .expand-btn {
    font-size: 12px;
    color: #999;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 2px;
    cursor: pointer;
}

.textarea-footer .char-count {
    font-size: 12px;
    color: #999;
}

/* ========== 选择标签 ========== */
.tag-section {
    padding: 0 16px 16px;
}

.tag-group-title {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

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

.select-tag {
    padding: 7px 16px;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    background: white;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s;
}

.select-tag.active {
    background: var(--yellow-light);
    border-color: var(--yellow);
    color: #333;
}

.select-tag.negative {
    color: #ff4d4f;
    border-color: #ffccc7;
}

.select-tag.negative.active {
    background: #fff1f0;
    border-color: #ff4d4f;
}

/* ========== 开关行 ========== */
.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-top: 1px solid #f0f0f0;
}

.switch-row-label {
    font-size: 14px;
    color: #333;
}

.switch-row-tip {
    font-size: 12px;
    color: #ff9500;
    margin-top: 2px;
}

/* 开关样式 */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 28px;
    background: #ddd;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.3s;
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch.active {
    background: var(--yellow);
}

.toggle-switch.active::after {
    transform: translateX(20px);
}

/* ========== 协议区 ========== */
.agreement-section {
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.agreement-section input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--yellow);
    flex-shrink: 0;
}

.agreement-text {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.agreement-text a {
    color: var(--yellow-dark);
    text-decoration: none;
}

/* ========== 底部按钮 ========== */
.bottom-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    display: flex;
    gap: 12px;
    z-index: 100;
    border-top: 1px solid #eee;
}

.bottom-actions .btn-publish {
    flex: 1;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: var(--yellow);
    color: #333;
}

.bottom-actions .btn-publish:active {
    background: var(--yellow-dark);
}

.bottom-actions .btn-account {
    flex: 1;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid #ddd;
    cursor: pointer;
    background: white;
    color: #333;
}

.bottom-actions .btn-account:active {
    background: #f5f5f5;
}

/* ========== 底部Tab导航 ========== */
.mobile-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    z-index: 200;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-tabbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
    gap: 2px;
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    color: #999;
    font-size: 11px;
}

.mobile-tabbar-item.active {
    color: var(--yellow-dark);
}

.mobile-tabbar-icon {
    font-size: 22px;
    line-height: 1;
}

.mobile-tabbar-label {
    font-size: 11px;
}

/* ========== Tab页面容器 ========== */
.tab-page {
    display: none;
    min-height: 100vh;
    background: #f5f5f5;
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
}

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

/* ========== 首页 - 推荐车源 ========== */
.home-header {
    background: linear-gradient(135deg, #f5c842 0%, #f0b820 100%);
    padding: 12px 16px 16px;
}

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

.home-header-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.home-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 8px 14px;
    gap: 8px;
}

.home-search-box input {
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    flex: 1;
    font-family: inherit;
}

.home-search-box input::placeholder {
    color: #bbb;
}

.home-filter-bar {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    overflow-x: auto;
    white-space: nowrap;
}

.home-filter-bar::-webkit-scrollbar {
    display: none;
}

.home-filter-item {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
}

.home-filter-item.active {
    background: var(--yellow);
    color: #333;
    font-weight: 500;
}

/* 车源卡片 - 纵向列表 */
.home-car-list {
    padding: 12px;
}

.home-car-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.home-car-card-img {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.home-car-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-car-card-cover {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--yellow);
    color: #333;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.home-car-card-body {
    padding: 12px 14px;
}

.home-car-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.home-car-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.home-car-card-tag {
    font-size: 11px;
    color: #ff9500;
    background: #fff7e6;
    padding: 2px 8px;
    border-radius: 4px;
}

.home-car-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.home-car-card-meta span {
    display: flex;
    align-items: center;
    gap: 2px;
}

.home-car-card-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.home-car-card-price {
    font-size: 20px;
    font-weight: 700;
    color: #ff4d4f;
}

.home-car-card-price-unit {
    font-size: 13px;
    font-weight: 400;
}

.home-car-card-guide {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.home-car-card-seller {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f5f5f5;
}

.home-car-card-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.home-car-card-seller-name {
    font-size: 12px;
    color: #666;
}

.home-car-card-seller-store {
    font-size: 11px;
    color: #999;
}

/* ========== 我的页面 ========== */
.mine-header {
    background: linear-gradient(135deg, #f5c842 0%, #f0b820 100%);
    padding: 40px 16px 30px;
    text-align: center;
}

.mine-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: white;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.mine-role {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

.mine-login-btn {
    display: inline-block;
    padding: 10px 32px;
    background: #333;
    color: white;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.mine-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 16px;
}

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

.mine-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.mine-stat-label {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.mine-menu {
    background: white;
    margin-top: 12px;
}

.mine-menu-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
}

.mine-menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--yellow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}

.mine-menu-text {
    flex: 1;
    font-size: 15px;
    color: #333;
}

.mine-menu-arrow {
    font-size: 14px;
    color: #ccc;
}

/* ========== 旧首页（保留兼容） ========== */
.mobile-home {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5c842 0%, #f0b820 100%);
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
}

.mobile-home-logo {
    font-size: 64px;
    margin-bottom: 16px;
}

.mobile-home-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.mobile-home-subtitle {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 40px;
}

.mobile-home-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 280px;
}

.mobile-home-btn {
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.mobile-home-btn-primary {
    background: #333;
    color: white;
}

.mobile-home-btn-secondary {
    background: rgba(255,255,255,0.9);
    color: #333;
}

/* ========== 成功页 ========== */
.success-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 40px 24px;
    background: white;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 24px;
    animation: scaleIn 0.5s ease;
}

.success-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.success-desc {
    font-size: 14px;
    color: #999;
    margin-bottom: 32px;
    line-height: 1.6;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 300px;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* ========== 列表页 ========== */
.mobile-list {
    padding: 12px;
}

.mobile-list-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    gap: 12px;
    padding: 12px;
}

.mobile-list-img {
    width: 100px;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.mobile-list-info {
    flex: 1;
    min-width: 0;
}

.mobile-list-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-list-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

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

.mobile-list-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

.mobile-list-actions .btn {
    padding: 5px 10px;
    font-size: 12px;
}

/* ========== 响应式 ========== */
@media (min-width: 769px) {
    .mobile-app {
        max-width: 480px;
        margin: 0 auto;
        box-shadow: 0 0 30px rgba(0,0,0,0.1);
    }
}

/* ========== 移动端触摸优化 ========== */
@media (max-width: 768px) {
    .mobile-header-back,
    .mobile-header-actions button {
        min-width: 44px;
        min-height: 44px;
    }

    .tab-item {
        min-height: 44px;
        padding: 10px 0;
        font-size: 14px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 12px 14px;
        font-size: 16px;
    }

    .tag-select-item {
        padding: 8px 14px;
        font-size: 13px;
        min-height: 36px;
    }

    .mobile-bottom-bar {
        padding: 8px 12px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }

    .mobile-bottom-bar .btn {
        min-height: 44px;
        font-size: 15px;
    }

    .image-upload-btn {
        min-height: 80px;
    }

    .image-preview-item .remove-btn {
        width: 24px;
        height: 24px;
    }

    .mobile-list-actions .btn {
        padding: 6px 12px;
        min-height: 32px;
    }

    .switch-item {
        min-height: 52px;
    }

    .protocol-text {
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .tag-select-item {
        padding: 6px 10px;
        font-size: 12px;
    }

    .form-section {
        padding: 12px;
    }

    .mobile-header {
        padding: 8px 12px;
    }

    .mobile-header-title {
        font-size: 15px;
    }
}

/* ========== 滚动条隐藏 ========== */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ========== 图片上传中占位 ========== */
.upload-slot .slot-loading {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    z-index: 3;
}
.slot-spinner {
    width: 22px;
    height: 22px;
    border: 2px solid #e5e5e5;
    border-top-color: #f5b301;
    border-radius: 50%;
    animation: slot-spin 0.7s linear infinite;
}
@keyframes slot-spin {
    to { transform: rotate(360deg); }
}

/* ========== 保障金说明 ========== */
.guarantee-banner {
    margin: 12px 12px 0;
    padding: 10px 12px;
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.6;
    color: #ad6800;
}

/* ========== 必填项行内高亮 ========== */
.form-row.invalid {
    background: #fff1f0;
    border-radius: 8px;
}
.form-row.invalid .form-row-input {
    color: #ff4d4f;
}

/* ========== 我的车源 - 状态徽标 ========== */
.mobile-list-img {
    position: relative;
}
.mobile-list-status {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 2px 6px;
    font-size: 10px;
    color: #fff;
    border-bottom-left-radius: 8px;
    border-top-right-radius: 8px;
}
.mobile-list-status.status-onsale { background: #16a34a; }
.mobile-list-status.status-off { background: #999; }
.mobile-list-status.status-reserved { background: #2563eb; }

/* ========== 发布按钮禁用态 ========== */
.btn-publish:disabled,
.btn-account:disabled {
    opacity: 0.7;
    pointer-events: none;
}

/* ========== 记账流水筛选行 ========== */
.ledger-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px 8px;
    flex-wrap: wrap;
}
.ledger-filter-input {
    flex: 1;
    min-width: 110px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    box-sizing: border-box;
}
.ledger-filter-select {
    flex: 1;
    min-width: 100px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    box-sizing: border-box;
}
.ledger-filter-sep { color: #9ca3af; font-size: 13px; }
.ledger-export-btn {
    height: 34px;
    padding: 0 14px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.ledger-export-btn:active { background: #1d4ed8; }

/* ========== 记账流水页 ========== */
.ledger-summary {
    display: flex;
    gap: 8px;
    padding: 12px;
}
.ledger-sum-card {
    flex: 1;
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.ledger-sum-card.out { border-top: 3px solid #ff4d4f; }
.ledger-sum-card.in { border-top: 3px solid #07c160; }
.ledger-sum-card.net { border-top: 3px solid #2563eb; }
.ledger-sum-value {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}
.ledger-sum-label {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.ledger-filter {
    display: flex;
    gap: 8px;
    padding: 0 12px 10px;
}
.ledger-filter-item {
    flex: 1;
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 999px;
    padding: 7px 0;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}
.ledger-filter-item.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    font-weight: 600;
}

.ledger-item {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}
.ledger-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}
.ledger-item-main {
    flex: 1;
    min-width: 0;
}
.ledger-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ledger-item-sub {
    font-size: 11px;
    color: #999;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ledger-item-amount {
    font-size: 16px;
    font-weight: 700;
    margin-left: 8px;
    flex-shrink: 0;
}
.ledger-item-del {
    position: absolute;
    top: 6px;
    right: 8px;
    border: none;
    background: transparent;
    color: #bbb;
    font-size: 13px;
    padding: 2px 4px;
    cursor: pointer;
}
.ledger-item-del:active { color: #ff4d4f; }

.ledger-fab {
    position: fixed;
    right: 18px;
    bottom: calc(24px + env(safe-area-inset-bottom));
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    cursor: pointer;
    z-index: 50;
}
.ledger-fab:active { transform: scale(0.96); }

/* 记账弹窗 */
.ledger-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 24px;
}
.ledger-modal {
    width: 100%;
    max-width: 360px;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
}
.ledger-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin-bottom: 16px;
}
.ledger-form { display: flex; flex-direction: column; gap: 6px; }
.ledger-label {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}
.ledger-select,
.ledger-input {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 15px;
    color: #222;
    background: #fafafa;
    box-sizing: border-box;
    outline: none;
}
.ledger-select:focus,
.ledger-input:focus { border-color: #2563eb; background: #fff; }
.ledger-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.ledger-modal-actions .btn { flex: 1; }

.mobile-empty {
    text-align: center;
    color: #aaa;
    font-size: 14px;
    padding: 60px 20px;
    line-height: 1.8;
}
