/* ==================== 网上竞价页面样式 ==================== */

/* 横幅 */
.page-banner {
    width: 100%;
    overflow: hidden;
}

.banner-image img {
    width: 100%;
    height: 240px;
    display: block;
    object-fit: cover;
}

/* 面包屑导航 */
.breadcrumb {
    background: #f5f5f5;
    padding: 12px 0;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #999;
}

.breadcrumb .current {
    color: var(--primary-color);
    font-size: 14px;
}

/* 竞价主内容区 */
.bidding-main {
    padding: 30px 0;
    background: #f8f8f8;
}

.bidding-layout {
    display: flex;
    gap: 30px;
}

/* 左侧边栏 */
.bidding-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.sidebar-section {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sidebar-title {
    background: var(--primary-color);
    color: white;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
}

.sidebar-menu, .sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links {
    counter-reset: sidebar-num;
}

.sidebar-links li {
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 40px;
}

.sidebar-links li::before {
    counter-increment: sidebar-num;
    content: counter(sidebar-num);
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #b8860b);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-menu li:last-child, .sidebar-links li:last-child {
    border-bottom: none;
}

.sidebar-menu li a, .sidebar-links li a {
    display: block;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-menu li a:hover, .sidebar-links li a:hover {
    background: #fdf5f5;
    color: var(--primary-color);
    padding-left: 25px;
}

/* 侧边栏搜索 */
.sidebar-search {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
}

.sidebar-search input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.sidebar-search input:focus {
    border-color: var(--primary-color);
}

.sidebar-search-btn {
    width: 100%;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--primary-color), #b8860b);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: opacity 0.2s, transform 0.1s;
}

.sidebar-search-btn:hover {
    opacity: 0.9;
}

.sidebar-search-btn:active {
    transform: scale(0.98);
}

/* 关于我们内容区 */
.about-content {
    background: white;
    padding: 30px 35px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    min-height: 400px;
}

.content-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.content-title {
    font-size: 22px;
    color: #333;
    font-weight: 600;
}

.content-titleab {
    font-size: 24px;
    padding-bottom: 20px;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.content-time {
    font-size: 14px;
    color: #999;
}

.rich-text {
    font-size: 15px;
    line-height: 1.9;
    color: #555;
}

.rich-text h3 {
    font-size: 17px;
    color: #333;
    font-weight: 600;
    margin: 25px 0 12px 0;
    padding-left: 12px;
    border-left: 3px solid var(--primary-color);
}

.rich-text p {
    margin-bottom: 16px;
    text-indent: 2em;
}

.rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 15px 0;
}

.content-loading {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    font-size: 15px;
}

.content-error {
    text-align: center;
    padding: 80px 20px;
    color: #e53935;
    font-size: 15px;
}
}

.sidebar-menu li.active a {
    background: #fdf5f5;
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

/* 右侧内容区 */
.bidding-content {
    flex: 1;
    min-width: 0;
}

/* 标签页 */
.content-tabs {
    background: white;
    border-radius: 8px 8px 0 0;
    padding: 0 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    padding: 16px 25px;
    background: none;
    border: none;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

/* 筛选条件 */
.filter-bar {
    background: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    border-bottom: 1px solid #eee;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-item label {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.filter-item select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 120px;
    cursor: pointer;
}

.filter-item select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-btn {
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.filter-btn:hover {
    background: #a01830;
}

.reset-btn {
    padding: 8px 20px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.reset-btn:hover {
    background: #eee;
}

/* 竞价列表容器（包含列表和分页） */
.bidding-list-wrapper {
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 竞价列表 */
.bidding-list {
    border-radius: 0;
    box-shadow: none;
}

.list-header {
    display: grid;
    grid-template-columns: 1fr 120px 160px 100px;
    gap: 10px;
    padding: 15px 20px;
    background: #f8f8f8;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
}

.list-body {
    padding: 0;
}

.list-item {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 15px;
    padding: 18px 20px;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.item-index {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), #b8860b);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50%;
    flex-shrink: 0;
}

.list-item:hover {
    background: #fdfcfc;
}

.list-item:last-child {
    border-bottom: none;
}

.item-main {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-title {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}

.item-title:hover {
    color: var(--primary-color);
}

.item-budget {
    display: none;
}

.item-time {
    font-size: 13px;
    color: #666;
    text-align: right;
}

.item-status {
    display: none;
}

.list-item .status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.status-ongoing {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-upcoming {
    background: #fff3e0;
    color: #e65100;
}

.status-ended {
    background: #eceff1;
    color: #546e7a;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 6px;
    background: white;
    border-top: 1px solid #f0f0f0;
}

.page-btn {
    min-width: 36px;
    height: 34px;
    padding: 0 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background: #fdf5f5;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-ellipsis {
    color: #999;
    padding: 0 5px;
}

/* 网上竞价列表（首页模块样式） */
.bidding-section {
    padding: 40px 0;
    background: #fff;
}

.bidding-section .section-header {
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 20px;
}

.bidding-section .section-header h2 {
    color: #333;
}

.bidding-table {
    width: 100%;
    overflow-x: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.bidding-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.bidding-table thead {
    background: linear-gradient(135deg, var(--primary-color), #b8860b);
}

.bidding-table th {
    padding: 16px 15px;
    text-align: left;
    font-weight: 600;
    color: white;
    border-bottom: none;
}

.bidding-table th:first-child {
    border-radius: 10px 0 0 0;
}

.bidding-table th:last-child {
    border-radius: 0 10px 0 0;
}

.bidding-table td {
    padding: 16px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.bidding-table tbody tr {
    transition: all 0.2s;
}

.bidding-table tbody tr:hover {
    background: linear-gradient(90deg, #fff9f9, #fff);
}

.bidding-table tbody tr:last-child td {
    border-bottom: none;
}

.bidding-table tbody tr td:first-child a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

.bidding-table tbody tr td:first-child a:hover {
    color: var(--primary-color);
}

.bidding-table .status {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.bidding-table .status-ongoing {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
}

.bidding-table .status-upcoming {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
}

.bidding-table .status-ended {
    background: linear-gradient(135deg, #eceff1, #cfd8dc);
    color: #546e7a;
}

/* ==================== 响应式设计 ==================== */

/* 平板 */
@media (max-width: 1024px) {
    .bidding-layout {
        flex-direction: column;
    }

    .bidding-sidebar {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    .sidebar-section {
        flex: 1;
        min-width: 280px;
    }

    .banner-image img {
        height: 180px;
    }
}

/* 手机 */
@media (max-width: 768px) {
    .bidding-layout {
        flex-direction: column;
    }

    .bidding-sidebar {
        width: 100%;
        flex-direction: column;
    }

    .sidebar-section {
        min-width: 100%;
        margin-bottom: 15px;
    }

    .sidebar-title {
        padding: 12px 15px;
        font-size: 14px;
    }

    .sidebar-links li a,
    .sidebar-menu li a {
        padding: 10px 15px;
        font-size: 13px;
    }

    .list-header {
        display: none;
    }

    .list-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 15px;
    }

    .item-budget {
        order: -1;
    }

    .item-status {
        text-align: left;
    }

    .banner-image img {
        height: 150px;
    }

    .breadcrumb {
        padding: 10px 0;
    }

    .bidding-main {
        padding: 20px 0;
    }

    .about-content {
        padding: 20px 15px;
    }

    .rich-text {
        font-size: 14px;
        line-height: 1.8;
    }

    .rich-text h3 {
        font-size: 15px;
        margin: 20px 0 10px 0;
    }

    .rich-text p {
        margin-bottom: 12px;
    }

    .tab-buttons {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        padding: 14px 20px;
        font-size: 14px;
        white-space: nowrap;
    }

    .filter-bar {
        padding: 12px 15px;
        gap: 10px;
    }

    .filter-item {
        flex: 1;
        min-width: 45%;
    }

    .filter-item select {
        width: 100%;
        min-width: auto;
    }

    .filter-btn,
    .reset-btn {
        padding: 10px 15px;
        font-size: 13px;
    }

    .pagination {
        padding: 15px;
        flex-wrap: wrap;
    }

    .page-btn {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 13px;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .content-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .content-title {
        font-size: 18px;
    }

    .content-time {
        font-size: 13px;
    }

    .tab-buttons {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        padding: 12px 15px;
        font-size: 13px;
        white-space: nowrap;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-item {
        width: 100%;
        min-width: 100%;
    }

    .filter-item select {
        width: 100%;
    }

    .filter-btn, .reset-btn {
        width: 100%;
    }

    .page-btn {
        min-width: 32px;
        padding: 0 8px;
        font-size: 13px;
    }

    .banner-image img {
        height: 120px;
    }

    .breadcrumb {
        padding: 8px 0;
        font-size: 12px;
    }

    .bidding-sidebar {
        padding: 0 10px;
    }

    .sidebar-title {
        padding: 10px 12px;
        font-size: 13px;
    }

    .sidebar-links li a,
    .sidebar-menu li a {
        padding: 8px 12px;
        font-size: 12px;
        white-space: normal;
    }

    .about-content {
        padding: 15px 12px;
        min-height: auto;
    }

    .content-title-wrapper {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .rich-text {
        font-size: 13px;
        line-height: 1.7;
    }

    .rich-text h3 {
        font-size: 14px;
        margin: 15px 0 8px 0;
    }

    .rich-text p {
        margin-bottom: 10px;
    }

    .list-item {
        padding: 12px;
    }

    .item-index {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .item-title {
        font-size: 13px;
    }

    .item-time {
        font-size: 12px;
    }
}

.prevb:hover, .nextb:hover {
    background: var(--primary-color);
}

.prevb { left: 20px; }
.nextb { right: 20px; }