.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-route-intro-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    color: #000000 !important;
    width: 100%;
    box-sizing: border-box;
}

.freight-route-intro,
.freight-port-intro {
    width: 100%;
    box-sizing: border-box;
}

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

.freight-mobile-card-header .freight-route-title,
.freight-mobile-card-header .freight-mobile-route {
    word-wrap: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    white-space: nowrap !important;
    display: inline !important;
    line-height: 1.2 !important;
}
/* 运费查询插件前端样式 - 高优先级，避免被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;
    width: 100%;
    box-sizing: border-box;
}

.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: 8px;
        padding: 6px 0;
    }
    
    .tag-header {
        gap: 4px;
    }
    
    .freight-tags h4 {
        font-size: 11px;
    }
    
    .tag-list {
        gap: 3px;
    }
    
    .freight-tag {
        padding: 5px 12px !important;
        font-size: 13px !important;
        border-radius: 16px !important;
        background: #0073aa !important;
        background-image: linear-gradient(135deg, #0073aa 0%, #005a87 100%) !important;
        color: #ffffff !important;
        border: none !important;
        font-weight: 500 !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
    }
    
    /* 移动端面包屑导航样式 */
    .freight-breadcrumb {
        font-size: 12px;
        padding: 8px 0;
    }
}

/* 运费标签样式 */
.freight-tags {
    margin-top: 10px;
    padding: 8px 0;
}

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

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

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.freight-tag {
    display: inline-block !important;
    padding: 6px 14px !important;
    background: #0073aa !important;
    background-image: linear-gradient(135deg, #0073aa 0%, #0073aa 100%) !important;
    color: #ffffff !important;
    border-radius: 18px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    white-space: nowrap !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
    line-height: 1.4 !important;
}

/* 针对主题可能生成的标签链接，强制应用样式 */
.tag-list a,
.freight-tags a,
a[href*="freight-tag"] {
    display: inline-block !important;
    padding: 6px 14px !important;
    background: #0073aa !important;
    background-image: linear-gradient(135deg, #0073aa 0%, #005a87 100%) !important;
    color: #ffffff !important;
    border-radius: 18px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
    line-height: 1.4 !important;
    margin: 2px !important;
}

/* 确保标签列表中的链接都有背景 */
.tag-list a[href*="freight-tag"],
.freight-tags a[href*="freight-tag"] {
    background: #0073aa !important;
    background-image: linear-gradient(135deg, #0073aa 0%, #005a87 100%) !important;
}

/* 为不同位置的标签设置不同颜色 - 使用纯色背景确保兼容性 */
.freight-tag:nth-child(1),
.freight-tag:nth-child(5),
.freight-tag:nth-child(9) {
    background: #0073aa !important;
    background-image: linear-gradient(135deg, #0073aa 0%, #005a87 100%) !important;
}

.freight-tag:nth-child(2),
.freight-tag:nth-child(6),
.freight-tag:nth-child(10) {
    background: #f093fb !important;
    background-image: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

.freight-tag:nth-child(3),
.freight-tag:nth-child(7),
.freight-tag:nth-child(11) {
    background: #4facfe !important;
    background-image: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
}

.freight-tag:nth-child(4),
.freight-tag:nth-child(8),
.freight-tag:nth-child(12) {
    background: #43e97b !important;
    background-image: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important;
}

.freight-tag:hover {
    opacity: 0.9;
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 面包屑导航样式 */
.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;
    width: 100%;
    box-sizing: border-box;
}

.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;
    width: 100%;
    box-sizing: border-box;
}

.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;
    width: 100%;
    box-sizing: border-box;
}

.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;
    width: 100%;
    box-sizing: border-box;
}

.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;
    width: 100%;
    box-sizing: border-box;
}

.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: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff !important;
    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;
    border: none !important;
    box-shadow: none;
}

/* 为两行标签设置不同颜色 */
.freight-tag-row .freight-tag:nth-child(1),
.freight-tag-row .freight-tag:nth-child(5) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.freight-tag-row .freight-tag:nth-child(2),
.freight-tag-row .freight-tag:nth-child(6) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.freight-tag-row .freight-tag:nth-child(3),
.freight-tag-row .freight-tag:nth-child(7) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.freight-tag-row .freight-tag:nth-child(4),
.freight-tag-row .freight-tag:nth-child(8) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.freight-tag-row .freight-tag:hover {
    opacity: 0.9;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

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

.freight-tag-list .freight-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none !important;
    box-shadow: none;
}

/* 为标签列表设置不同颜色 */
.freight-tag-list .freight-tag:nth-child(1),
.freight-tag-list .freight-tag:nth-child(5),
.freight-tag-list .freight-tag:nth-child(9) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.freight-tag-list .freight-tag:nth-child(2),
.freight-tag-list .freight-tag:nth-child(6),
.freight-tag-list .freight-tag:nth-child(10) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.freight-tag-list .freight-tag:nth-child(3),
.freight-tag-list .freight-tag:nth-child(7),
.freight-tag-list .freight-tag:nth-child(11) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.freight-tag-list .freight-tag:nth-child(4),
.freight-tag-list .freight-tag:nth-child(8),
.freight-tag-list .freight-tag:nth-child(12) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.freight-tag-list .freight-tag:hover {
    opacity: 0.9;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 响应式设计 */
.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 -20px;
    padding: 0 20px;
    width: calc(100% + 40px);
    box-sizing: border-box;
}

.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;
        margin: 20px -20px;
        width: calc(100% + 40px);
    }
    
    .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: 20px -20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    width: calc(100% + 40px);
    box-sizing: border-box;
}

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

.freight-mobile-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.freight-mobile-route {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    flex-shrink: 1 !important;
    color: white !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    display: inline !important;
    word-wrap: normal !important;
    word-break: normal !important;
}

.freight-mobile-shipping-line {
    font-size: 12px !important;
    opacity: 0.9;
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 12px;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    min-width: fit-content;
    display: inline-block !important;
    margin-left: 10px !important;
}

.freight-mobile-card-body {
    padding: 15px 18px;
}

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

.freight-mobile-rate-item {
    background: #f8f9fa;
    padding: 10px;
    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: 12px;
}

.freight-mobile-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    margin-bottom: 8px;
    padding: 0;
    border-bottom: none;
}

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

.freight-mobile-info-row .info-label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
    flex-shrink: 0;
    white-space: nowrap;
}

.freight-mobile-info-row .info-value {
    color: #333;
    font-size: 14px;
    text-align: left;
    flex: 1;
    margin-left: 0;
    white-space: normal;
    word-wrap: break-word;
}

/* 移动端手风琴样式 */
.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: 20px -20px;
        width: calc(100% + 40px);
    }
    
    .freight-mobile-card-header {
        flex-direction: row !important;
        align-items: center !important;
        padding: 12px 15px !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        display: flex !important;
    }
    
    .freight-mobile-card-header .freight-mobile-route,
    .freight-mobile-card-header .freight-route-title {
        word-wrap: normal !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        white-space: nowrap !important;
        display: inline !important;
        margin-bottom: 0 !important;
        font-size: 14px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: none !important;
        flex-shrink: 1 !important;
        line-height: 1.2 !important;
    }
    
    .freight-mobile-shipping-line {
        font-size: 11px !important;
        padding: 3px 8px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        display: inline-block !important;
        margin-left: 10px !important;
    }
    
    .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-wrap: wrap;
        gap: 5px;
    }
    
    .freight-mobile-info-row .info-value {
        text-align: left;
        margin-left: 0;
        flex-basis: 100%;
    }
}

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

/* 确保插件内容能够正确嵌入主题内容区域，不破坏主题布局 */
.freight-generated {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    padding: 0;
}

/* 确保插件内容不会影响主题的容器样式 */
.freight-generated * {
    box-sizing: border-box;
}

/* 确保在主题内容区域中正确显示 */
.entry-content .freight-generated,
.post-content .freight-generated,
.content-area .freight-generated,
.main-content .freight-generated,
#content .freight-generated,
.content .freight-generated {
    margin: 20px 0;
    padding: 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;
    text-decoration: none;
    transition: all 0.2s ease;
}

.freight-template-default .freight-category-tag:hover {
    background-color: #005a87;
    color: #ffffff;
    text-decoration: none;
}

.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: 6px 14px;
    background-color: #28a745;
    color: #ffffff;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.freight-template-default .freight-tag-badge:hover {
    background-color: #218838;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.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-archive-category-filter-wrapper {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.freight-archive-category-filter-wrapper::-webkit-scrollbar {
    height: 6px;
}

.freight-archive-category-filter-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.freight-archive-category-filter-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.freight-archive-category-filter-wrapper::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.freight-archive-category-filter {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: max-content;
    padding: 5px 0;
}

.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;
    white-space: nowrap;
    flex-shrink: 0;
}

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

.freight-category-link-active {
    color: #fff !important;
    background-color: #0073aa !important;
    border-color: #0073aa !important;
}

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

/* 移动端优化 */
@media (max-width: 768px) {
    .freight-archive-category-filter-wrapper {
        margin-left: -10px;
        margin-right: -10px;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .freight-archive-category-filter {
        gap: 8px;
    }
    
    .freight-category-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}

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

/* 确保归档页面标题浮动在图片上方 */
.taxonomy-head .taxonomy-head-body {
    position: relative !important;
}

/* 归档页面标题样式（左侧中间，向右移动50px） */
.taxonomy-head.taxonomy-freight_quote .taxonomy-head-content,
.taxonomy-head.taxonomy-freight_quote .taxonomy-title.taxonomy-head-content {
    position: absolute !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    text-align: left !important;
    inset: 0 !important;
    color: #fff !important;
    z-index: 2 !important;
    pointer-events: none !important;
    padding-left: 50px !important;
}

/* 分类和标签页面标题样式（左下角，与 onenav 主题一致） */
.taxonomy-head:not(.taxonomy-freight_quote) .taxonomy-head-body .taxonomy-head-content,
.taxonomy-head:not(.taxonomy-freight_quote) .taxonomy-head-content {
    position: absolute !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    text-align: left !important;
    inset: 0 !important;
    color: #fff !important;
    z-index: 2 !important;
    pointer-events: none !important;
    padding: 20px !important;
    padding-bottom: 20px !important;
}

.taxonomy-head .taxonomy-head-body .taxonomy-head-content *,
.taxonomy-head .taxonomy-head-content *,
.taxonomy-head .taxonomy-title.taxonomy-head-content * {
    pointer-events: auto !important;
}

/* 确保标题下方的内容可以点击 */
.taxonomy-head + .taxonomy-selects,
.taxonomy-head + .freight-generated,
.taxonomy-head + .freight-category-grid-wrapper,
.content-layout > .taxonomy-selects:first-of-type,
.content-layout > .freight-generated:first-of-type,
.content-layout > .freight-category-grid-wrapper:first-of-type,
.posts-row .freight-generated,
.posts-row .freight-category-grid-wrapper {
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
}

/* 确保网格卡片可以点击（特别是前几行）- 使用更高的z-index */
.freight-category-grid-wrapper {
    position: relative !important;
    z-index: 30 !important;
    pointer-events: auto !important;
}

.freight-category-card {
    position: relative !important;
    z-index: 31 !important;
    pointer-events: auto !important;
}

.freight-category-card-link {
    position: relative !important;
    z-index: 32 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* 确保taxonomy-head本身不阻止点击 */
.taxonomy-head {
    pointer-events: none !important;
}

.taxonomy-head .taxonomy-head-body {
    pointer-events: none !important;
}

.taxonomy-head .taxonomy-head-bg {
    pointer-events: none !important;
}

.taxonomy-head .taxonomy-head-img {
    pointer-events: none !important;
}

/* 确保taxonomy-head-content不阻止点击（关键修复） */
.taxonomy-head .taxonomy-head-content {
    pointer-events: none !important;
}

.taxonomy-head .taxonomy-head-content * {
    pointer-events: auto !important;
}

/* 确保posts-row中的网格卡片可以点击，即使被taxonomy-head覆盖 */
.posts-row .freight-category-grid-wrapper {
    position: relative !important;
    z-index: 30 !important;
    pointer-events: auto !important;
    margin-top: 0 !important;
}

.posts-row .freight-category-card {
    position: relative !important;
    z-index: 31 !important;
    pointer-events: auto !important;
}

.posts-row .freight-category-card-link {
    position: relative !important;
    z-index: 32 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* 确保content-layout中的网格卡片也可以点击 */
.content-layout .freight-category-grid-wrapper {
    position: relative !important;
    z-index: 30 !important;
    pointer-events: auto !important;
}

.content-layout .freight-category-card {
    position: relative !important;
    z-index: 31 !important;
    pointer-events: auto !important;
}

.content-layout .freight-category-card-link {
    position: relative !important;
    z-index: 32 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.taxonomy-head .taxonomy-head-body .taxonomy-head-bg .taxonomy-head-img,
.taxonomy-head .taxonomy-head-img {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
}

/* 分类/标签列表分页控件样式 */
.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;
    }
}

/* ============================================
   暗模式支持 - 插件生成内容文字改为亮白色
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* 航线介绍 - 强制黑色，无论暗模式还是日模式 */
    .freight-route-intro,
    .freight-route-intro *,
    .freight-route-intro h2,
    .freight-route-intro p {
        color: #000000 !important;
    }
    
    /* 港口介绍 - 强制黑色 */
    .freight-port-intro,
    .freight-port-intro *,
    .freight-port-intro h2,
    .freight-port-intro h3,
    .freight-port-intro ul,
    .freight-port-intro li,
    .freight-port-intro strong,
    .port-from-info,
    .port-from-info *,
    .port-to-info,
    .port-to-info * {
        color: #000000 !important;
    }
    
    /* 订舱咨询提示 - 强制黑色，无论暗模式还是日模式 */
    .freight-contact-notice,
    .freight-contact-notice *,
    .freight-contact-notice p,
    .freight-contact-notice a,
    .freight-contact-notice a:hover {
        color: #000000 !important;
    }
    
    /* 最后更新时间 - 强制黑色，无论暗模式还是日模式 */
    .freight-last-updated,
    .freight-last-updated * {
        color: #000000 !important;
    }
    
    /* 订舱咨询和最后更新时间合并区块 - 强制黑色，无论暗模式还是日模式 */
    .freight-contact-updated,
    .freight-contact-updated *,
    .freight-contact-updated p,
    .freight-contact-updated a,
    .freight-contact-updated time {
        color: #000000 !important;
    }
    
    /* 相关航线推荐 - 强制黑色，无论暗模式还是日模式 */
    .freight-related-routes,
    .freight-related-routes *,
    .freight-related-routes h3,
    .freight-related-routes li,
    .freight-related-routes a,
    .freight-related-routes a:hover,
    .freight-related-routes span {
        color: #000000 !important;
    }
    
    /* 热门航线推荐 - 强制黑色，无论暗模式还是日模式 */
    .freight-popular-routes,
    .freight-popular-routes *,
    .freight-popular-routes h3,
    .freight-popular-routes li,
    .freight-popular-routes a,
    .freight-popular-routes a:hover,
    .freight-popular-routes span {
        color: #000000 !important;
    }
    
    /* 推荐航线容器 - 两列并排显示 */
    .freight-routes-recommendation {
        margin-top: 30px;
    }
    
    .freight-routes-container {
        display: flex;
        gap: 0px;
        flex-wrap: wrap;
    }
    
    .freight-popular-routes,
    .freight-related-routes {
        flex: 1;
        min-width: 300px;
        background: #f8f9fa;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 12px 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    
    /* 确保标题和列表内容对齐 */
    .freight-popular-routes h3,
    .freight-related-routes h3 {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    
    .freight-popular-routes ol,
    .freight-related-routes ol {
        padding-left: 0 !important;
        margin-left: 0 !important;
        list-style: none !important;
        counter-reset: route-counter !important;
    }
    
    .freight-popular-routes ol li,
    .freight-related-routes ol li {
        counter-increment: route-counter !important;
        position: relative !important;
        padding-left: 0px !important;
        list-style: none !important;
    }
    
    /* 禁用::before伪元素，使用HTML中的span标签显示序号 */
    .freight-popular-routes ol li::before,
    .freight-related-routes ol li::before {
        content: none !important;
        display: none !important;
    }
    
    /* 分割线已移除，两个列表各自有独立背景框，通过gap间距分隔 */
    
    /* 序号彩色显示 - 使用counter实现兼容性更好的方案 */
    .freight-routes-container ol {
        padding-left: 0;
        margin: 0;
        list-style: none;
        counter-reset: route-counter;
    }
    
    .freight-routes-container ol li {
        counter-increment: route-counter;
        position: relative;
        padding-left: 0px;
        padding-top: 0;
        padding-right: 0;
        padding-bottom: 0;
        margin-bottom: 5px;
        color: #000000 !important;
    }
    
    /* 禁用::before伪元素，使用HTML中的span标签显示序号 */
    .freight-routes-container ol li::before {
        content: none !important;
        display: none !important;
    }
    
    /* 确保序号距离背景框左边框5px（已在上方定义，此处移除重复） */
    
    .freight-routes-container h3 {
        margin: 0 0 6px 0 !important;
        padding: 0 !important;
        font-size: 15px;
        color: #000000 !important;
        font-weight: 600;
        line-height: 1.4;
    }
    
    .freight-routes-container ol {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .freight-routes-container ol li {
        margin: 0 0 4px 0 !important;
        padding: 0 0 0 0px !important;
        line-height: 1.5;
    }
    
    .freight-route-link {
        text-decoration: none;
        color: #000000 !important;
        font-size: 13px;
        line-height: 1.5;
        padding-left: 15px !important;
        display: inline-block !important;
        transition: all 0.3s ease;
    }
    
    .route-number {
        left: -5px !important;
    }
    
    .freight-route-link:hover {
        color: #0073aa !important;
        text-decoration: none;
        animation: freight-route-shake 0.5s ease;
        transform: translateX(2px);
    }
    
    /* 抖动动画 */
    @keyframes freight-route-shake {
        0%, 100% { transform: translateX(0); }
        10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
        20%, 40%, 60%, 80% { transform: translateX(2px); }
    }
    
    /* 响应式设计：小屏幕时上下排列 */
    @media (max-width: 768px) {
        .freight-routes-container {
            flex-direction: column;
            gap: 10px;
            padding: 10px 12px;
        }
        
        .freight-popular-routes,
        .freight-related-routes {
            min-width: 100%;
            padding: 12px 15px;
        }
        
        .freight-popular-routes h3,
        .freight-related-routes h3 {
            margin-bottom: 6px;
            font-size: 14px;
        }
        
        .freight-popular-routes li,
        .freight-related-routes li {
            margin-bottom: 4px;
        }
        
        .freight-route-link {
            font-size: 12px;
            padding-left: 20px !important;
            display: inline-block !important;
        }
        
        /* 小屏幕时分割线横向显示 */
        /* 分割线已移除，两个列表各自有独立背景框，通过gap间距分隔 */
    }
    
    /* 运费内容容器 - 强制黑色，无论暗模式还是日模式 */
    .freight-quote-article,
    .freight-quote-article *,
    .freight-quote-content,
    .freight-quote-content *,
    /* 文本样式和表格样式 - 暗模式下显示白色 */
    .freight-text-container,
    .freight-text-container *,
    .freight-text-container p,
    .freight-text-container strong,
    .freight-compact-container,
    .freight-compact-container *,
    .freight-compact-table,
    .freight-compact-table *,
    .freight-compact-table td,
    .freight-compact-table th {
        color: #ffffff !important;
    }
    
    /* 卡片样式、滑动卡片样式、极简式 - 暗模式下显示黑色 */
    .freight-card-style,
    .freight-card-style *,
    .freight-card-style-body,
    .freight-card-style-body *,
    .freight-card-rates,
    .freight-card-rates *,
    .freight-card-rate-item,
    .freight-card-rate-item *,
    .freight-card-info,
    .freight-card-info *,
    .freight-card-info-row,
    .freight-card-info-row *,
    .freight-mobile-card,
    .freight-mobile-card *,
    .freight-mobile-card-body,
    .freight-mobile-card-body *,
    .freight-mobile-swipe,
    .freight-mobile-swipe *,
    .freight-mobile-swipe-card,
    .freight-mobile-swipe-card *,
    .swipe-card-body,
    .swipe-card-body *,
    .swipe-rates-grid,
    .swipe-rates-grid *,
    .swipe-rate-box,
    .swipe-rate-box *,
    .swipe-info,
    .swipe-info *,
    .swipe-info-item,
    .swipe-info-item *,
    .freight-mobile-minimal,
    .freight-mobile-minimal *,
    .minimal-header,
    .minimal-rates,
    .minimal-rates *,
    .minimal-rate,
    .minimal-footer,
    .minimal-footer * {
        color: #000000 !important;
    }
    
    /* 横线表格中的航线字段 - 暗模式下显示黑色 */
    .freight-horizontal-table .freight-route-title,
    .freight-horizontal-table .freight-route-title * {
        color: #000000 !important;
    }
    
    /* 其他样式保持黑色 */
    .freight-list-container,
    .freight-list-container *,
    .freight-list-container .freight-item,
    .freight-list-container .freight-item *,
    .freight-list-container .freight-list-row,
    .freight-list-container .freight-list-row *,
    .freight-tag-container,
    .freight-tag-container *,
    .freight-horizontal-table-container,
    .freight-horizontal-table-container *,
    .freight-horizontal-table,
    .freight-horizontal-table *,
    .freight-horizontal-table td,
    .freight-horizontal-table th,
    .freight-display-table,
    .freight-display-table *,
    .freight-display-table td,
    .freight-display-table th,
    .freight-table,
    .freight-table *,
    .freight-table td,
    .freight-table th,
    .freight-list-item,
    .freight-item,
    .freight-item strong,
    .freight-list-row,
    .freight-list-row *,
    .freight-route-title,
    .freight-route-title * {
        color: #000000 !important;
    }
    
    /* FAQ部分保持白色 */
    .freight-faq-section,
    .freight-faq-section p,
    .freight-faq-section h3 {
        color: #ffffff !important;
    }
    
    /* 标签文字 - 强制黑色，无论暗模式还是日模式 */
    .freight-tags,
    .freight-tags *,
    .freight-tags h4,
    .tag-list {
        color: #000000 !important;
    }
    
    /* 状态标记文字保持白色 */
    .freight-status {
        color: #ffffff !important;
    }
    
    /* 分享按钮区域 - 强制黑色，无论暗模式还是日模式 */
    .freight-share-buttons,
    .freight-share-buttons *,
    .freight-share-buttons h3 {
        color: #000000 !important;
    }
    
    
    /* 404页面航线推荐 */
    .freight-404-routes,
    .freight-404-routes * {
        color: #ffffff !important;
    }
    
    .freight-404-routes h3 {
        color: #ffffff !important;
    }
    
    .freight-404-routes a {
        color: #87ceeb !important;
    }
    
    .freight-404-routes a:hover {
        color: #ffffff !important;
    }
    
    /* huoyundail-theme 主题暗模式支持 */
    /* 航线介绍 - 强制黑色 */
    body.dark-mode .freight-route-intro,
    body.dark-mode .freight-route-intro *,
    body.dark-mode .freight-route-intro h2,
    body.dark-mode .freight-route-intro p {
        color: #000000 !important;
    }
    
    /* 港口介绍 - 强制黑色 */
    body.dark-mode .freight-port-intro,
    body.dark-mode .freight-port-intro *,
    body.dark-mode .freight-port-intro h2,
    body.dark-mode .freight-port-intro h3,
    body.dark-mode .freight-port-intro ul,
    body.dark-mode .freight-port-intro li,
    body.dark-mode .freight-port-intro strong,
    body.dark-mode .port-from-info,
    body.dark-mode .port-from-info *,
    body.dark-mode .port-to-info,
    body.dark-mode .port-to-info * {
        color: #000000 !important;
    }
    
    /* 港口介绍表格 - 暗模式下所有文字为黑色 */
    body.dark-mode .freight-port-intro-table,
    body.dark-mode .freight-port-intro-table *,
    body.dark-mode .freight-port-intro-table td,
    body.dark-mode .freight-port-intro-table span,
    body.dark-mode .freight-port-intro-table span[itemprop="identifier"],
    body.dark-mode .freight-port-intro-table span[itemprop="addressCountry"] {
        color: #000000 !important;
    }
    
    .dark-mode .freight-port-intro-table,
    .dark-mode .freight-port-intro-table *,
    .dark-mode .freight-port-intro-table td,
    .dark-mode .freight-port-intro-table span,
    .dark-mode .freight-port-intro-table span[itemprop="identifier"],
    .dark-mode .freight-port-intro-table span[itemprop="addressCountry"],
    body.dark .freight-port-intro-table,
    body.dark .freight-port-intro-table *,
    body.dark .freight-port-intro-table td,
    body.dark .freight-port-intro-table span,
    body.dark .freight-port-intro-table span[itemprop="identifier"],
    body.dark .freight-port-intro-table span[itemprop="addressCountry"] {
        color: #000000 !important;
    }
    
    /* 确保港口代码和国家/地区字段在暗模式下为黑色 */
    body.dark-mode [itemprop="identifier"],
    body.dark-mode [itemprop="addressCountry"],
    .dark-mode [itemprop="identifier"],
    .dark-mode [itemprop="addressCountry"],
    body.dark [itemprop="identifier"],
    body.dark [itemprop="addressCountry"] {
        color: #000000 !important;
    }
    
    /* 港口介绍表格 - 标题禁止换行，内容可以换行 */
    .freight-port-intro-table td[style*="background: #f5f5f5"] {
        white-space: nowrap !important;
    }
    
    .freight-port-intro-table td[style*="background: white"] {
        word-wrap: break-word !important;
        word-break: break-word !important;
        white-space: normal !important;
    }
    
    /* 运费内容 - 文本样式和表格样式在暗模式下显示白色 */
    body.dark-mode .freight-text-container,
    body.dark-mode .freight-text-container *,
    body.dark-mode .freight-text-container p,
    body.dark-mode .freight-text-container strong,
    body.dark-mode .freight-compact-container,
    body.dark-mode .freight-compact-container *,
    body.dark-mode .freight-compact-table,
    body.dark-mode .freight-compact-table *,
    body.dark-mode .freight-compact-table td,
    body.dark-mode .freight-compact-table th {
        color: #ffffff !important;
    }
    
    /* 卡片样式、滑动卡片样式、极简式 - 暗模式下显示黑色 */
    body.dark-mode .freight-card-style,
    body.dark-mode .freight-card-style *,
    body.dark-mode .freight-card-style-body,
    body.dark-mode .freight-card-style-body *,
    body.dark-mode .freight-card-rates,
    body.dark-mode .freight-card-rates *,
    body.dark-mode .freight-card-rate-item,
    body.dark-mode .freight-card-rate-item *,
    body.dark-mode .freight-card-info,
    body.dark-mode .freight-card-info *,
    body.dark-mode .freight-card-info-row,
    body.dark-mode .freight-card-info-row *,
    body.dark-mode .freight-mobile-card,
    body.dark-mode .freight-mobile-card *,
    body.dark-mode .freight-mobile-card-body,
    body.dark-mode .freight-mobile-card-body *,
    body.dark-mode .freight-mobile-swipe,
    body.dark-mode .freight-mobile-swipe *,
    body.dark-mode .freight-mobile-swipe-card,
    body.dark-mode .freight-mobile-swipe-card *,
    body.dark-mode .swipe-card-body,
    body.dark-mode .swipe-card-body *,
    body.dark-mode .swipe-rates-grid,
    body.dark-mode .swipe-rates-grid *,
    body.dark-mode .swipe-rate-box,
    body.dark-mode .swipe-rate-box *,
    body.dark-mode .swipe-info,
    body.dark-mode .swipe-info *,
    body.dark-mode .swipe-info-item,
    body.dark-mode .swipe-info-item *,
    body.dark-mode .freight-mobile-minimal,
    body.dark-mode .freight-mobile-minimal *,
    body.dark-mode .minimal-header,
    body.dark-mode .minimal-rates,
    body.dark-mode .minimal-rates *,
    body.dark-mode .minimal-rate,
    body.dark-mode .minimal-footer,
    body.dark-mode .minimal-footer * {
        color: #000000 !important;
    }
    
    /* 横线表格中的航线字段 - 暗模式下显示黑色 */
    body.dark-mode .freight-horizontal-table .freight-route-title,
    body.dark-mode .freight-horizontal-table .freight-route-title * {
        color: #000000 !important;
    }
    
    /* 其他样式保持黑色 */
    body.dark-mode .freight-quote-article,
    body.dark-mode .freight-quote-article *,
    body.dark-mode .freight-quote-content,
    body.dark-mode .freight-quote-content *,
    body.dark-mode .freight-list-container,
    body.dark-mode .freight-list-container *,
    body.dark-mode .freight-tag-container,
    body.dark-mode .freight-tag-container *,
    body.dark-mode .freight-horizontal-table-container,
    body.dark-mode .freight-horizontal-table-container *,
    body.dark-mode .freight-horizontal-table td,
    body.dark-mode .freight-display-table td,
    body.dark-mode .freight-table td,
    body.dark-mode .freight-list-item,
    body.dark-mode .freight-item,
    body.dark-mode .freight-list-row,
    body.dark-mode .freight-route-title {
        color: #000000 !important;
    }
    
    /* 相关航线推荐 - 强制黑色 */
    body.dark-mode .freight-related-routes,
    body.dark-mode .freight-related-routes *,
    body.dark-mode .freight-related-routes h3,
    body.dark-mode .freight-related-routes li,
    body.dark-mode .freight-related-routes a,
    body.dark-mode .freight-related-routes a:hover,
    body.dark-mode .freight-related-routes span {
        color: #000000 !important;
    }
    
    /* 热门航线推荐 - 强制黑色 */
    body.dark-mode .freight-popular-routes,
    body.dark-mode .freight-popular-routes *,
    body.dark-mode .freight-popular-routes h3,
    body.dark-mode .freight-popular-routes li,
    body.dark-mode .freight-popular-routes a,
    body.dark-mode .freight-popular-routes a:hover,
    body.dark-mode .freight-popular-routes span {
        color: #000000 !important;
    }
    
    /* 推荐航线容器 - 暗模式下强制黑色 */
    body.dark-mode .freight-routes-recommendation,
    body.dark-mode .freight-routes-container,
    body.dark-mode .freight-routes-container *,
    body.dark-mode .freight-routes-container h3,
    body.dark-mode .freight-routes-container li,
    body.dark-mode .freight-route-link,
    body.dark-mode .freight-route-link:hover {
        color: #000000 !important;
    }
    
    body.dark-mode .freight-popular-routes,
    body.dark-mode .freight-related-routes {
        background: #f8f9fa !important;
        border-color: #e0e0e0 !important;
    }
    
    /* 暗模式下序号也保持彩色 */
    body.dark-mode .freight-routes-container ol li::before {
        color: #000000 !important;
    }
    
    /* 订舱咨询 - 强制黑色 */
    body.dark-mode .freight-contact-notice,
    body.dark-mode .freight-contact-notice *,
    body.dark-mode .freight-contact-notice p,
    body.dark-mode .freight-contact-notice a,
    body.dark-mode .freight-contact-notice a:hover {
        color: #000000 !important;
    }
    
    /* 最后更新时间 - 强制黑色 */
    body.dark-mode .freight-last-updated,
    body.dark-mode .freight-last-updated * {
        color: #000000 !important;
    }
    
    /* 订舱咨询和最后更新时间合并区块 - 强制黑色 */
    body.dark-mode .freight-contact-updated,
    body.dark-mode .freight-contact-updated *,
    body.dark-mode .freight-contact-updated p,
    body.dark-mode .freight-contact-updated a,
    body.dark-mode .freight-contact-updated time {
        color: #000000 !important;
    }
    
    /* 运费标签 - 强制黑色 */
    body.dark-mode .freight-tags,
    body.dark-mode .freight-tags *,
    body.dark-mode .freight-tags h4 {
        color: #000000 !important;
    }
    
    /* 暗模式下标签保持彩色背景和白色字体 */
    body.dark-mode .freight-tag,
    body.dark-mode .freight-tag-row .freight-tag,
    body.dark-mode .freight-tag-list .freight-tag {
        color: #ffffff !important;
    }
    
    /* 分享按钮 - 强制黑色 */
    body.dark-mode .freight-share-buttons,
    body.dark-mode .freight-share-buttons *,
    body.dark-mode .freight-share-buttons h3 {
        color: #000000 !important;
    }
    
    /* 其他内容保持白色 */
    body.dark-mode .freight-404-routes,
    body.dark-mode .freight-404-routes *,
    body.dark-mode .freight-faq-section {
        color: #ffffff !important;
    }
    
    body.dark-mode .freight-404-routes h3,
    body.dark-mode .freight-faq-section h3 {
        color: #ffffff !important;
    }
    
    body.dark-mode .freight-404-routes a {
        color: #87ceeb !important;
    }
    
    body.dark-mode .freight-404-routes a:hover {
        color: #ffffff !important;
    }
}

/* 如果主题有暗模式类名 */
/* 航线介绍 - 强制黑色，无论暗模式还是日模式 */
.dark-mode .freight-route-intro,
.dark-mode .freight-route-intro *,
body.dark .freight-route-intro,
body.dark .freight-route-intro *,
body.dark-mode .freight-route-intro,
body.dark-mode .freight-route-intro *,
body.dark-mode .freight-route-intro h2,
body.dark-mode .freight-route-intro p {
    color: #000000 !important;
}

/* 港口介绍 - 强制黑色，无论暗模式还是日模式 */
.dark-mode .freight-port-intro,
.dark-mode .freight-port-intro *,
.dark-mode .freight-port-intro h2,
.dark-mode .freight-port-intro h3,
.dark-mode .freight-port-intro ul,
.dark-mode .freight-port-intro li,
.dark-mode .freight-port-intro strong,
.dark-mode .port-from-info,
.dark-mode .port-from-info *,
.dark-mode .port-to-info,
.dark-mode .port-to-info *,
body.dark .freight-port-intro,
body.dark .freight-port-intro *,
body.dark .freight-port-intro h2,
body.dark .freight-port-intro h3,
body.dark .freight-port-intro ul,
body.dark .freight-port-intro li,
body.dark .freight-port-intro strong,
body.dark .port-from-info,
body.dark .port-from-info *,
body.dark .port-to-info,
body.dark .port-to-info *,
body.dark-mode .freight-port-intro,
body.dark-mode .freight-port-intro *,
body.dark-mode .freight-port-intro h2,
body.dark-mode .freight-port-intro h3,
body.dark-mode .freight-port-intro ul,
body.dark-mode .freight-port-intro li,
body.dark-mode .freight-port-intro strong,
body.dark-mode .port-from-info,
body.dark-mode .port-from-info *,
body.dark-mode .port-to-info,
body.dark-mode .port-to-info * {
    color: #000000 !important;
}

/* 订舱咨询 - 强制黑色，无论暗模式还是日模式 */
.dark-mode .freight-contact-notice,
.dark-mode .freight-contact-notice *,
body.dark .freight-contact-notice,
body.dark .freight-contact-notice *,
body.dark-mode .freight-contact-notice,
body.dark-mode .freight-contact-notice *,
body.dark-mode .freight-contact-notice p,
body.dark-mode .freight-contact-notice a,
body.dark-mode .freight-contact-notice a:hover {
    color: #000000 !important;
}

/* 最后更新时间 - 强制黑色，无论暗模式还是日模式 */
.dark-mode .freight-last-updated,
.dark-mode .freight-last-updated *,
body.dark .freight-last-updated,
body.dark .freight-last-updated *,
body.dark-mode .freight-last-updated,
body.dark-mode .freight-last-updated * {
    color: #000000 !important;
}

/* 订舱咨询和最后更新时间合并区块 - 强制黑色，无论暗模式还是日模式 */
.dark-mode .freight-contact-updated,
.dark-mode .freight-contact-updated *,
.dark-mode .freight-contact-updated p,
.dark-mode .freight-contact-updated a,
.dark-mode .freight-contact-updated time,
body.dark .freight-contact-updated,
body.dark .freight-contact-updated *,
body.dark .freight-contact-updated p,
body.dark .freight-contact-updated a,
body.dark .freight-contact-updated time,
body.dark-mode .freight-contact-updated,
body.dark-mode .freight-contact-updated *,
body.dark-mode .freight-contact-updated p,
body.dark-mode .freight-contact-updated a,
body.dark-mode .freight-contact-updated time {
    color: #000000 !important;
}

/* 相关航线推荐 - 强制黑色，无论暗模式还是日模式 */
.dark-mode .freight-related-routes,
.dark-mode .freight-related-routes *,
body.dark .freight-related-routes,
body.dark .freight-related-routes *,
body.dark-mode .freight-related-routes,
body.dark-mode .freight-related-routes *,
body.dark-mode .freight-related-routes h3,
body.dark-mode .freight-related-routes li,
body.dark-mode .freight-related-routes a,
body.dark-mode .freight-related-routes a:hover,
body.dark-mode .freight-related-routes span {
    color: #000000 !important;
}

/* 热门航线推荐 - 强制黑色，无论暗模式还是日模式 */
.dark-mode .freight-popular-routes,
.dark-mode .freight-popular-routes *,
body.dark .freight-popular-routes,
body.dark .freight-popular-routes *,
body.dark-mode .freight-popular-routes,
body.dark-mode .freight-popular-routes *,
body.dark-mode .freight-popular-routes h3,
body.dark-mode .freight-popular-routes li,
body.dark-mode .freight-popular-routes a,
body.dark-mode .freight-popular-routes a:hover,
body.dark-mode .freight-popular-routes span {
    color: #000000 !important;
}

/* 推荐航线容器 - 暗模式下强制黑色 */
.dark-mode .freight-routes-recommendation,
.dark-mode .freight-popular-routes,
.dark-mode .freight-popular-routes *,
.dark-mode .freight-related-routes,
.dark-mode .freight-related-routes *,
.dark-mode .freight-popular-routes h3,
.dark-mode .freight-related-routes h3,
.dark-mode .freight-popular-routes li,
.dark-mode .freight-related-routes li,
body.dark .freight-routes-recommendation,
body.dark .freight-popular-routes,
body.dark .freight-popular-routes *,
body.dark .freight-related-routes,
body.dark .freight-related-routes *,
body.dark-mode .freight-routes-recommendation,
body.dark-mode .freight-popular-routes,
body.dark-mode .freight-popular-routes *,
body.dark-mode .freight-related-routes,
body.dark-mode .freight-related-routes *,
body.dark-mode .freight-popular-routes h3,
body.dark-mode .freight-related-routes h3,
body.dark-mode .freight-popular-routes li,
body.dark-mode .freight-related-routes li,
body.dark-mode .freight-route-link:hover {
    color: #000000 !important;
}

body.dark-mode .freight-popular-routes,
body.dark-mode .freight-related-routes {
    background: #f8f9fa !important;
    border-color: #e0e0e0 !important;
}

/* 运费内容容器 - 文本样式和表格样式在暗模式下显示白色 */
.dark-mode .freight-text-container,
.dark-mode .freight-text-container *,
.dark-mode .freight-text-container p,
.dark-mode .freight-text-container strong,
.dark-mode .freight-compact-container,
.dark-mode .freight-compact-container *,
.dark-mode .freight-compact-table,
.dark-mode .freight-compact-table *,
.dark-mode .freight-compact-table td,
.dark-mode .freight-compact-table th,
body.dark .freight-text-container,
body.dark .freight-text-container *,
body.dark .freight-text-container p,
body.dark .freight-text-container strong,
body.dark .freight-compact-container,
body.dark .freight-compact-container *,
body.dark .freight-compact-table,
body.dark .freight-compact-table *,
body.dark .freight-compact-table td,
body.dark .freight-compact-table th,
body.dark-mode .freight-text-container,
body.dark-mode .freight-text-container *,
body.dark-mode .freight-text-container p,
body.dark-mode .freight-text-container strong,
body.dark-mode .freight-compact-container,
body.dark-mode .freight-compact-container *,
body.dark-mode .freight-compact-table,
body.dark-mode .freight-compact-table *,
body.dark-mode .freight-compact-table td,
body.dark-mode .freight-compact-table th {
    color: #ffffff !important;
}

/* 卡片样式、滑动卡片样式、极简式 - 暗模式下显示黑色 */
.dark-mode .freight-card-style,
.dark-mode .freight-card-style *,
.dark-mode .freight-card-style-body,
.dark-mode .freight-card-style-body *,
.dark-mode .freight-card-rates,
.dark-mode .freight-card-rates *,
.dark-mode .freight-card-rate-item,
.dark-mode .freight-card-rate-item *,
.dark-mode .freight-card-info,
.dark-mode .freight-card-info *,
.dark-mode .freight-card-info-row,
.dark-mode .freight-card-info-row *,
.dark-mode .freight-mobile-card,
.dark-mode .freight-mobile-card *,
.dark-mode .freight-mobile-card-body,
.dark-mode .freight-mobile-card-body *,
.dark-mode .freight-mobile-swipe,
.dark-mode .freight-mobile-swipe *,
.dark-mode .freight-mobile-swipe-card,
.dark-mode .freight-mobile-swipe-card *,
.dark-mode .swipe-card-body,
.dark-mode .swipe-card-body *,
.dark-mode .swipe-rates-grid,
.dark-mode .swipe-rates-grid *,
.dark-mode .swipe-rate-box,
.dark-mode .swipe-rate-box *,
.dark-mode .swipe-info,
.dark-mode .swipe-info *,
.dark-mode .swipe-info-item,
.dark-mode .swipe-info-item *,
.dark-mode .freight-mobile-minimal,
.dark-mode .freight-mobile-minimal *,
.dark-mode .minimal-header,
.dark-mode .minimal-rates,
.dark-mode .minimal-rates *,
.dark-mode .minimal-rate,
.dark-mode .minimal-footer,
.dark-mode .minimal-footer *,
body.dark .freight-card-style,
body.dark .freight-card-style *,
body.dark .freight-card-style-body,
body.dark .freight-card-style-body *,
body.dark .freight-card-rates,
body.dark .freight-card-rates *,
body.dark .freight-card-rate-item,
body.dark .freight-card-rate-item *,
body.dark .freight-card-info,
body.dark .freight-card-info *,
body.dark .freight-card-info-row,
body.dark .freight-card-info-row *,
body.dark .freight-mobile-card,
body.dark .freight-mobile-card *,
body.dark .freight-mobile-card-body,
body.dark .freight-mobile-card-body *,
body.dark .freight-mobile-swipe,
body.dark .freight-mobile-swipe *,
body.dark .freight-mobile-swipe-card,
body.dark .freight-mobile-swipe-card *,
body.dark .swipe-card-body,
body.dark .swipe-card-body *,
body.dark .swipe-rates-grid,
body.dark .swipe-rates-grid *,
body.dark .swipe-rate-box,
body.dark .swipe-rate-box *,
body.dark .swipe-info,
body.dark .swipe-info *,
body.dark .swipe-info-item,
body.dark .swipe-info-item *,
body.dark .freight-mobile-minimal,
body.dark .freight-mobile-minimal *,
body.dark .minimal-header,
body.dark .minimal-rates,
body.dark .minimal-rates *,
body.dark .minimal-rate,
body.dark .minimal-footer,
body.dark .minimal-footer * {
    color: #000000 !important;
}

/* 横线表格中的航线字段 - 暗模式下显示黑色 */
.dark-mode .freight-horizontal-table .freight-route-title,
.dark-mode .freight-horizontal-table .freight-route-title *,
body.dark .freight-horizontal-table .freight-route-title,
body.dark .freight-horizontal-table .freight-route-title * {
    color: #000000 !important;
}

/* 其他样式保持黑色 */
.dark-mode .freight-quote-article,
.dark-mode .freight-quote-article *,
.dark-mode .freight-quote-content,
.dark-mode .freight-quote-content *,
.dark-mode .freight-list-container,
.dark-mode .freight-list-container *,
.dark-mode .freight-tag-container,
.dark-mode .freight-tag-container *,
.dark-mode .freight-horizontal-table-container,
.dark-mode .freight-horizontal-table-container *,
.dark-mode .freight-horizontal-table td,
.dark-mode .freight-display-table td,
.dark-mode .freight-table td,
.dark-mode .freight-list-item,
.dark-mode .freight-item,
.dark-mode .freight-list-row,
.dark-mode .freight-route-title,
body.dark .freight-quote-article,
body.dark .freight-quote-article *,
body.dark .freight-quote-content,
body.dark .freight-quote-content *,
body.dark .freight-list-container,
body.dark .freight-list-container *,
body.dark .freight-tag-container,
body.dark .freight-tag-container *,
body.dark .freight-horizontal-table-container,
body.dark .freight-horizontal-table-container *,
body.dark .freight-horizontal-table td,
body.dark .freight-display-table td,
body.dark .freight-table td,
body.dark .freight-list-item,
body.dark .freight-item,
body.dark .freight-list-row,
body.dark .freight-route-title,
body.dark-mode .freight-quote-article,
body.dark-mode .freight-quote-article *,
body.dark-mode .freight-quote-content,
body.dark-mode .freight-quote-content *,
body.dark-mode .freight-list-container,
body.dark-mode .freight-list-container *,
body.dark-mode .freight-tag-container,
body.dark-mode .freight-tag-container *,
body.dark-mode .freight-horizontal-table-container,
body.dark-mode .freight-horizontal-table-container *,
body.dark-mode .freight-horizontal-table td,
body.dark-mode .freight-display-table td,
body.dark-mode .freight-table td,
body.dark-mode .freight-list-item,
body.dark-mode .freight-item,
body.dark-mode .freight-list-row,
body.dark-mode .freight-route-title {
    color: #000000 !important;
}

/* FAQ部分保持白色 */
.dark-mode .freight-faq-section,
.dark-mode .freight-faq-section p,
.dark-mode .freight-faq-section h3,
body.dark .freight-faq-section,
body.dark .freight-faq-section p,
body.dark .freight-faq-section h3,
body.dark-mode .freight-faq-section,
body.dark-mode .freight-faq-section p,
body.dark-mode .freight-faq-section h3 {
    color: #ffffff !important;
}

/* 标签文字 - 强制黑色，无论暗模式还是日模式 */
.dark-mode .freight-tags,
.dark-mode .freight-tags *,
.dark-mode .freight-tags h4,
.dark-mode .tag-list,
body.dark .freight-tags,
body.dark .freight-tags *,
body.dark .freight-tags h4,
body.dark .tag-list,
body.dark-mode .freight-tags,
body.dark-mode .freight-tags *,
body.dark-mode .freight-tags h4,
body.dark-mode .tag-list {
    color: #000000 !important;
}

/* 暗模式下标签文字保持白色 */
.dark-mode .freight-tag,
.dark-mode .freight-tag-row .freight-tag,
.dark-mode .freight-tag-list .freight-tag,
body.dark .freight-tag,
body.dark .freight-tag-row .freight-tag,
body.dark .freight-tag-list .freight-tag,
body.dark-mode .freight-tag,
body.dark-mode .freight-tag-row .freight-tag,
body.dark-mode .freight-tag-list .freight-tag {
    color: #ffffff !important;
}

/* 分享按钮 - 强制黑色，无论暗模式还是日模式 */
.dark-mode .freight-share-buttons,
.dark-mode .freight-share-buttons *,
body.dark .freight-share-buttons,
body.dark .freight-share-buttons *,
body.dark-mode .freight-share-buttons,
body.dark-mode .freight-share-buttons *,
body.dark-mode .freight-share-buttons h3 {
    color: #000000 !important;
}

/* 404页面航线推荐 - 保持白色 */
.dark-mode .freight-404-routes,
.dark-mode .freight-404-routes *,
body.dark .freight-404-routes,
body.dark .freight-404-routes *,
body.dark-mode .freight-404-routes,
body.dark-mode .freight-404-routes * {
    color: #ffffff !important;
}

.dark-mode .freight-404-routes h3,
body.dark .freight-404-routes h3,
body.dark-mode .freight-404-routes h3 {
    color: #ffffff !important;
}

.dark-mode .freight-404-routes a,
body.dark .freight-404-routes a,
body.dark-mode .freight-404-routes a {
    color: #87ceeb !important;
}

/* 归档页面网格卡片样式 - 通用主题兼容 */
.freight-category-grid-wrapper {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    /* 确保不受主题样式影响 */
    position: relative !important;
    z-index: 1 !important;
}

/* 当有标题时，移除顶部padding，让标题占据原先的空白位置 */
.freight-category-grid-wrapper.has-title {
    padding-top: 0 !important;
}

/* 确保标题不会重复显示 - 隐藏重复的标题 */
.freight-category-grid-wrapper.has-title .freight-category-grid-title ~ .freight-category-grid-title {
    display: none !important;
}

/* 网格卡片标题样式 - 占据原先的空白位置 */
.freight-category-grid-title {
    margin: 0 0 20px 0 !important;
    padding: 0 20px !important; /* 移除padding-top，只保留左右padding */
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.3 !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.dark-mode .freight-category-grid-title,
body.dark .freight-category-grid-title,
body.dark-mode .freight-category-grid-title {
    color: #fff !important;
}

/* 归档列表标题样式 - 占据原先的空白位置 */
.freight-archive-list-title {
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.3 !important;
    text-align: left !important;
}

/* 当有标题时，移除容器的顶部margin/padding（如果有） */
.freight-generated.has-list-title {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.dark-mode .freight-archive-list-title,
body.dark .freight-archive-list-title,
body.dark-mode .freight-archive-list-title {
    color: #fff !important;
}

.freight-category-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)) !important; /* 98px * 1.1 = 107.8px，约108px */
    gap: 12px !important; /* 11px * 1.1 = 12.1px，约12px */
    margin-top: 0 !important; /* 改为0，因为标题已经提供了间距 */
    margin-bottom: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    /* 重置主题可能设置的样式 */
    box-sizing: border-box !important;
}

.freight-category-card {
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    /* 确保不受主题样式影响 */
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.freight-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #0073aa;
}

.freight-category-card-link {
    display: block !important;
    text-decoration: none !important;
    color: inherit !important;
    height: 100% !important;
    /* 确保链接可点击 */
    position: relative !important;
    z-index: 1 !important;
}

.freight-category-card-content {
    padding: 12px !important; /* 11px * 1.1 = 12.1px，约12px */
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    box-sizing: border-box !important;
    /* 重置主题可能设置的样式 */
    margin: 0 !important;
}

.freight-category-card-title {
    margin: 0 0 7px 0 !important; /* 6px * 1.1 = 6.6px，约7px */
    font-size: 12px !important; /* 11px * 1.1 = 12.1px，约12px */
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.3 !important;
    /* 重置主题可能设置的样式 */
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.freight-category-card-description {
    margin: 0 0 8px 0 !important; /* 7px * 1.1 = 7.7px，约8px */
    font-size: 9px !important; /* 8px * 1.1 = 8.8px，约9px */
    color: #666 !important;
    line-height: 1.5 !important;
    flex-grow: 1 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    /* 重置主题可能设置的样式 */
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.freight-category-card-count {
    margin-top: auto !important;
    font-size: 9px !important; /* 8px * 1.1 = 8.8px，约9px */
    color: #0073aa !important;
    font-weight: 500 !important;
    padding-top: 7px !important; /* 6px * 1.1 = 6.6px，约7px */
    border-top: 1px solid #f0f0f0 !important;
    /* 重置主题可能设置的样式 */
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.freight-category-card:hover .freight-category-card-title {
    color: #0073aa;
}

.freight-category-card:hover .freight-category-card-count {
    color: #005c87;
}

.freight-no-categories {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

/* 响应式设计 */
/* 平板设备 (768px - 1024px) */
@media screen and (min-width: 481px) and (max-width: 1024px) {
    .freight-category-grid {
        grid-template-columns: repeat(auto-fill, minmax(123px, 1fr)); /* 112px * 1.1 = 123.2px，约123px */
        gap: 11px; /* 10px * 1.1 = 11px */
    }
    
    .freight-category-card-content {
        padding: 11px; /* 10px * 1.1 = 11px */
    }
    
    .freight-category-card-title {
        font-size: 12px; /* 11px * 1.1 = 12.1px，约12px */
    }
}

/* 手机设备 (最大480px) */
@media screen and (max-width: 480px) {
    .freight-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 9px; /* 8px * 1.1 = 8.8px，约9px */
    }
    
    .freight-category-grid-wrapper {
        padding: 15px;
    }
    
    .freight-category-card-content {
        padding: 12px; /* 11px * 1.1 = 12.1px，约12px */
    }
    
    .freight-category-card-title {
        font-size: 12px; /* 11px * 1.1 = 12.1px，约12px */
    }
    
    .freight-category-card-description {
        font-size: 9px; /* 8px * 1.1 = 8.8px，约9px */
        display: none; /* 手机端隐藏描述以节省空间 */
    }
    
    .freight-category-card-count {
        font-size: 9px; /* 8px * 1.1 = 8.8px，约9px */
    }
}

/* 暗模式样式 - 文字改为黑色，使用更强的选择器优先级 */
.dark-mode .freight-category-card .freight-category-card-title,
body.dark .freight-category-card .freight-category-card-title,
body.dark-mode .freight-category-card .freight-category-card-title,
.dark-mode .freight-category-card-content .freight-category-card-title,
body.dark .freight-category-card-content .freight-category-card-title,
body.dark-mode .freight-category-card-content .freight-category-card-title {
    color: #000000 !important;
}

.dark-mode .freight-category-card .freight-category-card-description,
body.dark .freight-category-card .freight-category-card-description,
body.dark-mode .freight-category-card .freight-category-card-description,
.dark-mode .freight-category-card-content .freight-category-card-description,
body.dark .freight-category-card-content .freight-category-card-description,
body.dark-mode .freight-category-card-content .freight-category-card-description {
    color: #000000 !important;
}

.dark-mode .freight-category-card .freight-category-card-count,
body.dark .freight-category-card .freight-category-card-count,
body.dark-mode .freight-category-card .freight-category-card-count,
.dark-mode .freight-category-card-content .freight-category-card-count,
body.dark .freight-category-card-content .freight-category-card-count,
body.dark-mode .freight-category-card-content .freight-category-card-count {
    color: #000000 !important;
}

.dark-mode .freight-category-card:hover .freight-category-card-title,
body.dark .freight-category-card:hover .freight-category-card-title,
body.dark-mode .freight-category-card:hover .freight-category-card-title {
    color: #0073aa !important;
}

.dark-mode .freight-category-card:hover .freight-category-card-count,
body.dark .freight-category-card:hover .freight-category-card-count,
body.dark-mode .freight-category-card:hover .freight-category-card-count {
    color: #005c87 !important;
}

/* 确保暗模式下卡片背景也是浅色，以便黑色文字可见 */
.dark-mode .freight-category-card,
body.dark .freight-category-card,
body.dark-mode .freight-category-card {
    background: #ffffff !important;
    border-color: #e0e0e0 !important;
}
