/* ============================================================
   企业查询页 - company-search.css
   ============================================================ */

.cs-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0 60px;
}

/* ============================================================
   Hero
   ============================================================ */
.cs-hero {
    position: relative;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 18px;
    padding: 26px 32px;
    margin: 20px 0 24px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.cs-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #4a6cf7, #7c3aed);
    opacity: 0.7;
    border-radius: 18px 0 0 18px;
}
.cs-hero::after {
    content: '';
    position: absolute;
    right: -100px;
    bottom: -100px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(74, 108, 247, 0.05), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cs-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cs-hero-left {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 260px;
}

.cs-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #4a6cf7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    border: 1px solid #d0d9f0;
}

.cs-hero-text h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 4px;
    letter-spacing: 0.3px;
}
.cs-hero-text p {
    font-size: 13.5px;
    color: #718096;
    margin: 0;
    line-height: 1.6;
}

.cs-hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.cs-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    color: #4a5568;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 12px;
    border: 1px solid #eef2f6;
    transition: all 0.2s;
}
.cs-hero-tag i {
    color: #4a6cf7;
    font-size: 14px;
}

/* ============================================================
   搜索框
   ============================================================ */
.cs-search-box {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 22px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.cs-search-input-wrap {
    display: flex;
    align-items: center;
    background: #f7fafc;
    border: 1.5px solid #eef2f6;
    border-radius: 12px;
    padding: 4px;
    transition: all 0.25s;
}
.cs-search-input-wrap:focus-within {
    border-color: #4a6cf7;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(74, 108, 247, 0.08);
}

.cs-search-icon {
    font-size: 20px;
    color: #a0aec0;
    padding: 0 10px 0 16px;
    flex-shrink: 0;
}

.cs-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 8px;
    font-size: 15px;
    color: #1a202c;
    outline: none;
    font-family: inherit;
    min-width: 0;
}
.cs-search-input::placeholder {
    color: #a0aec0;
}

.cs-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 26px;
    background: linear-gradient(135deg, #4a6cf7, #6a8cff);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(74, 108, 247, 0.25);
}
.cs-search-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(74, 108, 247, 0.4);
}
.cs-search-btn:active:not(:disabled) {
    transform: translateY(0);
}
.cs-search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.cs-search-btn i { font-size: 16px; }

/* 热门关键词 */
.cs-hot-keywords {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
    font-size: 13px;
    padding-left: 6px;
}
.cs-hot-label {
    color: #a0aec0;
}
.cs-hot-item {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    background: #f1f4f9;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12.5px;
}
.cs-hot-item:hover {
    background: #e8edfc;
    color: #4a6cf7;
}

/* ============================================================
   结果区
   ============================================================ */
.cs-results-wrap {
    min-height: 300px;
}
.cs-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 空状态 */
.cs-empty-state {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 60px 24px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.cs-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: #4a6cf7;
}
.cs-empty-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 6px;
}
.cs-empty-desc {
    font-size: 13px;
    color: #a0aec0;
    margin: 0;
}

/* 加载中 */
.cs-loading-state,
.cs-error-state {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 50px 24px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.cs-loading-state i {
    font-size: 32px;
    color: #4a6cf7;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-bottom: 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cs-loading-state p,
.cs-error-state p {
    font-size: 14px;
    color: #718096;
    margin: 0;
}
.cs-error-state i {
    font-size: 32px;
    color: #e53e3e;
    display: inline-block;
    margin-bottom: 14px;
}
.cs-error-state p { color: #c53030; }

/* ============================================================
   结果卡片
   ============================================================ */
.cs-company-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 14px;
    padding: 18px 22px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}
.cs-company-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #4a6cf7, #7c3aed);
    opacity: 0;
    transition: opacity 0.25s;
}
.cs-company-card:hover {
    border-color: #4a6cf7;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 108, 247, 0.1);
}
.cs-company-card:hover::before {
    opacity: 1;
}

.cs-company-logo {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: #f7fafc;
    border: 1px solid #edf2f7;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cs-company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}
.cs-company-logo .cs-logo-placeholder {
    font-size: 22px;
    font-weight: 700;
    color: #4a6cf7;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-company-info {
    flex: 1;
    min-width: 0;
}

.cs-company-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.cs-company-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.4;
    transition: color 0.2s;
    word-break: break-all;
}
.cs-company-card:hover .cs-company-name {
    color: #4a6cf7;
}
.cs-company-status {
    display: inline-block;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
    flex-shrink: 0;
}
.cs-company-status.normal    { background: #f0fff4; color: #38a169; }
.cs-company-status.cancelled { background: #fff5f5; color: #e53e3e; }
.cs-company-status.revoked   { background: #fffbeb; color: #d69e2e; }
.cs-company-status.default   { background: #f1f4f9; color: #718096; }

.cs-company-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 13px;
    color: #718096;
    margin-bottom: 6px;
}
.cs-company-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.cs-company-meta i {
    font-size: 14px;
    color: #a0aec0;
}

.cs-company-scope {
    font-size: 12.5px;
    color: #a0aec0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cs-company-arrow {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f7fafc;
    color: #cbd5e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.25s;
}
.cs-company-card:hover .cs-company-arrow {
    background: #4a6cf7;
    color: #fff;
    transform: translateX(4px);
}

/* ============================================================
   弹窗
   ============================================================ */
.cs-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.cs-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.cs-modal {
    background: #ffffff;
    border-radius: 18px;
    width: 100%;
    max-width: 720px;
    max-height: 88vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    transform: translateY(16px);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cs-modal-overlay.active .cs-modal {
    transform: translateY(0);
}

.cs-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 26px 18px;
    border-bottom: 1px solid #f0f2f5;
    position: relative;
}
.cs-modal-logo {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: #f7fafc;
    border: 1px solid #edf2f7;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cs-modal-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}
.cs-modal-logo .cs-logo-placeholder {
    font-size: 24px;
    font-weight: 700;
    color: #4a6cf7;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cs-modal-title {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}
.cs-modal-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 8px;
    line-height: 1.4;
    word-break: break-all;
}
.cs-modal-status {
    display: inline-block;
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 600;
}
.cs-modal-status.normal    { background: #f0fff4; color: #38a169; }
.cs-modal-status.cancelled { background: #fff5f5; color: #e53e3e; }
.cs-modal-status.revoked   { background: #fffbeb; color: #d69e2e; }
.cs-modal-status.default   { background: #f1f4f9; color: #718096; }

.cs-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #a0aec0;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
    font-family: inherit;
}
.cs-modal-close:hover {
    background: #f1f4f9;
    color: #1a202c;
    transform: rotate(90deg);
}

.cs-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 22px 26px 26px;
}
.cs-modal-body::-webkit-scrollbar { width: 6px; }
.cs-modal-body::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 6px; }

/* 章节 */
.cs-modal-section {
    margin-bottom: 24px;
}
.cs-modal-section:last-child {
    margin-bottom: 0;
}
.cs-modal-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 14px;
    padding-left: 12px;
    border-left: 3px solid #4a6cf7;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cs-modal-section-title i {
    font-size: 16px;
    color: #4a6cf7;
}
.cs-modal-section-title .cs-section-count {
    font-size: 12px;
    font-weight: 400;
    color: #a0aec0;
    margin-left: 4px;
}

.cs-modal-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}
.cs-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.cs-field-label {
    font-size: 12px;
    color: #a0aec0;
    font-weight: 500;
}
.cs-field-value {
    font-size: 13.5px;
    color: #2d3748;
    line-height: 1.6;
    word-break: break-word;
}
.cs-field.full {
    grid-column: 1 / -1;
}
.cs-field.full .cs-field-value {
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.75;
    color: #4a5568;
    max-height: 200px;
    overflow-y: auto;
}
.cs-field.full .cs-field-value::-webkit-scrollbar { width: 4px; }
.cs-field.full .cs-field-value::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 4px; }

/* 表格 */
.cs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.cs-table th {
    text-align: left;
    padding: 10px 12px;
    background: #f8fafc;
    color: #718096;
    font-weight: 600;
    font-size: 12px;
    border-bottom: 1px solid #eef2f6;
}
.cs-table th:first-child { border-radius: 8px 0 0 0; }
.cs-table th:last-child  { border-radius: 0 8px 0 0; }
.cs-table td {
    padding: 10px 12px;
    color: #2d3748;
    border-bottom: 1px solid #f7fafc;
    vertical-align: top;
}
.cs-table tr:last-child td { border-bottom: none; }
.cs-table tr:hover td { background: #fafbfc; }

/* 风险 */
.cs-risk-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cs-risk-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}
.cs-risk-safe {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f0fff4, #e6fffa);
    border: 1px solid #c6f6d5;
    border-radius: 12px;
    color: #38a169;
    font-size: 14px;
    font-weight: 500;
}
.cs-risk-safe i {
    font-size: 22px;
}

/* 加载占位 */
.cs-modal-body .cs-loading {
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
    font-size: 14px;
}
.cs-modal-body .cs-loading i {
    font-size: 32px;
    color: #4a6cf7;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-bottom: 14px;
}
.cs-modal-body .cs-error {
    text-align: center;
    padding: 60px 20px;
    color: #e53e3e;
    font-size: 14px;
}
.cs-modal-body .cs-empty {
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
    font-size: 14px;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
    .cs-page {
        padding: 0 0 40px;
    }
    .cs-hero {
        padding: 20px 20px;
        margin: 12px 0 18px;
        border-radius: 14px;
    }
    .cs-hero-icon {
        width: 46px;
        height: 46px;
        font-size: 22px;
        border-radius: 12px;
    }
    .cs-hero-text h1 { font-size: 18px; }
    .cs-hero-text p { font-size: 12.5px; }
    .cs-hero-tags { display: none; }

    .cs-search-box {
        padding: 16px 16px;
        border-radius: 14px;
        margin-bottom: 16px;
    }
    .cs-search-input-wrap {
        flex-wrap: nowrap;
        padding: 3px;
    }
    .cs-search-icon {
        font-size: 18px;
        padding: 0 6px 0 12px;
    }
    .cs-search-input {
        padding: 11px 4px;
        font-size: 14px;
    }
    .cs-search-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    .cs-search-btn span { display: none; }
    .cs-search-btn i { font-size: 18px; }

    .cs-hot-keywords {
        margin-top: 12px;
        padding-left: 0;
        font-size: 12px;
    }
    .cs-hot-item {
        font-size: 12px;
        padding: 3px 10px;
    }

    .cs-empty-state,
    .cs-loading-state,
    .cs-error-state {
        padding: 40px 20px;
        border-radius: 14px;
    }
    .cs-empty-icon {
        width: 64px;
        height: 64px;
        font-size: 30px;
        margin-bottom: 14px;
    }

    .cs-company-card {
        padding: 14px 16px;
        gap: 12px;
        border-radius: 12px;
    }
    .cs-company-logo {
        width: 46px;
        height: 46px;
        border-radius: 10px;
    }
    .cs-company-logo .cs-logo-placeholder { font-size: 18px; }
    .cs-company-name { font-size: 14.5px; }
    .cs-company-meta {
        font-size: 12px;
        gap: 6px 14px;
        margin-bottom: 4px;
    }
    .cs-company-meta i { font-size: 13px; }
    .cs-company-scope {
        display: none;
    }
    .cs-company-arrow {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    /* 弹窗 */
    .cs-modal-overlay {
        padding: 12px;
        align-items: flex-end;
    }
    .cs-modal {
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        max-width: 100%;
    }
    .cs-modal-overlay.active .cs-modal {
        transform: translateY(0);
    }
    .cs-modal-header {
        padding: 18px 20px 14px;
        gap: 12px;
    }
    .cs-modal-logo {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }
    .cs-modal-title h3 { font-size: 15.5px; }
    .cs-modal-body { padding: 18px 20px 22px; }
    .cs-modal-fields {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .cs-modal-close {
        top: 12px;
        right: 12px;
        width: 30px;
        height: 30px;
        font-size: 22px;
    }
    .cs-modal-section { margin-bottom: 20px; }
    .cs-modal-section-title { font-size: 13.5px; }
    .cs-table { font-size: 12.5px; }
    .cs-table th, .cs-table td { padding: 8px 10px; }
}

@media (max-width: 420px) {
    .cs-company-meta { font-size: 11.5px; gap: 4px 10px; }
    .cs-company-name { font-size: 13.5px; }
    .cs-company-status { font-size: 10px; padding: 1px 8px; }
}

/* ============================================================
   深色模式
   ============================================================ */
body.dark-mode .cs-hero {
    background: #16213e;
    border-color: #2a3a5a;
}
body.dark-mode .cs-hero-icon {
    background: linear-gradient(135deg, #1e2a4a, #2a3a5a);
    color: #6a8cff;
    border-color: #3a4a6a;
}
body.dark-mode .cs-hero-text h1 { color: #e2e8f0; }
body.dark-mode .cs-hero-text p { color: #a0aec0; }
body.dark-mode .cs-hero-tag {
    background: #1a2a4a;
    color: #a0aec0;
    border-color: #2a3a5a;
}
body.dark-mode .cs-hero-tag i { color: #6a8cff; }

body.dark-mode .cs-search-box {
    background: #16213e;
    border-color: #2a3a5a;
}
body.dark-mode .cs-search-input-wrap {
    background: #1a2a4a;
    border-color: #2a3a5a;
}
body.dark-mode .cs-search-input-wrap:focus-within {
    border-color: #4a6cf7;
    background: #1a2a4a;
    box-shadow: 0 0 0 4px rgba(74, 108, 247, 0.15);
}
body.dark-mode .cs-search-input { color: #e2e8f0; }
body.dark-mode .cs-search-input::placeholder { color: #718096; }
body.dark-mode .cs-hot-label { color: #718096; }
body.dark-mode .cs-hot-item {
    background: #1a2a4a;
    color: #a0aec0;
}
body.dark-mode .cs-hot-item:hover {
    background: #2a3a5a;
    color: #6a8cff;
}

body.dark-mode .cs-empty-state,
body.dark-mode .cs-loading-state,
body.dark-mode .cs-error-state {
    background: #16213e;
    border-color: #2a3a5a;
}
body.dark-mode .cs-empty-icon {
    background: linear-gradient(135deg, #1e2a4a, #2a3a5a);
    color: #6a8cff;
}
body.dark-mode .cs-empty-title { color: #e2e8f0; }
body.dark-mode .cs-empty-desc { color: #718096; }

body.dark-mode .cs-company-card {
    background: #16213e;
    border-color: #2a3a5a;
}
body.dark-mode .cs-company-card:hover {
    background: #1a2a4a;
    border-color: #4a6cf7;
}
body.dark-mode .cs-company-logo {
    background: #1a2a4a;
    border-color: #2a3a5a;
}
body.dark-mode .cs-company-logo .cs-logo-placeholder {
    background: linear-gradient(135deg, #1e2a4a, #2a3a5a);
    color: #6a8cff;
}
body.dark-mode .cs-company-name { color: #e2e8f0; }
body.dark-mode .cs-company-card:hover .cs-company-name { color: #6a8cff; }
body.dark-mode .cs-company-meta { color: #a0aec0; }
body.dark-mode .cs-company-meta i { color: #718096; }
body.dark-mode .cs-company-scope { color: #718096; }
body.dark-mode .cs-company-arrow {
    background: #1a2a4a;
    color: #4a5568;
}
body.dark-mode .cs-company-card:hover .cs-company-arrow {
    background: #4a6cf7;
    color: #fff;
}

body.dark-mode .cs-modal {
    background: #16213e;
}
body.dark-mode .cs-modal-header {
    border-bottom-color: #2a3a5a;
}
body.dark-mode .cs-modal-logo {
    background: #1a2a4a;
    border-color: #2a3a5a;
}
body.dark-mode .cs-modal-logo .cs-logo-placeholder {
    background: linear-gradient(135deg, #1e2a4a, #2a3a5a);
    color: #6a8cff;
}
body.dark-mode .cs-modal-title h3 { color: #e2e8f0; }
body.dark-mode .cs-modal-close { color: #718096; }
body.dark-mode .cs-modal-close:hover { background: #2a3a5a; color: #e2e8f0; }

body.dark-mode .cs-modal-section-title {
    color: #e2e8f0;
    border-left-color: #6a8cff;
}
body.dark-mode .cs-modal-section-title i { color: #6a8cff; }
body.dark-mode .cs-field-label { color: #718096; }
body.dark-mode .cs-field-value { color: #cbd5e0; }
body.dark-mode .cs-field.full .cs-field-value {
    background: #1a2a4a;
    border-color: #2a3a5a;
    color: #a0aec0;
}
body.dark-mode .cs-table th {
    background: #1a2a4a;
    color: #718096;
    border-bottom-color: #2a3a5a;
}
body.dark-mode .cs-table td {
    color: #cbd5e0;
    border-bottom-color: #2a3a5a;
}
body.dark-mode .cs-table tr:hover td { background: #1e2a4a; }
body.dark-mode .cs-risk-safe {
    background: linear-gradient(135deg, #1a3a2a, #1a2a2a);
    border-color: #2f855a;
    color: #68d391;
}
/* ============================================================
   详情页（方案 B）
   ============================================================ */

.cs-detail-topbar {
    display: flex;
    align-items: center;
    margin: 20px 0 16px;
}

.cs-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 22px;
    color: #4a5568;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.cs-back-btn:hover {
    background: #f0f5ff;
    border-color: #4a6cf7;
    color: #4a6cf7;
    transform: translateX(-2px);
}
.cs-back-btn i { font-size: 15px; }

/* 企业头部卡片 */
.cs-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 26px 30px;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 18px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}
.cs-detail-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #4a6cf7, #7c3aed);
    border-radius: 18px 0 0 18px;
}

.cs-detail-header-logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: #f7fafc;
    border: 1px solid #edf2f7;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cs-detail-header-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}
.cs-detail-header-logo .cs-logo-placeholder {
    font-size: 30px;
    font-weight: 700;
    color: #4a6cf7;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-detail-header-info {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}
.cs-detail-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.cs-detail-header-title h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    line-height: 1.4;
    word-break: break-all;
}
.cs-detail-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    font-size: 13.5px;
    color: #718096;
}
.cs-detail-header-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cs-detail-header-meta i {
    font-size: 15px;
    color: #a0aec0;
}

/* 详情卡片（每个章节） */
.cs-detail-card {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}
.cs-detail-card:last-child {
    margin-bottom: 0;
}
.cs-detail-card .cs-modal-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 18px;
    padding-left: 12px;
    border-left: 3px solid #4a6cf7;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cs-detail-card .cs-modal-section-title i {
    font-size: 18px;
    color: #4a6cf7;
}
.cs-detail-card .cs-section-count {
    font-size: 12.5px;
    font-weight: 400;
    color: #a0aec0;
    margin-left: 4px;
}

/* 错误状态 */
.cs-error-back {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 22px;
    background: #4a6cf7;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.2s;
}
.cs-error-back:hover {
    background: #3a5cd9;
    transform: translateY(-1px);
    color: #fff;
}

/* 手机端 */
@media (max-width: 768px) {
    .cs-detail-topbar {
        margin: 12px 0 12px;
    }
    .cs-back-btn {
        padding: 6px 14px;
        font-size: 13px;
    }
    .cs-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 22px 18px;
        gap: 14px;
    }
    .cs-detail-header-logo {
        width: 64px;
        height: 64px;
        border-radius: 14px;
    }
    .cs-detail-header-logo .cs-logo-placeholder { font-size: 26px; }
    .cs-detail-header-title {
        justify-content: center;
        margin-bottom: 10px;
    }
    .cs-detail-header-title h1 {
        font-size: 17px;
        text-align: center;
    }
    .cs-detail-header-meta {
        justify-content: center;
        font-size: 12.5px;
        gap: 6px 16px;
    }
    .cs-detail-card {
        padding: 18px 18px;
        border-radius: 14px;
    }
    .cs-detail-card .cs-modal-section-title {
        font-size: 14px;
        margin-bottom: 14px;
    }
    .cs-detail-card .cs-modal-section-title i { font-size: 16px; }
}

/* 深色模式 */
body.dark-mode .cs-back-btn {
    background: #16213e;
    border-color: #2a3a5a;
    color: #a0aec0;
}
body.dark-mode .cs-back-btn:hover {
    background: #1e2a4a;
    border-color: #4a6cf7;
    color: #6a8cff;
}

body.dark-mode .cs-detail-header {
    background: #16213e;
    border-color: #2a3a5a;
}
body.dark-mode .cs-detail-header-logo {
    background: #1a2a4a;
    border-color: #2a3a5a;
}
body.dark-mode .cs-detail-header-logo .cs-logo-placeholder {
    background: linear-gradient(135deg, #1e2a4a, #2a3a5a);
    color: #6a8cff;
}
body.dark-mode .cs-detail-header-title h1 { color: #e2e8f0; }
body.dark-mode .cs-detail-header-meta { color: #a0aec0; }
body.dark-mode .cs-detail-header-meta i { color: #718096; }

body.dark-mode .cs-detail-card {
    background: #16213e;
    border-color: #2a3a5a;
}
body.dark-mode .cs-detail-card .cs-modal-section-title {
    color: #e2e8f0;
    border-left-color: #6a8cff;
}
body.dark-mode .cs-detail-card .cs-modal-section-title i { color: #6a8cff; }