/* 详情页样式 - 按照参考图一比一还原 */

body {
    padding-bottom: 60px;
}

/* 返回按钮 */
.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.back-btn:active {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
}

/* 图片轮播 */
.image-slider {
    width: 100%;
    height: 375px;
    background: #f0f0f0;
    overflow: hidden;
    position: relative;
}

.slider-container {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.3s ease;
}

.slider-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.status-badge {
    position: absolute;
    bottom: 60px;
    left: 15px;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    z-index: 20;
}

.status-badge.ended {
    background: rgba(153, 153, 153, 0.9);
    color: #fff;
}

.status-badge.ongoing {
    background: rgba(76, 175, 80, 0.9);
    color: #fff;
}

.status-badge.upcoming {
    background: rgba(255, 152, 0, 0.9);
    color: #fff;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: #fff;
    width: 20px;
    border-radius: 4px;
}

/* 标题区域 */
.title-section {
    background: #fff;
    padding: 15px;
}

.item-title {
    font-size: 16px;
    font-weight: normal;
    color: #333;
    line-height: 1.5;
    margin: 0;
}

/* 当前价区域 */
.price-section {
    background: #fff;
    padding: 0 15px 15px 15px;
}

.price-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.price-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.price-value-wrapper {
    display: flex;
    flex-direction: column;
}

.price-value {
    font-size: 24px;
    font-weight: bold;
    color: #e04a32;
}

.price-chinese {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* 操作按钮行 */
.action-row {
    display: flex;
    background: #fff;
    margin-top: 10px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.action-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
    border-right: 1px solid #f0f0f0;
}

.action-item:last-child {
    border-right: none;
}

.action-count {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

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

/* 详细信息区域 */
.info-section {
    background: #fff;
    margin-top: 10px;
    padding: 15px;
}

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

.info-item {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.info-label {
    font-size: 14px;
    color: #666;
    font-weight: bold;
}

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

.info-phone {
    cursor: pointer;
}

/* 特别提示区域 */
.notice-section {
    background: #fff;
    margin-top: 10px;
    padding: 15px;
}

.notice-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.notice-content {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    white-space: pre-wrap;
}

/* 详情标签页 */
.detail-tabs-section {
    background: #fff;
    margin-top: 10px;
    margin-bottom: 80px;
}

.detail-tab-item {
    border-bottom: 1px solid #f0f0f0;
}

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

.tab-header-title {
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    background: #f9f9f9;
}

.tab-body {
    display: block;
    padding: 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    white-space: pre-wrap;
}

.bidding-result-section {
    background: #fff;
    margin-top: 10px;
    margin-bottom: 80px;
    padding: 20px 15px;
}

.result-subtitle {
    font-size: 14px;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
    padding-left: 8px;
}

.result-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #e04a32;
}

.result-main-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.result-content {
    margin-bottom: 30px;
    position: relative;
}

.result-row {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    line-height: 1.6;
}

/* 竞价结果行特殊样式 - 允许换行 */
#bidResultRow {
    flex-direction: column;
}

#bidResultRow .result-value {
    width: 100%;
    word-wrap: break-word;
    word-break: break-all;
    white-space: pre-wrap;
    line-height: 1.8;
}

.result-label {
    font-size: 14px;
    color: #333;
    width: 100px;
    margin-right: 10px;
    display: flex;
    justify-content: space-between;
}

.result-label .label-text {
    flex: 1;
    text-align: justify;
    text-align-last: justify;
    margin-right: 0;
}

.result-label .label-colon {
    flex-shrink: 0;
    margin-left: 0;
}

.result-value {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.result-footer-row {
    text-align: center;
    padding: 10px 0;
}

.result-footer-combined {
    text-align: center;
}

.result-footer-text {
    font-size: 14px;
    color: #333;
}

.result-footer-time {
    font-size: 14px;
    color: #333;
}

/* 底部操作栏 */
.bottom-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 15px;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    z-index: 100;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #666;
}

.consult-btn, .favorite-btn {
    flex: 0 0 auto;
}

.signup-btn {
    flex: 0 0 auto;
    width: 80px;
    height: 40px;
    background: #e04a32;
    color: #fff;
    border-radius: 4px;
    padding: 0;
    font-size: 14px;
    font-weight: bold;
    margin-left: auto;
}

.action-btn .btn-icon,
.action-btn i.btn-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.action-btn .btn-text {
    font-size: 12px;
    color: #666;
}

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

.signup-btn:hover {
    background: #c93d28;
}

.consult-btn:active, .favorite-btn:active {
    opacity: 0.6;
}

/* 响应式 */
@media (max-width: 768px) {
    .image-slider {
        height: 250px;
    }
}

/* 竞价结果二维码 */
.result-qr-code {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 80px;
    height: 80px;
}

.result-qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 移动端二维码调整 */
@media (max-width: 768px) {
    .result-qr-code {
        width: 60px;
        height: 60px;
        bottom: 5px;
        left: 5px;
    }
}

/* 标签页内容中的图片样式 */
#introContent img,
#announcementContent img,
#rulesContent img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
    border-radius: 4px;
}

/* 标签页内容格式化 */
#introContent,
#announcementContent,
#rulesContent {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 为你推荐 */
.recommend-section {
    padding: 20px 15px 80px;
    background: #f5f5f5;
}

.recommend-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.recommend-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.recommend-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
}

.recommend-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.recommend-info {
    padding: 10px;
}

.recommend-title-text {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommend-price {
    font-size: 16px;
    color: #e04a32;
    font-weight: bold;
    margin-bottom: 5px;
}

.recommend-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.recommend-status {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
}

.recommend-status.status-upcoming {
    background: #fff3e0;
    color: #ff9800;
}

.recommend-status.status-ongoing {
    background: #e8f5e9;
    color: #4caf50;
}

.recommend-status.status-ended {
    background: #f5f5f5;
    color: #999;
}
