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

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #f5f7fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 800px;
    width: 100%;
}

h1 {
    color: #1e4b69;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.subtitle {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.pyramid-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.annotations {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 320px;
    position: relative;
}

.annotation {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e4b69;
}

.annotation-arrow {
    font-size: 1.1rem;
}

.annotation-label {
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-top: 12px;
}

.right-annotations .annotation {
    flex-direction: row-reverse;
}

.pyramid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    max-width: 500px;
}

.pyramid-layer {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    border-radius: 8px;
    position: relative;
}

.pyramid-layer:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.layer-e2e {
    width: 40%;
    height: 90px;
    background: linear-gradient(135deg, #d35400, #e67e22);
    border-radius: 8px 8px 4px 4px;
}

.layer-integration {
    width: 68%;
    height: 100px;
    background: linear-gradient(135deg, #2471a3, #2e86c1);
}

.layer-unit {
    width: 96%;
    height: 120px;
    background: linear-gradient(135deg, #1e8449, #27ae60);
    border-radius: 4px 4px 8px 8px;
}

.layer-content {
    padding: 12px;
}

.layer-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.layer-brief {
    font-size: 0.8rem;
    opacity: 0.85;
}

.quantity-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.qty-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e4b69;
}

.qty-scale {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #666;
}

.qty-gradient {
    width: 200px;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, #e67e22, #2e86c1, #27ae60);
}

.detail-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: none;
    animation: fadeIn 0.3s ease;
}

.detail-card.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.detail-card h2 {
    color: #1e4b69;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.detail-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.stat {
    background: #f5f7fa;
    border-radius: 8px;
    padding: 10px 16px;
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e4b69;
}

.stat-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-examples h3 {
    color: #1e4b69;
    font-size: 1rem;
    margin-bottom: 8px;
}

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

.card-examples li {
    padding: 6px 0 6px 20px;
    position: relative;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

.card-examples li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: 700;
}

@media (max-width: 600px) {
    .pyramid-wrapper {
        flex-direction: column;
    }

    .annotations {
        flex-direction: row;
        height: auto;
        width: 100%;
        justify-content: space-around;
    }

    .layer-e2e { width: 50%; height: 70px; }
    .layer-integration { width: 75%; height: 80px; }
    .layer-unit { width: 100%; height: 90px; }

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

    h1 { font-size: 1.3rem; }
}
