/* ============================================================
   Legal Cases 插件样式  v1.1
   案例卡片化展示，与主题设计系统（深藏青/品牌蓝/衬线字体）统一
   ============================================================ */

.lc-case {
    --lc-primary: #16223d;
    --lc-accent: #0d6efd;
    --lc-accent-soft: #e7f1ff;
    --lc-text: #1f2937;
    --lc-muted: #6b7280;
    --lc-border: #e5e7eb;
    --lc-bg-soft: #f6f8fb;
    --lc-serif: 'Noto Serif SC', 'Songti SC', serif;
    --lc-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;

    position: relative;
    background: #fff;
    border: 1px solid var(--lc-border);
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    margin-bottom: 2.75rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.lc-case:hover {
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
}

/* ---------------- 案例头部 ---------------- */
.lc-case-head {
    padding: 1.9rem 2.2rem 1.6rem;
    background: linear-gradient(180deg, #fafcff 0%, #ffffff 100%);
    border-bottom: 1px solid #eef2f7;
}

.lc-case-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem 0.8rem;
    margin-bottom: 0.9rem;
}

.lc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.85rem;
    border-radius: 999px;
    font-family: var(--lc-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #fff;
    line-height: 1.4;
}

.lc-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
}

.lc-badge-civil    { background: #0d6efd; }
.lc-badge-criminal { background: #dc2626; }
.lc-badge-admin    { background: #0d9488; }
.lc-badge-ip       { background: #7c3aed; }
.lc-badge-commercial { background: #d97706; }
.lc-badge-other    { background: #6b7280; }

.lc-guide {
    display: inline-flex;
    align-items: center;
    padding: 0.26rem 0.8rem;
    border-radius: 999px;
    border: 1px dashed #cbd5e1;
    background: #fff;
    color: #475569;
    font-family: var(--lc-sans);
    font-size: 0.78rem;
}

.lc-case-link {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--lc-accent);
    font-family: var(--lc-sans);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lc-case-link .lc-link-arrow {
    transition: transform 0.2s ease;
}

.lc-case-link:hover {
    color: #0b5ed7;
    text-decoration: none;
}

.lc-case-link:hover .lc-link-arrow {
    transform: translateX(3px);
}

.lc-case-title {
    margin: 0 0 0.85rem;
    font-family: var(--lc-serif);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--lc-primary);
}

.lc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lc-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.24rem 0.75rem;
    border-radius: 999px;
    background: var(--lc-accent-soft);
    color: #1d4ed8;
    font-family: var(--lc-sans);
    font-size: 0.78rem;
    line-height: 1.5;
}

/* ---------------- 案例分节 ---------------- */
.lc-sections {
    padding: 1.6rem 2.2rem 2.2rem;
}

.lc-section {
    position: relative;
    margin-bottom: 1.15rem;
    padding: 1.25rem 1.5rem 1.35rem;
    background: var(--lc-bg-soft);
    border: 1px solid #eef1f6;
    border-radius: 14px;
    overflow: hidden;
}

.lc-section::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--lc-accent);
}

.lc-sec-head {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 0.8rem;
}

.lc-sec-ico {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    color: var(--lc-accent);
    background: var(--lc-accent-soft);
}

.lc-sec-ico svg {
    width: 21px;
    height: 21px;
}

.lc-sec-txt {
    flex: 1 1 auto;
    min-width: 0;
}

.lc-sec-title {
    margin: 0 0 0.15rem;
    font-family: var(--lc-serif);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--lc-primary);
    line-height: 1.4;
}

.lc-sec-sub {
    display: block;
    font-family: var(--lc-sans);
    font-size: 0.78rem;
    color: var(--lc-muted);
}

.lc-sec-no {
    flex: 0 0 auto;
    font-family: var(--lc-sans);
    font-size: 0.85rem;
    font-weight: 700;
    color: #c3cbdb;
    letter-spacing: 0.05em;
}

.lc-sec-body {
    font-size: 0.98rem;
    line-height: 1.85;
    color: var(--lc-text);
}

.lc-sec-body p {
    margin: 0 0 0.75rem;
}

.lc-sec-body p:last-child {
    margin-bottom: 0;
}

/* 各分节主题色 */
.lc-sec-basic_case::before        { background: #0d6efd; }
.lc-sec-basic_case .lc-sec-ico     { color: #0d6efd; background: #e7f1ff; }

.lc-sec-focus_points::before       { background: #6366f1; }
.lc-sec-focus_points .lc-sec-ico    { color: #6366f1; background: #eef2ff; }

.lc-sec-judgment_result::before    { background: #10b981; }
.lc-sec-judgment_result .lc-sec-ico { color: #10b981; background: #ecfdf5; }

.lc-sec-judgment_reason::before    { background: #f59e0b; }
.lc-sec-judgment_reason .lc-sec-ico { color: #d97706; background: #fffbeb; }

.lc-sec-legal_significance::before { background: #0ea5e9; }
.lc-sec-legal_significance .lc-sec-ico { color: #0ea5e9; background: #f0f9ff; }

/* 裁判结果：强调版式 */
.lc-sec-judgment_result {
    background: linear-gradient(180deg, #f6fef9 0%, #f0fdf6 100%);
    border-color: #d1fae5;
}

.lc-sec-judgment_result .lc-sec-title {
    color: #065f46;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 640px) {
    .lc-case-head {
        padding: 1.4rem 1.25rem 1.2rem;
    }
    .lc-sections {
        padding: 1.1rem 1.25rem 1.5rem;
    }
    .lc-case-title {
        font-size: 1.22rem;
    }
    .lc-case-meta {
        gap: 0.45rem;
    }
    .lc-case-link {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }
    .lc-section {
        padding: 1.05rem 1.1rem 1.15rem;
    }
    .lc-sec-ico {
        width: 36px;
        height: 36px;
    }
    .lc-sec-ico svg {
        width: 19px;
        height: 19px;
    }
}
