/**
 * 豆宝项目通用样式表
 * 集中管理所有HTML页面共享的CSS样式规则
 * 版本: 1.0
 * 日期: 2026-03-19
 */

/* ==================== CSS变量模块 - 统一管理颜色、尺寸、样式变量 ==================== */
:root {
    /* 1. 布局系统设置 */
    --layout-container-height: 100vh;
    --layout-toolbar-height: 25px;
    --layout-table-header-height: 25px;
    --layout-table-cell-height: 21px;
    --layout-min-table-height: 400px;
    
    /* 2. 颜色系统设置 */
    /* 2.1 背景颜色 */
    --color-bg-primary: #1e232d;      /* 页面背景颜色 */
    --color-bg-dark: #1e232d;         /* 深色背景颜色(用于按钮和板块) */
    --color-bg-hover: #1f477a;        /* 鼠标悬停时的背景颜色 */
    
    /* 2.2 文本颜色 */
    --color-text-primary: #dddddd;            /* 主要文本颜色 */
    --color-text-muted: #1f477a;              /* 次要文本颜色 */
    --color-text-plate: #01bcdd;              /* 板块文本颜色 */
    --color-text-tooltip-title: #FFA500;      /* 提示框标题文字颜色 */
    --color-text-tertiary: #888888;           /* 第三级文本颜色 */
    
    /* 2.3 功能颜色 */
    --color-function-pink: #FF03CB;            /* 粉色(功能标签) */
    --color-function-red: #D22222;             /* 红色(功能标签) */
    --color-function-success: #006006;         /* 成功颜色(功能标签) */
    --color-function-green: #2eeeee;           /* 绿色(功能元素) */
    --color-function-orange: #FFA500;          /* 橙色(功能标签) */
    --color-function-yellow: #FFFF00;          /* 黄色(功能标签) */
    
    /* 2.4 边框和阴影颜色 */
    --color-border-primary: #2d3846;           /* 主要边框颜色 */
    --color-border-light: #555555;             /* 浅色边框颜色 */
    --color-scrollbar: #555;                   /* 滚动条颜色 */
    --color-shadow: rgba(0, 0, 0, 0.486);      /* 通用阴影颜色 */
    
    /* 2.5 状态颜色 */
    --color-state-hover: #1f477a;              /* 鼠标悬停背景颜色 */
    --color-state-selected: #1e3a5f;           /* 项目选中背景颜色 */
    
    /* 3. 尺寸系统设置 */
    /* 3.1 宽度 */
    --size-tooltip-width: 300px;
    --size-tooltip-min-width: 300px;
    --size-tooltip-max-width: 600px;
    
    /* 3.2 高度 */
    --size-default-height: 25px;
    
    /* 4. 间距系统设置 */
    --spacing-base: 1px;               /* 基础间距单位 */
    --spacing-xl: 10px;                /* 大间距 */
    --spacing-xs: 0;                   /* 最小内边距 */
    --spacing-sm: 2px;                 /* 小内边距 */
    --spacing-md: 5px;                 /* 中内边距 */
    --spacing-table-cell: 0px;         /* 表格单元格内边距 */
    --spacing-table-header: 0 1px;     /* 表头内边距 */
    --spacing-right: 6px;              /* 右边距 */
    --spacing-left: 6px;               /* 左边距 */
    --spacing-name-col: 1px;           /* 名称列边距 */
    
    /* 5. 边框和圆角系统 */
    --border-radius-sm: 3px;           /* 小圆角 */
    --border-radius-md: 4px;           /* 中圆角 */
    --border-width-thin: 1px;          /* 细边框 */
    --border-width-thick: 2px;         /* 粗边框 */
    --border-style-solid: solid;       /* 实线边框 */
    --border-style-dashed: dashed;     /* 虚线边框 */
    
    /* 6. 字体系统 */
    --font-family: 'Microsoft YaHei', sans-serif; /* 全局字体 */
    --font-size-base: 12px;            /* 全局字体大小 */
    --font-size-sm: 10px;              /* 小字体大小 */
    --font-size-xs: 9px;               /* 最小字体大小 */
    --font-line-height: 1.4;           /* 全局行高 */
    
    /* 7. 过渡系统 */
    --transition-fast: 0.3s ease-out;  /* 快速过渡 */
    --transition-base: all 0.3s ease-out; /* 通用过渡 */
    
    /* 8. 阴影系统 */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.3); /* 小阴影 */
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.5); /* 中阴影 */
    
    /* 10. 便捷引用变量（别名） */
    --bg-primary: var(--color-bg-primary);
    --bg-dark: var(--color-bg-dark);
    --bg-hover: var(--color-bg-hover);
    --shadow: var(--color-shadow);
    --row-hover: var(--color-state-hover);
    --row-selected: var(--color-state-selected);
    --border: var(--color-border-primary);
    --border-light: var(--color-border-light);
    --scrollbar: var(--color-scrollbar);
    --text: var(--color-text-primary);
    --text-muted: var(--color-text-muted);
    --text-plate: var(--color-text-plate);
    --text-tooltip-title: var(--color-text-tooltip-title);
    --text-tertiary: var(--color-text-tertiary);
    --text-light: var(--color-text-primary);
    --pink: var(--color-function-pink);
    --red: var(--color-function-red);
    --success: var(--color-function-success);
    --green: var(--color-function-green);
    --orange: var(--color-function-orange);
    --yellow: var(--color-function-yellow);
    --default-h: var(--size-default-height);
    --toolbar-h: var(--layout-toolbar-height);
    --table-header-h: var(--layout-table-header-height);
    --table-cell-h: var(--layout-table-cell-height);
    --tooltip-w: var(--size-tooltip-width);
    --tooltip-min-w: var(--size-tooltip-min-width);
    --tooltip-max-w: var(--size-tooltip-max-width);
    --space: var(--spacing-base);
    --space-xl: var(--spacing-xl);
    --pad-xs: var(--spacing-xs);
    --pad-sm: var(--spacing-sm);
    --pad-md: var(--spacing-md);
    --pad-table-cell: var(--spacing-table-cell);
    --pad-table-header: var(--spacing-table-header);
    --pad-right: var(--spacing-right);
    --pad-left: var(--spacing-left);
    --pad-name-col: var(--spacing-name-col);
    --radius-sm: var(--border-radius-sm);
    --radius-md: var(--border-radius-md);
    --border-thin: var(--border-width-thin);
    --border-thick: var(--border-width-thick);
    --border-solid: var(--border-style-solid);
    --border-dashed: var(--border-style-dashed);
    --font: var(--font-family);
    --font-size: var(--font-size-base);
    --line-height: var(--font-line-height);
    --transition: var(--transition-base);
}

/* ==================== 基础重置样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    margin: 0;
    padding: 0;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* 隐藏Chrome、Safari和Edge的滚动条 */
body::-webkit-scrollbar {
    display: none;
}

/* ==================== 滚动条隐藏样式 ==================== */
/* 隐藏Chrome、Safari和Edge的滚动条 */
#toolbar::-webkit-scrollbar,
#stocktable::-webkit-scrollbar,
.tab-buttons::-webkit-scrollbar {
    display: none;
}

/* 兼容IE, Edge和Firefox */
#toolbar,
#stocktable,
.tab-buttons {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ==================== 容器样式 ==================== */
#container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ==================== 工具栏样式 ==================== */
#toolbar {
    height: var(--layout-toolbar-height);
    padding: var(--spacing-xs) var(--spacing-base);
    display: flex;
    align-items: center;
    background-color: var(--color-bg-primary);
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: var(--shadow-sm);
}

/* ==================== 日期选择器样式 ==================== */
input.date-picker {
    background-color: transparent;
    border: var(--border-thin) solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--pad-sm) var(--pad-sm);
    padding-right: 25px;
    color: var(--text);
    font-size: var(--font-size);
    position: relative;
    white-space: nowrap;
    width: 100px;
    text-indent: 0;
    text-align: left;
}

/* 清除按钮 */
.date-picker::-webkit-clear-button {
    display: none;
}

/* 日期微调按钮 */
.date-picker::-webkit-inner-spin-button {
    display: none;
}

/* 覆盖日期选择器的默认图标 */
.date-picker::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: default;
}

/* 自定义日期选择器图标 */
.date-picker::after {
    content: "";
    position: absolute;
    right: var(--pad-md);
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e0e0e0'%3e%3cpath d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM5 8V6h14v2H5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    pointer-events: none;
}

/* 日期选择器容器样式 */
.date-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.date-arrow {
    cursor: default;
    font-size: var(--font-size-sm);
    color: #666;
    padding: var(--spacing-sm);
    background-color: var(--color-bg-primary);
    border-radius: var(--border-radius-sm);
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    user-select: none;
}

.date-arrow:hover {
    background-color: var(--color-bg-dark);
    color: white;
}

/* ==================== 股票表格容器样式 ==================== */
#stocktable {
    flex: 1;
    overflow-x: auto;
    overflow-y: auto;
    padding: 0px;
    min-width: 0;
    white-space: nowrap;
    min-height: var(--layout-min-table-height);
    background-color: var(--color-bg-primary);
    z-index: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* 隐藏Chrome、Safari和Edge的滚动条 */
#stocktable::-webkit-scrollbar {
    display: none;
}

/* ==================== 表格样式 - tablesorter主题样式调整 ==================== */
.tablesorter-blue {
    background-color: var(--bg-primary);
    border: none;
    font-family: var(--font);
    font-size: var(--font-size);
    text-align: center;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
}

/* 表头样式 - 固定表头实现 */
.tablesorter-blue th {
    background-color: var(--bg-primary);
    border: none;
    text-align: center;
    cursor: default;
    position: sticky;
    top: 0;
    z-index: 2;
    color: var(--text);
    padding: 0 1px;
    height: var(--table-header-h);
    outline: none;
}

/* 表头内容 - 统一处理表头内容的布局样式 */
.tablesorter-header-inner {
    text-align: center;
    padding-left: var(--pad-xs);
    padding-right: var(--pad-xs);
}

.tablesorter-blue thead {
    background-color: var(--bg-primary);
    color: var(--text);
}

.tablesorter-blue th,
.tablesorter-blue td {
    white-space: nowrap;
    overflow: hidden;
    min-width: 0;
    max-width: none;
}

.tablesorter-blue tbody tr td {
    padding: 0 3px 0 3px;
    border: none;
    color: var(--text);
    height: var(--table-cell-h);
}

/* 表头默认排序箭头颜色 */
.tablesorter-blue thead .tablesorter-header {
    background-color: var(--color-bg-dark);
    font-size: var(--font-size);
    height: var(--table-header-h);
    line-height: var(--table-header-h);
    background-image: none;
    cursor: default;
    user-select: none;
    white-space: nowrap;
}

/* 鼠标悬停时文字颜色 */
.tablesorter-blue .tablesorter-header:hover {
    color: var(--color-function-orange);
}

.tablesorter-blue .headerSortUp,
.tablesorter-blue .headerSortDown {
    background-color: var(--color-success);
}



/* 选中行样式 */
#datatable tbody tr.selected-row {
    background-color: #1e3a5f !important;
    border-top: 1px solid #4a9eff;
    border-bottom: 1px solid #4a9eff;
}

#datatable tbody tr.selected-row td {
    background-color: #1e3a5f;
}

/* 悬停颜色与选中颜色一致 */
#datatable tbody tr:hover {
    background-color: var(--row-hover);
}

/* 序号列样式 */
.tablesorter-blue tbody tr td:first-child {
    color: var(--text-tertiary);
}

/* 右对齐值列样式 */
.text-right-value {
    text-align: right;
}

/* 左侧内边距 */
.left-padding {
    padding-left: 5px;
}

/* ==================== 板块元素样式 ==================== */
.plate-cell {
    color: var(--text-plate);
    cursor: default;
    position: relative;
    text-align: left;
    display: inline-block;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 0;
}

/* 允许特定元素文本选择 */
.plate-cell,
.plate-reason,
.plate-cell *,
.plate-reason * {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* ==================== 提示框样式 ==================== */
.tooltip {
    display: none;
    position: absolute;
    background-color: var(--bg-dark);
    border-radius: var(--radius-md);
    padding: var(--pad-md);
    z-index: 9999;
    width: 300px;
    min-width: var(--tooltip-min-w);
    max-width: var(--tooltip-max-w);
    height: auto;
    box-shadow: var(--shadow-md);
    color: var(--text);
    font-size: var(--font-size);
    line-height: var(--line-height);
    word-wrap: break-word;
    white-space: normal;
}

.tooltip h4 {
    margin: 0;
    color: var(--text-tooltip-title);
    border-bottom: var(--border-thin) solid var(--border-light);
    padding: 0;
}

.tooltip p {
    margin: 0;
    word-wrap: break-word;
    line-height: var(--line-height);
}

.tooltip .plate-reason {
    margin: 0;
    padding: 0;
}

/* 提示框内容样式 */
.tooltip .ptip {
    padding: 10px;
    color: yellow;
}

.tooltip .ptip .sr {
    text-align: justify;
}

.tooltip .ptip .sr p {
    text-align: justify;
    margin: 0;
}

/* ==================== 标签按钮容器样式 ==================== */
.tab-buttons {
    display: flex;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-left: auto;
}

/* 隐藏Chrome、Safari和Edge的滚动条 */
.tab-buttons::-webkit-scrollbar {
    display: none;
}

/* 标签按钮基础样式 */
.tab-buttons button {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 0px solid var(--color-text-primary);
    border-radius: var(--border-radius-sm);
    margin: 0 var(--spacing-base);
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: default;
    user-select: none;
    transition: var(--transition-base);
    font-size: var(--font-size-base);
}

/* 标签按钮悬停效果 */
.tab-buttons button:hover {
    background-color: transparent;
}

/* 激活状态按钮样式 */
.tab-buttons button.active {
    font-weight: normal;
}

/* 移除列表标签按钮的焦点样式 */
.tab-buttons button:focus {
    outline: none;
    box-shadow: none;
}

/* ==================== 刷新按钮样式 ==================== */
.nav-button.refresh {
    background: none;
    border: none;
    cursor: default;
    font-size: 11px;
    color: var(--text);
    padding: 2px;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.nav-button.refresh:hover {
    color: yellow;
}

/* 自动刷新状态样式 */
.nav-button.refresh.auto-refresh {
    color: orange;
}

.nav-button.refresh:not(.auto-refresh) {
    color: gray;
}

/* 刷新图标样式 */
.refresh-icon {
    display: inline-block;
}

/* 刷新时只转一圈 */
.nav-button.refresh.loading .refresh-icon {
    animation: spin 1s linear;
    animation-iteration-count: 1;
}

/* 导出按钮样式 */
#exportPlateBtn {
    width: 20px;
    height: 20px;
    font-size: 12px;
    background: #0e1b2c;
    color: #ffd700;
    border: none;
    border-radius: 3px;
    cursor: default;
    margin-left: 3px;
    margin-right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 自动刷新状态下显示橙色，并持续旋转，只有在手动刷新时才会通过loading类进行旋转 */
.nav-button.refresh.auto-refresh .refresh-icon {
    /* 自动刷新时持续旋转，手动刷新时通过loading类进行旋转 */
    color: #FFA500;
}

/* 旋转动画 */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}



/* ==================== 响应式设计 - 大屏幕适配 ==================== */
@media (min-width: 1920px) {
    /* 大屏幕下每个窗口的最大宽度设置 */
    body {
        max-width: 275px;
    }
}

/* ==================== 响应式设计 - 小屏幕适配 ==================== */
@media (max-width: 768px) {
    /* 工具栏高度调整 */
    #toolbar {
        height: auto;
        min-height: var(--layout-toolbar-height);
        flex-wrap: wrap;
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
        align-items: center;
    }
    
    /* 日期控件调整 */
    .date-controls {
        order: 2;
        flex: 0 0 auto;
        justify-content: flex-start;
        margin-bottom: 0;
    }
    
    /* 导出按钮调整 */
    #exportPlateBtn {
        order: 1;
        flex: 0 0 auto;
        margin-left: 0;
        margin-right: var(--spacing-sm);
    }
    
    /* 标签按钮容器调整 */
    .tab-buttons {
        order: 3;
        flex: 1 1 100%;
        justify-content: flex-start;
        margin-top: var(--spacing-sm);
        margin-left: 0;
    }
    
    /* 标签按钮调整 */
    .tab-buttons button {
        padding: var(--spacing-sm) var(--spacing-sm);
        margin: 0 var(--spacing-sm);
    }
    
    /* 日期箭头调整 */
    .date-arrow {
        width: 12px;
        height: 12px;
    }
    
    /* 刷新按钮调整 */
    .nav-button.refresh {
        order: 4;
        flex: 0 0 auto;
        margin-left: var(--spacing-sm);
    }
}

/* ==================== 地板页面特定样式 ==================== */

/* 地板表格样式 */
#st {
    border-collapse: collapse;
    width: 100%;
}

#st tr {
    height: var(--table-cell-h);
}

#st td {
    text-align: right;
    cursor: default;
    white-space: nowrap;
    background: var(--color-bg-primary);
    padding: 0 var(--pad-md);
    line-height: var(--table-cell-h);
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 股票名称列左对齐 */
#st td:nth-child(2) {
    text-align: left;
}

#st th {
    color: #fff;
    font-weight: bold;
    text-align: center;
    cursor: default;
    white-space: nowrap;
    background: var(--color-bg-primary);
    padding: 0 var(--pad-md);
    line-height: var(--table-cell-h);
    overflow: hidden;
    text-overflow: ellipsis;
}

#st th:hover {
    color: var(--color-function-orange);
}

/* 地板表格悬停颜色 */
#st tbody tr:hover {
    background-color: var(--color-state-hover);
}

/* 地板序号列样式 */
#st tbody tr td:first-child {
    color: var(--text-tertiary);
}

/* 地板表格固定表头 */
#st th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: var(--bg-primary);
}

/* 地板页面滚动条样式 - 隐藏滚动条但保留功能 */
#st::-webkit-scrollbar {
    height: 0;
    width: 0;
}

#st::-webkit-scrollbar-track {
    background: transparent;
}

#st::-webkit-scrollbar-thumb {
    background: transparent;
}

#st::-webkit-scrollbar-thumb:hover {
    background: transparent;
}

/* 地板页面body样式 */
.floor-page {
    padding: var(--spacing-sm);
    height: 100%;
    overflow: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* 隐藏Chrome、Safari和Edge的滚动条 */
.floor-page::-webkit-scrollbar {
    display: none;
}

/* 地板页面表格容器样式 */
.floor-page > div:not(.date-controls) {
    overflow: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* 隐藏Chrome、Safari和Edge的滚动条 */
.floor-page > div:not(.date-controls)::-webkit-scrollbar {
    display: none;
}

/* 地板日期控件容器 */
.floor-page .date-controls {
    margin-bottom: var(--spacing-sm);
}

/* ==================== 响应式设计 - 极小屏幕适配 ==================== */
@media (max-width: 480px) {
    /* 工具栏高度调整 */
    #toolbar {
        height: var(--layout-toolbar-height);
        min-height: var(--layout-toolbar-height);
        flex-wrap: nowrap;
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
        align-items: center;
    }
    
    /* 日期控件调整 */
    .date-controls {
        order: 2;
        flex: 0 0 auto;
        justify-content: flex-start;
        margin-bottom: 0;
    }
    
    /* 导出按钮调整 */
    #exportPlateBtn {
        order: 1;
        flex: 0 0 auto;
        margin-left: 0;
        margin-right: var(--spacing-sm);
    }
    
    /* 标签按钮容器调整 */
    .tab-buttons {
        order: 3;
        flex: 1 1 auto;
        justify-content: flex-start;
        margin-top: 0;
        margin-left: 0;
    }
    
    /* 标签按钮调整 */
    .tab-buttons button {
        padding: var(--spacing-xs) var(--spacing-sm);
        margin: 0 var(--spacing-xs);
        font-size: var(--font-size-sm);
    }
    
    /* 日期箭头调整 */
    .date-arrow {
        width: 10px;
        height: 10px;
        font-size: var(--font-size-xs);
    }
    
    /* 日期选择器调整 */
    input.date-picker {
        width: 100px;
        font-size: var(--font-size-sm);
    }
    
    /* 刷新按钮调整 */
    .nav-button.refresh {
        order: 4;
        flex: 0 0 auto;
        margin-left: var(--spacing-sm);
    }
}

/* ==================== 特定类型标签按钮样式 ==================== */

/* 首板标签 (first_limit_up) */
.tab-buttons button[data-type="first_limit_up"] {
    color: var(--text);
    position: relative;
}

.tab-buttons button[data-type="first_limit_up"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2em;
    height: 1px;
    background-color: var(--color-function-orange);
    transition: all 0.2s ease;
}

.tab-buttons button[data-type="first_limit_up"].active {
    background-color: transparent;
    color: var(--color-function-orange);
}

.tab-buttons button[data-type="first_limit_up"].active::after {
    display: block;
}

/* 连板标签 (consecutive_limit_up) */
.tab-buttons button[data-type="consecutive_limit_up"] {
    color: var(--text);
    position: relative;
}

.tab-buttons button[data-type="consecutive_limit_up"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2em;
    height: 1px;
    background-color: var(--color-function-pink);
    transition: all 0.2s ease;
}

.tab-buttons button[data-type="consecutive_limit_up"].active {
    background-color: transparent;
    color: var(--color-function-pink);
}

.tab-buttons button[data-type="consecutive_limit_up"].active::after {
    display: block;
}

/* 炸板标签 (limit_up_broken) */
.tab-buttons button[data-type="limit_up_broken"] {
    color: var(--text);
    position: relative;
}

.tab-buttons button[data-type="limit_up_broken"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2em;
    height: 1px;
    background-color: var(--color-function-red);
    transition: all 0.2s ease;
}

.tab-buttons button[data-type="limit_up_broken"].active {
    background-color: transparent;
    color: var(--color-function-red);
}

.tab-buttons button[data-type="limit_up_broken"].active::after {
    display: block;
}

/* 跌停标签 (limit_down) */
.tab-buttons button[data-type="limit_down"] {
    color: var(--text);
    position: relative;
}

.tab-buttons button[data-type="limit_down"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2em;
    height: 1px;
    background-color: #52ff52;
    transition: all 0.2s ease;
}

.tab-buttons button[data-type="limit_down"].active {
    background-color: transparent;
    color: #52ff52;
}

.tab-buttons button[data-type="limit_down"].active::after {
    display: block;
}

/* 一字板标签 (limit_up) */
.tab-buttons button[data-type="limit_up"] {
    color: var(--text);
    position: relative;
}

.tab-buttons button[data-type="limit_up"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2em;
    height: 1px;
    background-color: var(--color-function-yellow);
    transition: all 0.2s ease;
}

.tab-buttons button[data-type="limit_up"].active {
    background-color: transparent;
    color: var(--color-function-yellow);
}

.tab-buttons button[data-type="limit_up"].active::after {
    display: block;
}

/* 双创标签 (chuangye) */
.tab-buttons button[data-type="chuangye"] {
    color: var(--text);
    position: relative;
}

.tab-buttons button[data-type="chuangye"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2em;
    height: 1px;
    background-color: var(--color-function-green);
    transition: all 0.2s ease;
}

.tab-buttons button[data-type="chuangye"].active {
    background-color: transparent;
    color: var(--color-function-green);
}

.tab-buttons button[data-type="chuangye"].active::after {
    display: block;
}

/* 妖股标签 (yaogu) */
.tab-buttons button[data-type="yaogu"] {
    color: var(--text);
    position: relative;
}

.tab-buttons button[data-type="yaogu"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2em;
    height: 1px;
    background-color: #ff6b6b;
    transition: all 0.2s ease;
}

.tab-buttons button[data-type="yaogu"].active {
    background-color: transparent;
    color: #ff6b6b;
}

.tab-buttons button[data-type="yaogu"].active::after {
    display: block;
}
