/* 文旅行业季节性趋势图表样式 */
:root {
    --spring-color: #8ACB88;
    --summer-color: #36A2EB;
    --autumn-color: #FF9F40;
    --winter-color: #A5D7E8;
    --chart-bg: linear-gradient(145deg, #ffffff, #f8f8f8);
}

/* 季节性趋势图表容器 */
.tourism-seasonal-container {
    background: var(--chart-bg);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    margin: 20px auto;
    transition: all 0.3s ease;
    max-width: 480px;
    width: 100%;
    height: 280px;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.tourism-seasonal-container:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.tourism-seasonal-container h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: #333;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.tourism-seasonal-container h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--spring-color), var(--autumn-color));
    border-radius: 3px;
}

/* 季节切换导航 */
.season-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 5px;
}

.season-tab {
    flex: 1;
    text-align: center;
    padding: 8px 5px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    position: relative;
    color: #555;
}

.season-tab:hover {
    background: rgba(0,0,0,0.03);
}

.season-tab.active {
    color: #333;
    font-weight: 600;
}

.season-tab.active::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 3px;
}

.season-tab:nth-child(1).active::after {
    background: var(--spring-color);
}

.season-tab:nth-child(2).active::after {
    background: var(--summer-color);
}

.season-tab:nth-child(3).active::after {
    background: var(--autumn-color);
}

.season-tab:nth-child(4).active::after {
    background: var(--winter-color);
}

/* 季节内容趋势数据 */
.season-content {
    display: flex;
    flex-direction: column;
    height: 170px;
}

.content-metrics {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}

.metric-item {
    text-align: center;
    flex: 1;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
}

.metric-value::after {
    content: "%";
    font-size: 0.8rem;
    position: absolute;
    top: 0;
    right: -15px;
}

.metric-label {
    font-size: 0.8rem;
    color: #666;
}

/* 趋势图表 */
.trend-chart {
    height: 130px;
    position: relative;
    padding: 10px 0;
}

.chart-grid {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
}

.grid-line {
    width: 100%;
    height: 1px;
    background: rgba(0,0,0,0.05);
}

.trend-bars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 100%;
    position: relative;
    z-index: 2;
}

.trend-bar {
    width: 35px;
    position: relative;
    transition: all 0.3s ease;
}

.bar-fill {
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.05), rgba(0,0,0,0.1));
    border-radius: 5px 5px 0 0;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: height 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.trend-bar:hover {
    transform: translateY(-5px);
}

.trend-bar:hover .bar-label {
    opacity: 1;
}

.bar-label {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

/* 季节特定样式 */
.spring-active .bar-fill {
    background: linear-gradient(to top, var(--spring-color), rgba(138, 203, 136, 0.5));
}

.summer-active .bar-fill {
    background: linear-gradient(to top, var(--summer-color), rgba(54, 162, 235, 0.5));
}

.autumn-active .bar-fill {
    background: linear-gradient(to top, var(--autumn-color), rgba(255, 159, 64, 0.5));
}

.winter-active .bar-fill {
    background: linear-gradient(to top, var(--winter-color), rgba(165, 215, 232, 0.5));
}

/* 指标数据 */
.trend-summary {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    font-size: 0.85rem;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.summary-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.exposure-indicator {
    background: #FF9F40;
}

.conversion-indicator {
    background: #4BC0C0;
}

/* 动画效果 */
@keyframes barRise {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-bar {
    animation: barRise 1s forwards;
} 