/**
 * 星途 V6.0 - 商业智慧板块专属样式
 * 继承 Nebula Glass 风格，融合黑金/玫瑰红配色
 */

:root {
    /* 商业专属配色 (更高级的黑金) */
    --mgmt-gold: #F59E0B;
    --mgmt-gold-glow: rgba(245, 158, 11, 0.4);
    --mgmt-red: #E11D48;
    --mgmt-red-glow: rgba(225, 29, 72, 0.4);
    
    /* 玻璃态变量重写 */
    --glass-bg: rgba(20, 24, 36, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* =========================================
   Hero Section 
   ========================================= */
.mgmt-hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 120px 2rem 4rem;
    overflow: hidden;
}

/* 动态背景光晕 (替代旧的 geo-shape) */
.mgmt-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--mgmt-gold-glow), transparent 70%);
    opacity: 0.4;
    filter: blur(80px);
    z-index: 0;
    animation: pulse-glow 10s infinite alternate;
}

.mgmt-hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--mgmt-red-glow), transparent 70%);
    opacity: 0.3;
    filter: blur(80px);
    z-index: 0;
    animation: pulse-glow 12s infinite alternate-reverse;
}

@keyframes pulse-glow {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.1); opacity: 0.5; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.mgmt-tag {
    color: var(--mgmt-gold);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: inline-block;
    font-size: 0.9rem;
}

.mgmt-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FFF 0%, #FFF 60%, var(--mgmt-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mgmt-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary-dark);
    max-width: 600px;
    line-height: 1.6;
    border-left: 4px solid var(--mgmt-gold);
    padding-left: 1.5rem;
}

/* =========================================
   Bento Grid Layout (优化版)
   ========================================= */
.framework-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.bento-container {
    display: grid;
    /* 桌面端 3 列 */
    grid-template-columns: repeat(3, 1fr);
    /* 自适应行高，最小 280px */
    grid-auto-rows: minmax(280px, auto);
    gap: 1.5rem;
}

/* 玻璃态卡片通用样式 */
.bento-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: rgba(30, 35, 50, 0.7);
}

/* 卡片布局修饰类 */
.bento-card.large {
    grid-column: span 2;
}

.bento-card.tall {
    grid-row: span 2;
}

/* 内容样式 */
.card-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    width: fit-content;
}

.card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
    color: #fff;
    margin-bottom: 0.5rem;
}

.card-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.card-desc {
    color: var(--text-secondary-dark);
    font-size: 1rem;
    line-height: 1.6;
}

/* 箭头动效 */
.card-arrow {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bento-card:hover .card-arrow {
    background: #fff;
    color: #000;
    transform: rotate(-45deg);
    border-color: #fff;
}

/* =========================================
   内页文章样式 (Doc Layout)
   ========================================= */
.doc-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 2rem 4rem;
}

.doc-header {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.doc-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.doc-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary-dark);
    line-height: 1.7;
    max-width: 800px;
}

.content-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.block-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.block-text {
    color: var(--text-secondary-dark);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* 高亮引用块 */
.highlight-box {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.1), transparent);
    border-left: 4px solid var(--mgmt-gold);
    padding: 1.5rem;
    margin: 1.5rem 0;
    color: #e2e8f0;
    border-radius: 0 8px 8px 0;
}

.quote-box {
    font-family: 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: #fff;
    text-align: center;
    margin: 4rem 0;
    opacity: 0.9;
    position: relative;
}

.quote-box::before, .quote-box::after {
    content: '"';
    font-size: 4rem;
    color: var(--mgmt-gold);
    opacity: 0.3;
    position: absolute;
    font-family: serif;
    line-height: 1;
}

.quote-box::before { top: -2rem; left: 50%; transform: translateX(-50px); }
.quote-box::after { bottom: -3rem; left: 50%; transform: translateX(30px); }

/* 侧边栏 */
.doc-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.toc-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.toc-link {
    display: block;
    padding: 0.75rem 0;
    color: var(--text-secondary-dark);
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.toc-link:last-child { border-bottom: none; }
.toc-link:hover { color: var(--mgmt-gold); padding-left: 5px; }

/* =========================================
   响应式调整
   ========================================= */
@media (max-width: 900px) {
    .bento-container {
        grid-template-columns: 1fr;
    }
    
    .bento-card.large, 
    .bento-card.tall {
        grid-column: span 1;
        grid-row: auto;
        min-height: 250px;
    }
    
    .doc-container {
        grid-template-columns: 1fr;
        padding-top: 100px;
    }
    
    .doc-sidebar {
        display: none;
    }
}
