/* Financial Forecast Chart Styles */
.financial-container {
    max-width: 1600px;
    margin: 0 auto;
}

.top-section {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 30px;
    margin-bottom: 30px;
}

.revenue-chart {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 15px;
    padding: 25px;
    border-left: 4px solid #ff6b35;
}

.chart-title {
    font-size: 20px;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 20px;
}

.chart-content {
    position: relative;
    height: 525px;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.line-chart {
    width: 100%;
    height: 100%;
}

.breakeven-line {
    stroke: #4CAF50;
    stroke-width: 2;
    stroke-dasharray: 10, 5;
    opacity: 0.8;
}

.revenue-line {
    stroke: #ff6b35;
    stroke-width: 4;
    fill: none;
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.6));
}

.revenue-area {
    fill: url(#gradient);
    opacity: 0.2;
}

.data-point {
    fill: #ff6b35;
    stroke: #fff;
    stroke-width: 3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.data-point:hover {
    r: 10;
    filter: drop-shadow(0 0 12px rgba(255, 107, 53, 0.8));
}

.breakeven-point {
    fill: #4CAF50;
    stroke: #fff;
    stroke-width: 3;
}

.data-label {
    fill: #ff6b35;
    font-size: 14px;
    font-weight: bold;
    text-anchor: middle;
}

.breakeven-label-text {
    fill: #4CAF50;
    font-size: 14px;
    font-weight: bold;
    text-anchor: middle;
}

.axis-label {
    fill: #999;
    font-size: 12px;
    text-anchor: middle;
}

.breakeven-badge {
    position: absolute;
    top: 20px;
    right: 30px;
    background: #4CAF50;
    color: white;
    padding: 6px 16px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.metric-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #ff6b35;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.metric-label {
    color: #999;
    font-size: 13px;
    margin-bottom: 8px;
}

.metric-value {
    color: #ff6b35;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.metric-subtitle {
    color: #ccc;
    font-size: 12px;
}

.metric-highlight {
    background: linear-gradient(135deg, #2a1a0a 0%, #3a2a1a 100%);
    border-left-color: #4CAF50;
}

.metric-highlight .metric-value {
    color: #4CAF50;
}

.cashflow-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 15px;
    padding: 25px;
    border-left: 4px solid #ff6b35;
}

.cashflow-bars {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    height: 150px;
    margin-top: 20px;
}

.cashflow-bar {
    flex: 1;
    background: linear-gradient(180deg, #666 0%, #888 100%);
    border-radius: 6px 6px 0 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 5px;
    transition: all 0.3s ease;
}

.cashflow-bar:hover {
    transform: translateY(-5px);
}

.cashflow-bar.positive {
    background: linear-gradient(180deg, #4CAF50 0%, #66BB6A 100%);
}

.cashflow-bar.warning {
    background: linear-gradient(180deg, #FFA726 0%, #FFB74D 100%);
}

.cashflow-value {
    color: white;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 5px;
}

.cashflow-label {
    color: #ccc;
    font-size: 11px;
    position: absolute;
    bottom: -25px;
    white-space: nowrap;
}

.financial-summary-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 40px;
}

.financial-summary-item {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.financial-summary-label {
    color: #999;
    font-size: 12px;
    margin-bottom: 8px;
}

.financial-summary-value {
    color: #ff6b35;
    font-size: 24px;
    font-weight: bold;
}

.financial-summary-item.positive .financial-summary-value {
    color: #4CAF50;
}

/* Responsive */
@media (max-width: 1200px) {
    .top-section {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    /* Financial Charts Mobile */
    .financial-container {
        padding: 0;
    }

    .revenue-chart,
    .cashflow-section {
        padding: 1rem;
        border-radius: 10px;
    }

    .chart-title {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .chart-content {
        height: 350px;
        padding: 15px 10px;
    }

    .data-label,
    .breakeven-label-text {
        font-size: 11px;
    }

    .axis-label {
        font-size: 10px;
    }

    .breakeven-badge {
        font-size: 11px;
        padding: 4px 10px;
        top: 10px;
        right: 10px;
    }

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

    .metric-card {
        padding: 15px;
    }

    .metric-label {
        font-size: 12px;
    }

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

    .metric-subtitle {
        font-size: 11px;
    }

    .cashflow-bars {
        height: 120px;
        gap: 10px;
    }

    .cashflow-value {
        font-size: 11px;
    }

    .cashflow-label {
        font-size: 10px;
        bottom: -22px;
    }

    .financial-summary-box {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 30px;
    }

    .financial-summary-item {
        padding: 12px;
    }

    .financial-summary-label {
        font-size: 11px;
    }

    .financial-summary-value {
        font-size: 20px;
    }
}

/* Tech Stack Chart Styles */
.tech-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 25px;
}

.main-layers {
    /* 左侧主要层 */
}

.ai-layer {
    /* 右侧AI算法层 */
}

.layer {
    margin-bottom: 8px;
}

.layer-title {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    padding-left: 5px;
}

.layer-number {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
    font-size: 16px;
}

.layer-name {
    font-size: 18px;
    font-weight: bold;
    color: #ff6b35;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.tech-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 10px;
    padding: 12px;
    border-left: 3px solid #ff6b35;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

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

.card-icon {
    font-size: 24px;
    margin-right: 8px;
}

.card-title {
    font-size: 15px;
    font-weight: bold;
    color: #fff;
}

.card-subtitle {
    font-size: 12px;
    color: #ff6b35;
    margin-top: 2px;
}

.card-content {
    color: #ccc;
    font-size: 12px;
    line-height: 1.5;
}

.card-content ul {
    list-style: none;
    padding: 0;
}

.card-content li {
    padding: 3px 0;
    padding-left: 16px;
    position: relative;
}

.card-content li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #ff6b35;
}

.badge {
    display: inline-block;
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
    margin-top: 6px;
    margin-right: 4px;
}

.highlight-card {
    border-left: 3px solid #ffa94d;
    background: linear-gradient(135deg, #2a1a0a 0%, #3a2a1a 100%);
}

.stats {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.stat {
    background: rgba(255, 107, 53, 0.1);
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 11px;
}

.stat-value {
    color: #ff6b35;
    font-weight: bold;
    margin-right: 5px;
}

.arrow-down {
    display: none;
}

.total-code {
    text-align: center;
    margin-top: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #2a1a0a 0%, #3a2a1a 100%);
    border-radius: 12px;
    border: 2px solid #ff6b35;
}

.total-code-number {
    font-size: 40px;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 6px;
}

.total-code-label {
    font-size: 13px;
    color: #ccc;
}

/* Tech Stack Responsive */
@media (max-width: 1200px) {
    .tech-container {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Tech Stack Mobile */
    .tech-container {
        gap: 15px;
    }

    .layer {
        margin-bottom: 12px;
    }

    .layer-title {
        padding-left: 0;
        margin-bottom: 8px;
    }

    .layer-number {
        width: 28px;
        height: 28px;
        font-size: 14px;
        margin-right: 8px;
    }

    .layer-name {
        font-size: 1rem;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tech-card {
        padding: 15px;
        border-left-width: 3px;
    }

    .card-header {
        margin-bottom: 10px;
    }

    .card-icon {
        font-size: 20px;
        margin-right: 6px;
    }

    .card-title {
        font-size: 0.95rem;
    }

    .card-subtitle {
        font-size: 0.75rem;
    }

    .card-content {
        font-size: 0.8rem;
    }

    .card-content li {
        padding: 4px 0;
        padding-left: 14px;
    }

    .badge {
        font-size: 9px;
        padding: 3px 6px;
        margin-top: 8px;
    }

    .stats {
        gap: 6px;
    }

    .stat {
        font-size: 10px;
        padding: 4px 6px;
    }

    .total-code {
        padding: 15px;
        margin-top: 15px;
    }

    .total-code-number {
        font-size: 32px;
    }

    .total-code-label {
        font-size: 12px;
    }
}
