:root {
    --background: 0 0% 98%;      /* 几乎白色的背景 */
    --foreground: 0 0% 10%;      /* 深灰近黑色的文字 */
    --card: 0 0% 100%;           /* 纯白色卡片背景 */
    --card-foreground: 0 0% 10%; /* 深灰近黑色的卡片文字 */
    --popover: 0 0% 100%;        /* 纯白色弹出层 */
    --popover-foreground: 0 0% 10%; /* 深灰近黑色的弹出层文字 */
    --primary: 0 0% 20%;         /* 深灰色主色调 */
    --primary-foreground: 0 0% 98%; /* 几乎白色的主色调文字 */
    --secondary: 0 0% 96%;       /* 浅灰色次要背景 */
    --secondary-foreground: 0 0% 10%; /* 深灰近黑色的次要文字 */
    --muted: 0 0% 96%;          /* 浅灰色静音背景 */
    --muted-foreground: 0 0% 40%; /* 中灰色静音文字 */
    --accent: 0 0% 94%;         /* 浅灰色强调背景 */
    --accent-foreground: 0 0% 10%; /* 深灰近黑色的强调文字 */
    --destructive: 0 0% 25%;     /* 深灰色警告色 */
    --destructive-foreground: 0 0% 98%; /* 几乎白色的警告文字 */
    --border: 0 0% 90%;         /* 浅灰色边框 */
    --input: 0 0% 90%;          /* 浅灰色输入框 */
    --ring: 0 0% 20%;           /* 深灰色轮廓 */
    --radius: 0.5rem;
}
*,
*:before,
*:after {
    box-sizing: inherit;
}
ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.google-auto-placed:empty {
	display: none !important;
	line-height: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
}

#map-container {
    position: relative;
    margin-top: -60px;
    height: 50vh;
    width: 100%;
    z-index: 1;
    overflow: hidden; /* 防止内容溢出 */
}

#map {
    height: 100%;
    width: 100%;
}

/* 确保Leaflet地图填充整个容器 */
.leaflet-container {
    height: 100% !important;
    width: 100% !important;
    min-height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.top-container {
    position: relative;
    z-index: 1;
}

.top-bar {
    position: relative;
    height: 60px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    /* height: 2.5rem; */
    width: auto;
}

.controls-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
}

/* Select2 自定义样式 */
.select2-container {
    min-width: 250px !important;
}

.select2-container--default .select2-selection--single {
    height: 2.5rem;
    background-color: hsl(var(--background));
    border: 1px solid black;
    border-radius: var(--radius);
    padding: 0.5rem;
    transition: border-color 0.2s ease;
}

.select2-container--default .select2-selection--single:hover {
    border-color: hsl(var(--ring));
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5rem;
    color: hsl(var(--foreground));
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 2.5rem;
}

.select2-dropdown {
    background-color: hsl(var(--popover));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.select2-search__field {
    border: 1px solid hsl(var(--border)) !important;
    border-radius: var(--radius) !important;
    padding: 0.5rem !important;
}

.select2-results__option {
    padding: 0.5rem 0.75rem;
}

.select2-results__option--highlighted[aria-selected] {
    background-color: hsl(var(--accent)) !important;
    color: hsl(var(--accent-foreground)) !important;
}

.legend {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: 0.7rem 0.75rem;
    border-radius: var(--radius);
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid black;
}

.legend-color {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    margin-right: 0.5rem;
}

.sea-port {
    background-color: hsl(0 0% 20%);  /* 深灰色替代原来的主色调 */
}

.container-terminal {
    background-color: hsl(0, 100%, 50%);  /* 中灰色替代原来的警告色 */
}

.port-popup {
    /* padding: 10px; */
    min-width: 200px;
}

.port-popup h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.port-popup a {
    display: inline-block;
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.port-popup a:hover {
    background-color: #0056b3;
}

@media (max-width: 992px) {
    .controls-group {
        gap: 1rem;
        padding: 0.5rem 0.75rem;
    }

    .select2-container {
        min-width: 200px !important;
    }

    .legend {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        height: 120px;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }

    #map-container {
        margin-top: -120px;
        height: 40vh;
    }

    .logo-container {
        display: none;
    }

    .controls-group {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
        margin-top: 1vh;
    }

    .select2-container {
        width: 100% !important;
    }

    .legend {
        width: 100%;
        justify-content: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .legend-item {
        font-size: 0.875rem;
        padding: 0.7rem 2.2rem;
    }
}

/* 自定义弹出层样式 */
.custom-popup .leaflet-popup-content-wrapper {
    background: hsl(var(--card));
    border-radius: var(--radius);
    box-shadow: 
        0 1px 2px -1px hsl(var(--foreground) / 0.1),
        0 1px 3px -1px hsl(var(--foreground) / 0.1);
    padding: 0;
    overflow: hidden;
    border: 1px solid hsl(var(--border));
}

.custom-popup .leaflet-popup-content {
    margin: 0;
    min-width: 320px;
    width: auto !important;
    max-width: 500px;
}

.custom-popup .leaflet-popup-tip {
    background: hsl(var(--card));
    box-shadow: 0 1px 2px -1px hsl(var(--foreground) / 0.1);
    border: 1px solid hsl(var(--border));
}

.port-popup {
    font-family: inherit;
}

.port-popup .port-header {
    padding: 1rem 1.25rem;
    background: hsl(var(--card));
    border-bottom: 1px solid hsl(var(--border));
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.port-popup .port-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    line-height: 1.4;
    flex: 1;
}

.port-popup .port-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.port-popup .info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.port-popup .info-item {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.port-popup .info-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.port-popup .info-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    background: hsl(var(--muted));
    padding: 0.375rem 0.625rem;
    border-radius: calc(var(--radius) * 0.75);
    border: 1px solid hsl(var(--border));
    white-space: nowrap;
    overflow-x: auto;
    text-overflow: ellipsis;
}

.port-popup .view-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.port-popup .view-detail-btn:hover {
    background: hsl(0 0% 10%);  /* 更深的灰色作为悬停状态 */
    transform: translateY(-1px);
    box-shadow: 0 1px 2px hsla(0, 0%, 0%, 0.1);
}

.port-popup .view-detail-btn svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

.port-popup .view-detail-btn:hover svg {
    transform: translate(2px, -2px);
}

/* 关闭按钮样式 */
.custom-popup .leaflet-popup-close-button {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1.25rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--muted-foreground));
    transition: all 0.15s ease;
    z-index: 1;
    margin: 0.5rem;
    border-radius: calc(var(--radius) * 0.5);
}

.custom-popup .leaflet-popup-close-button:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--muted));
}

.country-list-container {
    position: relative;
    width: 100%;
    padding: 2rem;
    background-color: hsl(var(--background));
    margin-top: 0;
    z-index: 3;
}

.country-list {
    max-width: 1200px;
    margin: 0 auto;
}

.country-group {
    margin-bottom: 2rem;
}

.country-group-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(0 0% 20%);           /* 深灰色标题 */
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid hsl(0 0% 90%);  /* 浅灰色边框 */
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: hsl(var(--foreground));
    font-weight: 500;
}

.country-item:hover {
    background-color: hsl(0 0% 20%);  /* 深灰色悬停背景 */
    color: hsl(0 0% 100%);           /* 纯白色文字 */
    transform: translateY(-1px);
    text-decoration: none;
    border-color: hsl(0 0% 30%);     /* 稍浅的灰色边框 */
    box-shadow: 0 2px 4px hsla(0, 0%, 0%, 0.1);
}

.country-item-name {
    color: inherit;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .country-list-container {
        padding: 1rem;
    }

    .country-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 港口信息部分样式 */
.port-info-section {
    width: 100%;
    background-color: hsl(var(--background));
}

.port-info-section .container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: hsl(var(--card));
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    padding: 2rem;
    box-shadow: 
        0 1px 2px -1px hsl(var(--foreground) / 0.1),
        0 1px 3px -1px hsl(var(--foreground) / 0.1);
}

.port-info-section .section-title {
    font-size: 1.5rem;
    color: hsl(var(--foreground));
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.025em;
    margin: 0;
}

.port-info-section .section-content {
    max-width: 100%;
}

.port-info-section p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.port-info-section .section-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin: 1.5rem 0 0.75rem;
    letter-spacing: -0.025em;
}

.port-info-section ul {
    list-style: none;
    padding-left: 0;
    margin: 0.75rem 0 1.25rem;
}

.port-info-section ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
}

.port-info-section ul li::before {
    content: "•";
    position: absolute;
    left: 0.25rem;
    color: hsl(var(--primary));
    font-weight: bold;
}

.port-info-section ul li strong {
    color: hsl(var(--foreground));
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.stats-item {
    background-color: hsl(var(--accent));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stats-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.4;
}

@media (max-width: 768px) {
    .port-info-section {
        padding: 1rem;
    }
    
    .port-info-section .container {
        padding: 1.5rem;
    }
    
    .port-info-section .section-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .port-info-section p {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stats-item {
        padding: 1rem;
    }
    
    .stats-number {
        font-size: 1.5rem;
    }
}

/* 页脚样式 */
.site-footer {
    background-color: hsl(var(--card));
    border-top: 1px solid hsl(var(--border));
    padding: 3rem 0 0;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 2.5rem;
    width: auto;
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    transition: all 0.2s ease;
}

.social-link:hover {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: hsl(var(--foreground));
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.contact-item svg {
    min-width: 16px;
    color: hsl(var(--primary));
}

.newsletter {
    margin-top: 1.5rem;
}

.newsletter-form {
    display: flex;
    height: 2.5rem;
}

.newsletter-form input {
    flex: 1;
    height: 100%;
    padding: 0 1rem;
    border: 1px solid hsl(var(--border));
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: hsl(var(--ring));
}

.newsletter-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 100%;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-form button:hover {
    background-color: hsl(0 0% 10%);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    margin-top: 2.5rem;
    border-top: 1px solid hsl(var(--border));
}

.copyright {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: hsl(var(--foreground));
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding-top: 2rem;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}

/* 港口详情页样式 */
.port-detail-container {
    padding: 2rem;
    background-color: hsl(var(--background));
    z-index: 3;
}

.port-detail {
    max-width: 1200px;
    margin: 0 auto;
}

/* .port-detail-section {
    padding: 2rem 0;
} */

.section-title {
    font-size: 1.5rem;
    color: hsl(var(--foreground));
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.025em;
    margin: 0;
}

.port-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.data-group {
    margin-bottom: 2.5rem;
    background-color: hsl(var(--card));
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    padding: 2rem;
    box-shadow: 0 1px 2px -1px hsl(var(--foreground) / 0.1),
        0 1px 3px -1px hsl(var(--foreground) / 0.1);
}

.data-group:last-child {
    margin-bottom: 0;
}

.group-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid hsl(var(--border));
}

.subsection-title {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid hsl(var(--border));
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    padding: 0.625rem 0;
}

.info-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: hsl(var(--foreground));
    padding: 0.625rem 0;
}

.nearby-ports-list, .shipping-lines-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nearby-ports-list li, .shipping-lines-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid hsl(var(--border));
}

.port-link {
    color: hsl(var(--primary));
    text-decoration: none;
    transition: color 0.2s ease;
}

.port-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .port-detail-container {
        padding: 1rem;
    }
    
    .port-detail-section {
        padding: 1.5rem 0;
    }
    
    .port-info-grid {
        grid-template-columns: 1fr;
    }

    .data-group {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .group-title {
        font-size: 1.125rem;
        margin-bottom: 1.25rem;
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: hsl(var(--primary));
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: hsl(var(--foreground));
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
}

.breadcrumbs .current {
    color: hsl(var(--foreground));
    font-weight: 500;
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .breadcrumbs {
        margin-top: -0.5rem;
    }
}

/* Port Services组中的表格值右对齐 - 直接通过位置选择器（使用位于第三组） */
.data-group:nth-child(3) .info-value {
    text-align: right;
}

/* 给具有port-services-group类的元素应用样式 */
.port-services-group .info-value {
    text-align: right;
}

/* Yes/No值的圆点样式 */
.value-yes, .value-no {
    position: relative;
    padding-right: 1.5rem;
    font-size: 0;
}

.value-yes::after, .value-no::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.value-yes::after {
    background-color: #22c55e; /* Green circle for Yes */
}

.value-no::after {
    background-color: #cbd5e1; /* Lighter gray circle for No (was #94a3b8) */
}

/* Added tooltips for Yes/No indicators */
.value-yes:hover::before, .value-no:hover::before {
    position: absolute;
    right: 1.5rem;
    top: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
}

.value-yes:hover::before {
    content: "Yes";
}

.value-no:hover::before {
    content: "No";
} 

.info-table .info-label {
	white-space: nowrap;
	width: 150px;
	min-width: 150px;
	font-weight: 500;
	color: hsl(var(--muted-foreground));
	padding: 0.625rem 0;
	vertical-align: top;
}
.info-table .info-value {
	word-break: break-word;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	color: hsl(var(--foreground));
	padding: 0.625rem 0;
	max-width: calc(100% - 150px);
}

/* 港口和船运公司网格布局样式 */
.nearby-ports-container, .shipping-lines-container {
    width: 100%;
    padding: 0;
}

.ports-grid, .shipping-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.ports-row, .shipping-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.port-item, .shipping-item {
    flex: 0 0 20%;
    padding: 5px 10px;
    box-sizing: border-box;
    margin-bottom: 5px;
}

.port-item a, .shipping-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: hsl(var(--foreground));
    font-weight: 500;
    font-size: 0.875rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.port-item a:hover, .shipping-item a:hover {
    background-color: hsl(0 0% 20%);  /* 深灰色悬停背景 */
    color: hsl(0 0% 100%);           /* 纯白色文字 */
    transform: translateY(-1px);
    text-decoration: none;
    border-color: hsl(0 0% 30%);     /* 稍浅的灰色边框 */
    box-shadow: 0 2px 4px hsla(0, 0%, 0%, 0.1);
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .port-item, .shipping-item {
        flex: 0 0 25%;
    }
}

@media (max-width: 992px) {
    .port-item, .shipping-item {
        flex: 0 0 33.33%;
    }
}

@media (max-width: 768px) {
    .port-item, .shipping-item {
        flex: 0 0 50%;
    }
}

@media (max-width: 480px) {
    .port-item, .shipping-item {
        flex: 0 0 100%;
    }
    #map-container {
        margin-top: -120px;
        height: 40vh;
    }
}

/* Policy Pages Styles */
.policy-section {
    padding: 8px 0;
    /* background-color: #f5f7fa; */
}

.policy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.policy-header {
    padding: 30px 40px;
    border-bottom: 1px solid #eaeef2;
}

.policy-header h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.policy-content {
    padding: 30px 40px 60px;
}

.last-updated {
    color: #74818d;
    font-style: italic;
    margin-bottom: 30px;
    font-size: 14px;
}

.policy-section h2 {
    font-size: 24px;
    color: #2c3e50;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeef2;
}

.policy-section h3 {
    font-size: 20px;
    color: #3a4d61;
    margin: 25px 0 15px;
}

.policy-section h4 {
    font-size: 18px;
    color: #45596b;
    margin: 20px 0 10px;
}

.policy-section p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #4a5568;
}

.policy-section ul, .policy-section ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.policy-section li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #4a5568;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cookie-table th, .cookie-table td {
    border: 1px solid #e2e8f0;
    padding: 12px 15px;
    text-align: left;
}

.cookie-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #2d3748;
}

.cookie-table tr:nth-child(even) {
    background-color: #f9fafb;
}

.cookie-table tr:hover {
    background-color: #f1f5f9;
}

@media (max-width: 768px) {
    .policy-header, .policy-content {
        padding: 20px;
    }
    
    .policy-header h1 {
        font-size: 28px;
    }
    
    .policy-section h2 {
        font-size: 22px;
    }
    
    .policy-section h3 {
        font-size: 18px;
    }
    
    .cookie-table th, .cookie-table td {
        padding: 8px 10px;
        font-size: 14px;
    }
}

.language-switcher {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
}

.language-switcher a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.language-switcher a:hover {
    color: #333;
}

.language-switcher a:not(:last-child) {
    margin-right: 5px;
}