/* 商业模式画布详情页样式 */

/* 基础样式 */
.bmc-detail-header {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.bmc-detail-header h2 {
    color: #212529;
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 10px;
}

.bmc-detail-meta {
    font-size: 0.9rem;
}

.bmc-meta-bar {
    font-size: 0.9rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* 画布标题样式 */
.bmc-canvas-title {
    margin-bottom: 25px;
    text-align: center;
}

.bmc-canvas-title h3 {
    font-weight: 600;
    color: #343a40;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 3px solid #0d6efd;
}

.bmc-canvas-title p {
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 标签样式 */
.bmc-tag {
    display: inline-block;
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 8px;
    border: 1px solid rgba(13, 110, 253, 0.2);
    transition: all 0.3s ease;
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    font-weight: 500;
}

.bmc-tag:hover {
    background-color: rgba(13, 110, 253, 0.2);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    cursor: default;
}

/* 内容区域样式 */
.bmc-content {
    font-size: 0.95rem;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
    align-content: flex-start;
    overflow-y: auto;
    margin-top: 10px;
    max-height: calc(100% - 40px);
}

/* 按钮样式 */
.action-buttons .btn {
    padding: 8px 18px;
    font-weight: 500;
    transition: all 0.25s;
    border-radius: 8px;
}

.action-buttons .btn i {
    margin-right: 5px;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

.btn-vote {
    background: transparent;
    border: none;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.2s;
}

.btn-vote-up:hover {
    color: #198754;
    background-color: rgba(25, 135, 84, 0.1);
}

.btn-vote-down:hover {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.follow-author {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* 商业模式画布布局 - 标准flex布局 */
.bmc-grid-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 40px; /* 增加底部间距 */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    height: auto;
}

.bmc-row {
    display: flex;
    width: 100%;
    gap: 10px;
}

.first-row .bmc-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 第二列和第四列内部模块均分高度 */
.column-2 .bmc-grid-item, .column-4 .bmc-grid-item {
    flex: none;
    height: 48%;
}

.second-row {
    display: flex;
    gap: 15px;
}

.second-row .bmc-column {
    flex: 1;
}

/* 画布区块基础样式 */
.bmc-grid-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bmc-grid-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.bmc-grid-item h5 {
    color: #0d6efd;
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

/* 不同区块的颜色区分 */
.key-partnerships {
    background-color: #f8f9fa;
}
.key-partnerships .bmc-tag {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border-color: rgba(108, 117, 125, 0.2);
}
.key-partnerships .bmc-content {
    max-height: 85%;
}

.key-activities {
    background-color: #e8f4f8;
}
.key-activities .bmc-tag {
    background-color: rgba(13, 202, 240, 0.1);
    color: #0dcaf0;
    border-color: rgba(13, 202, 240, 0.2);
}

.key-resources {
    background-color: #e8f0f8;
}
.key-resources .bmc-tag {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-color: rgba(13, 110, 253, 0.2);
}
.key-resources .bmc-content {
    max-height: 80%;
}

.value-propositions {
    background-color: #fff8e8;
    border: 2px solid #fd7e14;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.value-propositions h5 {
    color: #fd7e14;
    font-size: 1.4rem;
    border-bottom-color: #fd7e14;
    text-align: center;
    margin-bottom: 20px;
}
.value-propositions .bmc-tag {
    background-color: rgba(255, 193, 7, 0.1);
    color: #fd7e14;
    border-color: rgba(255, 193, 7, 0.2);
}
.value-propositions .bmc-content {
    justify-content: center;
    max-height: 85%;
}

.customer-segments {
    background-color: #f8e8e8;
}
.customer-segments .bmc-tag {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.2);
}
.customer-segments .bmc-content {
    max-height: 80%;
}

.customer-relationships {
    background-color: #f0f8e8;
}
.customer-relationships .bmc-tag {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
    border-color: rgba(25, 135, 84, 0.2);
}

.channels {
    background-color: #f0e8f8;
}
.channels .bmc-tag {
    background-color: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
    border-color: rgba(111, 66, 193, 0.2);
}

.cost-structure {
    background-color: #f0f0f0;
    border-right: 1px dashed #ccc;
}
.cost-structure .bmc-tag {
    background-color: rgba(33, 37, 41, 0.1);
    color: #212529;
    border-color: rgba(33, 37, 41, 0.2);
}
.cost-structure h5 {
    color: #495057;
    border-bottom-color: #495057;
}

.revenue-streams {
    background-color: #e8f8f0;
    border-left: 1px dashed #ccc;
}
.revenue-streams .bmc-tag {
    background-color: rgba(25, 135, 84, 0.1);
    color: #20c997;
    border-color: rgba(25, 135, 84, 0.2);
}
.revenue-streams h5 {
    color: #20c997;
    border-bottom-color: #20c997;
}

/* 作者卡片样式 */
.author-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.author-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.author-card .card-title,
.author-card .card-subtitle {
    font-size: 1.1rem;
    color: #495057;
    font-weight: 600;
}

.author-card .card-subtitle {
    font-size: 0.95rem;
}

.author-card .card-text {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
}

.author-profile {
    min-width: 220px;
}

.author-bio {
    position: relative;
}

.author-avatar img {
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.author-card .bg-light {
    background-color: #f8f9fa !important;
}

.author-card .border-right {
    border-right: 1px solid rgba(0,0,0,0.08) !important;
}

.author-card .text-muted {
    line-height: 1.6;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .bmc-grid-container {
        grid-template-columns: 50% 50%;
        grid-template-rows: auto;
        height: auto;
    }
}

@media (max-width: 768px) {
    .bmc-grid-container {
        grid-template-columns: 100%;
        grid-template-rows: auto;
        height: auto;
    }

    .bmc-grid-item {
        padding: 15px;
        margin-bottom: 15px;
    }

    .bmc-detail-header {
        padding: 15px;
    }

    .action-buttons {
        margin-top: 15px;
        text-align: left !important;
    }

    .action-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .bmc-tag {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .author-bio {
        border-left: none !important;
        padding-left: 0 !important;
        margin-top: 1rem !important;
    }

    .author-profile {
        width: 100%;
    }

    .author-card .border-right {
        border-right: none !important;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }
}

@media (max-width: 767.98px) {
    .author-bio {
        border-left: none !important;
        padding-left: 0 !important;
        margin-top: 1rem !important;
    }

    .author-profile {
        width: 100%;
    }
}