/**
 * D4/D5 策略中心 — 样式表
 *
 * CSS 前缀: asc-
 *
 * 架构基线: .workbuddy/specs/acquisition-ai-capabilities/03-phase3-architecture.md
 */

/* ═══════════════════════════════════════════════════
   布局容器
   ═══════════════════════════════════════════════════ */

.asc-page {
    padding: 24px;
    max-width: 1440px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════
   页面头部
   ═══════════════════════════════════════════════════ */

.asc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.asc-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.asc-subtitle {
    font-size: 13px;
    color: #8c8c8c;
    margin-top: 4px;
    font-weight: normal;
}

.asc-header-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   通用按钮
   ═══════════════════════════════════════════════════ */

.asc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.asc-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.asc-btn-primary {
    background: #1a56db;
    color: #fff;
    border-color: #1a56db;
}

.asc-btn-primary:hover:not(:disabled) {
    background: #1e40af;
    border-color: #1e40af;
}

.asc-btn-success {
    background: #059669;
    color: #fff;
    border-color: #059669;
}

.asc-btn-success:hover:not(:disabled) {
    background: #047857;
    border-color: #047857;
}

.asc-btn-outline {
    background: #fff;
    color: #374151;
    border-color: #d1d5db;
}

.asc-btn-outline:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* ═══════════════════════════════════════════════════
   Tab 切换
   ═══════════════════════════════════════════════════ */

.asc-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
}

.asc-tab {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.asc-tab:hover {
    color: #374151;
}

.asc-tab-active {
    color: #1a56db;
    border-bottom-color: #1a56db;
}

/* ═══════════════════════════════════════════════════
   加载 / 空状态 / 错误
   ═══════════════════════════════════════════════════ */

.asc-loading {
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.asc-skeleton {
    height: 20px;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: asc-shimmer 1.5s infinite;
    border-radius: 4px;
}

.asc-skeleton-short {
    width: 60%;
}

@keyframes asc-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.asc-empty {
    padding: 64px 24px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px dashed #d1d5db;
}

.asc-error {
    padding: 32px 24px;
    text-align: center;
    color: #dc2626;
    font-size: 14px;
    background: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

/* ═══════════════════════════════════════════════════
   执行摘要
   ═══════════════════════════════════════════════════ */

.asc-exec-summary {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.asc-exec-summary h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e3a5f;
    margin: 0 0 12px 0;
}

.asc-exec-summary p {
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
    margin: 0;
}

.asc-meta {
    margin-top: 12px;
    font-size: 12px;
    color: #9ca3af;
}

/* ═══════════════════════════════════════════════════
   SWOT 市场定位分析
   ═══════════════════════════════════════════════════ */

.asc-swot {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.asc-swot h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.asc-swot-assessment {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.asc-swot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .asc-swot-grid {
        grid-template-columns: 1fr;
    }
}

.asc-swot-item {
    border-radius: 8px;
    padding: 16px;
    border: 1px solid transparent;
}

.asc-swot-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.asc-swot-item ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
}

.asc-swot-strength {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.asc-swot-strength h4 { color: #16a34a; }

.asc-swot-weakness {
    background: #fef2f2;
    border-color: #fecaca;
}

.asc-swot-weakness h4 { color: #dc2626; }

.asc-swot-opportunity {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.asc-swot-opportunity h4 { color: #2563eb; }

.asc-swot-threat {
    background: #fefce8;
    border-color: #fde68a;
}

.asc-swot-threat h4 { color: #d97706; }

/* ═══════════════════════════════════════════════════
   策略区块标题
   ═══════════════════════════════════════════════════ */

.asc-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

/* ═══════════════════════════════════════════════════
   策略卡片网格
   ═══════════════════════════════════════════════════ */

.asc-strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .asc-strategy-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════
   策略卡片
   ═══════════════════════════════════════════════════ */

.asc-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.asc-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: #d1d5db;
}

.asc-card-adopted {
    border-color: #bbf7d0;
    background: #fafdfb;
}

.asc-card-dismissed {
    border-color: #e5e7eb;
    background: #fafafa;
    opacity: 0.75;
}

.asc-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.asc-card-category {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.asc-card-timeline {
    font-size: 12px;
    color: #9ca3af;
}

.asc-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.asc-card-desc {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 12px 0;
    flex: 1;
}

.asc-card-impact {
    font-size: 12px;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 8px;
}

.asc-card-kpi {
    font-size: 12px;
    color: #059669;
    margin-bottom: 8px;
    font-weight: 500;
}

.asc-card-actions {
    margin: 0 0 12px 0;
    padding-left: 18px;
    font-size: 12px;
    line-height: 1.7;
    color: #6b7280;
}

/* 策略卡片 — 采纳/驳回操作栏 */
.asc-card-actions-bar {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.asc-btn-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 5px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}

.asc-btn-mini-success {
    background: #059669;
    color: #fff;
    border-color: #059669;
}

.asc-btn-mini-success:hover {
    background: #047857;
}

.asc-btn-mini-outline {
    background: #fff;
    color: #6b7280;
    border-color: #d1d5db;
}

.asc-btn-mini-outline:hover {
    background: #f9fafb;
    color: #374151;
}

.asc-card-status-label {
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
}

.asc-status-adopted {
    color: #059669;
}

.asc-status-dismissed {
    color: #9ca3af;
}

/* ═══════════════════════════════════════════════════
   风险评估
   ═══════════════════════════════════════════════════ */

.asc-risk-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.asc-risk-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.asc-risk-level {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.asc-risk-low    { background: #f0fdf4; color: #16a34a; }
.asc-risk-medium { background: #fefce8; color: #d97706; }
.asc-risk-high   { background: #fef2f2; color: #dc2626; }

.asc-risk-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.asc-risk-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 12px;
    background: #fafafa;
    border-radius: 6px;
}

.asc-risk-prob {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.asc-risk-prob.asc-risk-low    { background: #bbf7d0; color: #166534; }
.asc-risk-prob.asc-risk-medium { background: #fde68a; color: #92400e; }
.asc-risk-prob.asc-risk-high   { background: #fecaca; color: #991b1b; }

.asc-risk-desc {
    flex: 1;
    color: #1f2937;
    min-width: 0;
}

.asc-risk-mitigation {
    font-size: 12px;
    color: #6b7280;
    flex-shrink: 0;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════
   经营重点横幅
   ═══════════════════════════════════════════════════ */

.asc-focus-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
    border-radius: 10px;
    padding: 16px 24px;
    font-size: 14px;
    color: #92400e;
    margin-bottom: 24px;
    line-height: 1.6;
}

.asc-focus-banner strong {
    color: #78350f;
}

/* ═══════════════════════════════════════════════════
   D5 运营策略容器
   ═══════════════════════════════════════════════════ */

.asc-ops-container {
    min-height: 400px;
}

/* ═══════════════════════════════════════════════════
   D4 内容区包裹
   ═══════════════════════════════════════════════════ */

.asc-biz-content {
    padding-bottom: 32px;
}

/* ═══════════════════════════════════════════════════
   响应式适配
   ═══════════════════════════════════════════════════ */

@media (max-width: 640px) {
    .asc-page {
        padding: 16px;
    }

    .asc-header {
        flex-direction: column;
        gap: 12px;
    }

    .asc-tab {
        padding: 8px 16px;
        font-size: 13px;
    }

    .asc-risk-item {
        flex-direction: column;
        gap: 4px;
    }

    .asc-risk-mitigation {
        max-width: none;
    }
}
