:root {
    color-scheme: light;  /* 强制使用浅色主题 */
}

html {
    background-color: #f8fafc;
    color-scheme: light;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    /* 调整渐变色为柔和的色调 */
    background: linear-gradient(
        135deg,
        #e0f2fe 0%,    /* 浅蓝色 */
        #bfdbfe 20%,   /* 淡蓝色 */
        #ddd6fe 40%,   /* 淡紫色 */
        #c7d2fe 60%,   /* 淡蓝紫色 */
        #bfdbfe 80%,   /* 淡蓝色 */
        #e0f2fe 100%   /* 浅蓝色 */
    );
    /* 调整渐变尺寸为适中大小 */
    background-size: 175% 175%;
    /* 调整动画速度和曲线 */
    animation: gradientBG 8s ease infinite;
    color: #334155;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding: 10px 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    forced-color-adjust: none;
}

/* 简化渐变动画 */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 简化背景装饰 */
.background-decoration {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

/* 调整背景光效 */
.background-decoration::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(192, 132, 252, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(147, 197, 253, 0.2) 0%, transparent 50%);
    animation: glow 8s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* 增强粒子效果 */
.background-decoration::after {
    background: 
        radial-gradient(circle at 20% 30%, #818cf8 0%, transparent 8px),
        radial-gradient(circle at 80% 40%, #c084fc 0%, transparent 8px),
        radial-gradient(circle at 40% 70%, #93c5fd 0%, transparent 8px),
        radial-gradient(circle at 70% 90%, #a78bfa 0%, transparent 8px),
        radial-gradient(circle at 90% 10%, #60a5fa 0%, transparent 8px),
        radial-gradient(circle at 30% 80%, #818cf8 0%, transparent 8px),
        radial-gradient(circle at 60% 20%, #93c5fd 0%, transparent 8px);
    opacity: 0.25;
}

/* 修改容器样式，增强毛玻璃效果 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    min-width: 320px;
    /* 修改背景色，降低不透明度 */
    background: rgba(255, 255, 255, 0.6);
    /* 增强模糊效果 */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* 修改边框，使其更微妙 */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    /* 调整阴影，增加深度感 */
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);  /* 添加内阴影 */
}

/* 添加容器的悬停效果 */
.container:hover {
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.07),
        0 10px 15px -3px rgba(0, 0, 0, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

/* 添加容器光效 */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255,255,255,0.1) 0%, 
        rgba(255,255,255,0) 60%);
    border-radius: 24px;
    z-index: -1;
    animation: borderGlow 6s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* 修改光效为鼠标跟踪效果 */
.container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.container:hover::after {
    opacity: 1;
}

header {
    text-align: center;
    margin-bottom: 25px;
    padding: 0 10px;
    position: relative;
}

header h1 {
    color: #1e293b;
    font-size: 1.8em;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding: 15px 0;
    margin-bottom: 5px;
}

/* 添加标题装饰 */
header h1::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, 
        rgba(30, 136, 229, 0) 0%,
        rgba(30, 136, 229, 0.8) 50%,
        rgba(30, 136, 229, 0) 100%
    );
    animation: shimmerLine 2s infinite;
}

/* 添加标题动画 */
@keyframes shimmerLine {
    0% { background-position: -200% 0 }
    100% { background-position: 200% 0 }
}

/* 添加顶部装饰 */
/* 修改顶部装饰 */
header::before {
    height: 2px;  /* 从4px缩小到2px */
    opacity: 0.5;  /* 降低透明度 */
    background: linear-gradient(90deg, #1e88e5, #64b5f6, #1e88e5);
}

/* 修改主内容区域布局 */
.main-content {
    display: grid;
    grid-template-columns: 7fr 3fr;  /* 7:3 比例 */
    gap: 20px;
    margin-top: 15px;
}

/* 左侧内容样式 */
.main-left {
    display: grid;
    grid-template-areas:
        "stats"
        "chart"
        "weekly";
    gap: 15px;
}

.stats-section {
    grid-area: stats;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* 改为3列等宽 */
    gap: 20px;
    max-width: 1200px;  /* 增加最大宽度 */
    margin: 0 auto;
}

.data-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.data-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background: linear-gradient(145deg, rgba(255,255,255,1), rgba(255,255,255,0.9));
}

.data-card h3 {
    color: #64748b;
    margin-bottom: 8px;
    font-size: 1em;
    font-weight: 500;
}

.data-card p {
    background: linear-gradient(45deg, #1e88e5, #64b5f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2em;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

/* 添加卡片光效 */
.data-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    to {
        left: 200%;
    }
}

.data-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

.data-card p::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #1e88e5, #64b5f6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.data-card:hover p::after {
    transform: scaleX(1);
}

.chart-section {
    grid-area: chart;
}

.chart-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.chart-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chart-btn:hover {
    background-color: #f1f5f9;
    transform: translateY(-2px);
}

.chart-btn.active {
    background: linear-gradient(45deg, #1e88e5, #64b5f6);
    color: white;
    box-shadow: 0 4px 6px rgba(30, 136, 229, 0.3);
    border: none;
}

.chart-container {
    background-color: #ffffff !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 0 20px rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 12px;
    height: 350px;
}

.weekly-data {
    grid-area: weekly;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.weekly-data h2 {
    color: #1e293b;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.3em;
    font-weight: 600;
}

.weekly-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.daily-data {
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.daily-data:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: #64b5f6;
}

.daily-data .date {
    font-size: 0.9em;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 500;
}

.daily-data .value {
    font-size: 1.1em;
    color: #1e293b;
    font-weight: 600;
}

.daily-data.today {
    background: rgba(30, 136, 229, 0.1);
    border: 1px solid rgba(30, 136, 229, 0.2);
}

.daily-data.future {
    background: rgba(203, 213, 225, 0.3);
    border: 1px dashed #cbd5e1;
}

.daily-data.future:hover {
    transform: none;
    box-shadow: none;
    border-color: #cbd5e1;
}

.daily-data.future .value {
    color: #94a3b8;
}

/* 修改拥挤度显示区域样式 */
.congestion-section {
    margin-top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.congestion-section h2 {
    color: #000000;
    font-size: 1.3em;
    margin-top: 5px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.congestion-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 5px;
    flex: 1;  /* 让列表占据可用空间 */
}

.congestion-item {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 8px;
    padding: 12px 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.congestion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.port-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.port-name {
    color: #1e293b;  /* 改为深色文字 */
    font-weight: 600;
    font-size: 1.1em;
    text-shadow: none;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: 600;
}

.normal .status-badge {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;  /* 深绿色 */
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.busy .status-badge {
    background: rgba(234, 179, 8, 0.1);
    color: #854d0e;  /* 深黄色 */
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.crowded .status-badge {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;  /* 深红色 */
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* 添加对应的卡片样式 */
.congestion-item.normal {
    border-left: 4px solid #22c55e;
}

.congestion-item.busy {
    border-left: 4px solid #eab308;
}

.congestion-item.crowded {
    border-left: 4px solid #ef4444;
}

/* 添加悬停效果 */
.congestion-item.normal:hover {
    background: rgba(34, 197, 94, 0.05);
}

.congestion-item.busy:hover {
    background: rgba(234, 179, 8, 0.05);
}

.congestion-item.crowded:hover {
    background: rgba(239, 68, 68, 0.05);
}

.port-details {
    color: #64748b;  /* 改为灰色文字 */
    font-size: 0.95em;
    font-weight: 500;
}

/* 修改人数显示样式 */
.crowd-level {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
}

.crowd-level .number {
    color: #1e293b;  /* 改为深灰色 */
    font-weight: 600;
    font-size: 1.1em;
}

/* 删除等待时间相关样式 */
.waiting-time {
    display: none;
}

/* 适配小屏幕 */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    header h1 {
        font-size: 1.8em;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .data-grid {
        grid-template-columns: 1fr;  /* 在移动端改为单列 */
    }

    .weekly-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .chart-container {
        height: 300px;
        padding: 20px;
    }

    .chart-buttons {
        gap: 8px;
    }
    
    .chart-btn {
        padding: 8px 16px;
        font-size: 0.85em;
    }

    .weekly-data {
        padding: 25px;
    }

    .congestion-section {
        position: static;
    }

    .header-controls {
        position: static;
        display: flex;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .calendar-btn {
        padding: 6px 12px;
        font-size: 0.9em;
    }
}

/* 适配特小屏幕 */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }
}

/* 图表悬停效果 */
.chart-container:hover {
    transform: scale(1.01);
    transition: transform 0.3s ease;
}

/* 加载状态样式 */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #1e88e5;
    animation: spin 1s linear infinite;
    z-index: 1001;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 修改日期显示样式 */
.date-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;  /* 减小间距 */
}

.date {
    font-size: 0.95em;
    color: #1e293b;
    font-weight: 500;
    margin-bottom: -2px;  /* 添加负边距使日期和星期更靠近 */
}

.weekday {
    font-size: 0.85em;
    color: #64748b;
    font-weight: 400;
}

/* 调整数值显示的间距 */
.daily-data {
    display: flex;
    flex-direction: column;
    gap: 6px;  /* 减小整体间距 */
}

.daily-data .value {
    margin-top: 2px;  /* 减小与日期的间距 */
}

/* 添加推荐部分样式 */
.recommendation {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-top: none;
}

.recommendation h3 {
    color: #1e293b;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

.recommend-port {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.port-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e293b;
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.badge-icon {
    color: #1e88e5;
    font-size: 1.2em;
}

.recommend-reason {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.reason-tag {
    background: rgba(30, 136, 229, 0.1);
    color: #1e88e5;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
    border: 1px solid rgba(30, 136, 229, 0.2);
}

/* 在 header 相关样式附近添加 */

.header-controls {
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
    align-items: center;
}

.calendar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(30, 136, 229, 0.3);
    border-radius: 20px;
    color: #1e88e5;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.calendar-btn:hover {
    background: #1e88e5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 136, 229, 0.2);
}

.calendar-icon {
    width: 20px;
    height: 20px;
}

.prediction-tag {
    font-size: 0.75em;
    color: #ffffff;
    background: #3b82f6;
    padding: 3px 8px;
    border-radius: 12px;
    margin-top: 6px;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.future .value {
    color: #3b82f6;  /* 使用蓝色表示预测值 */
}

.daily-data.today.future {
    background: rgba(59, 130, 246, 0.15);
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.15);
}

.daily-data.today.future .value {
    color: #2563eb;
    font-weight: 700;
}

/* 预测数据的悬停效果 */
.daily-data.future:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.2);
    border-color: #2563eb;
}

/* 修改提示语样式 */
.disclaimer {
    text-align: center;
    color: #64748b;
    font-size: 0.9em;
    margin: 30px auto 0;  /* 修改上边距，移除下边距 */
    font-weight: 500;
    padding: 4px 12px;
    background: rgba(100, 116, 139, 0.08);
    border-radius: 4px;
    display: block;
    width: fit-content;
}

/* 添加弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;  /* 增加最大宽度 */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
                0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px 20px 0 0;
}

.modal-title {
    font-size: 1.3em;
    color: #1e293b;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.8em;
    color: #64748b;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 12px;
    line-height: 1;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
    transform: scale(1.1);
}

.modal-body {
    padding: 24px;
    max-height: 80vh;
    overflow-y: auto;
}

.port-status {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.status-row:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.status-row .label {
    color: #64748b;
    font-weight: 500;
    font-size: 0.95em;
}

.status-row .value {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95em;
}

.status-row .status-badge {
    font-size: 0.9em;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.2);
    font-weight: 600;
}

/* 添加动画效果 */
@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.status-row {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
}

.status-row:nth-child(1) { animation-delay: 0.1s; }
.status-row:nth-child(2) { animation-delay: 0.2s; }
.status-row:nth-child(3) { animation-delay: 0.3s; }

/* 添加开放时间的特殊样式 */
.status-row .opening-time {
    color: #0369a1;  /* 使用蓝色突出显示 */
    font-weight: 600;
    font-size: 0.95em;
    letter-spacing: 0.2px;
}

/* 24小时开放的特殊样式 */
.opening-time:contains("24小时") {
    color: #059669;  /* 使用绿色突出显示24小时开放 */
}

/* 优化高峰时段显示样式 */
.status-row .peak-time {
    color: #dc2626;
    font-weight: 600;
    font-size: 0.95em;
    line-height: 1.6;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 12px;  /* 增加间距 */
}

.peak-direction {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;  /* 右对齐 */
    width: 100%;
}

.direction-label {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    min-width: 60px;  /* 增加最小宽度 */
    text-align: center;
}

.peak-time-value {
    color: #dc2626;
    min-width: 120px;  /* 固定时间显示宽度 */
    text-align: left;  /* 时间左对齐 */
}

/* 调整高峰时段行的高度 */
.status-row:has(.peak-time) {
    min-height: auto;  /* 自动高度 */
    padding: 20px;  /* 增加内边距 */
}

/* 相同方向的标签使用相同的背景色 */
.direction-label[data-direction="赴港"] {
    background: rgba(220, 38, 38, 0.1);
}

.direction-label[data-direction="返深"] {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.direction-label[data-direction="周末"] {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

/* 备注行的特殊样式 */
.status-row.note-row {
    background: rgba(249, 250, 251, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.status-row .port-note {
    color: #475569;
    font-size: 0.9em;
    line-height: 1.6;
    text-align: left;
    flex: 1;
    margin-left: 12px;
    font-weight: 500;
}

/* 调整备注行的布局 */
.note-row {
    flex-wrap: wrap;
    gap: 8px;
}

.note-row .label {
    color: #64748b;
    min-width: 45px;
}

/* 备注行的动画延迟 */
.status-row:nth-child(4) { animation-delay: 0.4s; }

/* 修改点击提示样式 */
.click-hint {
    text-align: center;
    color: #64748b;
    font-size: 0.85em;
    margin: 8px 0 12px;  /* 调整上下边距 */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0.8;
}

.hint-icon {
    width: 16px;
    height: 16px;
    color: #64748b;
    transform: translateY(1px);  /* 稍微下移一点以更好地对齐文字 */
}

/* 添加一个轻微的上下浮动动画 */
@keyframes float {
    0%, 100% { transform: translateY(1px); }
    50% { transform: translateY(3px); }
}

.hint-icon {
    animation: float 1.5s ease-in-out infinite;
}

/* 添加淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

.click-hint {
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

/* 推荐入境口岸样式 */
.recommend-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.recommend-section h2 {
    color: #1e293b;
    font-size: 1.2em;
    margin-bottom: 8px;
    font-weight: 600;
}

.recommend-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recommend-item {
    background: white;
    border-radius: 12px;
    padding: 20px;  /* 增加内边距 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
    margin-bottom: 12px;  /* 添加底部间距 */
}

.recommend-item:last-child {
    margin-bottom: 0;  /* 最后一个项目不需要底部间距 */
}

.recommend-item:hover {
    transform: translateX(4px);
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.recommend-item .status-badge {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.recommend-reason {
    color: #64748b;
    font-size: 0.9em;
    margin-top: 4px;
    display: block;
}

/* 修改原有的 port-info 样式以适应推荐模块 */
.recommend-item .port-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.recommend-item .port-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.05em;
}

/* 推荐按钮样式 */
.recommend-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    margin: 12px 0;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    color: #2563eb;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recommend-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.recommend-icon {
    width: 18px;
    height: 18px;
}

/* 修改选择器布局 */
.destination-selector {
    display: flex;
    gap: 32px;  /* 增加间距 */
    padding: 20px 0;
}

/* 左侧选择区域 */
.selector-left {
    flex: 0 0 320px;  /* 稍微加宽 */
    display: flex;
    flex-direction: column;
}

/* 右侧结果区域 */
.selector-right {
    flex: 1;
    border-left: 1px solid rgba(226, 232, 240, 0.8);
    padding-left: 32px;  /* 增加内边距 */
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

/* 调整结果容器样式 */
.results-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 8px;
}

/* 调整标题样式 */
.section-title {
    color: #1e293b;
    font-size: 1.1em;
    margin-bottom: 16px;
    font-weight: 500;
}

/* 初始提示消息样式 */
.initial-message {
    color: #64748b;
    text-align: center;
    padding: 40px 0;
    font-style: italic;
}

/* 优化选择器组件在新布局中的样式 */
.selector-left .selector-group {
    margin: 12px 0;
}

.selector-left .find-route-btn {
    margin-top: 20px;
}

/* 确保右侧区域占据剩余空间 */
.selector-right {
    flex: 1;
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.recommend-results {
    flex: 1;
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

/* 调整选择器组件样式 */
.selector-group {
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.8);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.selector-group:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.selector-group label {
    min-width: 80px;
    color: #1e293b;
    font-weight: 500;
    font-size: 1.05em;
}

.location-select {
    flex: 1;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #1e293b;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.location-select:hover {
    border-color: #93c5fd;
}

.location-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.location-select option {
    padding: 8px;
}

.find-route-btn {
    width: 100%;
    padding: 14px;
    margin-top: 24px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.1);
}

.find-route-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.2);
}

.find-route-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

/* 调整分数显示样式 */
.score-detail {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.score-item {
    flex: 1;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
}

/* 换乘信息样式 */
.transfer-info {
    margin-bottom: 8px;
    padding: 8px 12px;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 8px;
    border: 1px dashed rgba(37, 99, 235, 0.2);
}

.transfer-tag {
    font-size: 0.85em;
    color: #2563eb;
    font-weight: 600;
    margin-right: 8px;
}

.transfer-route {
    font-size: 0.9em;
    color: #475569;
}

/* 进度条容器样式 */
.crowd-progress {
    margin: 8px 0;
    height: 6px;
    background: rgba(226, 232, 240, 0.5);
    border-radius: 3px;
    overflow: hidden;
}

/* 进度条样式 */
.progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* 进度条颜色变化 */
.progress-bar.low {
    background-color: #22c55e;  /* 绿色 - 舒适 */
}

.progress-bar.medium {
    background-color: #eab308;  /* 黄色 - 正常 */
}

.progress-bar.high {
    background-color: #f97316;  /* 橙色 - 繁忙 */
}

.progress-bar.full {
    background-color: #ef4444;  /* 红色 - 拥挤 */
}

/* 容量百分比文字样式 */
.crowd-percentage {
    font-size: 0.9em;
    color: #64748b;
    margin-left: 4px;
}

/* 人流量信息样式 */
.crowd-level {
    color: #475569;
    font-size: 0.95em;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

/* 人流量信息容器 */
.crowd-info {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px dashed rgba(203, 213, 225, 0.5);
}