/* 市场数据弹窗样式 */

/* market-data-app 容器样式 */
#market-data-app {
    margin-bottom: 24px;
}

/* 遮罩层 */
.market-data-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 弹窗主体 */
.market-data-dialog {
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 1400px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 弹窗头部 */
.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    /* background: #f9fafb; */
}

.dialog-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.dialog-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.dialog-close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

/* 导航菜单 */
.dialog-nav {
    display: flex;
    padding: 12px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    overflow-x: auto;
    gap: 8px;
}

.dialog-nav::-webkit-scrollbar {
    height: 4px;
}

.dialog-nav::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.dialog-nav::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 14px;
    color: #6b7280;
    background: #f3f4f6;
}

.nav-item:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.nav-item.active {
    background: #FBC630;
    color: #1f2937;
    font-weight: 500;
}

.nav-icon {
    font-size: 16px;
}

.nav-label {
    font-size: 14px;
}

/* 弹窗内容区域 */
.dialog-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.dialog-content::-webkit-scrollbar {
    width: 8px;
}

.dialog-content::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.dialog-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.dialog-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* 图表区域 */
.chart-section {
    margin-bottom: 40px;
    padding: 24px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    /* border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); */
}

.chart-section:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

/* 图表标题容器（统一样式） */
.chart-title-wrapper {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 0;
}

.chart-title-line {
    width: 3px;
    height: 18px;
    background: #FBC630;
    border-radius: 9px;
    flex-shrink: 0;
}

.chart-title {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #111111;
    margin: 0;
    position: relative;
    padding-left: 0;
}

/* 当 chart-title 在 chart-title-wrapper 内时，隐藏 ::before 伪元素 */
.chart-title-wrapper .chart-title::before {
    display: none;
}

/* 保留旧的 chart-title::before 样式以兼容旧代码（不在 wrapper 内的标题） */
.chart-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background-image: url('/static/image/group_line.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 时间选择标签 */
.time-tabs {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    background: #EAECEF;
    border-radius: 3px;
    overflow: hidden;
    width: auto;
}

.time-tab {
    flex: 0 0 auto;
    padding: 8px 16px;
    border: none;
    background: transparent;
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #555555;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap;
}

.time-tab:first-child {
    border-radius: 3px 0 0 3px;
}

.time-tab:last-child {
    border-radius: 0 3px 3px 0;
}

.time-tab:hover {
    background: rgba(255, 255, 255, 0.5);
}

.time-tab.active {
    background: #FFDA69;
    color: #111111;
}

/* 图表容器 */
.chart-container {
    position: relative;
    width: 100%;
    min-height: 400px;
}

.chart-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6b7280;
    font-size: 14px;
    z-index: 10;
}

/* 恐惧贪婪指数特殊样式 */
/* PC端布局 */
.fear-greed-pc-layout {
    display: none; /* 默认隐藏，通过媒体查询显示 */
}

.fear-greed-mobile-layout {
    display: block; /* 默认显示移动端布局 */
    width: 100%;
    box-sizing: border-box;
}

/* PC端总标题 */
.fear-greed-pc-main-title-wrapper {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 0;
}

.fear-greed-pc-main-title {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #111111;
    margin: 0;
}

/* PC端左侧信息卡片区域 */
.fear-greed-pc-left {
    width: 309px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* PC端卡片通用样式 */
.fear-greed-pc-card {
    background: #F7F7F7;
    border-radius: 8px;
    padding: 16px;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

/* 根据设计稿，卡片高度应该包括padding，所以内容区域需要相应调整 */
.fear-greed-pc-card-gauge {
    height: 152px;
    box-sizing: border-box;
}

.fear-greed-pc-card-history {
    height: 190px;
    box-sizing: border-box;
}

.fear-greed-pc-card-extreme {
    height: 151px;
    box-sizing: border-box;
}

.fear-greed-pc-card-title-wrapper {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.fear-greed-pc-card-title-line {
    width: 3px;
    height: 18px;
    background: #FBC630;
    border-radius: 9px;
    flex-shrink: 0;
}

.fear-greed-pc-card-title {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #111111;
    margin: 0;
}

/* 第一行卡片：仪表盘 */
.fear-greed-pc-card-gauge {
    height: 152px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fear-greed-pc-card-gauge .fear-greed-pc-card-title-wrapper {
    margin-bottom: 16px;
    flex-shrink: 0;
}

.fear-greed-pc-gauge-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    position: relative;
    gap: 8px;
    min-height: 0;
}

.fear-greed-pc-gauge-container {
    position: relative;
    width: 152px;
    height: 76px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 8px;
}

.fear-greed-pc-gauge-svg {
    position: absolute;
    top: 0;
    left: 0;
}

.fear-greed-pc-gauge-value-wrapper {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    margin-bottom: 2px;
}

.fear-greed-pc-gauge-value {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 28px;
    line-height: 28px;
    /* margin-bottom: 4px; */
}

.fear-greed-pc-gauge-status {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #777777;
    /* margin-top: 4px; */
}

.fear-greed-pc-gauge-title {
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

.fear-greed-pc-gauge-title-text {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #111111;
    margin: 0;
    text-align: center;
}

/* 第二行卡片：历史价值 */
.fear-greed-pc-card-history {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fear-greed-pc-card-history .fear-greed-pc-card-title-wrapper {
    margin-bottom: 20px;
    flex-shrink: 0;
}

.fear-greed-pc-history-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-height: 0;
    justify-content: flex-start;
}

.fear-greed-pc-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.fear-greed-pc-history-label {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #000000;
    flex-shrink: 0;
}

.fear-greed-pc-history-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 99px;
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    background: rgba(251, 198, 48, 0.1);
    color: #000000;
    white-space: nowrap;
}

/* 第三行卡片：年度最高和最低 */
.fear-greed-pc-card-extreme {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fear-greed-pc-card-extreme .fear-greed-pc-card-title-wrapper {
    margin-bottom: 20px;
    flex-shrink: 0;
}

.fear-greed-pc-extreme-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-height: 0;
    justify-content: flex-start;
}

.fear-greed-pc-extreme-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.fear-greed-pc-extreme-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.fear-greed-pc-extreme-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 7px;
}

.fear-greed-pc-extreme-bullet-high {
    background: #17C784;
}

.fear-greed-pc-extreme-bullet-low {
    background: #EA3943;
}

.fear-greed-pc-extreme-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.fear-greed-pc-extreme-label {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #111111;
}

.fear-greed-pc-extreme-date {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 10px;
    line-height: 14px;
    color: #777777;
}

.fear-greed-pc-extreme-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 99px;
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* PC端右侧图表区域 */
.fear-greed-pc-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fear-greed-pc-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.fear-greed-pc-chart-title {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #000000;
    margin: 0;
}

.fear-greed-pc-time-tabs {
    display: flex;
    gap: 0;
    background: #EAECEF;
    border-radius: 3px;
    overflow: hidden;
}

.fear-greed-pc-time-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #555555;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.fear-greed-pc-time-tab:first-child {
    border-radius: 3px 0 0 3px;
}

.fear-greed-pc-time-tab:last-child {
    border-radius: 0 3px 3px 0;
}

.fear-greed-pc-time-tab:hover {
    background: rgba(255, 255, 255, 0.5);
}

.fear-greed-pc-time-tab.active {
    background: #FFDA69;
    color: #111111;
}

.fear-greed-pc-chart-container {
    position: relative;
    width: 100%;
    min-height: 355px;
}

/* 三行布局（移动端） */
.fear-greed-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.fear-greed-row:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.fear-greed-row-left {
    flex: 0 0 auto;
    min-width: 180px;
    margin-right: 24px;
}

.fear-greed-row-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.fear-greed-row-right-full {
    flex: 1;
    width: 100%;
}

/* 第一行：标题和仪表盘两列布局 */
.fear-greed-first-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
    align-items: center;
}

.fear-greed-first-col {
    display: flex;
    align-items: center;
}

.fear-greed-first-col:first-child {
    justify-content: flex-start;
}

.fear-greed-first-col:last-child {
    justify-content: flex-end;
}

.fear-greed-main-title {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin: 0;
}

.fear-greed-gauge-container {
    position: relative;
    width: 130px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.fear-greed-gauge-svg {
    position: absolute;
    top: 0;
    left: 0;
}

.fear-greed-gauge-value-wrapper {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    margin-bottom: 2px;
}

.fear-greed-gauge-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.fear-greed-gauge-status {
    font-size: 14px;
    font-weight: 500;
    margin-top: 2px;
}

/* 历史价值横向排列 */
.history-items-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}

.history-item-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    text-align: center;
    margin: 0 auto;
}

.history-label-inline {
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}

.fear-greed-content {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.fear-greed-chart-wrapper {
    flex: 1;
    min-width: 400px;
}

.fear-greed-current {
    text-align: center;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
}

.gauge-value {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
}

.gauge-status {
    font-size: 20px;
    font-weight: 500;
}

/* 底部区域：图表 */
.fear-greed-chart-section {
    margin-top: 24px;
    width: 100%;
    box-sizing: border-box;
}

.fear-greed-history {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.history-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 14px;
    background-image: url('/static/image/group_line.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    padding: 4px 0;
}

.history-label {
    color: #6b7280;
    min-width: 80px;
    font-weight: 500;
}

.history-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.fear-greed-extremes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 年度最高和最低横向排列 */
.extreme-items-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.extreme-item-inline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
}

.extreme-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.extreme-label-wrapper-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.extreme-label-content-inline {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.extreme-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    margin-bottom: 4px;
}

.extreme-label-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 100px;
    flex-shrink: 0;
}

.extreme-label-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.extreme-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.extreme-bullet-high {
    background-color: #10b981; /* 绿色 */
}

.extreme-bullet-low {
    background-color: #ef4444; /* 红色 */
}

.extreme-label {
    color: #6b7280;
    font-weight: 500;
}

.extreme-value {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.extreme-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    width: fit-content;
}

.extreme-date {
    color: #9ca3af;
    font-size: 12px;
    margin-top: 2px;
}

/* 涨跌比例特殊样式 */
.price-change-content {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.price-change-pie,
.price-change-bar {
    flex: 1;
    min-width: 300px;
}

.chart-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    text-align: center;
    position: relative;
    padding-left: 20px;
    text-align: left;
}

.chart-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background-image: url('/static/image/group_line.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.price-change-pie .chart-container,
.price-change-bar .chart-container {
    min-height: 350px;
}

/* 手机端：为饼图label留出足够空间 */
@media (max-width: 768px) {
    .price-change-pie .chart-container {
        padding: 20px 10px !important;
        overflow: visible !important;
    }
    
    /* 确保饼图容器不会裁剪label */
    .price-change-pie {
        overflow: visible !important;
    }
}

/* PC端显示PC布局，移动端显示移动布局 */
@media (min-width: 769px) {
    .fear-greed-pc-layout {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .fear-greed-pc-main-title-wrapper {
        width: 100%;
    }
    
    .fear-greed-pc-content {
        display: flex;
        flex-direction: row;
        width: 100%;
        gap: 16px;
        align-items: flex-start;
    }
    
    .fear-greed-mobile-layout {
        display: none;
    }
    
    #fear-greed .chart-section {
        padding: 0;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .market-data-dialog {
        width: 95%;
        max-height: 95vh;
    }

    .dialog-header {
        padding: 16px 20px;
    }

    .dialog-title {
        font-size: 18px;
    }

    .dialog-content {
        padding: 16px;
    }

    .chart-section {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    /* 移动端显示移动布局，隐藏PC布局 */
    .fear-greed-pc-layout {
        display: none;
    }
    
    .fear-greed-mobile-layout {
        display: block;
    }

    /* fear-greed-mobile-layout 中的 chart-header 标题需要留出竖线空间 */
    .fear-greed-mobile-layout .chart-header .chart-title {
        padding-left: 12px;
    }

    .chart-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .time-tabs {
        width: 100%;
        gap: 0;
        padding: 3px;
    }

    .time-tab {
        flex: 1;
        min-width: 0;
        padding: 6px 8px;
        font-size: 12px;
        text-align: center;
    }

    .nav-item {
        padding: 6px 12px;
        font-size: 12px;
    }

    .nav-label {
        font-size: 12px;
    }

    /* 恐惧贪婪指数响应式 */
    .fear-greed-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .fear-greed-row-left {
        min-width: 100%;
        margin-right: 0;
        margin-bottom: 8px;
    }

    .fear-greed-row-right {
        width: 100%;
        justify-content: flex-start;
    }

    .history-items-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }

    .extreme-items-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        width: 100%;
    }

    .fear-greed-content {
        flex-direction: column;
    }

    .fear-greed-info {
        flex: 1;
        min-width: 100%;
    }

    .fear-greed-chart-wrapper {
        flex: 1;
        min-width: 100%;
    }

    /* 手机端隐藏 price-change-pie 中的 chart-subtitle */
    .price-change-pie .chart-subtitle {
        display: none;
    }
}

/* 滚动到指定位置时的平滑滚动 */
.chart-section {
    scroll-margin-top: 20px;
}

