.container {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.header-row {
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    position: relative;
}

body {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.page-title {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
    color: red;
}

.chart-container {
    position: fixed;
    top: calc(30vh + 26px); 
    height: 30vh;
    width: 100%;
    z-index: 1001;
    overflow: hidden;
    pointer-events: auto;
}
.chart {
    width: 100%;
    height: 100%;
    background-color: var(--card-bg);
}


.table-header {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
    border-bottom: none;
    margin: 0;
    padding: 0;
}

.table-content {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
    border-top: none;
}
.table-header th {
    font-size: 10px !important;
    font-weight: bold;
    text-align: center!important;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.table-content td {
    padding: 2px;
    font-size: 10px !important;
    border: 1px solid var(--border-color);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.table-body-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    border-top: none;
    max-height: calc(100% - 25px);
}
.table-body-scroll::-webkit-scrollbar {
    display: none;
}


.ai-data-container, .d6-data-container, .zs-data-container {
    width: calc(50% - (5px ));
    height: 100%;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0;
    background-color: var(--card-bg);
}


.ai-data-table thead th, .d6-data-table thead th, .zs-data-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--card-bg);
}


.ai-data-table, .d6-data-table, .zs-data-table, .bb-data-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
}
.ai-data-table th, .d6-data-table th, .zs-data-table th, .bb-data-table th {
    padding: 8px;
    font-size: 12px !important;
    font-weight: bold;
    text-align: left;
    border: 1px solid var(--border-color);

}
.ai-data-table td, .zs-data-table td, .d6-data-table td {
    padding: 2px;
    font-size: 10px; 
    border: none;
    text-align: left;
}


.dual-data-container {
    display: flex;
    padding: 0;
    gap: 10px;
    width: 100%;
    position: fixed;
    top:  30px; 
    left: 5px;
    right: 5px;
    height: calc(100vh - 30px);
    z-index: 1002;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


.custom-nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 25px;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    pointer-events: none;
    background-color: var(--card-bg);
}
.nav-scroll {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 5px;
    white-space: nowrap;
    font-size: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-scroll::-webkit-scrollbar {
    display: none;
}
.nav-text {
    font-size: 13px;
    padding: 0 6px;
    white-space: nowrap;
    position: relative;
    pointer-events: auto;
}
.nav-text:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 0.5px;
    background-color: var(--border-color);
}
.nav-value {
    font-weight: 500;
}


.top-section {
    position: fixed;
    top: 26px; 
    left: 5px;
    right: 5px;
    height: 30vh;
    z-index: 1002;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: var(--card-bg);
}


.news-scroll {
    height: 100%;
    padding: 8px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.news-scroll::-webkit-scrollbar {
    display: none;
}
.news-item {
    padding: 8px 0;
    border-bottom: 1px dashed var(--news-border); 
    position: relative;
    padding-right: 20px;
}


.news-item:last-child {
    border-bottom: none;
}
.news-time {
    display: block;
    font-size: 11px;
    margin-bottom: 3px;
}
.news-content {
    font-size: 13px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.4;
    transition: all 0.3s ease;
}
.news-content.expanded {
    -webkit-line-clamp: unset;
    max-height: 2000px;
}
.news-expand-btn {
    position: absolute;
    right: 0;
    bottom: 8px;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: bold;
    padding-left: 5px;
    background-color: inherit;
}


.tdx-link {
    color: var(--primary-color);
    text-decoration: none;
}
.tdx-link:hover {
    text-decoration: underline;
}

/* 表格特定样式 */
.bb-data-table .loading {
    text-align: center;
    padding: 50px 0;
    color: #999;
    font-size: 16px;
}
.bb-data-table .no-data {
    text-align: center;
    padding: 30px 0;
    color: var(--error-color);
    font-size: 14px;
}
.bb-data-table .error {
    color: var(--error-color) !important;
}
.table-content tr {
    cursor: pointer;
}
.table-content tr:hover {
  background-color: var(--table-hover-bg);
}
.table-content tr.selected {
    background-color: #409eff33;
    border-left: 3px solid var(--primary-color);
}

.guide-link {
    position: fixed !important; 
    top: 8px; 
    right: 20px; 
    z-index: 9998 !important; 
    color: var(--text-color) !important; 
    font-size: 12px;
    text-decoration: none !important; 
    display: flex;
    align-items: center;
    gap: 4px; 
    cursor: pointer;
}

.guide-link:hover {
    color: var(--primary-color) !important; 
    text-decoration: underline !important; 
}