.freight-search-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.freight-search-form h3 {
    margin-top: 0;
    color: #333;
}

.search-row-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 15px;
}

.search-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    min-width: max-content;
}

.search-field {
    flex: 1;
    min-width: 200px;
}

.search-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.search-actions {
    text-align: center;
}

.search-btn,
.reset-btn {
    padding: 10px 20px;
    margin: 0 5px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.search-btn {
    background: #0073aa;
    color: white;
}

.search-btn:hover {
    background: #005a87;
}

.reset-btn {
    background: #f1f1f1;
    color: #333;
}

.reset-btn:hover {
    background: #e1e1e1;
}

.freight-results {
    margin-top: 20px;
}

.freight-results h3 {
    color: #333;
    margin-bottom: 15px;
}

.freight-table {
    overflow-x: auto;
}

.freight-display-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

.freight-display-table {
    min-width: max-content;
}

.freight-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.freight-table th,
.freight-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.freight-table th {
    background: #f5f5f5;
    font-weight: bold;
    color: #333;
}

.freight-table tr:hover {
    background: #f9f9f9;
}

.freight-no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .search-row {
        flex-direction: row;
        min-width: max-content;
    }
    
    .search-field {
        min-width: 180px;
    }
    
    .search-row-container {
        margin-bottom: 12px;
    }
    
    .freight-table {
        font-size: 12px;
    }
    
    .freight-table th,
    .freight-table td {
        padding: 8px 4px;
    }
    
    /* 移动端运费标签样式 */
    .freight-tags {
        margin-top: 12px;
        padding: 10px;
    }
    
    .tag-header {
        gap: 6px;
    }
    
    .freight-tags h4 {
        font-size: 13px;
    }
    
    .tag-list {
        gap: 4px;
    }
    
    .freight-tag {
        padding: 2px 8px;
        font-size: 10px;
        border-radius: 10px;
    }
    
    /* 移动端面包屑导航样式 */
    .freight-breadcrumb {
        font-size: 12px;
        padding: 8px 0;
    }
}

/* 运费标签样式 */
.freight-tags {
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #0073aa;
}

.tag-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.freight-tags h4 {
    margin: 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.freight-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #0073aa;
    color: white;
    border-radius: 12px;
    font-size: 11px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.freight-tag:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

/* 面包屑导航样式 */
.freight-breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.freight-breadcrumb a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.freight-breadcrumb a:hover {
    color: #005a87;
    text-decoration: underline;
}

.freight-breadcrumb span {
    margin: 0 8px;
    color: #ccc;
}

.freight-breadcrumb .current-page {
    color: #333;
    font-weight: 500;
}

/* 运费显示短代码样式 */
.freight-display-results {
    margin: 20px 0;
}

.freight-display-results h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

/* 运费发布页面样式 */



/* 文本格式样式（默认） */
.freight-text-container {
    margin: 10px 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
}

.freight-text-container p {
    margin: 2px 0;
    font-size: 14px;
    line-height: 1.2;
    padding: 0;
}

.freight-text-container strong {
    color: #0073aa;
    font-weight: 600;
    margin-right: 8px;
}

/* 列表样式 */
.freight-list-container {
    margin: 20px 0;
}

.freight-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 整体滚动容器 */
.freight-list-content {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: max-content;
}

/* 两行显示样式 */
.freight-list-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    padding: 12px 20px;
    transition: background-color 0.3s ease;
    justify-content: flex-start;
}

.freight-list-row:first-child {
    padding-top: 15px;
}

.freight-list-row:last-child {
    padding-bottom: 15px;
    border-bottom: none;
}

.freight-list-row:not(:last-child) {
    border-bottom: 1px solid #e8e8e8;
}

.freight-list-row:hover {
    background: #f8f9fa;
}

.freight-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
    min-width: max-content;
}

.freight-item strong {
    color: #0073aa;
    margin-right: 10px;
    font-weight: 600;
}

.freight-list-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.freight-list-item:last-child {
    border-bottom: none;
}

.freight-list-item:hover {
    background: #f8f9fa;
}

.freight-list-item strong {
    color: #0073aa;
    margin-right: 10px;
}

/* 网格样式 */
.freight-grid-container {
    margin: 20px 0;
}

.freight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.freight-grid-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.freight-grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.grid-label {
    font-weight: 600;
    color: #0073aa;
    margin-bottom: 8px;
    font-size: 14px;
}

.grid-value {
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

/* 紧凑表格样式 */
.freight-compact-container {
    margin: 20px 0;
}

.freight-compact-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.freight-compact-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.freight-compact-table tr:hover {
    background: #f8f9fa;
}

.freight-compact-table td:first-child {
    font-weight: 600;
    color: #0073aa;
    width: 120px;
}

/* 标签样式 */
.freight-tag-container {
    margin: 20px 0;
}

.freight-tag-header {
    text-align: center;
    margin-bottom: 20px;
}

.freight-tag-header h3 {
    color: #0073aa;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

/* 整体滚动容器 */
.freight-tag-content {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: max-content;
}

/* 两行标签样式 */
.freight-tag-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: flex-start;
    margin-bottom: 15px;
    padding: 0 10px;
}

.freight-tag-row:last-child {
    margin-bottom: 0;
}

.freight-tag-row .freight-tag {
    background: #0073aa;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    min-width: max-content;
}

.freight-tag-row .freight-tag:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,115,170,0.3);
}

.freight-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.freight-tag-list .freight-tag {
    background: #0073aa;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.freight-tag-list .freight-tag:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,115,170,0.3);
}

/* 响应式设计 */
.freight-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 确保所有容器都支持横向滚动 */
.freight-text-container,
.freight-list-container,
.freight-horizontal-table-container,
.freight-compact-container,
.freight-tag-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .freight-table th,
    .freight-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .freight-card-header h3 {
        font-size: 16px;
    }
    
    .freight-card-body {
        padding: 15px;
    }
    
    .freight-rate-item,
    .freight-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .freight-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }
    
    .freight-tag-list {
        gap: 8px;
    }
    
    .freight-tag-list .freight-tag {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* 横向列表样式 */
.freight-list-container {
    margin: 20px 0;
}

.freight-list {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.freight-list-item {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.freight-list-item strong {
    color: #0073aa;
    font-weight: 600;
    margin-right: 8px;
}

/* 横向表格样式 */
.freight-horizontal-table-container {
    margin: 20px 0;
}

.freight-horizontal-table {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.freight-horizontal-table table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

.freight-horizontal-table th {
    background: #0073aa;
    color: white;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    border: 1px solid #ddd;
}

.freight-horizontal-table td {
    padding: 10px 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    white-space: nowrap;
    background: white;
}

.freight-horizontal-table tr:nth-child(even) {
    background: #f9f9f9;
}

.freight-horizontal-table tr:hover {
    background: #e3f2fd;
}

.freight-horizontal-table tr:hover td {
    background: #e3f2fd;
}

/* 悬停效果 */
.freight-hover .freight-table tr:hover,
.freight-hover .freight-list-item:hover,
.freight-hover .freight-grid-item:hover {
    background: #e3f2fd;
}

.freight-hover .freight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
}

.freight-display-no-results {
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    text-align: center;
    color: #6c757d;
}

.freight-display-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.freight-display-table th {
    background: #0073aa;
    color: white;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.freight-display-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.freight-display-table tr:hover {
    background: #f8f9fa;
}

.freight-display-table tr:last-child td {
    border-bottom: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .freight-display-table {
        font-size: 12px;
    }
    
    /* 移动端滚动优化 */
    .freight-list-content,
    .freight-tag-content {
        scrollbar-width: thin;
        scrollbar-color: #0073aa #f0f0f0;
    }
    
    .freight-list-content::-webkit-scrollbar,
    .freight-tag-content::-webkit-scrollbar {
        height: 6px;
    }
    
    .freight-list-content::-webkit-scrollbar-track,
    .freight-tag-content::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 3px;
    }
    
    .freight-list-content::-webkit-scrollbar-thumb,
    .freight-tag-content::-webkit-scrollbar-thumb {
        background: #0073aa;
        border-radius: 3px;
    }
    
    .freight-list-content::-webkit-scrollbar-thumb:hover,
    .freight-tag-content::-webkit-scrollbar-thumb:hover {
        background: #005a87;
    }
    
    /* 移动端两行显示优化 */
    .freight-list-row {
        padding: 10px 15px;
        gap: 12px;
    }
    
    .freight-item {
        font-size: 12px;
    }
    
    .freight-item strong {
        font-size: 11px;
        margin-right: 6px;
    }
    
    /* 移动端标签样式优化 */
    .freight-tag-row {
        gap: 8px;
        padding: 0 8px;
        margin-bottom: 12px;
    }
    
    .freight-tag-row .freight-tag {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .freight-display-table th,
    .freight-display-table td {
        padding: 8px 4px;
    }
    
    /* 移动端横向表格样式 */
    .freight-horizontal-table {
        font-size: 12px;
    }
    
    .freight-horizontal-table th,
    .freight-horizontal-table td {
        padding: 8px 4px;
    }
    
    /* 移动端横向列表样式 */
    .freight-list-item {
        font-size: 12px;
        line-height: 1.4;
    }
}
