.freight-pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.freight-page-btn {
    padding: 6px 14px;
    border: 1px solid #0073aa;
    background: #0073aa;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.freight-page-btn:hover:not(:disabled) {
    background: #005c87;
    border-color: #005c87;
}

.freight-page-btn:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    color: #666;
}

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

.freight-taxonomy-wrapper {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.freight-taxonomy-breadcrumb {
    margin-bottom: 20px;
}

.freight-taxonomy-header {
    margin-bottom: 25px;
}

.freight-taxonomy-title {
    margin: 0 0 10px;
}

.freight-taxonomy-description {
    margin: 0;
    color: #555;
}

.freight-taxonomy-content .freight-generated {
    margin-top: 15px;
}

.freight-route-title {
    font-weight: 600;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}
/* 运费查询插件前端样式 - 高优先级，避免被onenav主题覆盖 */

/* 移动端页面标题样式 - 确保不会超出左右边界 */
@media (max-width: 768px) {
    /* WordPress标准页面标题样式 */
    h1.entry-title,
    h1.post-title,
    h1.page-title,
    .entry-header h1,
    .post-header h1,
    .page-header h1,
    article h1.entry-title,
    .single-post h1,
    .single-freight_quote h1,
    .post-type-archive-freight_quote h1 {
        font-size: 18px !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        padding: 0 20px !important;
        margin: 15px 0 !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        hyphens: auto !important;
    }
    
    /* 确保标题容器也不会超出 */
    .entry-header,
    .post-header,
    .page-header,
    article .entry-header,
    .single-post .entry-header,
    .single-freight_quote .entry-header {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    h1.entry-title,
    h1.post-title,
    h1.page-title,
    .entry-header h1,
    .post-header h1,
    .page-header h1,
    article h1.entry-title,
    .single-post h1,
    .single-freight_quote h1,
    .post-type-archive-freight_quote h1 {
        font-size: 16px !important;
        padding: 0 15px !important;
        margin: 10px 0 !important;
    }
}

/* 桌面端也确保标题不会超出 */
h1.entry-title,
h1.post-title,
h1.page-title,
.entry-header h1,
.post-header h1,
.page-header h1,
article h1.entry-title,
.single-post h1,
.single-freight_quote h1,
.post-type-archive-freight_quote h1 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    overflow: hidden !important;
    hyphens: auto !important;
}

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

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

.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 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.freight-table th:first-child,
.freight-table td:first-child {
    padding-left: 20px;
}

.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 !important;
    -webkit-overflow-scrolling: touch !important;
    min-width: max-content !important;
}

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

.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 !important;
    -webkit-overflow-scrolling: touch !important;
    min-width: max-content !important;
}

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

.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;
    padding: 0 20px;
}

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

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

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

.freight-horizontal-table th:first-child {
    padding-left: 20px;
}

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

.freight-horizontal-table td:first-child {
    padding-left: 20px;
}

.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);
}

.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;
    margin: 0;
}

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

.freight-display-table th:first-child {
    padding-left: 20px;
}

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

.freight-display-table td:first-child {
    padding-left: 20px;
}

.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-container {
        padding: 0 15px;
    }
    
    .freight-horizontal-table th,
    .freight-horizontal-table td {
        padding: 8px 12px;
    }
    
    .freight-horizontal-table th:first-child,
    .freight-horizontal-table td:first-child {
        padding-left: 15px;
    }
    
    /* 移动端横向列表样式 */
    .freight-list-item {
        font-size: 12px;
        line-height: 1.4;
    }
}

/* ============================================
   移动端专用样式
   ============================================ */

/* 移动端卡片样式 */
.freight-mobile-card {
    margin: 15px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.freight-mobile-card-header {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.freight-mobile-route {
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    color: white;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    overflow: hidden;
    hyphens: auto;
    box-sizing: border-box;
}

.freight-mobile-shipping-line {
    font-size: 12px;
    opacity: 0.9;
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 12px;
}

.freight-mobile-card-body {
    padding: 20px 25px;
}

.freight-mobile-rates {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.freight-mobile-rate-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.freight-mobile-rate-item .rate-label {
    font-weight: 600;
    color: #0073aa;
    font-size: 14px;
}

.freight-mobile-rate-item .rate-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.freight-mobile-info {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.freight-mobile-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.freight-mobile-info-row:last-child {
    border-bottom: none;
}

.freight-mobile-info-row .info-label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.freight-mobile-info-row .info-value {
    color: #333;
    font-size: 14px;
    text-align: right;
    flex: 1;
    margin-left: 15px;
}

/* 移动端手风琴样式 */
.freight-mobile-accordion {
    margin: 15px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.freight-mobile-accordion-header {
    background: #0073aa;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}

.freight-mobile-accordion-header:hover {
    background: #005a87;
}

.freight-mobile-accordion-header.active {
    background: #005a87;
}

.freight-mobile-accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-title {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.accordion-title strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.accordion-shipping-line {
    font-size: 12px;
    opacity: 0.9;
}

.accordion-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.freight-mobile-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 25px;
}

.freight-mobile-accordion-content.active {
    max-height: 1000px;
    padding: 20px 25px;
}

.freight-mobile-accordion-content .freight-mobile-rates {
    margin-bottom: 15px;
}

.freight-mobile-accordion-content .freight-mobile-rate-item {
    background: #f8f9fa;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
}

.freight-mobile-accordion-content .freight-mobile-info {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.freight-mobile-accordion-content .freight-mobile-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

/* 移动端简化列表样式 */
.freight-mobile-simple {
    margin: 15px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px 20px;
}

.freight-mobile-simple-header {
    font-size: 18px;
    font-weight: 600;
    color: #0073aa;
    padding: 0 0 15px 0;
    border-bottom: 2px solid #0073aa;
    margin-bottom: 15px;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.freight-mobile-simple-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.freight-mobile-simple-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-start;
    font-size: 14px;
}

.freight-mobile-simple-list li:last-child {
    border-bottom: none;
}

.freight-mobile-simple-list .list-label {
    font-weight: 600;
    color: #666;
    margin-right: 10px;
    min-width: 70px;
    flex-shrink: 0;
}

/* 移动端滑动卡片样式 */
.freight-mobile-swipe {
    margin: 15px 20px;
}

.freight-mobile-swipe-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
}

.swipe-card-header {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    padding: 20px 20px;
    text-align: center;
}

.swipe-card-header h3 {
    margin: 0 0 8px 0;
    padding: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    text-align: center;
    overflow-wrap: break-word;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.swipe-shipping-line {
    font-size: 12px;
    opacity: 0.9;
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 12px;
}

.swipe-card-body {
    padding: 20px 25px;
}

.swipe-rates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 12px;
    margin-bottom: 20px;
}

.swipe-rate-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.swipe-rate-box:hover {
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,115,170,0.2);
}

.swipe-rate-box .rate-type {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 600;
}

.swipe-rate-box .rate-price-wrapper {
    margin: 5px 0;
}

.swipe-rate-box .rate-price {
    font-size: 20px;
    font-weight: 700;
    color: #0073aa;
    display: inline-block;
}

.swipe-rate-box .rate-unit {
    font-size: 14px;
    color: #0073aa;
    display: inline-block;
    margin-left: 4px;
}

.swipe-info {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.swipe-info-item {
    padding: 8px 0;
    font-size: 14px;
    color: #666;
    display: flex;
    justify-content: space-between;
}

.swipe-info-item span:first-child {
    font-weight: 600;
    margin-right: 15px;
}

/* 移动端极简样式 */
.freight-mobile-minimal {
    margin: 15px 20px;
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    border-left: 4px solid #0073aa;
}

.minimal-header {
    font-size: 16px;
    font-weight: 600;
    color: #0073aa;
    margin-bottom: 12px;
    padding: 0 0 8px 0;
    border-bottom: 1px solid #eee;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.minimal-rates {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.minimal-rate {
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
}

.minimal-footer {
    font-size: 12px;
    color: #999;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.minimal-footer span {
    padding: 0;
}

/* 移动端文本样式 */
.freight-mobile-text-container {
    margin: 15px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px 20px;
}

.freight-mobile-text-container p {
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    word-wrap: break-word;
    word-break: break-all;
}

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

.freight-mobile-text-container p:first-child {
    margin-top: 0;
    color: #0073aa;
    font-size: 16px;
    font-weight: 600;
}

.freight-mobile-text-container p:first-child strong {
    color: #0073aa;
}

.freight-mobile-text-container p:last-child {
    margin-bottom: 0;
}

/* 移动端样式响应式优化 */
@media (max-width: 480px) {
    .freight-mobile-rates {
        grid-template-columns: 1fr;
    }
    
    .swipe-rates-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
    }
    
    .freight-mobile-card {
        margin: 15px 15px;
    }
    
    .freight-mobile-card-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 15px;
    }
    
    .freight-mobile-route {
        margin-bottom: 8px;
        font-size: 16px;
    }
    
    .freight-mobile-accordion {
        margin: 15px 15px;
    }
    
    .freight-mobile-accordion-header {
        padding: 15px 15px;
    }
    
    .freight-mobile-simple {
        margin: 15px 15px;
        padding: 20px 15px;
    }
    
    .freight-mobile-swipe {
        margin: 15px 15px;
    }
    
    .swipe-card-header {
        padding: 20px 15px;
    }
    
    .swipe-card-header h3 {
        font-size: 16px;
    }
    
    .freight-mobile-minimal {
        margin: 15px 15px;
        padding: 15px 15px;
    }
    
    .freight-mobile-text-container {
        margin: 15px 15px;
        padding: 20px 15px;
    }
    
    .freight-mobile-info-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .freight-mobile-info-row .info-value {
        text-align: left;
        margin-left: 0;
    }
}

/* ============================================
   运费分类和标签模板样式
   ============================================ */

/* 默认列表模板 */
.freight-template-default .freight-list-default {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.freight-template-default .freight-item-default {
    padding: 12px 0;
    border-bottom: 1px solid #d0d0d0;
}

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

.freight-template-default .freight-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.freight-template-default .freight-item-row::-webkit-scrollbar {
    height: 4px;
}

.freight-template-default .freight-item-row::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.freight-template-default .freight-item-row::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}

.freight-template-default .freight-item-row::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.freight-template-default .freight-title-text {
    flex-shrink: 0;
    color: #000000;
}

.freight-template-default .freight-link-default {
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.freight-template-default .freight-link-default:hover {
    color: #333333;
    text-decoration: underline;
}

.freight-template-default .freight-categories-wrapper {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 6px;
    flex-shrink: 0;
}

.freight-template-default .freight-category-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: #0073aa;
    color: #ffffff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

.freight-template-default .freight-tags-wrapper {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 6px;
    flex-shrink: 0;
}

.freight-template-default .freight-tag-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: #28a745;
    color: #ffffff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

.freight-template-default .freight-post-date {
    flex-shrink: 0;
    color: #000000;
    font-size: 14px;
    font-weight: normal;
    white-space: nowrap;
    margin-left: auto;
}

/* 分类筛选链接样式 */
.freight-category-filter-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.freight-category-link {
    display: inline-block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    transition: all 0.3s ease;
    font-size: 14px;
}

.freight-category-link:hover {
    color: #0073aa;
    border-color: #0073aa;
    background-color: #f0f8ff;
    text-decoration: none;
}

.freight-category-link-current {
    color: #fff;
    background-color: #0073aa;
    border-color: #0073aa;
    font-weight: 500;
}

.freight-category-link-current:hover {
    color: #fff;
    background-color: #005a87;
    border-color: #005a87;
}

/* 网格布局模板 */
.freight-template-grid .freight-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.freight-template-grid .freight-grid-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

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

.freight-template-grid .freight-grid-link {
    text-decoration: none;
    color: #333;
}

.freight-template-grid .freight-grid-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #0073aa;
}

/* 紧凑列表模板 */
.freight-template-compact .freight-compact-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
}

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

.freight-template-compact .freight-compact-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

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

.freight-template-compact .freight-compact-table a {
    color: #0073aa;
    text-decoration: none;
}

.freight-template-compact .freight-compact-table a:hover {
    text-decoration: underline;
}

/* 卡片展示模板 */
.freight-template-card .freight-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.freight-template-card .freight-card-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.freight-template-card .freight-card-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

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

.freight-template-card .freight-card-content {
    padding: 20px;
}

.freight-template-card .freight-card-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #0073aa;
}

.freight-template-card .freight-card-route {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* 现代卡片模板 */
.freight-template-modern .freight-modern-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.freight-template-modern .freight-modern-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.freight-template-modern .freight-modern-item:hover {
    box-shadow: 0 8px 24px rgba(0,115,170,0.15);
    transform: translateY(-4px);
}

.freight-template-modern .freight-modern-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.freight-template-modern .freight-modern-header {
    padding: 20px 20px 10px 20px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
}

.freight-template-modern .freight-modern-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.freight-template-modern .freight-modern-body {
    padding: 15px 20px 20px 20px;
}

.freight-template-modern .freight-modern-route {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #666;
}

.freight-template-modern .freight-modern-rate {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #0073aa;
}

/* 杂志风格模板 */
.freight-template-magazine .freight-magazine-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.freight-template-magazine .freight-magazine-featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    padding: 40px;
    border-radius: 16px;
    color: white;
}

.freight-template-magazine .freight-magazine-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #0073aa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.freight-template-magazine .freight-magazine-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateX(4px);
}

.freight-template-magazine .freight-magazine-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.freight-template-magazine .freight-magazine-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
}

.freight-template-magazine .freight-magazine-featured .freight-magazine-title {
    font-size: 28px;
    color: white;
}

.freight-template-magazine .freight-magazine-meta {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.freight-template-magazine .freight-magazine-item .freight-magazine-meta {
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .freight-template-grid .freight-grid-container,
    .freight-template-card .freight-card-container,
    .freight-template-modern .freight-modern-container,
    .freight-template-magazine .freight-magazine-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .freight-template-compact .freight-compact-table {
        font-size: 14px;
    }
    
    .freight-template-compact .freight-compact-table th,
    .freight-template-compact .freight-compact-table td {
        padding: 8px;
    }
    
    .freight-template-magazine .freight-magazine-featured {
        padding: 25px;
    }
}

/* 分类/标签列表分页控件样式 */
.freight-taxonomy-pagination {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.freight-pagination-info {
    text-align: center;
}

.freight-pagination-text {
    color: #666;
    font-size: 14px;
}

.freight-pagination-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.freight-pagination-link {
    display: inline-block;
    padding: 8px 14px;
    min-width: 40px;
    text-align: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1.5;
}

.freight-pagination-link:hover:not(.freight-pagination-disabled) {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
    text-decoration: none;
}

.freight-pagination-link.freight-pagination-current {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
    font-weight: 600;
    cursor: default;
}

.freight-pagination-link.freight-pagination-disabled {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.freight-pagination-dots {
    padding: 8px 4px;
    color: #999;
    font-size: 14px;
}

.freight-pagination-prev,
.freight-pagination-next {
    min-width: 80px;
}

@media (max-width: 768px) {
    .freight-taxonomy-pagination {
        margin: 20px 0;
        padding: 15px 0;
    }
    
    .freight-pagination-links {
        gap: 6px;
    }
    
    .freight-pagination-link {
        padding: 6px 12px;
        min-width: 36px;
        font-size: 13px;
    }
    
    .freight-pagination-prev,
    .freight-pagination-next {
        min-width: 70px;
        font-size: 13px;
    }
    
    .freight-pagination-text {
        font-size: 13px;
    }
}

/* ============================================
   桌面端卡片样式（类似移动端卡片式推荐）
   ============================================ */
.freight-card-style {
    max-width: 650px !important;
    margin: 15px auto !important;
    background: white !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.freight-card-style:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
    transform: translateY(-2px) !important;
}

.freight-card-style-header {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%) !important;
    color: white !important;
    padding: 15px 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    box-sizing: border-box !important;
}

.freight-card-route {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    flex: 1 !important;
    min-width: 0 !important;
    color: white !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    line-height: 1.4 !important;
}

.freight-card-shipping-line {
    font-size: 12px !important;
    opacity: 0.9 !important;
    background: rgba(255,255,255,0.2) !important;
    padding: 4px 10px !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
    margin-left: 12px !important;
}

.freight-card-style-body {
    padding: 18px 20px !important;
    box-sizing: border-box !important;
}

.freight-card-rates {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 15px !important;
}

.freight-card-rate-item {
    background: #f8f9fa !important;
    padding: 12px 10px !important;
    border-radius: 6px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.freight-card-rate-item:hover {
    background: #e9ecef !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 2px 8px rgba(0,115,170,0.2) !important;
}

.freight-card-rate-item .rate-label {
    font-weight: 600 !important;
    color: #0073aa !important;
    font-size: 12px !important;
    margin-bottom: 6px !important;
}

.freight-card-rate-item .rate-value {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #333 !important;
}

.freight-card-info {
    border-top: 1px solid #eee !important;
    padding-top: 15px !important;
}

.freight-card-info-row {
    display: flex !important;
    justify-content: space-between !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.freight-card-info-row:last-child {
    border-bottom: none !important;
}

.freight-card-info-row .info-label {
    font-weight: 600 !important;
    color: #666 !important;
    font-size: 13px !important;
}

.freight-card-info-row .info-value {
    color: #333 !important;
    font-size: 13px !important;
    text-align: right !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .freight-card-style {
        margin: 12px 15px !important;
        max-width: 100% !important;
    }
    
    .freight-card-style-header {
        padding: 12px 15px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .freight-card-route {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }
    
    .freight-card-shipping-line {
        margin-left: 0 !important;
        margin-top: 6px !important;
    }
    
    .freight-card-style-body {
        padding: 15px 18px !important;
    }
    
    .freight-card-rates {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 15px !important;
    }
    
    .freight-card-rate-item {
        padding: 10px 8px !important;
    }
    
    .freight-card-rate-item .rate-label {
        font-size: 11px !important;
    }
    
    .freight-card-rate-item .rate-value {
        font-size: 14px !important;
    }
    
    .freight-card-info {
        padding-top: 12px !important;
    }
    
    .freight-card-info-row {
        padding: 6px 0 !important;
    }
    
    .freight-card-info-row .info-label,
    .freight-card-info-row .info-value {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .freight-card-style {
        margin: 10px 12px !important;
    }
    
    .freight-card-style-header {
        padding: 10px 12px !important;
    }
    
    .freight-card-route {
        font-size: 15px !important;
    }
    
    .freight-card-style-body {
        padding: 12px 15px !important;
    }
    
    .freight-card-rates {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    
    .freight-card-rate-item {
        padding: 10px !important;
    }
    
    .freight-card-info-row {
        flex-direction: column !important;
        gap: 4px !important;
    }
    
    .freight-card-info-row .info-value {
        text-align: left !important;
    }
}
