@font-face {
    font-family: 'SimHei';
    src: url('/static/fonts/simhei.ttf') format('truetype');
}

@font-face {
    font-family: 'SimKai';
    src: url('/static/fonts/simkai.ttf') format('truetype');
}

/*
@import url('/static/fonts/fonts.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');
*/
/* @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=KaiTi&display=swap'); */

/* --- 变量定义 --- */
:root {
    --font-sans: "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: "SimKai", "KaiTi", "STKaiti", "BiauKai", serif; /* 楷体使用我们自己加载的 */
    --font-heiti: "SimHei", "Microsoft YaHei", "PingFang SC", sans-serif; /* 黑体也一样 */
    --font-yahei: "Microsoft YaHei", "Noto Sans SC", "PingFang SC", sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --cicc-red: #8C1515;
    --cicc-gold: #B8860B;
    --cicc-dark: #7d0000;
    --hf-color: #00e0c6; /* 九坤的颜色 */
    --hf-dark: #00a08c;
    --goldman-color: #735A37; /* 高盛的金色 */
    --goldman-dark: #5a472a;
    --morgan-color: #004A94; /* 摩根士丹利的蓝色 */
    --morgan-dark: #003366;
    --ubs-color: #D60017; /* 瑞银的红色 */
    --ubs-dark: #a10012;
    --pwc-color: #DC6434; /* 普华永道的橙色 */
    --pwc-dark: #b85026;

    /* --- 新增角色颜色 --- */
    --blackrock-color: #000000;
    --blackrock-dark: #333333; /* 用深灰色作为dark，纯黑不好区分 */
    --fidelity-color: #006044;
    --fidelity-dark: #004d36;
    --vanguard-color: #900020;
    --vanguard-dark: #7a001b;
    --bridgewater-color: #0D2355;
    --bridgewater-dark: #091a42;
    --citic-color: #D81E06;
    --citic-dark: #b41905;

    --light-gray: #f0f2f5;
    --border-color: #e8e8e8;
    --text-color: #333;
    --text-secondary: #666;
    --selected-bg: #e6f7ff;
}

/* --- 全局与布局 --- */
html, body {
    height: 100%;
}

body {
    padding: 0;
    margin: 0;
    background: url("../static/logo/page-wrapper-ng.png") center center no-repeat;
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
    height: 100vh; /* 占满整个视口高度 */

}

header {
    height: 194px; /* 固定高度 */

}

.mainView {
    flex: 1;

}

.page-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
}


/* --- Tab / View Selector --- */
.view-selector {
    height: 104px;
    padding: 0 4px;
    display: flex;
    justify-content: center;
    align-items: center;

}

.buttonView {
    background: #FFFFFF;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 22px;
}

.view-btn {
    width: 160px;
    height: 42px;
    cursor: pointer;
    border: none;
    background-color: transparent;
    font-size: 1rem;
    font-weight: 500;
    color: #000000;
    border-radius: 21px;


    transition: all 0.2s ease-in-out;
}

.view-btn.active {
    color: #FFFFFF;
    background: linear-gradient(90deg, #FE4A03 0%, #fa7e45 100%);
}


/* --- 新闻列表容器 --- */
#news-list-container,
#flash-news-list-container,
#history-news-list-container {
    min-width: 320px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    /*margin: 0 15px;*/
}

.header-container {
    padding: 1rem;
    /*border-bottom: 1px solid var(--border-color);*/
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-container h2 {
    margin: 0;
    font-size: 1.25rem;
}

.news-controls {
    display: flex;
    gap: 10px;
}

#news-date-picker,
#refresh-button,
#flash-news-source-selector,
#flash-refresh-button {


}

#news-date-picker,
#flash-news-source-selector,
#history-analysis-container {
    flex-grow: 1;
}

.search-container {
    display: flex;
    padding: 0 1rem 1rem 1rem;
    /*border-bottom: 1px solid var(--border-color);*/
}

.search-box {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
    flex-grow: 1;
    transition: border-color 0.2s ease-in-out;
    border-right: none;
}

.search-box:focus {
    border-color: var(--primary-color);
}

.search-btn {
    padding: 8px 16px;
    border: 1px solid #FE4A03;
    background-color: #FE4A03;
    color: white;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: background-color 0.2s ease;
}

.search-btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.refresh-btn-small {

    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.refresh-btn-small.icon {
    width: 20px;
    height: 20px;

}


#news-list,
#flash-news-list,
#history-view-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.news-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.news-item:hover {
    background-color: #f9f9f9;
}

.news-item.active {
    background: rgba(254, 74, 3, 0.08);
    border-left: 4px solid #FE4A03;
    padding-left: 11px;
}

.news-title {
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
    display: block;
}

.news-source {
    font-size: 0.8rem;
    color: #828282;
    display: block;
}


.news-item.active .news-title {
    color: #FE4A03;
}

.news-item.active .news-source {
    color: rgba(254, 74, 3, 0.50);
}

.clear-cache-btn {
    position: absolute;
    right: 15px;
    bottom: 0px;
    transform: translateY(-50%);
    padding: 4px 8px;
    font-size: 12px;
    color: var(--primary-color);
    background-color: #e6f7ff;
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}


.clear-cache-btn:disabled {
    background-color: #ccc;
    color: #666;
    border-color: #ccc;
    cursor: not-allowed;
}

#list-loader,
#flash-list-loader,
#history-view-list-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

/* --- 分析结果容器 --- */
#analysis-container,
#flash-analysis-container,
#history-analysis-container {
    flex: 3 1 60%;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;

}

#placeholder,
#loading,
#flash-placeholder,
#flash-loading,
#history-loading,
#history-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

#placeholder p,
#loading p,
#flash-placeholder p,
#flash-loading p,
#history-loading p {
    font-size: 1.2rem;
    margin-top: 1rem;
}

#generate-button,
#flash-generate-button, #history-generate-button {
    background-color: #FE4A03;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.2s ease;
}

#generate-button:hover,
#flash-generate-button:hover,
#history-generate-button :hover {
    background-color: #FE4A03;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: var(--primary-color);
    animation: spin 1s ease infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


#results {
    padding: 2rem;
    max-height: 73vh;
    overflow-y: auto;
}

#results-title {
    text-align: center;
    margin-bottom: 2rem;
}

.analysis-columns {
    display: flex;
    gap: 2rem;
}

.analysis-column {
    /*flex: 1;*/
    min-width: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    /*overflow: hidden;*/
}

.analysis-column_flex {
    flex: 1;
}

.analysis-column .content {
    padding: 1.5rem;
    font-size: 1rem;
}

.analysis-column .content h1,
.analysis-column .content h2,
.analysis-column .content h3,
.analysis-column .content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.analysis-column .content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.analysis-column .content ul,
.analysis-column .content ol {
    padding-left: 20px;
}

.analysis-column .content blockquote {
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background-color: var(--light-gray);
    border-left: 4px solid var(--primary-color);
}

.analysis-column .content code {
    background-color: var(--light-gray);
    padding: 2px 4px;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.analysis-column .content pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
}

.analysis-column .content pre code {
    background: none;
    padding: 0;
}

.actions-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 1rem;
    background-color: var(--light-gray);
    border-top: 1px solid var(--border-color);
}

.action-btn {
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.save-image-btn {
    border-radius: 4px;
    background: linear-gradient(90deg, #FE4A03 0%, #FF6F2C 100%);
    /*background-color: var(--primary-color);*/
    color: white;
}

.save-pdf-btn {
    background-color: #ffffff;
    color: var(--text-color);
    border-color: var(--border-color);
}

.save-pdf-btn:hover {
    background-color: var(--primary-dark);
    color: white;
}

/* --- 图片/PDF生成样式 --- */
.for-image-generation {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 800px;
    padding: 30px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: -1;
    font-family: var(--font-yahei);
}

.for-image-generation.cicc-style {
    background-color: #f9f6f2;
    border: 1px solid #e0d9cf;
    color: #3d3d3d;
    font-family: var(--font-serif);
}

.for-image-generation.cicc-style h3,
.for-image-generation.cicc-style .image-news-title {
    font-family: var(--font-heiti);
    color: var(--cicc-gold);
}

.for-image-generation.cicc-style strong {
    font-family: var(--font-heiti);
    color: var(--cicc-red);
}

.for-image-generation.hf-style {
    background-color: #1a1a1e;
    border: 1px solid #333;
    color: #d0d0d0;
    font-family: var(--font-yahei);
}

.image-header, .image-footer {
    padding: 20px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(128, 128, 128, 0.3);
}

.image-header {
    align-items: flex-start;
    border-bottom: 1px solid rgba(128, 128, 128, 0.3);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.image-footer {
    border-top: 1px solid rgba(128, 128, 128, 0.3);
    padding-top: 15px;
    margin-top: 30px;
}

.for-image-generation.cicc-style .image-header,
.for-image-generation.cicc-style .image-footer {
    border-color: #e0d9cf;
}

.for-image-generation.hf-style .image-header,
.for-image-generation.hf-style .image-footer {
    border-color: #444;
}

.image-header .header-text {
    display: flex;
    flex-direction: column;
}

.image-header .logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.cicc-style .logo {
    color: var(--cicc-color);
}

.hf-style .logo {
    color: var(--hf-color);
}

.image-header .subtitle {
    font-size: 16px;
    color: #666;
}

.for-image-generation.hf-style .subtitle {
    color: #aaa;
}

.image-news-title {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin: 30px 0;
    line-height: 1.4;
}

.for-image-generation .content {
    font-size: 16px;
    line-height: 1.8;
}

/* --- Modal 样式 --- */
#progress-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    margin-top: 0;
}

#selected-news-title-modal {
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

#progress-steps {
    margin-top: 1rem;
}

.progress-step {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-step .icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
}

.progress-step.pending .icon {
    background-color: #ccc;
}

.progress-step.in-progress .icon {
    background-color: var(--primary-color);
}

.progress-step.completed .icon {
    background-color: #28a745;
}

#progress-status {
    margin-top: 1.5rem;
    text-align: center;
    font-style: italic;
    color: var(--text-secondary);
}

/* --- 快讯分析特定样式 --- */

#history-results{
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
}
#flash-results_history {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
}
#flash-results-view{
    max-height: 88vh;
    overflow-y: auto;
}
#flash-results{
    padding: 1.5rem;
}


.analysis-column{
    /*overflow: auto;*/
}

#flash-results-title,
#flash-results-title_history,
#history-flash-results-title, #results_history {
    /*text-align: center;*/
    margin-bottom: 0;
}

#debate-container,
#history-debate-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.debate-turn {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.analyst-name {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding: 4px 12px;
    border-radius: 4px;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
}

.opinion {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    background-color: var(--light-gray);
    position: relative;
    font-size: 0.95rem;
    line-height: 1.7;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.opinion p {
    margin-top: 0;
}

.opinion p:last-child {
    margin-bottom: 0;
}

/* 中金分析师 */
.debate-turn.cicc {
    align-items: flex-start;
}

.debate-turn.cicc .analyst-name {
    background-color: rgba(200, 10, 10, 0.1);
    color: var(--cicc-dark);
}

.debate-turn.cicc .analyst-name::before {
    content: 'C';
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-weight: bold;
    color: white;
    background-color: var(--cicc-color);
    border-radius: 4px;
    font-family: sans-serif;
}

.debate-turn.cicc .opinion {
    background-color: #fff8f8;
    border-top-left-radius: 0;
    border: 1px solid #ffe5e5;
}

.debate-turn.jiukun {
    align-items: flex-end;
}

.debate-turn.jiukun .analyst-name {
    background-color: rgba(0, 224, 198, 0.1);
    color: var(--hf-dark);
}

.debate-turn.jiukun .analyst-name::before {
    content: 'J';
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-weight: bold;
    color: white;
    background-color: var(--hf-color);
    border-radius: 4px;
    font-family: sans-serif;
}

.debate-turn.jiukun .opinion {
    background-color: #f5fffe;
    text-align: left;
    border-top-right-radius: 0;
    border: 1px solid #d4f8f3;
}

/* 高盛分析师 */
.debate-turn.goldman {
    align-items: flex-start;
}

.debate-turn.goldman .analyst-name {
    background-color: rgba(115, 90, 55, 0.1);
    color: var(--goldman-dark);
}

.debate-turn.goldman .analyst-name::before {
    content: 'G';
    background-color: var(--goldman-color);
}

.debate-turn.goldman .opinion {
    background-color: #fcfaf6;
    border: 1px solid #f3ede2;
}

/* 摩根士丹利分析师 */
.debate-turn.morgan {
    align-items: flex-start;
}

.debate-turn.morgan .analyst-name {
    background-color: rgba(0, 74, 148, 0.1);
    color: var(--morgan-dark);
}

.debate-turn.morgan .analyst-name::before {
    content: 'M';
    background-color: var(--morgan-color);
}

.debate-turn.morgan .opinion {
    background-color: #f5f8fb;
    border: 1px solid #e2eaf2;
}

/* 瑞银分析师 */
.debate-turn.ubs {
    align-items: flex-start;
}

.debate-turn.ubs .analyst-name {
    background-color: rgba(214, 0, 23, 0.1);
    color: var(--ubs-dark);
}

.debate-turn.ubs .analyst-name::before {
    content: 'U';
    background-color: var(--ubs-color);
}

.debate-turn.ubs .opinion {
    background-color: #fef5f6;
    border: 1px solid #f6e2e4;
}

/* 普华永道分析师 */
.debate-turn.pwc {
    align-items: flex-start;
}

.debate-turn.pwc .analyst-name {
    background-color: rgba(220, 100, 52, 0.1);
    color: var(--pwc-dark);
}

.debate-turn.pwc .analyst-name::before {
    content: 'P';
    background-color: var(--pwc-color);
}

.debate-turn.pwc .opinion {
    background-color: #fef8f5;
    border: 1px solid #f9eae3;
}


/* --- 新增角色样式 --- */

/* 贝莱德 (BlackRock) */
.debate-turn.blackrock {
    align-items: flex-start;
}

.debate-turn.blackrock .analyst-name {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--blackrock-color);
}

.debate-turn.blackrock .analyst-name::before {
    content: 'B';
    background-color: var(--blackrock-color);
}

.debate-turn.blackrock .opinion {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
}

/* 富达投资 (Fidelity) */
.debate-turn.fidelity {
    align-items: flex-end; /* 让它在右边显示 */
}

.debate-turn.fidelity .analyst-name {
    background-color: rgba(0, 96, 68, 0.1);
    color: var(--fidelity-dark);
}

.debate-turn.fidelity .analyst-name::before {
    content: 'F';
    background-color: var(--fidelity-color);
}

.debate-turn.fidelity .opinion {
    background-color: #f0f7f5;
    text-align: left;
    border-top-right-radius: 0;
    border: 1px solid #d9e8e4;
}

/* 先锋领航 (Vanguard) */
.debate-turn.vanguard {
    align-items: flex-start;
}

.debate-turn.vanguard .analyst-name {
    background-color: rgba(144, 0, 32, 0.1);
    color: var(--vanguard-dark);
}

.debate-turn.vanguard .analyst-name::before {
    content: 'V';
    background-color: var(--vanguard-color);
}

.debate-turn.vanguard .opinion {
    background-color: #fdf5f6;
    border: 1px solid #f8e2e6;
}

/* 桥水基金 (Bridgewater) */
.debate-turn.bridgewater {
    align-items: flex-end; /* 让它在右边显示 */
}

.debate-turn.bridgewater .analyst-name {
    background-color: rgba(13, 35, 85, 0.1);
    color: var(--bridgewater-dark);
}

.debate-turn.bridgewater .analyst-name::before {
    content: 'B';
    background-color: var(--bridgewater-color);
}

.debate-turn.bridgewater .opinion {
    background-color: #f5f6fa;
    text-align: left;
    border-top-right-radius: 0;
    border: 1px solid #e2e4ed;
}

/* 中信证券 (CITIC) */
.debate-turn.citic {
    align-items: flex-start;
}

.debate-turn.citic .analyst-name {
    background-color: rgba(216, 30, 6, 0.1);
    color: var(--citic-dark);
}

.debate-turn.citic .analyst-name::before {
    content: 'C';
    background-color: var(--citic-color);
}

.debate-turn.citic .opinion {
    background-color: #fff6f5;
    border: 1px solid #fde5e2;
}


/* 结论部分 */
#conclusion-container,
#history-conclusion-container,
#conclusion-container_history {
    border-top: 1px dashed var(--border-color);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

#conclusion-container h3,
#history-conclusion-container h5 {
    font-size: 1.25rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.conclusion-item {
    margin-bottom: 1.5rem;
}

.conclusion-item strong {
    font-size: 1rem;
    color: var(--text-color);
    margin-right: 10px;
}

.conclusion-item span {
    font-size: 1rem;
    background-color: var(--light-gray);
    padding: 4px 10px;
    border-radius: 15px;
}

.conclusion-item.industry-context span {
    background-color: #fff0f0;
    color: var(--cicc-dark);
    border: 1px solid #ffe5e5;
}

.stocks-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.stocks-table th, .stocks-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.stocks-table th {
    background-color: var(--light-gray);
    font-weight: 600;
}

.stock-impact.positive {
    color: #d00;
    font-weight: bold;
}

.stock-impact.negative {
    color: #008000;
    font-weight: bold;
}

.stock-price-change.positive {
    color: #d00;
}

.stock-price-change.negative {
    color: #008000;
}

.stock-price-change.zero {
    color: var(--text-secondary);
}

.for-mobile-generation {
    width: 540px;
    padding: 40px 25px;
    background-color: #ffffff;
    border: 1px solid #eee;
    font-family: var(--font-sans);
}

.for-mobile-generation #results-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.4;
}

.for-mobile-generation > h3 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 25px;
}

.for-mobile-generation .content {
    font-size: 18px;
    line-height: 1.9;
}

.for-mobile-generation .content h3,
.for-mobile-generation .content h4 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 1.8em;
    margin-bottom: 1em;
}

.for-mobile-generation #flash-results-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.4;
}

.for-mobile-generation .debate-turn .analyst-name {
    font-size: 16px;
}

.for-mobile-generation .debate-turn .opinion {
    font-size: 16px;
    line-height: 1.8;
}

.for-mobile-generation #conclusion-container h3 {
    font-size: 20px;
}

.for-mobile-generation .stocks-table {
    font-size: 15px;
}

.for-mobile-generation.cicc-style {
    font-family: var(--font-serif);
}

.qr-code-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(to right, var(--cicc-color), var(--hf-color));
    display: flex;
    align-items: center;
    gap: 20px;
}

.qr-code-footer img {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.qr-code-text {
    display: flex;
    flex-direction: column;
}

.qr-code-text .caption {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
}

.qr-code-text .url {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.analysis-column.cicc-style {
    border-top: 5px solid var(--cicc-red);
    font-family: var(--font-serif);
}

.analysis-column.cicc-style h3 {
    color: var(--cicc-red);
    font-weight: bold;
}

.analysis-column.cicc-style .logo {
    color: var(--cicc-red);
    font-family: var(--font-serif);
}

.analysis-column.cicc-style .subtitle {
    color: #999;
    font-size: 0.9rem;
}

.cicc-gold-text {
    color: var(--cicc-gold);
}

.cicc-red-text {
    color: var(--cicc-red);
}

.hf-brand-text {
    color: var(--hf-dark);
}

.hf-highlight-text {
    background-color: rgba(0, 224, 198, 0.1);
    color: var(--hf-dark);
    padding: 2px 5px;
    border-radius: 4px;
}

.analysis-column.hf-style {
    border-top: 5px solid var(--hf-color);
}

.analysis-column.hf-style h3 {
    color: var(--hf-color);
}

.analysis-column.hf-style .logo {
    color: var(--hf-color);
}

.analysis-column .image-header {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 2px solid;
}

.analysis-column.cicc-style .image-header {
    border-color: var(--cicc-red);
}

.analysis-column.hf-style .image-header {
    border-color: var(--hf-color);
}

.report-logo {
    height: 55px;
    width: auto;
    margin-right: 16px;
    flex-shrink: 0;
}

.header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.3;
}

.report-main-title {
    font-family: var(--font-heiti);
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0;
}

.analysis-column.cicc-style .report-main-title {
    color: var(--cicc-red);
}

.analysis-column.hf-style .report-main-title {
    color: var(--hf-color);
}

.header-text .subtitle {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    margin-top: 2px;
}


.view-container {

    display: none;
}

/* --- 媒体查询，用于响应式布局 --- */
@media (min-width: 1120px) {


    .view-container.active {
        flex: 1;
        display: flex;
        flex-grow: 1;
        gap: 1rem;
        overflow: hidden;
        height: 100%;
    }

    #news-list-container,
    #flash-news-list-container,
    #history-news-list-container {
        float: left;
        width: 30%;
        height: 100%;
        max-width: 420px;
    }

    #analysis-container,
    #flash-analysis-container {
        padding-left: 15px;
        flex: 1;
        height: 100%;
    }

    /*.analysis-columns {*/
    /*    flex-direction: column;*/
    /*}*/
    /*#results, #flash-results {*/
    /*    padding: 1.5rem;*/
    /*}*/
    #news-list-container {
        display: flex;
        flex-direction: column;
        height: 100%;
        max-height: 80vh;

    }

    .search_headerView {
        height: 120px;
    }

    .listView {
        flex: 1;
        overflow-y: auto;
        max-height: 80vh;

    }
}

@media (max-width: 1120px) {

    .listView {
        flex: 1;
        overflow-y: auto;
        max-height: 500px;

    }
    .view-container {
        /*padding: 0 15px;*/

    }

    .view-container.active {
        /*width: 100%;*/
        /*margin: 0 auto;*/
        display: block;
        height: 75vh;
    }

    #news-list-container {


    }

    #news-list-container,
    #flash-news-list-container {
        min-height: 50vh;
        max-height: none;
        margin: 0 15px;
    }

    #news-list-container,
    #flash-news-list-container {
        min-width: 320px;
        background-color: #ffffff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        position: relative;
        margin: 0 15px 15px;
    }

    /* --- 分析结果容器 --- */
    #analysis-container,
    #flash-analysis-container {
        margin: 0 15px;
    }


}

/* --- 新增：报告水印样式 --- */
.watermark-container {
    position: relative; /* 为伪元素定位提供上下文 */
    overflow: hidden; /* 确保水印不会溢出容器 */
}

.watermark-container::after {
    content: '前方量化内部参考'; /* 水印文字 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-40deg);
    font-size: 3rem; /* 水印字体大小 */
    font-weight: bold;
    color: rgba(0, 0, 0, 0.06); /* 水印颜色和透明度 */
    pointer-events: none; /* 让水印不影响鼠标事件 */
    z-index: 1; /* 将水印放在一个较高的层，但在内容之下 */
    white-space: nowrap; /* 防止文字换行 */
}

/* 确保报告内容在水印之上 */
#subjective-analysis .report-content,
#quantitative-analysis .report-content,
.for-mobile-generation .content {
    position: relative;
    z-index: 2;
}

.noData {
    text-align: center;
    font-size: 12px;
}

.qrCodeView {
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.qrCodeView .left {
    float: left;
    width: 100px;
    height: 100px;
}

.qrCodeView .left .icon {
    width: 100px;
    height: 100px;

}

.qrCodeView .right {
    flex: 1;
    padding-left: 15px;
    font-size: 14px;

}

.popover {
    display: none;
    width: 150px;
    font-size: 12px;
    border: 1px solid #FE4A03;
    padding: 5px 10px;
    border-radius: 5px;
    position: absolute;
    right: 50px;
    bottom: 20px;
    background: #FFFFFF;
    color: #FE4A03;
}

.clear-cache-btn:hover {
    background-color: #FE4A03;
    border: 1px solid #FE4A03;
    color: white;
}

.clear-cache-btn:hover .popover {
    display: block;
}

