/* 运费查询页面样式 */

/* 主容器 */
.main-content {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

.freight-container {
    margin-bottom: 40px;
}

/* 切换按钮 */
.freight-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 80px;
    background: #ffffff;
    color: #333333;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid #d9d9d9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    border-color: #951D1D;
    color: #951D1D;
}

.tab-btn.active {
    background: #951D1D;
    color: #ffffff;
    border-color: #951D1D;
}

.tab-text {
    font-size: 18px;
}

/* 运费模块通用样式 */
.freight-module {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: none;
}

.freight-module.active {
    display: block;
}

.module-header {
    background: #951D1D;
    padding: 20px 25px;
}

.module-title {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

/* 汽运查询模块 */
/* 汽运样式使用通用样式 */

/* 筛选栏 */
.filter-bar {
    display: flex;
    gap: 20px;
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
    white-space: nowrap;
}

.filter-select,
.filter-date {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    color: #495057;
    background: #ffffff;
    min-width: 150px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-select:hover,
.filter-date:hover {
    border-color: #951D1D;
}

.filter-select:focus,
.filter-date:focus {
    outline: none;
    border-color: #951D1D;
    box-shadow: 0 0 0 3px rgba(149, 29, 29, 0.1);
}

/* 运费列表视图 */
.freight-list-wrapper {
    padding: 25px;
    max-height: 1000px;
    overflow-y: auto;
}

.freight-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.freight-item:hover {
    box-shadow: 0 2px 12px rgba(149, 29, 29, 0.15);
    border-color: #951D1D;
}

.freight-item-header {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.freight-route {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    min-width: 200px;
}

.route-arrow {
    color: #951D1D;
    margin: 0 8px;
}

.freight-price-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.freight-price-value {
    font-size: 18px;
    font-weight: 700;
    color: #951D1D;
    white-space: nowrap;
}

.price-change {
    font-size: 13px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.price-change.up {
    color: #dc3545;
    background: #ffe5e5;
}

.price-change.down {
    color: #28a745;
    background: #e5f7e5;
}

.freight-item-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #6c757d;
}

.freight-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.freight-time {
    color: #6c757d;
    white-space: nowrap;
}

.freight-id {
    color: #adb5bd;
    font-size: 12px;
}

.history-btn {
    padding: 5px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.history-btn:hover {
    background: #951D1D;
    color: #ffffff;
    border-color: #951D1D;
}

/* 运费表格 */
.freight-table-wrapper {
    padding: 25px;
    max-height: 1000px;
    overflow-y: auto;
}

.freight-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.freight-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.freight-table th {
    padding: 15px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}

/* 发货地表头 - 红色系 */
.send-header {
    background: #951D1D;
    color: #ffffff;
}

/* 收货地表头 - 深红色系 */
.receive-header {
    background: #7a1717;
    color: #ffffff;
}

/* 普通表头 */
.freight-table th:not(.send-header):not(.receive-header) {
    background: #f8f9fa;
    color: #495057;
}

.freight-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

.freight-table tbody tr:hover {
    background-color: #f8f9fa;
}

.freight-table td {
    padding: 15px 12px;
    text-align: center;
    color: #495057;
    font-size: 15px;
}

.freight-price {
    color: #951D1D;
    font-weight: 600;
    font-size: 16px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #868e96;
}

.empty-text {
    font-size: 16px;
    color: #adb5bd;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
}

.page-btn {
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 6px;
    color: #495057;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
    background: #951D1D;
    color: #ffffff;
    border-color: #951D1D;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ced4da;
    border-radius: 6px;
    color: #495057;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    background: #ffffff;
}

.page-number:hover {
    background: #951D1D;
    color: #ffffff;
    border-color: #951D1D;
}

.page-number.active {
    background: #951D1D;
    color: #ffffff;
    border-color: #951D1D;
    font-weight: 600;
}

.page-ellipsis {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 14px;
}

/* 铁运查询模块 */
/* 铁运样式使用通用样式 */

.module-tips {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 5px;
}

/* iframe容器 */
.rail-iframe-container {
    width: 100%;
    height: 1200px;
    background: #ffffff;
    overflow: hidden;
    position: relative;
}

.rail-query-iframe {
    width: 100%;
    height: calc(100% + 400px);
    border: none;
    position: absolute;
    top: -160px;
    left: 0;
}

/* 注意事项 */
.rail-notice {
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.notice-text {
    font-size: 13px;
    color: #6c757d;
    margin: 5px 0;
    line-height: 1.6;
}

/* 广告位区域 */
.ad-section {
    background: #f8f9fa;
    padding: 40px 0;
    margin-top: 40px;
}

.ad-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ad-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.ad-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.ad-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 响应式设计 - PC端中屏 (891px-1200px) */
@media (min-width: 891px) and (max-width: 1200px) {
    .freight-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 删除 @media (max-width: 768px) - 移动端样式在 freight-query-mobile.css */
/* 删除 @media (max-width: 480px) - 移动端样式在 freight-query-mobile.css */
