/* ========================================
   Share Page Styles - 公开分享页面样式
   ======================================== */

:root {
    --terminal-bg: #0b0f14;
    --terminal-panel: #121821;
    --terminal-panel-soft: #171f2a;
    --terminal-border: #2a3441;
    --terminal-border-strong: #3b4655;
    --terminal-text: #d7dde6;
    --terminal-text-muted: #8f9baa;
    --terminal-text-dim: #6f7b8a;
    --terminal-accent: #f59e0b;
    --terminal-accent-soft: rgba(245, 158, 11, 0.14);
    --terminal-positive: #00c176;
    --terminal-negative: #ff5c5c;
    --terminal-info: #7fb3ff;
    --chart-panel-bg: #0f151d;
    --chart-controls-bg: #0e141c;
    --chart-grid-color: #1d2733;
    --chart-axis-color: #2a3441;
    --chart-label-color: #8f9baa;
    --chart-tooltip-bg: rgba(12, 17, 24, 0.96);
    --chart-tooltip-border: #3b4655;
    --chart-tooltip-text: #d7dde6;
    --chart-benchmark-color: #6b7280;
    --chart-portfolio-area-start: rgba(245, 158, 11, 0.22);
    --chart-portfolio-area-end: rgba(245, 158, 11, 0.02);
    --allocation-surface: #0f151d;
    --allocation-color-equity: #f59e0b;
    --allocation-color-fund: #22c55e;
    --allocation-color-bond: #60a5fa;
    --allocation-color-cash: #f97316;
    --allocation-color-other: #a78bfa;
}

/* Share Page Base */
.share-page {
    font-family: Consolas, "SFMono-Regular", "Liberation Mono", Menlo, monospace;
    font-size: 13px;
    line-height: 1.55;
    color: var(--terminal-text);
    background: var(--terminal-bg);
    min-height: 100vh;
}

.share-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px 24px;
}

/* ========================================
   Hero Section - 首屏
   ======================================== */
.share-hero {
    background: #0d131b;
    color: var(--terminal-text);
    padding: 28px 18px 22px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--terminal-border-strong);
}

.share-hero::before {
    content: none;
}

.share-hero::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 1px;
    background: var(--terminal-border-strong);
}

.hero-container {
    position: relative;
    max-width: 1248px;
    margin: 0 auto;
}

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-simulated {
    background: rgba(127, 179, 255, 0.12);
    color: var(--terminal-info);
    border: 1px solid rgba(127, 179, 255, 0.26);
}

.badge-real {
    background: rgba(0, 193, 118, 0.1);
    color: var(--terminal-positive);
    border: 1px solid rgba(0, 193, 118, 0.24);
}

.badge-observation {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-private {
    background: rgba(255, 92, 92, 0.1);
    color: var(--terminal-negative);
    border: 1px solid rgba(255, 92, 92, 0.24);
}

.badge-public {
    background: rgba(245, 158, 11, 0.12);
    color: var(--terminal-accent);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.hero-updated {
    font-size: 11px;
    color: var(--terminal-text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-content {
    text-align: left;
    margin-bottom: 18px;
}

.hero-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0;
    color: #f3f6fb;
}

.hero-description {
    font-size: 13px;
    color: var(--terminal-text-muted);
    max-width: 860px;
    margin: 0 0 14px;
}

.hero-risk-notice {
    max-width: 960px;
    margin: 0;
    text-align: left;
    padding: 12px 14px;
    border-radius: 2px;
    background: rgba(245, 158, 11, 0.08);
    border-left: 3px solid var(--terminal-accent);
    border-top: 1px solid rgba(245, 158, 11, 0.18);
    border-right: 1px solid rgba(245, 158, 11, 0.18);
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
}

.hero-risk-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--terminal-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-risk-notice p {
    margin: 0;
    font-size: 12px;
    line-height: 1.65;
    color: #f0c36a;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.hero-metric {
    text-align: left;
    padding: 12px 14px;
    background: var(--terminal-panel);
    border-radius: 2px;
    border: 1px solid var(--terminal-border);
}

.hero-metric.primary {
    background: var(--terminal-panel-soft);
    border-color: rgba(245, 158, 11, 0.45);
}

.hero-metric .metric-label {
    font-size: 11px;
    color: var(--terminal-text-dim);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-metric .metric-value {
    font-size: 24px;
    font-weight: 700;
}

.hero-metric .metric-value.positive {
    color: var(--terminal-positive);
}

.hero-metric .metric-value.negative {
    color: var(--terminal-negative);
}

.hero-metric .metric-value.neutral {
    color: #eef2f7;
}

.hero-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-actions .btn {
    padding: 9px 14px;
    border-radius: 2px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 11px;
}

.hero-actions .btn-primary {
    background: var(--terminal-accent);
    color: #111827;
    border: 1px solid #f7b84d;
}

.hero-actions .btn-primary:hover {
    background: #f7b84d;
}

.hero-actions .btn-secondary {
    background: transparent;
    color: var(--terminal-text);
    border: 1px solid var(--terminal-border-strong);
}

.hero-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* ========================================
   Share Sections - 通用区块
   ======================================== */
.share-section {
    background: var(--terminal-panel);
    border-radius: 2px;
    padding: 20px;
    margin-bottom: 14px;
    border: 1px solid var(--terminal-border);
    box-shadow: none;
}

.section-container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #f4f7fb;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.section-summary {
    font-size: 11px;
    color: var(--terminal-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.view-all-link {
    font-size: 11px;
    color: var(--terminal-accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* ========================================
   Metrics Grid - 指标卡片
   ======================================== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.metric-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: var(--terminal-panel-soft);
    border-radius: 2px;
    border: 1px solid var(--terminal-border);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.metric-card:hover {
    border-color: var(--terminal-border-strong);
    background: #1a2431;
}

.metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.metric-icon.return { background: rgba(245, 158, 11, 0.12); color: var(--terminal-accent); }
.metric-icon.annual { background: rgba(0, 193, 118, 0.12); color: var(--terminal-positive); }
.metric-icon.drawdown { background: rgba(255, 92, 92, 0.12); color: var(--terminal-negative); }
.metric-icon.sharpe { background: rgba(127, 179, 255, 0.12); color: var(--terminal-info); }
.metric-icon.winrate { background: rgba(245, 158, 11, 0.12); color: var(--terminal-accent); }
.metric-icon.positions { background: rgba(255, 255, 255, 0.05); color: var(--terminal-text-muted); }

.metric-content {
    flex: 1;
}

.metric-name {
    font-size: 11px;
    color: var(--terminal-text-dim);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--terminal-text);
}

.metric-value.positive { color: var(--terminal-positive); }
.metric-value.negative { color: var(--terminal-negative); }
.metric-value.neutral { color: var(--terminal-text); }

.metric-sub {
    font-size: 11px;
    color: var(--terminal-text-dim);
    margin-top: 4px;
}

/* ========================================
   Chart Section - 图表
   ======================================== */
.chart-controls {
    display: flex;
    gap: 4px;
    background: var(--chart-controls-bg);
    padding: 4px;
    border-radius: 2px;
    border: 1px solid var(--terminal-border);
}

.chart-period-btn {
    padding: 6px 16px;
    border: none;
    background: transparent;
    color: var(--terminal-text-dim);
    font-size: 11px;
    font-weight: 600;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-period-btn.active,
.chart-period-btn:hover {
    background: var(--terminal-accent);
    color: #111827;
    box-shadow: none;
}

.chart-container {
    background: var(--chart-panel-bg);
    border-radius: 2px;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--terminal-border);
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--terminal-text-muted);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-color.portfolio { background: var(--terminal-accent); }
.legend-color.benchmark { background: var(--terminal-text-dim); }

/* ========================================
   Positions Table - 持仓表格
   ======================================== */
.positions-table-wrapper {
    overflow-x: auto;
    border-radius: 2px;
    border: 1px solid var(--terminal-border);
    background: #0e141c;
}

.positions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.positions-table thead {
    background: #151c26;
}

.positions-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--terminal-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.positions-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #1b2430;
    color: var(--terminal-text);
}

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

.positions-table tbody tr:hover {
    background: #131a23;
}

.position-code {
    font-weight: 600;
    color: var(--terminal-accent);
}

.position-type,
.position-notes {
    color: var(--terminal-text-muted);
}

.position-notes {
    min-width: 180px;
    max-width: 240px;
    white-space: normal;
    line-height: 1.5;
}

.position-pnl.positive,
.position-return.positive {
    color: var(--terminal-positive);
}

.position-pnl.negative,
.position-return.negative {
    color: var(--terminal-negative);
}

.weight-bar {
    width: 60px;
    height: 6px;
    background: #26313d;
    border-radius: 2px;
    overflow: hidden;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

.weight-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--terminal-accent), #fbbf24);
    border-radius: 2px;
}

.weight-value {
    font-size: 11px;
    color: var(--terminal-text-muted);
}

.positions-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 24px;
    padding: 14px;
    background: var(--allocation-surface);
    border-radius: 2px;
    border: 1px solid var(--terminal-border);
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 2px;
}

.summary-label {
    font-size: 11px;
    color: var(--terminal-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.summary-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--terminal-text);
}

.summary-value.positive { color: var(--terminal-positive); }
.summary-value.negative { color: var(--terminal-negative); }
.summary-value.highlight { color: var(--terminal-accent); font-size: 20px; }

.asset-allocation-panel {
    margin-top: 24px;
    padding: 18px;
    background: var(--allocation-surface);
    border: 1px solid var(--terminal-border);
    border-radius: 2px;
}

.asset-allocation-header {
    margin-bottom: 14px;
}

.asset-allocation-title {
    margin: 0 0 4px;
    font-size: 14px;
    color: #f4f7fb;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.asset-allocation-caption {
    margin: 0;
    font-size: 11px;
    color: var(--terminal-text-dim);
}

.asset-allocation-layout {
    display: grid;
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.asset-allocation-chart-shell {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 2px;
}

.asset-allocation-chart {
    width: 100%;
    height: 260px;
}

.asset-allocation-list {
    display: grid;
    gap: 10px;
}

.asset-allocation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.02);
}

.asset-allocation-item-main,
.asset-allocation-item-side {
    display: flex;
    align-items: center;
    gap: 10px;
}

.asset-allocation-item-side {
    margin-left: auto;
}

.asset-allocation-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.asset-type-equity { background: var(--allocation-color-equity); }
.asset-type-fund { background: var(--allocation-color-fund); }
.asset-type-bond { background: var(--allocation-color-bond); }
.asset-type-cash { background: var(--allocation-color-cash); }
.asset-type-other { background: var(--allocation-color-other); }

.asset-allocation-name {
    color: var(--terminal-text);
    font-weight: 600;
}

.asset-allocation-pct {
    color: var(--terminal-accent);
    font-weight: 700;
    min-width: 52px;
    text-align: right;
}

.asset-allocation-value {
    color: var(--terminal-text-muted);
    min-width: 88px;
    text-align: right;
    font-size: 12px;
}

/* ========================================
   Transactions List - 交易列表
   ======================================== */
.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #0f151d;
    border-radius: 2px;
    transition: background-color 0.15s ease;
    border: 1px solid var(--terminal-border);
}

.transaction-item:hover {
    background: #141b25;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.transaction-icon.buy { background: rgba(0, 193, 118, 0.12); color: var(--terminal-positive); }
.transaction-icon.sell { background: rgba(255, 92, 92, 0.12); color: var(--terminal-negative); }

.transaction-content {
    flex: 1;
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.transaction-asset {
    font-weight: 600;
    color: var(--terminal-text);
}

.transaction-action {
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
}

.transaction-action.buy { background: rgba(0, 193, 118, 0.12); color: var(--terminal-positive); }
.transaction-action.sell { background: rgba(255, 92, 92, 0.12); color: var(--terminal-negative); }

.transaction-details {
    display: flex;
    gap: 16px;
    margin-bottom: 6px;
}

.transaction-detail {
    font-size: 12px;
    color: var(--terminal-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.transaction-time {
    font-size: 11px;
    color: var(--terminal-text-dim);
}

/* ========================================
   Decisions List - 决策列表
   ======================================== */
.decision-badge {
    padding: 5px 10px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--terminal-accent);
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.decisions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.decision-card {
    padding: 16px;
    border-radius: 2px;
    border: 1px solid var(--terminal-border);
    transition: border-color 0.15s ease;
    background: #0f151d;
}

.decision-card:hover {
    border-color: var(--terminal-border-strong);
}

.decision-card.status-pending {
    border-left: 3px solid var(--terminal-accent);
}

.decision-card.status-approved {
    border-left: 3px solid var(--terminal-positive);
}

.decision-card.status-rejected {
    border-left: 3px solid var(--terminal-negative);
}

.decision-card.status-executed {
    border-left: 3px solid var(--terminal-info);
}

.decision-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.decision-title {
    font-weight: 600;
    color: #f4f7fb;
}

.decision-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--terminal-text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.status-pending { background: var(--terminal-accent); }
.status-dot.status-approved { background: var(--terminal-positive); }
.status-dot.status-rejected { background: var(--terminal-negative); }
.status-dot.status-executed { background: var(--terminal-info); }

.decision-description {
    color: var(--terminal-text-muted);
    margin-bottom: 12px;
}

.decision-rationale {
    padding: 12px;
    background: #161d27;
    border-radius: 2px;
    font-size: 12px;
    color: var(--terminal-text-muted);
    border: 1px solid var(--terminal-border);
}

.decision-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--terminal-text-dim);
    margin-top: 12px;
}

/* ========================================
   Regime Info - 宏观环境信息
   ======================================== */
.regime-info {
    margin-top: 24px;
    padding: 16px;
    background: #0f151d;
    border-radius: 2px;
    border: 1px solid var(--terminal-border);
}

.regime-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--terminal-accent);
    margin-bottom: 16px;
}

.regime-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.regime-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.regime-label {
    font-size: 10px;
    color: var(--terminal-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.regime-value {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 2px;
    text-align: center;
}

.regime-value.growth-up { background: rgba(0, 193, 118, 0.12); color: var(--terminal-positive); }
.regime-value.growth-down { background: rgba(255, 92, 92, 0.12); color: var(--terminal-negative); }
.regime-value.growth-neutral { background: rgba(255, 255, 255, 0.05); color: var(--terminal-text-muted); }

.regime-value.inflation-up { background: rgba(255, 92, 92, 0.12); color: var(--terminal-negative); }
.regime-value.inflation-down { background: rgba(127, 179, 255, 0.12); color: var(--terminal-info); }
.regime-value.inflation-neutral { background: rgba(255, 255, 255, 0.05); color: var(--terminal-text-muted); }

.regime-value.regime-recovery { background: rgba(127, 179, 255, 0.12); color: var(--terminal-info); }
.regime-value.regime-overheat { background: rgba(255, 92, 92, 0.12); color: var(--terminal-negative); }
.regime-value.regime-stagflation { background: rgba(245, 158, 11, 0.12); color: var(--terminal-accent); }
.regime-value.regime-deflation { background: rgba(0, 193, 118, 0.12); color: var(--terminal-positive); }

/* ========================================
   Disclaimer - 风险提示
   ======================================== */
.disclaimer-section {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 18px;
    border: 0;
}

.disclaimer-card {
    padding: 24px;
    background: #111821;
    border-radius: 2px;
    border: 1px solid var(--terminal-border);
}

.disclaimer-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--terminal-accent);
    margin-bottom: 16px;
}

.disclaimer-content {
    font-size: 12px;
    color: var(--terminal-text-muted);
    line-height: 1.8;
}

.disclaimer-list {
    margin: 0;
    padding-left: 20px;
}

.disclaimer-list li {
    margin-bottom: 8px;
}

.disclaimer-list li:last-child {
    margin-bottom: 0;
}

.disclaimer-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--terminal-border);
    font-size: 11px;
    color: var(--terminal-text-dim);
    text-align: left;
}

/* ========================================
   Footer - 页脚
   ======================================== */
.share-footer {
    background: #0d131b;
    color: var(--terminal-text-dim);
    padding: 22px 20px;
    margin-top: 24px;
    border-top: 1px solid var(--terminal-border);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.footer-content p {
    font-size: 11px;
    margin-bottom: 8px;
}

.footer-brand a {
    color: var(--terminal-accent);
    text-decoration: none;
}

.footer-brand a:hover {
    text-decoration: underline;
}

/* ========================================
   Modal - 模态框
   ======================================== */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.share-modal-overlay[hidden] {
    display: none !important;
}

.share-modal {
    background: var(--terminal-panel);
    border-radius: 2px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    border: 1px solid var(--terminal-border-strong);
}

.modal-header {
    padding: 24px 24px 16px;
    text-align: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #f4f7fb;
    margin-bottom: 4px;
}

.modal-subtitle {
    font-size: 13px;
    color: var(--terminal-text-muted);
}

.modal-body {
    padding: 0 24px 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--terminal-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--terminal-border-strong);
    border-radius: 2px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #0d131b;
    color: var(--terminal-text);
}

.form-input:focus {
    outline: none;
    border-color: var(--terminal-accent);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.16);
}

.form-hint {
    font-size: 12px;
    margin-top: 6px;
    color: var(--terminal-negative);
    display: none;
}

.form-hint.error {
    display: block;
}

.modal-actions {
    display: flex;
    justify-content: center;
    padding: 0 24px 24px;
}

.disclaimer-confirm-btn {
    min-width: 200px;
    justify-content: center;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-icon {
    margin-left: 6px;
}

/* ========================================
   Empty State - 空状态
   ======================================== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    border: 1px dashed var(--terminal-border-strong);
    background: #0f151d;
    border-radius: 2px;
}

.empty-icon {
    font-size: 36px;
    color: #4b5563;
    margin-bottom: 16px;
}

.empty-text {
    font-size: 14px;
    color: var(--terminal-text-muted);
}

/* ========================================
   Theme Overrides - 大富翁游戏风格
   ======================================== */
.theme-monopoly {
    --terminal-bg: #f6e7b2;
    --terminal-panel: #fff8e6;
    --terminal-panel-soft: #fff2cc;
    --terminal-border: #d5b56d;
    --terminal-border-strong: #b98b2f;
    --terminal-text: #3f2a14;
    --terminal-text-muted: #7b5b29;
    --terminal-text-dim: #9a7a43;
    --terminal-accent: #cf8a16;
    --terminal-accent-soft: rgba(207, 138, 22, 0.14);
    --terminal-positive: #1d8f4e;
    --terminal-negative: #b73c2f;
    --terminal-info: #1f6fb5;
    --chart-panel-bg: transparent;
    --chart-controls-bg: rgba(255, 255, 255, 0.45);
    --chart-grid-color: rgba(185, 139, 47, 0.16);
    --chart-axis-color: rgba(185, 139, 47, 0.45);
    --chart-label-color: #7b5b29;
    --chart-tooltip-bg: rgba(255, 250, 235, 0.98);
    --chart-tooltip-border: rgba(185, 139, 47, 0.55);
    --chart-tooltip-text: #5b3a12;
    --chart-benchmark-color: #8f6b2b;
    --chart-portfolio-area-start: rgba(207, 138, 22, 0.18);
    --chart-portfolio-area-end: rgba(207, 138, 22, 0.01);
    --allocation-surface: #fff5cf;
    --allocation-color-equity: #ef4444;
    --allocation-color-fund: #22c55e;
    --allocation-color-bond: #3b82f6;
    --allocation-color-cash: #f59e0b;
    --allocation-color-other: #8b5cf6;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.55), transparent 28%),
        linear-gradient(180deg, #f7e7a8 0%, #e7c96f 100%);
}

.theme-monopoly .share-container {
    padding-top: 12px;
}

.theme-monopoly .share-hero {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.38) 0, rgba(255, 255, 255, 0.12) 100%),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.12) 0,
            rgba(255, 255, 255, 0.12) 26px,
            rgba(207, 138, 22, 0.08) 26px,
            rgba(207, 138, 22, 0.08) 52px
        );
    border: 2px solid var(--terminal-border-strong);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(120, 79, 18, 0.14);
    margin-top: 10px;
    margin-bottom: 20px;
}

.theme-monopoly .share-hero::after {
    content: none;
}

.theme-monopoly .hero-title,
.theme-monopoly .section-title {
    color: #6b3e0f;
    letter-spacing: 0.03em;
}

.theme-monopoly .hero-description,
.theme-monopoly .section-summary,
.theme-monopoly .hero-updated,
.theme-monopoly .metric-sub,
.theme-monopoly .empty-text {
    color: var(--terminal-text-muted);
}

.theme-monopoly .badge,
.theme-monopoly .decision-badge,
.theme-monopoly .transaction-action,
.theme-monopoly .chart-period-btn,
.theme-monopoly .view-all-link {
    border-radius: 999px;
}

.theme-monopoly .chart-container {
    border-width: 2px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.theme-monopoly .badge-real,
.theme-monopoly .badge-simulated,
.theme-monopoly .badge-public,
.theme-monopoly .badge-private,
.theme-monopoly .badge-observation {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(120, 79, 18, 0.22);
    color: #7b4b10;
}

.theme-monopoly .hero-risk-notice {
    background: rgba(255, 251, 235, 0.92);
    border: 2px dashed rgba(185, 139, 47, 0.7);
    border-left-width: 2px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.theme-monopoly .hero-risk-title,
.theme-monopoly .hero-risk-notice p {
    color: #9a5b10;
}

.theme-monopoly .hero-metric,
.theme-monopoly .share-section,
.theme-monopoly .metric-card,
.theme-monopoly .transaction-item,
.theme-monopoly .decision-card,
.theme-monopoly .disclaimer-card,
.theme-monopoly .empty-state {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 248, 230, 0.98) 100%);
    border: 2px solid rgba(185, 139, 47, 0.42);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(120, 79, 18, 0.08);
}

.theme-monopoly .hero-metric.primary {
    background: linear-gradient(180deg, #fff7db 0%, #ffe49b 100%);
    border-color: rgba(207, 138, 22, 0.7);
}

.theme-monopoly .metric-icon,
.theme-monopoly .transaction-icon {
    border-radius: 18px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.theme-monopoly .positions-table-wrapper {
    border-radius: 18px;
    border-width: 2px;
    background: rgba(255, 255, 255, 0.72);
}

.theme-monopoly .positions-summary,
.theme-monopoly .asset-allocation-panel {
    background: #fff5cf;
    border-color: rgba(122, 92, 22, 0.18);
}

.theme-monopoly .summary-item,
.theme-monopoly .asset-allocation-chart-shell,
.theme-monopoly .asset-allocation-item {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(122, 92, 22, 0.12);
}

.theme-monopoly .asset-allocation-title {
    color: #5c4310;
}

.theme-monopoly .asset-allocation-caption,
.theme-monopoly .asset-allocation-name,
.theme-monopoly .asset-allocation-value {
    color: #6b4f16;
}

.theme-monopoly .disclaimer-card {
    background: #fff5cf;
    border-color: rgba(122, 92, 22, 0.18);
}

.theme-monopoly .disclaimer-header {
    color: #7a5c16;
}

.theme-monopoly .disclaimer-content,
.theme-monopoly .disclaimer-list,
.theme-monopoly .disclaimer-list li {
    color: #5c4310;
}

.theme-monopoly .positions-table thead {
    background: rgba(207, 138, 22, 0.14);
}

.theme-monopoly .positions-table tbody tr:hover,
.theme-monopoly .transaction-item:hover,
.theme-monopoly .decision-card:hover {
    background: rgba(255, 244, 214, 0.96);
}

.theme-monopoly .weight-bar,
.theme-monopoly .chart-loading,
.theme-monopoly .chart-placeholder {
    border-radius: 999px;
}

.theme-monopoly .hero-actions .btn,
.theme-monopoly .btn {
    border-radius: 999px;
}

.theme-monopoly .hero-actions .btn-primary {
    color: #4a2b08;
}

.theme-monopoly .share-footer {
    background: transparent;
    color: #6f542b;
}

/* ========================================
   Responsive Design - 响应式
   ======================================== */
@media (max-width: 768px) {
    .share-hero {
        padding: 24px 14px 18px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hero-metric .metric-value {
        font-size: 22px;
    }

    .share-section {
        padding: 16px;
        border-radius: 2px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .positions-table-wrapper {
        border-radius: 2px;
    }

    .positions-table th,
    .positions-table td {
        padding: 10px 12px;
        font-size: 12px;
    }

    .asset-allocation-layout {
        grid-template-columns: 1fr;
    }

    .asset-allocation-chart-shell,
    .asset-allocation-chart {
        min-height: 220px;
        height: 220px;
    }

    .asset-allocation-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .asset-allocation-item-side {
        margin-left: 0;
    }

    .weight-bar {
        display: none;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .chart-controls {
        width: 100%;
        overflow-x: auto;
    }

    .chart-period-btn {
        flex: 1;
        white-space: nowrap;
    }

    .transaction-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .transaction-details {
        flex-wrap: wrap;
        gap: 8px;
    }

    .regime-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
