/* ==========================================================
   Edition II 首页独有模块 - 扁平模块化风格
   深海蓝主题 - 极简卡片矩阵
   ========================================================== */

/* ========== 瀑布流特性卡片 ========== */
.waterfall-section {
    padding: 80px 20px;
}

.waterfall-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.waterfall-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 153, 255, 0.15);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.waterfall-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 0;
    background: var(--primary);
    transition: height 0.3s;
}

.waterfall-card:hover::after { height: 100%; }
.waterfall-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 153, 255, 0.2);
}

.waterfall-card.large {
    grid-column: span 6;
    min-height: 280px;
}

.waterfall-card.medium {
    grid-column: span 4;
    min-height: 220px;
}

.waterfall-card.small {
    grid-column: span 3;
    min-height: 180px;
}

.waterfall-card .icon-badge {
    width: 56px;
    height: 56px;
    background: rgba(0, 153, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 18px;
}

.waterfall-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--light);
}

.waterfall-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.waterfall-card .card-num {
    position: absolute;
    top: 20px; right: 25px;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 153, 255, 0.1);
}

/* ========== 数字展板 ========== */
.metrics-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, rgba(0, 153, 255, 0.03), transparent);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 40px auto 0;
}

.metric-card {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 153, 255, 0.2);
    border-radius: 16px;
    position: relative;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: -1px; left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}

.metric-value {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 10px;
}

.metric-unit {
    font-size: 1rem;
    color: var(--gray);
    margin-left: 4px;
}

.metric-label {
    color: var(--light);
    font-size: 1rem;
    margin-top: 8px;
}

.metric-trend {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 8px;
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ========== 仪表盘面板 ========== */
.dashboard-section {
    padding: 80px 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.dash-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 153, 255, 0.15);
    border-radius: 16px;
    padding: 25px;
}

.dash-panel h3 {
    color: var(--light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 200px;
    padding: 0 10px;
}

.dash-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--secondary), var(--primary));
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s;
}

.dash-bar:hover {
    opacity: 0.8;
    transform: scaleY(1.05);
}

.dash-bar-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--gray);
    white-space: nowrap;
}

.dash-circular {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.dash-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background:
        conic-gradient(var(--secondary) 0deg 320deg, rgba(255,255,255,0.05) 320deg 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dash-circle::before {
    content: '';
    position: absolute;
    inset: 12px;
    background: var(--darker);
    border-radius: 50%;
}

.dash-circle-num {
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--secondary);
}

.dash-circle-num small {
    font-size: 1rem;
    color: var(--gray);
}

/* ========== 对比矩阵 ========== */
.matrix-section {
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.02);
}

.matrix-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 15px;
    max-width: 1100px;
    margin: 40px auto 0;
}

.matrix-cell {
    padding: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 153, 255, 0.15);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
}

.matrix-cell.header {
    background: linear-gradient(135deg, rgba(0, 153, 255, 0.15), rgba(0, 255, 213, 0.1));
    font-weight: 700;
    color: var(--secondary);
}

.matrix-cell.highlight {
    background: linear-gradient(135deg, rgba(0, 153, 255, 0.2), rgba(0, 255, 213, 0.15));
    border-color: var(--primary);
    color: var(--secondary);
    font-weight: 700;
}

.matrix-cell:hover:not(.header) {
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ========== 推荐矩阵 ========== */
.rec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 40px auto 0;
}

.rec-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 153, 255, 0.2);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.rec-card.featured {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 153, 255, 0.2);
    transform: scale(1.05);
}

.rec-card.featured::before {
    content: '⭐ 推荐';
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.rec-card:hover {
    transform: translateY(-8px);
}

.rec-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.rec-card h3 {
    color: var(--light);
    margin-bottom: 12px;
}

.rec-card .quote {
    color: var(--gray);
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.rec-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.rec-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.rec-name {
    color: var(--light);
    font-weight: 600;
    font-size: 0.9rem;
}

.rec-role {
    color: var(--gray);
    font-size: 0.8rem;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .waterfall-card.large,
    .waterfall-card.medium,
    .waterfall-card.small {
        grid-column: span 12;
        min-height: auto;
    }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .matrix-grid { grid-template-columns: 1fr 1fr; font-size: 0.85rem; }
    .rec-grid { grid-template-columns: 1fr; }
    .rec-card.featured { transform: none; }
}
