* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 30px 40px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: 700;
}

.header-left .subtitle {
    font-size: 1em;
    opacity: 0.9;
}

.header-right .logo {
    height: 50px;
    border-radius: 8px;
    background: white;
    padding: 5px;
}

/* 投资经理选择器 */
.manager-selector {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    padding: 20px 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.selector-label {
    color: white;
    font-weight: 600;
    font-size: 1.1em;
}

.selector-buttons {
    display: flex;
    gap: 15px;
}

.manager-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.manager-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.manager-btn.active {
    background: white;
    color: #1abc9c;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.manager-name {
    font-weight: 700;
    font-size: 1.1em;
}

.manager-style {
    font-size: 0.9em;
    opacity: 0.8;
}

.manager-company {
    font-size: 0.85em;
    opacity: 0.7;
}

/* 导航栏样式 */
.nav-bar {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    padding: 15px 40px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-item {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-item.active {
    background: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.section {
    padding: 40px;
    border-bottom: 1px solid #e0e0e0;
}

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

.section h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
    display: inline-block;
}

.section h3 {
    color: #34495e;
    font-size: 1.3em;
    margin-bottom: 20px;
    margin-top: 10px;
}

/* 核心结论卡片 */
.core-summary {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.summary-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.summary-card h3 {
    color: #2c3e50;
    font-size: 1.2em;
    margin-bottom: 15px;
}

/* 星级评级模块 */
.rating-section {
    text-align: center;
    margin-bottom: 20px;
    padding: 12px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.rating-section h3 {
    font-size: 1.1em;
    margin-bottom: 8px;
    color: #2c3e50;
}

.rating-stars {
    font-size: 28px;
    color: #ddd;
    letter-spacing: 3px;
}

.rating-stars .star {
    transition: color 0.3s ease;
}

.rating-stars .star.active {
    color: #f39c12;
}

.rating-label {
    font-size: 1em;
    color: #3498db;
    font-weight: 500;
    margin-top: 6px;
}

/* 卡片内星级 */
.star-rating {
    margin-bottom: 10px;
}

.star-rating .star {
    font-size: 18px;
    color: #ddd;
}

.star-rating .star.active {
    color: #f39c12;
}

.summary-card p {
    color: #555;
    line-height: 1.8;
}

.summary-card .summary-desc {
    font-size: 0.9em;
    color: #777;
    margin-top: 10px;
}

/* 关键词标签 */
.summary-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.keyword-tag {
    display: inline-block;
    padding: 5px 10px;
    background: #f5f7fa;
    color: #2c3e50;
    border-radius: 16px;
    font-size: 0.85em;
    font-weight: 500;
    line-height: 1.4;
    border: 1px solid #d4dae3;
}

.keyword-tag.positive {
    background: #e8f5e9;
    color: #1b5e20;
    border-color: #81c784;
}

.keyword-tag.negative {
    background: #ffebee;
    color: #b71c1c;
    border-color: #ef9a9a;
}

.keyword-tag.neutral {
    background: #e3f2fd;
    color: #0d47a1;
    border-color: #64b5f6;
}

.keyword-tag.highlight {
    background: #fff8e1;
    color: #bf360c;
    border-color: #ffb74d;
}

/* 关键词描述 */
.summary-description {
    margin-top: 12px;
    font-size: 0.85em;
    color: #666;
    line-height: 1.6;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

.summary-card strong {
    color: #3498db;
}

/* 标签卡片网格 */
.tags-section {
    margin-bottom: 30px;
}

.tags-section h3 {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid #3498db;
}

.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.tag-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tag-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #3498db;
}

.tag-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.tag-icon {
    font-size: 1.8em;
}

.tag-card-header h4 {
    color: #2c3e50;
    font-size: 1em;
    font-weight: 600;
}

.tag-value {
    font-size: 1.3em;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 8px;
}

.tag-value.tag-highlight {
    color: #e74c3c;
}

.tag-desc {
    font-size: 0.85em;
    color: #7f8c8d;
    line-height: 1.5;
}

.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    background: #e8f4f8;
    color: #2980b9;
}

.tag-primary {
    background: #3498db;
    color: white;
}

/* 图表容器 */
.chart-container {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.charts-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.half-width {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

canvas {
    max-height: 400px;
    width: 100% !important;
    height: auto !important;
}

@media (max-width: 768px) {
    canvas {
        max-height: 320px;
    }
}

@media (max-width: 480px) {
    canvas {
        max-height: 280px;
    }
}

/* 表格样式 */
.table-container {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.data-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.data-table td.category {
    vertical-align: top;
    font-weight: 600;
    color: #374151;
    background: #f9fafb;
}

.data-table tbody tr:hover {
    background: #f5f7fa;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.positive {
    color: #27ae60;
    font-weight: 600;
}

.negative {
    color: #e74c3c;
    font-weight: 600;
}

.neutral {
    color: #f39c12;
    font-weight: 600;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
    display: inline-block;
}

.status-normal {
    background: #d4edda;
    color: #155724;
}

.status-warning {
    background: #f8d7da;
    color: #721c24;
}

.evaluation-badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    display: inline-block;
}

.evaluation-badge.excellent {
    background: #d4edda;
    color: #155724;
}

.evaluation-badge.good {
    background: #d1ecf1;
    color: #0c5460;
}

.evaluation-badge.weak {
    background: #fff3cd;
    color: #856404;
}

.warning-row {
    background: #fff3cd !important;
}

.warning-row:hover {
    background: #ffeaa7 !important;
}

.holdings-table td {
    font-size: 0.9em;
}

.holdings-table small {
    color: #7f8c8d;
    font-size: 0.85em;
}

/* 表格注释 */
.table-note {
    font-size: 0.85em;
    color: #7f8c8d;
    margin-bottom: 15px;
}

/* 特征总结卡片 */
.feature-summary-card {
    display: flex;
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.summary-icon {
    font-size: 2.5em;
    margin-right: 15px;
    flex-shrink: 0;
}

.summary-title {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95em;
    display: block;
    margin-bottom: 5px;
}

.summary-text {
    color: #334155;
    font-size: 0.95em;
    line-height: 1.6;
}

.summary-content {
    flex: 1;
}

.summary-title {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85em;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-text {
    color: white;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
}

.summary-text strong {
    color: #ffd700;
}

/* 模块解释样式 */
.module-explanation {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-left: 4px solid #3498db;
}

.module-explanation strong {
    color: #2c3e50;
    font-size: 1.05em;
}

.module-explanation ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.module-explanation li {
    margin-bottom: 8px;
    color: #555;
    font-size: 0.95em;
    line-height: 1.6;
}

.module-explanation li strong {
    color: #3498db;
    font-size: 1em;
}

/* 独特持仓高亮 */
.unique-stock {
    background: #d4edda !important;
}

.unique-stock:hover {
    background: #c3e6cb !important;
}

/* 权重差异大高亮 */
.diff-stock {
    background: #fff3cd !important;
}

.diff-stock:hover {
    background: #ffeaa7 !important;
}

/* 行业权重差异大高亮 */
.large-diff {
    background: #f8d7da !important;
}

.large-diff:hover {
    background: #f5c6cb !important;
}

/* 标签样式 */
.unique-tag {
    display: inline-block;
    padding: 3px 8px;
    background: #d4edda;
    color: #155724;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
}

.diff-tag {
    display: inline-block;
    padding: 3px 8px;
    background: #fff3cd;
    color: #856404;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
}

.scrollable {
    overflow-x: auto;
}

/* 图表切换按钮 */
.chart-switch {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.switch-btn {
    padding: 8px 16px;
    border: 2px solid #3498db;
    border-radius: 8px;
    background: white;
    color: #3498db;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.switch-btn:hover {
    background: #e8f4f8;
}

.switch-btn.active {
    background: #3498db;
    color: white;
}

/* 组合选择器 */
.portfolio-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.portfolio-selector .selector-label {
    font-weight: 600;
    color: #2c3e50;
}

.selector-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.portfolio-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    background: white;
}

.portfolio-checkbox:hover {
    border-color: #3498db;
}

.portfolio-checkbox.checked {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.portfolio-checkbox input {
    display: none;
}

/* 相关性表格 */
.correlation-table {
    margin-bottom: 15px;
}

.correlation-table td {
    text-align: center;
}

.high-correlation {
    background: #d4edda;
    color: #155724;
    font-weight: 600;
}

.medium-correlation {
    background: #d1ecf1;
    color: #0c5460;
}

.low-correlation {
    background: #ffeeba;
    color: #856404;
}

/* 分位标签 */
.quantile-badge {
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 0.85em;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid transparent;
    display: inline-block;
}

.quantile-badge.excellent {
    background: #e8f5e9;
    color: #1b5e20;
    border-color: #a5d6a7;
}

.quantile-badge.good {
    background: #e3f2fd;
    color: #0d47a1;
    border-color: #90caf9;
}

.quantile-badge.medium {
    background: #fff3e0;
    color: #bf360c;
    border-color: #ffcc80;
}

.quantile-badge.lower-medium {
    background: #fce4ec;
    color: #880e4f;
    border-color: #f48fb1;
}

.quantile-badge.weak {
    background: #ffebee;
    color: #b71c1c;
    border-color: #ef9a9a;
}

/* 分析说明 */
.analysis-note {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-left: 4px solid #3498db;
    border-radius: 5px;
    color: #555;
    line-height: 1.8;
}

.analysis-note strong {
    color: #2c3e50;
}

/* 信息框 */
.info-box {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 5px solid #00bcd4;
}

.info-box h3 {
    color: #006064;
    margin-bottom: 15px;
}

.info-box p {
    color: #00838f;
    line-height: 1.8;
}

/* 业绩稳定性样式 */
.stability-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stability-badge {
    background: white;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.stability-badge .badge-label {
    font-size: 0.85em;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.stability-badge .badge-value {
    font-size: 1.2em;
    font-weight: 700;
    color: #2c3e50;
}

.stability-badge .badge-value.score {
    color: #3498db;
}

/* 风格结论 */
.style-conclusion {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.conclusion-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px 40px;
    border-radius: 12px;
    text-align: center;
    min-width: 200px;
}

.conclusion-card .conclusion-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    display: block;
    margin-bottom: 10px;
}

.conclusion-card .conclusion-value {
    color: white;
    font-size: 1.5em;
    font-weight: 700;
}

.conclusion-card .conclusion-value.style {
    color: #ffd93d;
}

.conclusion-card .conclusion-value.stability {
    color: #6bcb77;
}

/* 能力评分 */
.ability-scores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ability-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.ability-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.ability-name {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.ability-score {
    display: block;
    font-size: 2em;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 10px;
}

.ability-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* 集中度摘要 */
.concentration-summary {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.concentration-item {
    display: flex;
    flex-direction: column;
}

.concentration-item .label {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.concentration-item .value {
    font-size: 1.4em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 3px;
}

.concentration-item .peer {
    font-size: 0.85em;
    color: #95a5a6;
}

/* 一致性指标 */
.consistency-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.metric-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.metric-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.metric-value {
    font-size: 2em;
    font-weight: 700;
    color: #3498db;
}

/* 位置摘要 */
.position-summary,
.industry-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

/* 仓位择时能力摘要 */
.timing-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.timing-item {
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    min-width: 120px;
}

.timing-item .label {
    font-size: 0.85em;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.timing-item .value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1em;
}

.summary-text {
    font-weight: 600;
    color: #2c3e50;
}

.summary-badge {
    background: #3498db;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

/* 风险维度卡片 */
.risk-dimension-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.risk-dim-card {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.risk-dim-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.risk-dim-card.risk-low {
    border-left: 4px solid #2ecc71;
}

.risk-dim-card.risk-medium {
    border-left: 4px solid #f39c12;
}

.risk-dim-card.risk-high {
    border-left: 4px solid #e74c3c;
}

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

.risk-dim-icon {
    font-size: 1.1em;
}

.risk-dim-name {
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
}

.risk-dim-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

.risk-low .risk-dim-badge {
    background: #d5f5e3;
    color: #1e8449;
}

.risk-medium .risk-dim-badge {
    background: #fdebd0;
    color: #b9770e;
}

.risk-high .risk-dim-badge {
    background: #fadbd8;
    color: #c0392b;
}

.risk-dim-comment {
    font-size: 0.85em;
    color: #718096;
    line-height: 1.5;
    margin: 0;
}

/* 风险画像子图标题 */
.sub-chart-title {
    font-size: 1em;
    font-weight: 600;
    color: #4a5568;
    margin: 25px 0 12px 0;
    padding-left: 10px;
    border-left: 3px solid #3498db;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px;
}

.footer p {
    opacity: 0.8;
    font-size: 0.95em;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .charts-row {
        grid-template-columns: 1fr;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .style-conclusion {
        flex-direction: column;
    }
    
    .ability-scores {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* 基础样式 */
    body {
        padding: 5px;
        font-size: 14px;
    }
    
    .container {
        border-radius: 15px;
        overflow: hidden;
    }
    
    /* 头部 */
    .header {
        padding: 20px 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .header-left h1 {
        font-size: 1.5em;
        margin-bottom: 5px;
    }
    
    .header-left .subtitle {
        font-size: 0.9em;
    }
    
    .header-right .logo {
        height: 40px;
    }
    
    /* 投资经理选择器 */
    .manager-selector {
        padding: 15px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .selector-label {
        font-size: 1em;
        text-align: center;
    }
    
    .selector-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .manager-btn {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px;
        border-radius: 10px;
    }
    
    .manager-name {
        font-size: 1em;
    }
    
    /* 导航栏 */
    .nav-bar {
        padding: 10px 15px;
        gap: 5px;
        position: static;
        flex-wrap: wrap;
    }
    
    .nav-item {
        padding: 8px 12px;
        font-size: 0.85em;
        border-radius: 20px;
        white-space: nowrap;
    }
    
    /* 章节 */
    .section {
        padding: 15px;
    }
    
    .section h2 {
        font-size: 1.3em;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    
    .section h3 {
        font-size: 1.1em;
        margin-bottom: 15px;
    }
    
    /* 摘要卡片 */
    .summary-cards {
        gap: 15px;
    }
    
    .summary-card {
        padding: 20px;
        border-radius: 12px;
    }
    
    .summary-card h3 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    
    /* 标签卡片网格 */
    .tags-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .tag-card {
        padding: 15px;
    }
    
    .tag-icon {
        font-size: 1.5em;
    }
    
    .tag-value {
        font-size: 1.1em;
    }
    
    /* 图表容器 */
    .chart-container {
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 20px;
    }
    
    canvas {
        max-height: 280px;
    }
    
    /* 图表切换按钮 */
    .chart-switch {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .switch-btn {
        padding: 6px 12px;
        font-size: 0.85em;
        border-radius: 6px;
    }
    
    /* 表格 */
    .table-container {
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 20px;
    }
    
    .data-table {
        font-size: 0.75em;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 5px;
        word-break: break-all;
    }
    
    /* 模块解释 */
    .module-explanation {
        padding: 12px 15px;
        border-radius: 8px;
        margin-bottom: 12px;
    }
    
    .module-explanation li {
        font-size: 0.85em;
        margin-bottom: 6px;
    }
    
    /* 风格结论 */
    .style-conclusion {
        flex-direction: column;
        gap: 15px;
    }
    
    .conclusion-card {
        padding: 20px;
        min-width: auto;
    }
    
    .conclusion-card .conclusion-value {
        font-size: 1.3em;
    }
    
    /* 能力评分 */
    .ability-scores {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .ability-card {
        padding: 15px;
    }
    
    .ability-icon {
        font-size: 1.5em;
    }
    
    .ability-score {
        font-size: 1.5em;
    }
    
    /* 稳定性摘要 */
    .stability-summary {
        flex-direction: column;
        gap: 12px;
    }
    
    .stability-badge {
        padding: 10px 15px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .stability-badge .badge-label {
        margin-bottom: 0;
        font-size: 0.8em;
    }
    
    .stability-badge .badge-value {
        font-size: 1.1em;
    }
    
    /* 集中度摘要 */
    .concentration-summary {
        flex-direction: column;
        gap: 10px;
    }
    
    .concentration-item .value {
        font-size: 1.2em;
    }
    
    /* 组合选择器 */
    .portfolio-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .selector-options {
        flex-wrap: wrap;
    }
    
    .portfolio-checkbox {
        padding: 8px 12px;
        font-size: 0.85em;
    }
    
    /* 位置摘要和行业摘要 */
    .position-summary,
    .industry-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* 标签组 */
    .tag-group {
        gap: 5px;
    }
    
    .tag {
        padding: 4px 10px;
        font-size: 0.8em;
    }
    
    /* 时序摘要 */
    .timing-summary {
        gap: 10px;
    }
    
    .timing-item {
        padding: 8px 12px;
        min-width: 100px;
    }
    
    .timing-item .label {
        font-size: 0.8em;
    }
    
    /* 页脚 */
    .footer {
        padding: 20px 15px;
    }
    
    .footer p {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    /* 小屏手机优化 */
    body {
        padding: 3px;
        font-size: 13px;
    }
    
    .header-left h1 {
        font-size: 1.3em;
    }
    
    .manager-btn {
        padding: 12px;
    }
    
    .nav-bar {
        padding: 8px 10px;
    }
    
    .nav-item {
        padding: 6px 10px;
        font-size: 0.75em;
    }
    
    .section {
        padding: 10px;
    }
    
    .section h2 {
        font-size: 1.2em;
    }
    
    .tags-grid {
        grid-template-columns: 1fr;
    }
    
    .ability-scores {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 0.7em;
    }
    
    .data-table th,
    .data-table td {
        padding: 6px 3px;
    }
    
    canvas {
        max-height: 220px;
    }
}
