/* ========================================
   标的物详情页样式
   ======================================== */

.container {
    min-height: 100vh;
    background: var(--bg-light);
    line-height: 1;
    padding-bottom: 80px;
}

/* ===== 导航栏 ===== */
.nav-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #FFF;
    border-bottom: 1px solid var(--border);
}

.nav-back {
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-title {
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

/* ===== 标的物图片轮播 ===== */
.container-img {
    position: relative;
    width: 100%;
    height: 250px;
}

.swiper-content {
    width: 100%;
    height: 100%;
}

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

/* ===== 拍卖状态 ===== */
.auction-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary);
    padding: 0 16px;
    height: 42px;
    color: #FFF;
    font-size: 14px;
}

.state_label {
    font-weight: var(--font-weight-bold);
}

/* ===== 标的物基本信息 ===== */
.auction-info {
    padding: 12px;
    background: #FFF;
}

.auction_title {
    font-weight: var(--font-weight-bold);
    font-size: 14px;
    line-height: 1.4;
}

.auction-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.price {
    display: flex;
    align-items: flex-end;
    font-size: 12px;
    color: var(--primary);
}

.price_label {
    color: var(--text-primary);
}

.price_number {
    font-size: 21px;
    font-weight: var(--font-weight-bold);
}

.attention {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--text-tertiary);
    cursor: pointer;
}

.icon-guanzhu::before {
    content: "⭐";
    font-size: 12px;
    margin-right: 3px;
}

.attention:hover .icon-guanzhu::before {
    content: "⭐";
    color: var(--primary);
}

/* ===== 主体内容 ===== */
.main {
    padding: 12px;
}

/* ===== 标的信息 ===== */
.lots-info {
    margin-bottom: 16px;
}

.lots-info_title {
    padding: 2px 8px;
    border-left: 4px solid var(--primary);
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.lots-info-content {
    display: flex;
    flex-wrap: wrap;
    margin-top: 12px;
    padding: 12px;
    background: #FFF;
    border-radius: 9px;
}

.lost-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    width: 50%;
    font-size: 12px;
}

.lost-row.single-line {
    width: 100%;
}

.lost-row_label {
    margin-right: 4px;
    color: var(--text-tertiary);
}

.lost-row_text {
    flex: 1;
    color: var(--text-primary);
}

.house-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    width: 50%;
    font-size: 14px;
}

.house-row.single-line {
    width: 100%;
}

.house-row_label {
    margin-right: 4px;
    color: var(--text-tertiary);
}

.house-row-text {
    flex: 1;
    color: var(--text-primary);
}

/* ===== 标签页 ===== */
.tabs-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}

.tabs_item {
    padding: 4px 0 14px;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.tabs_item.active {
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    border-color: var(--primary);
}

/* ===== 拍卖公告 ===== */
.notice-content {
    padding: 10px;
    background: #FFF;
    border-radius: 4px;
}

.notice-title {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: var(--font-weight-bold);
    text-align: center;
    line-height: 1.2;
}

.notice-code {
    padding-bottom: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

.auction-main {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
}

.auction-row {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.3;
}

.auction-row + .auction-row {
    margin-top: 8px;
}

.row_label {
    flex-shrink: 0;
    margin-right: 12px;
    color: var(--text-secondary);
}

.row_text {
    word-break: break-all;
    flex: 1;
}

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

.a_link {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 4px;
}

.rich-content {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.rich-content p {
    margin-bottom: 8px;
    text-indent: 2em;
}

/* ===== 竞价记录表格 ===== */
.table-content {
    margin-top: 12px;
    padding: 12px;
    background: #FFF;
    border-radius: 6px;
}

.table-row {
    display: flex;
    font-size: 12px;
    text-align: center;
    padding: 12px 6px;
}

.table-row.lead {
    color: var(--primary);
}

.table-item_state {
    width: 30px;
}

.table-item_number {
    width: 100px;
}

.table-item_price {
    width: 100px;
}

.table-item_time {
    width: 100px;
}

.table-header {
    background: #e2e2e2;
    font-size: 14px;
}

.table-main {
    max-height: 200px;
    overflow-y: auto;
}

.table-row + .table-row {
    border-top: 1px solid var(--border);
}

/* ===== 底部操作栏 ===== */
.foot-module {
    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 var(--border);
    z-index: 100;
}

.foot-box {
    width: 100%;
}

.foot-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.quote-content {
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.quote_btn {
    padding: 9px;
    height: 24px;
    line-height: 24px;
    width: 24px;
    text-align: center;
    background: var(--primary);
    color: #FFF;
    font-size: 24px;
    cursor: pointer;
    user-select: none;
}

.quote_btn.minus {
    border-radius: 6px 0 0 6px;
}

.quote_btn.add {
    border-radius: 0 6px 6px 0;
}

.quote_price {
    padding: 9px;
    height: 24px;
    line-height: 24px;
    width: 130px;
    text-align: center;
    background: #f0f0f0;
    font-weight: var(--font-weight-bold);
}

.foot-btn {
    flex: 1;
    padding: 9px 0;
    width: 100%;
    height: 24px;
    line-height: 24px;
    color: #FFF;
    text-align: center;
    background: var(--primary);
    border-radius: 6px;
    cursor: pointer;
}

.foot-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ===== 响应式调整 ===== */
@media (max-width: 375px) {
    .auction_title {
        font-size: 13px;
    }

    .price_number {
        font-size: 19px;
    }

    .lots-info_title {
        font-size: 13px;
    }
}
