* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    background: #e5e5e5;
    color: #333;
    line-height: 1.5;
    padding-bottom: 50px;
    min-height: 100vh;
}

.container {
    max-width: 750px;
    margin: 0 auto;
    padding: 0;
    background: #fff;
}

/* 主体内容区域 - 固定宽度 */
body > * {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    background: #fff;
}

body {
    background: #e5e5e5;
}

/* 头部 */
.header {
    background: #d03027;
    color: white;
    padding: 10px 0 20px;
}

.header-content {
    padding: 0 12px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 0;
    padding-top: 8px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.logo-text {
    font-size: 17px;
    font-weight: normal;
    letter-spacing: 1px;
}

.search-box {
    display: flex;
    gap: 0;
    align-items: center;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 9px 65px 9px 12px;
    border: none;
    border-radius: 18px;
    font-size: 13px;
    outline: none;
    background: white;
    color: #666;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    position: absolute;
    right: 4px;
    padding: 6px 16px;
    background: #d03027;
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

/* Banner区域 */
.banner-section {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
}

.search-box-wrapper {
    width: 100%;
    background: transparent;
    position: absolute;
    bottom: 50px;
    left: 0;
    z-index: 10;
    padding: 0;
}

.search-box-wrapper .container {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 0 12px;
    background: transparent;
}

.search-box {
    display: flex;
    gap: 0;
    align-items: center;
    position: relative;
    flex: 1;
}

.phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.phone-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* 分类导航 */
.categories {
    background: white;
    padding: 8px 0 8px;
    margin-bottom: 0;
    margin-top: 8px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding: 0 12px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    cursor: pointer;
}

.category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-name {
    font-size: 12px;
    color: #333;
}

/* 标签切换 */
.tabs {
    background: white;
    padding: 0;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e5e5;
}

.tab-list {
    display: flex;
    flex-direction: row;
    gap: 0;
    padding: 0 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    border-bottom: 2px solid transparent;
}

.tab-item.active {
    color: #333;
    font-weight: normal;
    border-bottom-color: #d03027;
}

/* 拍卖列表 */
.auctions {
    padding: 8px 0 20px;
    background: #f0f0f0;
}

.auction-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 8px;
}

.auction-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.status-badge {
    position: absolute;
    bottom: 6px;
    left: 0;
    padding: 2px 10px;
    border-radius: 0 10px 10px 0;
    font-size: 11px;
    color: white;
    z-index: 1;
}

.badge-upcoming {
    background: #ff9800;
}

.badge-ongoing {
    background: #d03027;
}

.badge-ended {
    background: #999;
}

.card-image {
    width: 100%;
    height: 100px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

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

.card-content {
    padding: 10px;
}

.card-title {
    font-size: 13px;
    font-weight: normal;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    min-height: 36px;
    color: #333;
}

.card-meta {
    font-size: 11px;
    color: #999;
    margin-bottom: 6px;
}

.meta-divider {
    margin: 0 2px;
}

.card-price {
    margin-bottom: 6px;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.price-label {
    font-size: 11px;
    color: #999;
}

.price-value {
    font-size: 20px;
    font-weight: bold;
    color: #d03027;
}

.price-unit {
    font-size: 12px;
    color: #d03027;
}

.card-stats {
    font-size: 11px;
    color: #999;
    padding-top: 6px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 8px;
}

.stats-divider {
    margin: 0 4px;
    color: #ddd;
}

/* 详情页 */
.detail-header {
    background: white;
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 100;
}

.detail-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}

.back-btn {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    padding: 4px;
}

.page-title {
    font-size: 16px;
    font-weight: normal;
    color: #333;
}

.header-spacer {
    width: 24px;
}

.detail-image {
    width: 100%;
    min-height: 200px;
    max-height: 300px;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.status-overlay {
    position: absolute;
    bottom: 90px;
    left: 0;
    padding: 6px 16px;
    background: rgba(153, 153, 153, 0.9);
    color: white;
    font-size: 13px;
    border-radius: 0 15px 15px 0;
    z-index: 10;
}

.detail-content {
    background: white;
    padding: 12px;
}

.detail-section {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.detail-title {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #000;
}

.detail-price {
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-note {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

.detail-stats {
    display: flex;
    gap: 0;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: #666;
    border-right: 1px solid #f0f0f0;
}

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

.stat-value {
    color: #333;
    font-weight: normal;
    margin-right: 2px;
    font-size: 13px;
}

.detail-info {
    padding: 12px 0 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}

.info-row {
    display: flex;
    padding: 8px 0;
    font-size: 13px;
}

.info-label {
    width: 80px;
    color: #000;
    flex-shrink: 0;
    font-weight: bold;
    font-size: 14px;
}

.info-value {
    flex: 1;
    color: #000;
    font-weight: bold;
    font-size: 14px;
}

.section-title {
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 12px;
    padding-left: 8px;
    border-left: 3px solid #d03027;
    color: #333;
}

.description-content {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    white-space: pre-wrap;
    padding-left: 8px;
}

.detail-url-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 4px;
    margin-top: 8px;
}

.detail-url {
    flex: 1;
    color: #1976d2;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

.copy-btn {
    padding: 5px 10px;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.detail-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 750px;
    margin: 0 auto;
    background: white;
    padding: 8px 12px;
    display: flex;
    gap: 12px;
    border-top: 1px solid #e5e5e5;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    gap: 8px;
}

.footer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    font-weight: bold;
}

.btn-register {
    background: #d03027;
    color: white;
    border: none;
    font-size: 13px;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
}

.btn-icon {
    font-size: 14px;
}

/* 底部导航 */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 6px 0 4px;
    border-top: 1px solid #e5e5e5;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: #999;
    font-size: 11px;
}

.nav-item.active {
    color: #d03027;
}

.nav-icon {
    font-size: 18px;
}

.nav-icon-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-hint {
    margin-top: 8px;
    font-size: 13px;
}

.empty-hint a {
    color: #1976d2;
}

/* 响应式 - 已禁用，统一显示手机样式 */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .auction-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* PC端也使用手机样式，居中显示 */
@media (min-width: 769px) {
    body {
        background: #e5e5e5;
        padding-bottom: 0;
    }

    /* 底部导航在PC端隐藏 */
    .footer-nav {
        max-width: 750px;
        margin: 0 auto;
    }
}

/* 超大屏幕 - 已禁用 */
@media (min-width: 1400px) {
    /* 统一使用手机样式 */
}

/* 我的页面样式 */
.profile-header {
    background: linear-gradient(135deg, #ffb3ba 0%, #ffdfdf 100%);
    padding: 20px 0 30px;
}

.profile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
}

.profile-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 2px solid #fff;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
}

.profile-login-text {
    font-size: 16px;
    color: #333;
}

.profile-right {
    display: flex;
    gap: 15px;
}

.profile-icon {
    font-size: 24px;
    color: #333;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.profile-menu {
    background: #f0f0f0;
    padding: 15px 0 20px;
}

.menu-card {
    background: white;
    border-radius: 8px;
    padding: 15px 0;
    margin: 0 12px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 5px;
}

.menu-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menu-text {
    font-size: 12px;
    color: #333;
}

.debt-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 0 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.debt-icon {
    font-size: 24px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.debt-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.recommend-section {
    background: #f0f0f0;
    padding: 20px 0 80px;
}

.recommend-title {
    font-size: 16px;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.recommend-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #d03027;
}

@media (min-width: 769px) {
    .profile-header {
        padding: 20px 0 30px;
    }

    .profile-top {
        padding: 0 12px;
    }

    .profile-avatar {
        width: 50px;
        height: 50px;
    }

    .profile-login-text {
        font-size: 16px;
    }

    .profile-icon {
        width: 24px;
        height: 24px;
    }

    .menu-card {
        margin: 0 12px 12px;
        padding: 15px 0;
    }

    .menu-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0;
        padding: 0 12px;
    }

    .menu-item {
        padding: 10px 5px;
    }

    .menu-icon {
        width: 40px;
        height: 40px;
    }

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

    .debt-card {
        margin: 0 12px;
        padding: 15px;
    }

    .debt-icon {
        width: 24px;
        height: 24px;
    }

    .debt-text {
        font-size: 14px;
    }

    .recommend-section {
        padding: 20px 0 80px;
    }

    .recommend-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .recommend-section .auction-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 8px;
    }
}


/* 消息页面样式 */
.message-header {
    background: white;
    padding: 15px 0;
    margin-top: 0;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

.message-title {
    font-size: 18px;
    color: #333;
    margin: 0;
    padding: 0 12px;
}

.message-search-box {
    background: #f0f0f0;
    padding: 15px 0;
}

.message-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: white;
    border-radius: 20px;
    padding-left: 15px;
}

.search-icon {
    font-size: 16px;
    color: #999;
}

.message-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 0;
    font-size: 13px;
    background: transparent;
    color: #666;
}

.message-search-input::placeholder {
    color: #999;
}

.message-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: #999;
    background: #f0f0f0;
    min-height: calc(100vh - 200px);
}

.empty-icon-large {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-text {
    font-size: 14px;
    color: #999;
}

@media (min-width: 769px) {
    .message-header {
        padding: 15px 0;
    }

    .message-title {
        font-size: 18px;
    }

    .message-search-box {
        padding: 15px 0;
    }

    .message-search {
        padding: 0 12px;
    }

    .message-empty {
        min-height: calc(100vh - 200px);
    }

    .empty-icon-large {
        font-size: 60px;
    }

    .empty-text {
        font-size: 14px;
    }
}

/* 专场页面样式 */
.special-header {
    background: white;
    padding: 15px 0;
    margin-top: 0;
    text-align: center;
}

.special-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 0;
    padding: 0 12px;
}

.special-subtitle {
    font-size: 13px;
    color: #999;
    padding: 0 12px;
}

.special-list {
    padding: 15px 0 80px;
    background: #f0f0f0;
}

.special-banner-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 12px;
}

.special-banner-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.special-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 旧版专场样式（保留兼容） */
.special-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 12px;
}

.special-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.special-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.special-content {
    padding: 15px;
}

.special-card-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.special-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.special-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.special-count {
    color: #999;
}

.special-status {
    color: #d03027;
    font-weight: bold;
}

@media (min-width: 769px) {
    .special-banner-list {
        gap: 12px;
        padding: 0 12px;
    }

    .special-header {
        padding: 15px 0;
    }

    .special-title {
        font-size: 18px;
        padding: 0 12px;
    }

    .special-subtitle {
        font-size: 13px;
        padding: 0 12px;
    }

    .special-banner-item {
        border-radius: 8px;
    }

    .special-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 12px;
    }

    .special-image {
        height: 200px;
    }
}

/* 详情页图片轮播 */
.detail-image-container {
    position: relative;
}

.detail-image-slider {
    width: 100%;
    background: #f0f0f0;
}

.main-image {
    width: 100%;
    min-height: 200px;
    max-height: 400px;
    overflow: hidden;
    background: #f0f0f0;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.image-thumbnails {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    overflow-x: auto;
    background: white;
    -webkit-overflow-scrolling: touch;
}

.thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border: 2px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.thumbnail.active {
    border-color: #d03027;
}

.thumbnail:hover {
    border-color: #d03027;
    opacity: 0.8;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 标的介绍图片 */
.detail-images-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* 详情页推荐区块 */
.recommend-section {
    background: #f0f0f0;
    padding: 20px 0 80px;
    margin-top: 0;
}

/* 竞价结果模块 */
.bidding-result-section {
    background: #fff;
    padding: 20px 0;
    border-top: 8px solid #f0f0f0;
}

.bidding-result-box {
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
    position: relative;
}

.result-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.result-row {
    font-size: 14px;
    color: #333;
    line-height: 2;
    margin-bottom: 5px;
}

.result-label {
    font-weight: 500;
    color: #666;
    display: inline-block;
    min-width: 120px;
}

.result-content {
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    white-space: pre-wrap;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 15px;
}

.result-footer {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    min-height: 180px;
}

.result-qrcode {
    flex-shrink: 0;
    text-align: center;
}

.result-qrcode img {
    max-width: 150px;
    width: 100%;
    height: auto;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.qrcode-tip {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    text-align: center;
}

.result-footer-text {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    font-size: 14px;
    color: #666;
    padding-bottom: 5px;
}

.result-footer-text-only {
    flex: 1;
    text-align: center;
    font-size: 14px;
    color: #666;
    padding: 10px 0;
}

.recommend-title {
    font-size: 16px;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    font-weight: bold;
}

.recommend-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #d03027;
}
