/* === 全局设置 === */
:root {
    --bg-color: #0a0a0a;
    --grid-line: #2a2a2a;
    --text-main: #e0e0e0;
    --text-muted: #888888;
    --gold-accent: #D4AF37;
    --font-serif: 'Cinzel', serif;
    --font-sans: 'Inter', sans-serif;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow: hidden;
}

/* === 顶部 Header === */
.site-header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 1px solid var(--grid-line);
    background-color: #000;
}

.logo-container { display: flex; align-items: center; height: 50px; }
.logo-img { max-height: 100%; width: auto; }
.logo-text {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold-accent);
    display: none;
}
.header-slogan {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* === 网格布局 === */
.grid-container {
    display: grid;
    height: calc(100vh - 80px);
    width: 100vw;
    grid-template-columns: 61.8fr 38.2fr; 
    grid-template-rows: 61.8fr 38.2fr; 
    gap: 1px;
    background-color: var(--grid-line);
}

.box {
    background-color: #0e0e0e;
    position: relative;
    padding: 12px 25px; /* 减小上下内边距，使栏目标题上方空间更紧凑 */
    overflow-y: auto;
}

/* === 2. 修复留白：紧凑布局 === */
.section-portfolio {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 强制内容靠上，不留空 */
    padding: 8px 16px 30px 16px; /* 更窄的顶部，增加底部内边距防止与下方栏目太近 */
}
.strategy-text {
    margin: 1px 0 4px 0; /* 仅收窄标题与正文之间的上边距 */
    line-height: 1.22; /* 更紧凑行高 */
    font-size: 0.98rem;
}
.portfolio-image-wrapper {
    margin-top: 2px; /* 图片几乎紧贴文字 */
    border-top: 1px dashed #333;
    padding-top: 6px;
}
#daily-chart {
    width: 100%;
    height: auto;
    max-height: 350px; /* 限制最大高度，防止占满屏幕 */
    object-fit: contain;
    object-position: left;
    cursor: zoom-in;
    border: 1px solid #333;
    transition: opacity 0.2s;
}
#daily-chart:hover { opacity: 0.8; }

/* === 3. 链接样式优化 === */
.box-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--gold-accent);
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    font-weight: 600;
    opacity: 0.8;
    display: inline-block; /* 必须是block才能设置padding等 */
    text-decoration: none; /* 去掉默认下划线 */
    transition: all 0.3s ease;
}

/* 针对 Strategy 区块单独减少标题与正文的间距，不影响其他栏目 */
.section-portfolio .box-label {
    margin-bottom: 6px;
}

.link-hover:hover {
    color: #fff;
    text-decoration: underline;
    opacity: 1;
}

/* === Markdown 通用 === */
.markdown-content { font-size: 0.95rem; line-height: 1.6; }
.markdown-content h1, .markdown-content h2 { color: #fff; font-family: var(--font-serif); font-size: 1.2rem; border-bottom: 1px solid #333; padding-bottom: 5px; }
.markdown-content ul { padding-left: 20px; }
.markdown-content li { margin-bottom: 5px; color: #ccc; }
.markdown-content a { color: var(--gold-accent); text-decoration: none; border-bottom: 1px dotted var(--gold-accent); }
.markdown-content a:hover { color: #fff; }

/* === 区域特定 === */
.section-thoughts { background-color: #111; }
.thoughts-text { font-style: italic; color: #bbb; font-family: serif; }
.reports-list { font-size: 0.85rem; }
.section-brand { display: flex; align-items: flex-end; justify-content: flex-end; background-image: radial-gradient(circle at bottom right, #1a1a1a 0%, #0e0e0e 60%); }
.copyright-text { font-size: 0.7rem; color: #444; font-family: var(--font-serif); letter-spacing: 1px; }

/* === Modal === */
.modal { display: none; position: fixed; z-index: 100; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); }
.modal-content { margin: auto; display: block; width: 90%; max-width: 1600px; margin-top: 5%; }
.close { position: absolute; top: 20px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; }