/* NE 2.0 ?????????????? */

:root {
    /* v2 ???????? AI ???????????*/
    --v2-accent: #4a6fa5;            /* ????????*/
    --v2-accent-soft: #e5edf7;       /* ????????*/
    --v2-accent-border: #b7c7e5;     /* ??????*/
    --v2-accent-hover: #385580;      /* ???????? */
    /* v2 ??/???????????? */
    --v2-danger: #b91c1c;            /* ????????*/
    --v2-danger-soft: #fee2e2;       /* ?????? */
    --v2-danger-border: #fecaca;     /* ??????*/
}

/* ??????????????+ ??????+ ?? AI ?? */
.v2-layout {
    height: 100vh;
    display: flex;
    overflow: hidden;
    background-color: #f4f5f7; /* ???????? */
    font-family: "Microsoft YaHei", "SimHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ?????????????? 10%?? 220px ??198px?????? */
.v2-sidebar {
    width: 198px;
    background: rgba(17, 24, 39, 0.92); /* ?? + ?????????? */
    color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 1rem 0.75rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    min-height: 0;
}

/* 侧栏导航滚动区：Logo/用户信息固定，菜单区可纵向滚动 */
.v2-sidebar-nav-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin-right: -0.15rem;
    padding-right: 0.15rem;
}

.v2-sidebar-nav-scroll::-webkit-scrollbar {
    width: 5px;
}

.v2-sidebar-nav-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.v2-sidebar-nav-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.v2-sidebar-nav-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.v2-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.5rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

/* 当前用户信息摘要 */
.v2-user-summary {
    padding: 0.55rem 0.6rem 0.4rem;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.v2-user-summary-main {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.82);
}

/* 用户图标：与侧栏 .v2-nav-link i 保持同一尺寸与对齐方式 */
.v2-user-summary-main i {
    width: 1.1rem;
    text-align: center;
    font-size: 0.9rem;
}

.v2-user-summary-role {
    margin-top: 0.1rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
}

.v2-user-summary-role-badge {
    display: inline-block;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    font-size: 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.v2-user-summary-role-badge-admin {
    border-color: rgba(96, 165, 250, 0.9);
    color: #bfdbfe;
}

.v2-nav-section-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.4rem 0.5rem 0.25rem;
    margin-top: 0.3rem;
}

.v2-nav-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.v2-nav-item {
    margin-bottom: 2px;
}

.v2-nav-link {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.55rem;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.88rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.v2-nav-link i {
    width: 1.1rem;
    text-align: center;
    font-size: 0.9rem;
}

/*（保留空位：如后续需要大图标，可在此扩展）*/

.v2-nav-link span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v2-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.v2-nav-link.active {
    background: linear-gradient(90deg, #334155, #4b5563);
    color: #ffffff;
}

.v2-nav-link.badge-extra {
    position: relative;
}

.v2-nav-extra-tag {
    margin-left: auto;
    font-size: 0.72rem;
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.85);
    color: rgba(226, 232, 240, 0.95);
}

.v2-nav-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ??????????????????*/
.v2-nav-parent {
    margin-bottom: 2px;
}

.v2-nav-parent-toggle {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: inherit;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.55rem;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.88rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.v2-nav-parent-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.v2-nav-parent-toggle[aria-expanded="true"] {
    background: linear-gradient(90deg, #334155, #4b5563);
    color: #ffffff;
}

.v2-nav-parent-toggle .v2-nav-chevron {
    margin-left: auto;
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.v2-nav-parent-toggle[aria-expanded="true"] .v2-nav-chevron {
    transform: rotate(180deg);
}

.v2-nav-sub-wrap {
    overflow: hidden;
}

.v2-nav-sub {
    list-style: none;
    padding-left: 0;
    margin: 0 0 2px 0;
    padding-left: 0.6rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: 0.35rem;
}

.v2-nav-sub .v2-nav-item {
    margin-bottom: 0;
}

.v2-nav-sub .v2-nav-link {
    padding: 0.3rem 0.45rem;
    font-size: 0.82rem;
}

/* 我的工具：第三层子菜单缩进 */
.v2-nav-sub-2 {
    list-style: none;
    padding-left: 0;
    margin: 0 0 2px 0;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    margin-left: 0.5rem;
}

.v2-nav-sub-2 .v2-nav-item {
    margin-bottom: 0;
}

.v2-nav-sub-2 .v2-nav-link {
    padding: 0.25rem 0.4rem;
    font-size: 0.78rem;
}

.v2-nav-sub .v2-nav-parent-toggle-nested,
.v2-nav-list > .v2-nav-parent > .v2-nav-parent-toggle {
    padding: 0.35rem 0.5rem;
    font-size: 0.84rem;
}

/* 我的工具区块内：分类下拉下的工具链接（第二层缩进） */
.v2-nav-section-title + .v2-nav-list .v2-nav-sub {
    margin-left: 0.25rem;
}

.v2-sidebar-footer {
    margin-top: auto;
    flex-shrink: 0;
    padding: 0.4rem 0.5rem 0;
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.9);
    text-align: center;      /* ?????????? */
}

/* ???????????????????? */
.v2-sidebar-footer small {
    display: block;          /* ? small ??????????? */
    width: 100%;             /* ????????? text-align ?? */
    font-size: 0.6rem;       /* ????????????????? */
    white-space: nowrap;     /* ???????????????? */
}

/* ??????????????*/
.v2-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1rem 1.25rem;
    overflow: auto;
}

.v2-flash-wrap {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto 0.75rem auto;
}

.v2-flash-wrap .alert {
    border-radius: 10px;
}

.v2-main-header {
    margin-bottom: 0.75rem;
}

/* v2 ??????????????????????????????*/
.v2-accent-text {
    color: var(--v2-accent) !important;
}

.v2-accent-badge {
    background-color: var(--v2-accent-soft) !important;
    color: var(--v2-accent) !important;
    border: 1px solid var(--v2-accent-border) !important;
}

/* v2 ??/?????badge???????? */
.v2-danger-badge {
    background-color: var(--v2-danger-soft) !important;
    color: var(--v2-danger) !important;
    border: 1px solid var(--v2-danger-border) !important;
}

.btn-v2-primary {
    background-color: var(--v2-accent);
    border-color: var(--v2-accent);
    color: #ffffff;
}

.btn-v2-primary:hover {
    background-color: var(--v2-accent-hover);
    border-color: var(--v2-accent-hover);
    color: #ffffff;
}

/* v2 ????????????????????? */
.v2-accent-checkbox {
    /* 与“项目展示”光伏图标同色：#1e3d59 */
    accent-color: rgba(30, 61, 89, 0.95);
}

/* v2 2.0 页面：统一 checkbox 主色（与“应用筛选”主色一致） */
.v2-admin-page .form-check-input[type="checkbox"] {
    /* 与“项目展示”光伏图标同色：#1e3d59 */
    accent-color: rgba(30, 61, 89, 0.95) !important;
}

/* 确保 checkbox 勾选态背景/边框也使用同色（部分浏览器 accent-color 对勾选态覆盖不完全） */
.v2-admin-page .form-check-input[type="checkbox"]:checked {
    background-color: rgba(30, 61, 89, 0.95) !important;
    border-color: rgba(30, 61, 89, 0.95) !important;
}

/* v2 ??????????????????????? */
.v2-accent-link-outline {
    border: 1px solid var(--v2-accent);
    border-radius: 4px;
    padding: 0.1rem 0.6rem;
    font-size: 0.8rem;
    color: var(--v2-accent);
}

.v2-accent-link-outline:hover {
    color: var(--v2-accent-hover);
    border-color: var(--v2-accent-hover);
    background-color: var(--v2-accent-soft);
    text-decoration: none;
}

/* ?? AI ???????????????????z-index ???????????? */
.v2-ai-panel {
    width: 360px;
    max-width: 50vw;
    border-left: 1px solid #dde1e7;
    background: rgba(255, 255, 255, 0.88); /* ?????????????*/
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* 作为 .v2-layout 横向 flex 子项时，默认 min-height:auto 会按内容撑高并被父级 overflow:hidden 裁切，导致内层无法出现滚动条；设为 0 使侧栏高度受限于视口 */
    min-height: 0;
}

.v2-ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #edf0f4;
    background: linear-gradient(90deg, #ffffff, #f7f8fb);
}

.v2-ai-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #344767;
}

.v2-ai-title i {
    color: #4a6fa5;
}

/*（原 v2-ai-female-icon 已不再使用，删除以避免无用 CSS）*/

.v2-ai-toggle-btn {
    border: none;
    background: transparent;
    color: #8792a2;
    font-size: 0.9rem;
}

.v2-ai-body {
    flex: 1;
    min-height: 0;
    border-top: 1px solid #f5f6f8;
    /* 将滚动约束在助手内层卡片，避免整块面板被裁切后无法滚动 */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 小翊助手嵌入：从根到 .card-body 形成 column flex + min-height:0，#v2-ai-chat-container 才可 overflow:auto */
.v2-ai-body #v2-ai-assistant-panel-root {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.v2-ai-body #v2-ai-assistant-panel-root > .container-fluid {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.v2-ai-body #v2-ai-assistant-panel-root .card.mb-2 {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.v2-ai-body #v2-ai-assistant-panel-root .card.mb-2 > .card-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/* 顶部说明与输入框不参与压缩，避免被挤没 */
.v2-ai-body #v2-ai-assistant-panel-root > .container-fluid > .mb-2:first-of-type {
    flex-shrink: 0;
}

.v2-ai-body #v2-ai-assistant-panel-root #chat-form {
    flex-shrink: 0;
}

.v2-ai-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #9ba3b0;
    font-size: 0.9rem;
    padding: 1rem;
    text-align: center;
}

.v2-ai-placeholder i {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: #4a6fa5;
}

.v2-ai-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* AI ????????????hover ???? */
.v2-ai-resizer {
    width: 4px;
    cursor: col-resize;
    background: transparent;
    position: relative;
}

.v2-ai-resizer::before {
    content: "";
    position: absolute;
    top: 20%;
    bottom: 20%;
    left: 1px;
    right: 1px;
    border-radius: 999px;
    background: #dde1e7;
    transition: background-color 0.15s ease;
}

.v2-ai-resizer:hover::before {
    background: #cbd2e0;
}

/* ??????????????? */
.v2-layout.ai-collapsed .v2-ai-panel {
    display: none;
}

.v2-layout.ai-collapsed .v2-ai-resizer {
    display: none;
}

/* ????? AI ???????????????????????? */
.v2-ai-floating-toggle {
    position: fixed;
    top: 1rem;
    right: 1.25rem;
    z-index: 9999;
    border-radius: 999px;
    background: #ffffff;
    color: #4b5563;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
    border: 1px solid #e5e7eb;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.v2-ai-floating-toggle i {
    font-size: 0.9rem;
    color: #4a6fa5;
}

.v2-ai-floating-toggle:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

@media (max-width: 992px) {
    .v2-sidebar {
        width: 180px;
    }
    .v2-ai-panel {
        width: 300px;
    }
}

/* ========== ????????768px??????+ AI ????========== */

/* ?????????????????????? */
.v2-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 8998;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* ??????????????????????? */
.v2-mobile-header {
    display: none;
}

.v2-mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: #374151;
    font-size: 1.1rem;
    border-radius: 6px;
}

.v2-mobile-menu-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

/* AI ???????????????? */
.v2-ai-close-btn {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 1rem;
    border-radius: 6px;
}

.v2-ai-close-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

@media (max-width: 768px) {
    /* ?????????????????????????? 10%??*/
    .v2-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 234px;
        max-width: 85vw;
        z-index: 8999;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
    }

    .v2-layout.v2-sidebar-open .v2-sidebar {
        transform: translateX(0);
    }

    /* ??????????????????????*/
    .v2-sidebar-backdrop {
        display: block;
        pointer-events: none;
    }

    .v2-layout.v2-sidebar-open .v2-sidebar-backdrop {
        pointer-events: auto;
        opacity: 1;
    }

    /* ???????????? + ??? ? YOESIS? */
    .v2-mobile-header {
        display: block;
        height: 0;
        min-height: 0;
        padding: 0;
        margin: 0;
        border: none;
        background: transparent;
        overflow: visible;
        flex-shrink: 0;
    }

    .v2-mobile-menu-btn-float {
        position: fixed;
        top: 1rem;
        left: 1.25rem;
        z-index: 9999;
        min-width: 44px;
        min-height: 44px;
        padding: 0.4rem 0.75rem;
        background: #ffffff;
        color: #4b5563;
        border: 1px solid #e5e7eb;
        border-radius: 999px;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
    }

    .v2-mobile-menu-btn-float:hover {
        background: #f9fafb;
        border-color: #d1d5db;
        color: #111827;
    }

    /* ????????????????*/
    .v2-main {
        flex: 1;
        min-width: 0;
        padding-top: 0.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* ?? AI ????????????????????*/
    .v2-ai-resizer {
        display: none !important;
    }

    .v2-ai-panel {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: none;
        z-index: 9500;
        visibility: hidden;
        opacity: 0;
        transform: translateX(100%);
        transition: visibility 0.2s ease, opacity 0.2s ease, transform 0.25s ease;
        border-left: none;
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.12);
        padding-bottom: env(safe-area-inset-bottom);
    }

    /* ?????? visibility/transform ??????display ??????????*/
    .v2-layout.ai-collapsed .v2-ai-panel {
        display: flex;
        visibility: hidden;
        pointer-events: none;
    }

    .v2-layout:not(.ai-collapsed) .v2-ai-panel {
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
    }

    /* ????AI ??????????*/
    .v2-ai-close-btn {
        display: inline-flex;
    }

    /* ????????????????????*/
    .v2-ai-floating-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem 1rem;
    }

    .v2-nav-link {
        min-height: 44px;
        padding: 0.6rem 0.55rem;
    }
}

/* ????576px??????????*/
@media (max-width: 576px) {
    .v2-main {
        padding: 0.5rem 0.75rem;
    }

    .v2-admin-page {
        padding: 1rem;
    }
}

/* ========== ?????????????quotation_offer ???? + ??????========== */
.v2-admin-page {
    background: #ffffff;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #2c3e50;
}

/* -------- 洞察研究页底部留白（防止最后一张卡片视觉遮挡/顶出） -------- */
.v2-admin-page.v2-news-page {
    padding-bottom: 2.75rem;
}

.v2-admin-title-block h5,
.v2-admin-title-block h6 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.v2-admin-subtitle {
    font-size: 0.9rem;
    color: #555;
}

/* ?????????????????????? */
.v2-admin-section {
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 0 6px 6px 0;
    font-size: 0.9rem;
}

.v2-admin-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e3d59;
}

/* ????????????????????? 4 ? */
.v2-form-fields-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.v2-form-fields-grid .v2-grid-full-row {
    grid-column: 1 / -1;
}

@media (min-width: 576px) {
    .v2-form-fields-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .v2-form-fields-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .v2-form-fields-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ????????quotation ?????*/
.v2-admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
}

.v2-admin-table th {
    background: #f8fafc;
    color: #1e3d59;
    padding: 0.5rem 0.75rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
}

.v2-admin-table td {
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.v2-admin-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.v2-admin-table tbody tr:hover {
    background: #f1f5f9;
}

/* ??????????v2-admin ??/?????? */
.v2-admin-pagination {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.v2-admin-pagination .pagination {
    margin-bottom: 0.5rem;
}

.v2-admin-pagination .pagination .page-link {
    color: #1e3d59;
    border-color: #e2e8f0;
    padding: 0.35rem 0.65rem;
    font-size: 0.875rem;
}

.v2-admin-pagination .pagination .page-item.active .page-link {
    background-color: #1e3d59;
    border-color: #1e3d59;
    color: #fff;
    font-weight: 600;
}

.v2-admin-pagination .pagination .page-item:not(.active) .page-link:hover {
    background-color: #e2e8f0;
    color: #1e3d59;
}

.v2-admin-pagination .pagination .page-item.disabled .page-link {
    color: #94a3b8;
    background-color: #f1f5f9;
}

.v2-admin-pagination-summary {
    font-size: 0.85rem;
    color: #555;
    text-align: center;
    margin-top: 0.25rem;
}

/* -------- 新能源 v2：项目列表筛选（等分网格） -------- */
.v2-ne-filter-form {
    /* 保持在 v2-admin-section 内的节奏，不依赖 Bootstrap row/col */
    width: 100%;
}

.v2-ne-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 0.75rem;
    align-items: end;
}

.v2-ne-filter-item {
    min-width: 0;
}

.v2-ne-filter-actions {
    /* 让“筛选项行”到“按钮行”的垂直间距回到接近 Bootstrap g-2 的手感 */
    margin-top: 0.5rem;
    width: 100%;
}

@media (min-width: 992px) {
    .v2-ne-filter-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ??????????????????title ??hover ?? */
.v2-admin-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    color: #1e3d59;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.v2-admin-action-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e3d59;
    text-decoration: none;
}

.v2-admin-action-btn + .v2-admin-action-btn,
.v2-admin-action-btn + form {
    margin-left: 0.35rem;
}

form + .v2-admin-action-btn {
    margin-left: 0.35rem;
}

.v2-admin-action-btn-danger {
    border-color: var(--v2-danger-border);
    color: var(--v2-danger);
}

.v2-admin-action-btn-danger:hover {
    background: var(--v2-danger-soft);
    border-color: var(--v2-danger-border);
    color: var(--v2-danger);
}

/* ==========================================================
   v2 首页（智能助理 / 洞察研究）占位 UI 样式
   目标：保持与 v2-admin 视觉风格一致（清晰、商务、层次分明）
   说明：本段不引入任何业务逻辑，只用于前端展示与 hover tooltip
   ========================================================== */

.v2-home-card {
    background: #ffffff;
}

.v2-home-card .card-body {
    padding: 1rem;
}

/* -------- 月度日历（智能助理） -------- */
.v2-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.35rem;
    font-size: 0.75rem;
    color: rgba(71, 85, 105, 0.9);
    padding: 0 0.15rem;
}

.v2-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.55rem;
}

.v2-calendar-day {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.45rem 0.5rem;
    min-height: 64px;
    background: #ffffff;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.v2-calendar-day:hover {
    border-color: var(--v2-accent-border);
    background: #f8fafc;
}

.v2-calendar-day-today {
    box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.18);
}

.v2-calendar-day-today .v2-calendar-day-num {
    background: var(--v2-accent-soft);
    border-color: var(--v2-accent-border);
    color: var(--v2-accent);
}

.v2-calendar-day-today .v2-calendar-day-num {
    font-weight: 700;
}

.v2-calendar-day-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 24px;
    height: 22px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #1e3d59;
    border: 1px solid transparent;
    background: transparent;
}

.v2-calendar-day-todos {
    margin-top: 0.35rem;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.18rem;
}

.v2-todo-chip {
    font-size: 0.68rem;
    padding: 0.15rem 0.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.v2-todo-chip-accent {
    background: var(--v2-accent-soft);
    color: var(--v2-accent);
    border-color: var(--v2-accent-border);
}

.v2-todo-chip-info {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.v2-todo-chip-success {
    background: #dcfce7;
    color: #15803d;
    border-color: #86efac;
}

.v2-todo-chip-muted {
    background: #f1f5f9;
    color: #64748b;
    border-color: #e2e8f0;
}

/* Jinja 中使用的类名：v2-calendar-day-today */
.v2-calendar-day.v2-calendar-day-today {
    box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.18);
}

/* -------- 本周/本月事项列表（智能助理） -------- */
.v2-mini-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.v2-home-fixed-height {
    /* 第三行列表固定高度：保证左右卡片视觉对齐 */
    min-height: 240px;
}

.v2-mini-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.9rem;
    color: #1e3d59;
    flex-wrap: wrap;
}

.v2-mini-checkbox {
    width: 0.95rem;
    height: 0.95rem;
    margin: 0;
}

.v2-mini-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.v2-mini-dot-important {
    background: var(--v2-danger);
}

.v2-mini-dot-info {
    background: #1d4ed8;
}

.v2-mini-dot-success {
    background: #15803d;
}

.v2-mini-dot-muted {
    background: #94a3b8;
}

.v2-mini-badge {
    margin-left: auto;
    font-size: 0.72rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(74, 111, 165, 0.08);
    color: var(--v2-accent);
    border: 1px solid rgba(74, 111, 165, 0.25);
}

/* -------- KPI（智能助理） -------- */
.v2-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

/* 在大屏时给 KPI 增加 3 列，避免新增体重/身高/BMI 后挤压 */
@media (min-width: 992px) {
    .v2-kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.v2-kpi-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    background: #ffffff;
}

.v2-kpi-label {
    font-size: 0.78rem;
    color: rgba(30, 61, 89, 0.85);
    margin-bottom: 0.25rem;
}

/* KPI 标签内的小图标（用于“体重/身高/BMI”等） */
.v2-kpi-label-icon {
    font-size: 0.82rem;
    color: rgba(30, 61, 89, 0.7);
}

/* KPI 方块图标（参考“计划建议”风格） */
.v2-kpi-mini-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 111, 165, 0.08);
    color: #4a6fa5;
    border: 1px solid rgba(74, 111, 165, 0.18);
    margin-bottom: 0.45rem;
}

/* 确保 FontAwesome 图标在 KPI 小圆角卡中可见 */
.v2-kpi-mini-icon i {
    font-size: 1.05rem;
    line-height: 1;
}

/* 地理位置信息里的天气/温度/湿度/风速 KPI */
.v2-location-kpi-grid {
    margin-top: 0.85rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.v2-location-kpi-card {
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
}

.v2-location-kpi-card .v2-kpi-label {
    font-size: 0.74rem;
    margin-bottom: 0.2rem;
}

.v2-location-kpi-card .v2-kpi-value {
    font-size: 1.25rem;
}

.v2-location-kpi-card .v2-kpi-hint {
    font-size: 0.72rem;
    margin-top: 0.15rem;
}

/* 地理位置顶部的“当前城市/定位坐标”两张卡片 */
.v2-location-quick-cards {
    margin-top: 0.15rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

.v2-kpi-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e3d59;
    line-height: 1.1;
}

.v2-kpi-value-low {
    color: var(--v2-danger);
}

.v2-kpi-hint {
    margin-top: 0.25rem;
    font-size: 0.78rem;
    color: rgba(71, 85, 105, 0.95);
}

/* -------- 地理位置（智能助理） -------- */
.v2-location-sub {
    line-height: 1.4;
}

/* -------- Planners（智能助理） -------- */
.v2-planners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.v2-planners-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.v2-planner-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem 0.7rem;
    background: #ffffff;
}

.v2-planner-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 111, 165, 0.08);
    color: var(--v2-accent);
    margin-bottom: 0.45rem;
}

.v2-planner-title {
    font-weight: 700;
    margin-bottom: 0.15rem;
}

/* -------- 世界地图（洞察研究） -------- */
.v2-world-map-wrap {
    position: relative;
    /* 卡片整体缩小：给定一个固定高度，避免在大屏上显示过大 */
    height: 210px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}

.v2-world-map-bg {
    position: absolute;
    inset: 0;
    /* 世界地图底图：修复旧链接失效（返回 404），使用可访问的 Wikimedia SVG 资源 */
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/e/ec/World_map_blank_without_borders.svg");
    background-repeat: no-repeat;
    /* 放大一倍：在原基础上将背景缩放比例加倍，使底图更“聚焦”。 */
    background-size: 66.6667% 66.6667%;
    /* 图片整体靠左，避免以中心对齐导致 marker 与视觉内容差异变大 */
    background-position: left center;
    opacity: 0.95;
    z-index: 1;
}

.v2-map-marker {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(74, 111, 165, 0.95);
    background: rgba(74, 111, 165, 0.18);
    transform: translate(-50%, -50%);
    z-index: 3;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.v2-map-tooltip {
    position: absolute;
    /* tooltip 随 marker 缩小做等比例收缩 */
    left: 14px;
    top: -16px;
    /* tooltip 跟随 marker 缩小，避免过大挤占地图 */
    min-width: 160px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.55rem 0.65rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 5;
    color: #1e3d59;
    font-size: 0.82rem;
}

.v2-map-marker:hover .v2-map-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.v2-map-tooltip::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 22px;
    border-width: 7px;
    border-style: solid;
    border-color: transparent #ffffff transparent transparent;
}

.v2-map-tooltip-sub {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.78rem;
    color: rgba(71, 85, 105, 0.95);
}

.v2-map-tooltip-sub2 {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: rgba(71, 85, 105, 0.95);
}

/* -------- 世界地区（洞察研究地图） -------- */
.v2-map-region-legend {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.v2-map-region-legend-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: rgba(30, 61, 89, 0.88);
    padding-top: 0.1rem;
}

.v2-map-region-legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.v2-map-region-pill {
    font-size: 0.82rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: rgba(30, 61, 89, 0.95);
}

.v2-map-region-label {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(30, 61, 89, 0.45);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

/* -------- 新闻筛选与列表（洞察研究） -------- */
.v2-news-filter-wrap {
    padding: 0.9rem 0.95rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}

.v2-news-table th {
    white-space: nowrap;
}

/* -------- 财经新闻列表：近一月趋势（SVG 折线，占位示意） --------
   说明：单元格内为小号折线图，底横线表示时间轴参考；折线颜色与 v2 主色一致。 */
.v2-news-trend-cell {
    vertical-align: middle;
    width: 1%;
    min-width: 112px;
    max-width: 168px;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.v2-news-trend-svg {
    display: block;
    width: 100%;
    min-width: 96px;
    max-width: 152px;
    height: 28px;
}

.v2-news-trend-baseline {
    stroke: #e2e8f0;
    stroke-width: 1;
}

/* 主折线：品牌蓝；交替行可用 .v2-news-trend-line-alt 略加深色以区分 */
.v2-news-trend-line {
    stroke: #4a6fa5;
    stroke-width: 2;
}

.v2-news-trend-line-alt {
    stroke: #1e3d59;
    stroke-width: 2;
    opacity: 0.88;
}

/* -------- 金融投资：估值分析（Bootstrap 轮播 + Football Field）--------
   说明：轮播依赖 `base.html` 的 bootstrap.bundle；Football Field 仍用 `--ff-spot` 与区间条百分比。 */
.v2-invest-valuation-carousel {
    position: relative;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.v2-invest-valuation-carousel .carousel-inner {
    overflow: visible;
}

/* 每条幻灯片内仅一条标的，取消原滚动列表底部分隔线 */
.v2-invest-valuation-carousel .v2-invest-valuation-item {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.v2-invest-valuation-carousel .v2-invest-valuation-item > .row.g-3.align-items-stretch > .col-lg-5 {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

@media (max-width: 991.98px) {
    .v2-invest-valuation-carousel .v2-invest-valuation-item > .row.g-3.align-items-stretch > .col-lg-5 {
        display: block;
    }
}

/* 指示器：静态排在内容上方，圆点 + active 主色 */
.v2-invest-valuation-carousel-indicators {
    position: static;
    margin-left: 0;
    margin-right: 0;
    justify-content: center;
}

.v2-invest-valuation-carousel-indicators [type='button'] {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background-color: #e2e8f0;
    margin: 0 0.28rem;
}

.v2-invest-valuation-carousel-indicators [type='button'].active {
    background-color: var(--v2-accent, #4a6fa5);
    border-color: rgba(74, 111, 165, 0.85);
}

/* 左右切换：收窄宽度、浅色底，与 v2 卡片协调 */
.v2-invest-valuation-carousel .v2-invest-valuation-carousel-prev,
.v2-invest-valuation-carousel .v2-invest-valuation-carousel-next {
    width: 2rem;
    opacity: 1;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    height: 2.75rem;
    background: rgba(248, 250, 252, 0.95);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.v2-invest-valuation-carousel .v2-invest-valuation-carousel-prev {
    left: 0;
}

.v2-invest-valuation-carousel .v2-invest-valuation-carousel-next {
    right: 0;
}

.v2-invest-valuation-carousel .carousel-control-prev-icon,
.v2-invest-valuation-carousel .carousel-control-next-icon {
    filter: invert(28%) sepia(18%) saturate(1200%) hue-rotate(167deg) brightness(0.4);
    width: 1.45rem;
    height: 1.45rem;
}

.v2-invest-valuation-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e3d59;
}

/* 标的头部：市值、流动市值、市场 Beta 与现价等同列展示（investment_home_demo.html 轮播） */
.v2-invest-valuation-metrics {
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.v2-invest-valuation-metric-dot {
    opacity: 0.55;
    margin: 0 0.22rem;
    user-select: none;
}

.v2-invest-valuation-chart-cap {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

/* 混合图图例：折线色块 + 成交量色块（与 SVG 内样式一致） */
.v2-invest-valuation-mixed-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.2rem;
}

.v2-invest-valuation-mixed-legend-line {
    display: inline-block;
    width: 1.2rem;
    height: 3px;
    border-radius: 2px;
    background: #4a6fa5;
    vertical-align: middle;
    margin-right: 0.15rem;
}

.v2-invest-valuation-mixed-legend-line--alt {
    background: #1e3d59;
    opacity: 0.88;
}

.v2-invest-valuation-mixed-legend-bar {
    display: inline-block;
    width: 0.5rem;
    height: 0.7rem;
    border-radius: 2px;
    background: rgba(74, 111, 165, 0.55);
    vertical-align: middle;
    margin-right: 0.15rem;
}

/* 价格 + 成交量同轴混合 SVG（viewBox 高度大于原单列图） */
.v2-invest-valuation-mixed {
    display: block;
    width: 100%;
    height: 5.5rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e8edf3;
}

/* 保留类名：若其它页复用单列迷你图 */
.v2-invest-valuation-spark {
    display: block;
    width: 100%;
    height: 40px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e8edf3;
}

.v2-invest-valuation-vol {
    display: block;
    width: 100%;
    height: 40px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e8edf3;
}

.v2-invest-valuation-vol-bar {
    fill: rgba(74, 111, 165, 0.55);
}

.v2-invest-valuation-fin {
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e8edf3;
}

.v2-invest-valuation-fin-label {
    font-size: 0.72rem;
    color: #64748b;
    margin-bottom: 0.15rem;
}

.v2-invest-valuation-fin-val {
    font-weight: 700;
    color: #1e3d59;
    font-size: 0.84rem;
}

.v2-invest-valuation-fin-trend {
    font-size: 0.72rem;
    margin-top: 0.15rem;
}

/* Football Field：父级设置 --ff-spot 为现价在横轴上的百分比位置 */
.v2-football-field {
    --ff-spot: 50;
    padding: 0.5rem 0.6rem 0.35rem;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

/* 与左侧图表并排时占满列高、内容纵向铺开 */
.v2-football-field--aside {
    display: flex;
    flex-direction: column;
}

.v2-football-field__title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e3d59;
    margin-bottom: 0.35rem;
}

.v2-football-field__axis {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-bottom: 0.15rem;
    padding-left: calc(7.5rem + 0.65rem);
}

.v2-football-field__rows {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.v2-football-field__row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.v2-football-field__label {
    flex: 0 0 7.5rem;
    font-size: 0.78rem;
    color: #334155;
    line-height: 1.25;
}

.v2-football-field__track {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 22px;
    background: #f1f5f9;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/* 单行内的隐含价格区间（横条） */
.v2-football-field__range {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 0;
    width: 40%;
    background: rgba(74, 111, 165, 0.5);
    border-radius: 4px;
    z-index: 1;
    box-sizing: border-box;
}

.v2-football-field__range--alt {
    background: rgba(30, 61, 89, 0.42);
}

/* MCS：略淡色带表示模拟分布区间更宽 */
.v2-football-field__range--mcs {
    background: rgba(100, 116, 139, 0.38);
}

/* 现价竖线：贯穿轨道高度，叠在区间条之上 */
.v2-football-field__spot {
    position: absolute;
    left: calc(var(--ff-spot) * 1%);
    top: 1px;
    bottom: 1px;
    width: 2px;
    margin-left: -1px;
    background: #1e3d59;
    border-radius: 1px;
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85);
}

@media (max-width: 576px) {
    .v2-football-field__label {
        flex-basis: 5.25rem;
        font-size: 0.7rem;
    }

    .v2-football-field__axis {
        padding-left: calc(5.25rem + 0.65rem);
    }
}

.v2-esg-disclosure {
    box-sizing: border-box;
    width: 100%;
    padding: 0.28rem 0.45rem 0.3rem;
    margin-bottom: 0;
    border-radius: 8px;
    background: linear-gradient(165deg, #f8fafc 0%, #ffffff 55%);
    border: 1px solid #e2e8f0;
}

.v2-esg-disclosure__head {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.25rem;
}

.v2-esg-disclosure__icon {
    color: #15803d;
    font-size: 0.85rem;
    line-height: 1;
}

.v2-esg-disclosure__title {
    font-size: 0.74rem;
    font-weight: 700;
    color: #1e3d59;
    line-height: 1.2;
}

.v2-esg-disclosure__layout {
    display: grid;
    grid-template-columns: minmax(8.5rem, 11rem) minmax(0, 1fr);
    gap: 0.35rem 0.45rem;
    align-items: stretch;
    min-height: 0;
}

.v2-esg-disclosure__aside {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
    min-height: 0;
    height: 100%;
    align-self: stretch;
}

.v2-esg-disclosure__total {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem 0.4rem;
    margin-top: 0.55rem;
    padding: 0.26rem 0.36rem;
    border-radius: 8px;
    border: 1px solid rgba(74, 111, 165, 0.28);
    background: linear-gradient(90deg, rgba(74, 111, 165, 0.1) 0%, rgba(241, 245, 249, 0.95) 100%);
}

.v2-esg-disclosure__total--aside {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    align-self: stretch;
    margin-top: 0;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: flex;
}

.v2-esg-disclosure__total-label {
    font-size: 0.66rem;
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.03em;
}

.v2-esg-disclosure__total-score {
    font-size: 0.88rem;
    font-weight: 800;
    color: #1e3d59;
    line-height: 1.1;
}

.v2-esg-disclosure__total-note {
    flex: 0 0 auto;
    font-size: 0.58rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.3;
}

.v2-esg-disclosure__agency-inline {
    width: 100%;
    margin-top: 0.18rem;
    padding-top: 0.2rem;
    border-top: 1px solid rgba(74, 111, 165, 0.16);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.12rem 0.32rem;
    font-size: 0.56rem;
    line-height: 1.28;
}

.v2-esg-disclosure__agency-inline-label {
    font-weight: 600;
    color: #64748b;
}

.v2-esg-disclosure__agency-inline-val {
    font-weight: 600;
    color: #1e3d59;
    word-break: break-word;
    flex: 1 1 auto;
    min-width: 0;
}

.v2-esg-disclosure__agency-inline .fas {
    color: #4a6fa5;
    font-size: 0.54rem;
    flex-shrink: 0;
    opacity: 0.95;
}

.v2-esg-disclosure__total--aside .v2-esg-disclosure__total-note {
    width: 100%;
    margin-top: auto;
}

.v2-esg-disclosure__pct-row {
    display: flex;
    align-items: flex-start;
    gap: 0.2rem;
    font-size: 0.56rem;
    color: #64748b;
    line-height: 1.28;
    margin-top: 0;
}

.v2-esg-disclosure__pct-row .fas {
    color: #4a6fa5;
    font-size: 0.62rem;
    margin-top: 0.12rem;
    flex-shrink: 0;
    opacity: 0.95;
}

.v2-esg-disclosure__pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 1fr;
    gap: 0.32rem 0.3rem;
    align-items: stretch;
    min-width: 0;
    min-height: 0;
    height: 100%;
    align-self: stretch;
    box-sizing: border-box;
}

.v2-esg-disclosure__pct {
    font-size: 0.54rem;
    color: #64748b;
    margin-top: auto;
    line-height: 1.25;
    display: flex;
    align-items: flex-start;
    gap: 0.2rem;
}

.v2-esg-disclosure__pct .fas {
    color: #94a3b8;
    font-size: 0.55rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.v2-esg-disclosure__item {
    min-width: 0;
    padding: 0.22rem 0.3rem;
    border-radius: 6px;
    background: rgba(241, 245, 249, 0.85);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    box-sizing: border-box;
}

.v2-esg-disclosure__item--e {
    border-left: 3px solid #15803d;
}

.v2-esg-disclosure__item--s {
    border-left: 3px solid #4a6fa5;
}

.v2-esg-disclosure__item--g {
    border-left: 3px solid #475569;
}

.v2-esg-disclosure__item-k {
    font-size: 0.58rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.02em;
    margin-bottom: 0.06rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem;
}

.v2-esg-disclosure__item-k .fas {
    color: #4a6fa5;
    font-size: 0.65rem;
    opacity: 0.9;
}

.v2-esg-disclosure__item-v {
    font-size: 0.72rem;
    font-weight: 700;
    color: #1e3d59;
    line-height: 1.15;
    word-break: break-word;
}

.v2-esg-disclosure__unit {
    font-weight: 600;
    font-size: 0.65rem;
    color: #94a3b8;
}

.v2-esg-disclosure__foot {
    margin-top: 0.2rem;
    margin-bottom: 0;
    line-height: 1.32;
    font-size: 0.62rem !important;
}

@media (max-width: 768px) {
    .v2-esg-disclosure__layout {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .v2-esg-disclosure__aside {
        height: auto;
    }

    .v2-esg-disclosure__total--aside {
        flex: 0 0 auto;
        height: auto;
    }

    .v2-esg-disclosure__total--aside .v2-esg-disclosure__total-note {
        margin-top: 0.15rem;
    }

    .v2-esg-disclosure__pillars {
        height: auto;
        grid-template-rows: auto;
        align-self: start;
    }

    .v2-esg-disclosure__item {
        height: auto;
    }

    .v2-esg-disclosure__pct {
        margin-top: 0.12rem;
    }
}

@media (max-width: 576px) {
    .v2-esg-disclosure__pillars {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }

    .v2-esg-disclosure__item {
        height: auto;
    }
}

/* -------- 金融投资：估值分析·风险披露矩阵（investment_home_demo.html） --------
   说明：置于 col-lg-5 与财务指标同宽；外框与 .v2-football-field 一致；3×3 栅格悬停/聚焦展开浮层。 */
.v2-risk-disclosure--football-style {
    padding: 0.5rem 0.6rem 0.55rem;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
    width: 100%;
}

/* 标题样式对齐 Football Field 主标题（无图标） */
.v2-risk-disclosure__title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e3d59;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.v2-risk-disclosure__intro {
    line-height: 1.45;
}

.v2-risk-matrix {
    display: grid;
    grid-template-columns: 5rem repeat(3, minmax(0, 1fr));
    grid-template-rows: auto repeat(3, minmax(4.25rem, auto));
    gap: 0.45rem;
    align-items: stretch;
    width: 100%;
    max-width: none;
}

.v2-valuation-text-panel {
    padding: 0.5rem 0.6rem 0.55rem;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
}

.v2-valuation-text-panel__title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e3d59;
    margin-bottom: 0.4rem;
    line-height: 1.3;
    flex-shrink: 0;
}

.v2-valuation-text-panel__body {
    line-height: 1.45;
}

/* 占据标题下方全部剩余空间；列表项在竖向均匀分布以“填满”可视区域 */
.v2-valuation-text-panel__body--fill {
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: 0 !important;
}

ul.v2-valuation-text-panel__body--fill {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.35rem;
    padding-bottom: 0.15rem;
}

p.v2-valuation-text-panel__body--fill {
    flex: 1 1 auto;
    min-height: 0;
    align-self: stretch;
    text-align: justify;
    hyphens: auto;
}

.v2-valuation-aside-panels {
    margin-top: 0.45rem !important;
    align-items: stretch;
}

.v2-valuation-aside-panels > [class*='col-'] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
    min-height: 0;
}

.v2-risk-matrix__corner {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    color: #64748b;
    text-align: center;
    line-height: 1.3;
    padding: 0.15rem;
}

.v2-risk-matrix__corner-lbl {
    display: block;
}

.v2-risk-matrix__colhead,
.v2-risk-matrix__rowhead {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: #1e3d59;
    background: #f1f5f9;
    border-radius: 6px;
    padding: 0.35rem 0.3rem;
    text-align: center;
    border: 1px solid #e8edf3;
}

.v2-risk-matrix__rowhead {
    justify-content: flex-end;
    padding-right: 0.45rem;
}

.v2-risk-matrix__cell {
    position: relative;
    min-height: 3.35rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.45rem;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.v2-risk-matrix__cell:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(74, 111, 165, 0.28);
}

.v2-risk-matrix__cell--empty {
    background: #f8fafc;
    border-style: dashed;
    border-color: #e2e8f0;
    pointer-events: none;
}

.v2-risk-matrix__cell--high {
    border-color: rgba(185, 28, 28, 0.38);
    background: rgba(254, 242, 242, 0.55);
}

.v2-risk-matrix__cell--mid {
    border-color: rgba(74, 111, 165, 0.45);
    background: rgba(238, 242, 255, 0.45);
}

.v2-risk-matrix__cell--low {
    border-color: rgba(22, 163, 74, 0.32);
    background: rgba(240, 253, 244, 0.55);
}

.v2-risk-matrix__chip {
    font-size: 0.74rem;
    font-weight: 600;
    color: #1e3d59;
    text-align: center;
    line-height: 1.25;
}

.v2-risk-matrix__dash {
    color: #cbd5e1;
    font-size: 1rem;
}

/* 浮层默认隐藏；悬停或键盘聚焦单元格时显示（纯 CSS，无额外脚本） */
.v2-risk-matrix__popover {
    position: absolute;
    left: 50%;
    top: calc(100% + 6px);
    transform: translateX(-50%);
    width: min(308px, calc(100vw - 2.5rem));
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.v2-risk-matrix__popover-inner {
    padding: 0.65rem 0.78rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(30, 61, 89, 0.14);
    font-size: 0.78rem;
    color: #334155;
    line-height: 1.45;
}

.v2-risk-matrix__pop-k {
    font-size: 0.68rem;
    font-weight: 700;
    color: #1e3d59;
    margin: 0 0 0.2rem 0;
}

.v2-risk-matrix__pop-k:not(:first-child) {
    margin-top: 0.5rem;
}

.v2-risk-matrix__pop-v {
    margin: 0;
}

.v2-risk-matrix__cell:hover .v2-risk-matrix__popover,
.v2-risk-matrix__cell:focus-within .v2-risk-matrix__popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 576px) {
    .v2-risk-matrix {
        grid-template-columns: 3.5rem repeat(3, minmax(0, 1fr));
        gap: 0.32rem;
    }

    .v2-risk-matrix__colhead,
    .v2-risk-matrix__rowhead {
        font-size: 0.65rem;
        padding: 0.28rem 0.2rem;
    }

    .v2-risk-matrix__chip {
        font-size: 0.66rem;
    }
}

/* -------- 题材 Chip（洞察研究） -------- */
.v2-topic-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.v2-topic-chip {
    font-size: 0.82rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #1e3d59;
}

.v2-topic-chip-active {
    border-color: rgba(74, 111, 165, 0.65);
    background: rgba(74, 111, 165, 0.08);
    color: var(--v2-accent);
}

/* -------- 金融投资：市场轮动（investment_home_demo.html）--------
   说明：独立侧栏 + 3D 容器 + 图例，与 Football Field 卡片气质对齐，略加强阴影与层次。 */

.v2-market-rotation-section {
    position: relative;
}

.v2-market-rotation-lead {
    line-height: 1.55;
    max-width: 72rem;
}

/* 左侧行业筛选：浅底卡片，与右侧 3D 区形成左右分区 */
.v2-market-rotation-sidebar {
    height: 100%;
    padding: 0.65rem 0.75rem 0.75rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 1px 2px rgba(30, 61, 89, 0.04);
}

.v2-market-rotation-sidebar-label {
    color: #475569;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* 仅市场轮动 pills：略紧凑、选中态微阴影，与侧栏协调 */
.v2-market-rotation-pills {
    gap: 0.38rem;
}

.v2-market-rotation-pills .form-check-label {
    font-size: 0.78rem;
    padding: 0.32rem 0.65rem;
    border-color: #e2e8f0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.v2-market-rotation-pills .form-check-input:checked + .form-check-label {
    box-shadow: 0 1px 3px rgba(74, 111, 165, 0.18);
}

/* 3D 图容器：浅蓝底与 JS 中 paper/scene 同色；圆角仅在外层裁切，勿对 .plot-container/.svg-container 设 overflow:hidden，否则 WebGL 3D 可能无法绘制 */
.v2-market-rotation-host {
    --v2-mr-radius: 12px;
    width: 100%;
    min-height: 320px;
    border-radius: var(--v2-mr-radius);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    box-shadow:
        0 1px 2px rgba(30, 61, 89, 0.05),
        0 8px 24px rgba(30, 61, 89, 0.06);
}

/* Plotly 会测量内层高度；不对 gl/svg 子节点加 overflow，避免画布高度为 0 */
.v2-market-rotation-host .js-plotly-plot,
.v2-market-rotation-host .plotly .plot-container {
    min-height: 100%;
}

.v2-market-rotation-hint {
    opacity: 0.92;
    letter-spacing: 0.01em;
}

/* 横向渐变图例：与 Football Field 说明区同级的白底卡片 */
.v2-market-rotation-legend {
    margin-top: 0.65rem;
    padding: 0.55rem 0.75rem 0.5rem;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(30, 61, 89, 0.04);
}

.v2-market-rotation-legend-foot {
    line-height: 1.45;
    font-size: 0.78rem !important;
}

.v2-market-rotation-legend-ext {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
}

.v2-market-rotation-legend-gradient {
    min-width: 120px;
    height: 12px;
    border-radius: 6px;
    border: 1px solid rgba(30, 61, 89, 0.12);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.65);
    /* 与 JS 中 colorscale 五段色一致：浅灰底 → 深蓝 */
    background: linear-gradient(
        90deg,
        #f1f5f9 0%,
        #e5edf7 25%,
        #b7c7e5 50%,
        #4a6fa5 75%,
        #1e3d59 100%
    );
}

/* -------- 金融投资：市场博弈（investment_home_demo.html）--------
   说明：与「市场轮动」同级标题与左右分栏气质；左侧浅底侧栏 + 右侧 Chart 宿主。
   圆角与 overflow:hidden 仅加在 .v2-market-battle-host，内层 chart-inner 不设 overflow:hidden，避免 canvas 测量异常。 */

.v2-market-battle-section {
    position: relative;
}

.v2-market-battle-lead {
    line-height: 1.55;
    max-width: 72rem;
}

.v2-market-battle-sidebar {
    height: 100%;
    padding: 0.65rem 0.75rem 0.75rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 1px 2px rgba(30, 61, 89, 0.04);
}

.v2-market-battle-sidebar-label {
    color: #475569;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.v2-market-battle-pills {
    gap: 0.38rem;
}

.v2-market-battle-pills .form-check-label {
    font-size: 0.78rem;
    padding: 0.32rem 0.65rem;
    border-color: #e2e8f0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.v2-market-battle-pills .form-check-input:checked + .form-check-label {
    box-shadow: 0 1px 3px rgba(74, 111, 165, 0.18);
}

/* 柱状图外层：与市场轮动 3D 宿主同系浅底与阴影；仅此处裁切圆角 */
.v2-market-battle-host {
    --v2-mb-radius: 12px;
    width: 100%;
    border-radius: var(--v2-mb-radius);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    box-shadow:
        0 1px 2px rgba(30, 61, 89, 0.05),
        0 8px 24px rgba(30, 61, 89, 0.06);
}

.v2-market-battle-chart-inner {
    position: relative;
    height: 100%;
    width: 100%;
}

.v2-market-battle-hint {
    opacity: 0.92;
    letter-spacing: 0.01em;
}

/* -------- 金融投资：市场博弈「行业题材」pills 多选（investment_home_demo.html） --------
   说明：复用原生 checkbox + label，保证键盘焦点与 change 事件；外观为横向换行胶囊按钮。 */
.v2-battle-industry-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.v2-battle-industry-pills .form-check {
    padding-left: 0;
    margin-bottom: 0;
    min-height: 0;
}

/* label 呈现为 pill；:checked 时高亮，与 v2-topic-chip-active 视觉一致 */
.v2-battle-industry-pills .form-check-label {
    cursor: pointer;
    font-size: 0.82rem;
    padding: 0.38rem 0.78rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #1e3d59;
    margin-bottom: 0;
    user-select: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.v2-battle-industry-pills .form-check-input:focus-visible + .form-check-label {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(74, 111, 165, 0.25);
}

.v2-battle-industry-pills .form-check-input:checked + .form-check-label {
    border-color: rgba(74, 111, 165, 0.65);
    background: rgba(74, 111, 165, 0.08);
    color: var(--v2-accent);
    font-weight: 600;
}

/* -------- 等长题材筛选（洞察研究） --------
   说明：为 `news_home.html` 中的“热度/题材筛选”提供等宽可点击选项样式。
   该样式不复用 `.v2-topic-chip` 的圆形 Chip 视觉细节，以免影响其它模块布局。 */
.v2-topic-equal-option {
    cursor: pointer;
    font-size: 0.82rem;
    padding: 0.32rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #1e3d59;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.v2-topic-equal-option-active {
    border-color: rgba(74, 111, 165, 0.65);
    background: rgba(74, 111, 165, 0.08);
    color: var(--v2-accent);
}

/* -------- 热度双滑条容器（洞察研究） -------- */
.v2-news-heat-range {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* -------- 热度双端滑条（首尾控制，单条线） --------
   说明：用于 `news_home.html` 的 `v2-heat-dual-slider`。
   目标：将两个 range 输入叠放在同一条水平轨道上，由 JS 负责保证 min <= max，并更新填充条。 */
.v2-heat-dual-slider {
    position: relative;
    height: 34px;
    padding-top: 9px; /* 给 thumb 一点垂直空间，避免被容器裁切 */
}

.v2-heat-dual-slider-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    border-radius: 999px;
    /* 热度渐变底色：低热度偏蓝，高热度偏红 */
    background: linear-gradient(90deg,
        hsla(210, 90%, 45%, 0.25) 0%,
        hsla(0, 90%, 45%, 0.25) 100%
    );
}

.v2-heat-dual-slider-fill {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    border-radius: 999px;
    left: 0;
    width: 0;
    /* 具体渐变由模板 JS 按 min/max 动态设置 */
    background: linear-gradient(90deg, hsla(210, 90%, 45%, 0.85), hsla(0, 90%, 45%, 0.85));
}

.v2-heat-dual-slider-input {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 34px;
    margin: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
}

/* WebKit：隐藏轨道，仅保留 thumb 用于交互 */
.v2-heat-dual-slider-input::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
}

.v2-heat-dual-slider-input::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #ffffff;
    border: 2px solid rgba(74, 111, 165, 0.95);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

/* Firefox */
.v2-heat-dual-slider-input::-moz-range-track {
    height: 6px;
    background: transparent;
}

.v2-heat-dual-slider-input::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #ffffff;
    border: 2px solid rgba(74, 111, 165, 0.95);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

#v2-heat-min-range {
    z-index: 2;
}

#v2-heat-max-range {
    z-index: 3;
}

/* -------- 热度 badge（洞察研究） -------- */
.v2-heat-badge {
    font-weight: 700;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

/* -------- 用户创作/接口占位（洞察研究） -------- */
.v2-creativity-placeholder {
    padding: 0.65rem 0.6rem;
    border: 1px dashed #d7dde6;
    border-radius: 12px;
    background: #fbfcfe;
}

.v2-creativity-hero {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(74, 111, 165, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--v2-accent);
    margin-bottom: 0.55rem;
}

.v2-creativity-text {
    line-height: 1.6;
}

.v2-api-placeholder {
    padding: 0.65rem 0.6rem;
    border: 1px dashed #d7dde6;
    border-radius: 12px;
    background: #fbfcfe;
}

.v2-api-key code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.82rem;
    color: #1e3d59;
}

/* -------- 新能源 v2：模块成就栏（项目地图上方） --------
   说明：横向徽章条，已解锁为品牌色强调；未解锁降低对比度并显示锁图标。 */
.v2-ne-achievements-bar {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #eef4f8 100%);
    border: 1px solid #e2e8f0 !important;
}

.v2-ne-achievements-bar-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a202c;
}

.v2-ne-achievements-count {
    font-size: 0.72rem;
    font-weight: 600;
    color: #1e3d59;
    background: rgba(30, 61, 89, 0.08);
    border: 1px solid rgba(30, 61, 89, 0.15);
}

.v2-ne-achievement-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    min-height: 52px;
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    flex: 1 1 140px;
    max-width: 220px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.v2-ne-achievement-item:hover {
    border-color: rgba(30, 61, 89, 0.35);
    box-shadow: 0 2px 8px rgba(30, 61, 89, 0.08);
}

.v2-ne-achievement-item--locked {
    opacity: 0.72;
    background: #f8fafc;
}

.v2-ne-achievement-item--locked .v2-ne-achievement-icon {
    color: #94a3b8;
    background: #e2e8f0;
}

.v2-ne-achievement-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3d59;
    background: rgba(30, 61, 89, 0.1);
    font-size: 1rem;
}

.v2-ne-achievement-item:not(.v2-ne-achievement-item--locked) .v2-ne-achievement-icon {
    color: #1e3d59;
    background: linear-gradient(145deg, rgba(142, 186, 66, 0.2) 0%, rgba(30, 61, 89, 0.12) 100%);
}

.v2-ne-achievement-text {
    min-width: 0;
    text-align: left;
}

.v2-ne-achievement-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v2-ne-achievement-item--locked .v2-ne-achievement-name {
    color: #64748b;
}

.v2-ne-achievement-meta {
    font-size: 0.65rem;
    color: #64748b;
    margin-top: 0.1rem;
}

.v2-ne-achievement-item:not(.v2-ne-achievement-item--locked) .v2-ne-achievement-meta {
    color: #2d8a6e;
}

@media (max-width: 576px) {
    .v2-ne-achievement-item {
        flex: 1 1 calc(50% - 0.5rem);
        max-width: none;
    }
}

/* -------- 新能源 v2：中崛科技合作平台 · 供应链（对齐 quotation_offer 名片/色条/成本图配色） --------
   色板引用：主色 #1e3d59、强调绿 #8EBA42、图表蓝 #348ABD、报价单红分隔 #c00。
   SVG 折线在本卡片内覆盖描边色，与饼图图例一致；轮播依赖 bootstrap.bundle。 */
.v2-ne-sinorise-scm-card {
    background: #fafbfc;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

.v2-ne-sinorise-scm-card .card-body {
    font-size: 0.9rem;
    color: #2c3e50;
}

/* 顶部品牌区：与 quotation_offer .brand-header / .brand-logo 一致 */
.v2-ne-sinorise-brand-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.v2-ne-sinorise-brand-logo {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.02em;
}

.v2-ne-sinorise-brand-logo .sep {
    color: #c00;
    margin: 0 0.25rem;
    font-weight: 600;
}

.v2-ne-sinorise-brand-logo .en {
    color: #c00;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.v2-ne-sinorise-brand-badge {
    font-size: 0.65rem;
    color: #fff;
    background: #1e3d59;
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    line-height: 1.35;
    text-align: center;
    max-width: 220px;
}

.v2-ne-sinorise-brand-badge-line1,
.v2-ne-sinorise-brand-badge-line2 {
    display: block;
}

.v2-ne-sinorise-title-block {
    margin-bottom: 0.75rem;
}

.v2-ne-sinorise-title-cn {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1.05rem;
}

.v2-ne-sinorise-title-sub {
    font-size: 0.82rem;
    color: #555;
    margin-top: 0.2rem;
}

.v2-ne-sinorise-sample-badge {
    font-size: 0.7rem;
    font-weight: 500;
    color: #4a5568;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

/* 对齐 quotation .section-scale：左侧绿条 + 浅底 */
.v2-ne-sinorise-section-scale {
    padding: 0.65rem 0.9rem;
    background: #f8fafc;
    border-left: 3px solid #8eba42;
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.55;
}

.v2-ne-sinorise-section-scale strong {
    color: #1e3d59;
}

/* 对齐 quotation .cost-chart-section：白底浅灰框 */
.v2-ne-sinorise-chart-panel {
    padding: 0.85rem 1rem;
    background: #fafbfc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.v2-ne-sinorise-chart-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e3d59;
    margin-bottom: 0.35rem;
}

.v2-ne-sinorise-promo-wrap {
    margin-top: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.v2-ne-sc-trend-wrap {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8edf3;
}

.v2-ne-sc-trend-svg {
    display: block;
    width: 100%;
    height: 168px;
}

/* 本卡片内：三线配色与 quotation 饼图 / 图例一致（硅片蓝、电池绿、组件海军蓝） */
.v2-ne-sinorise-scm-card .v2-news-trend-line {
    stroke: #348abd;
}

.v2-ne-sinorise-scm-card .v2-news-trend-line-alt {
    stroke: #8eba42;
}

.v2-ne-sinorise-scm-card .v2-ne-sc-line-module {
    stroke: #1e3d59;
    stroke-width: 2;
}

.v2-ne-sc-legend-swatch {
    display: inline-block;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 2px;
    margin-right: 0.2rem;
    vertical-align: middle;
}

.v2-ne-sc-legend-swatch--wafer {
    background: #348abd;
}

.v2-ne-sc-legend-swatch--cell {
    background: #8eba42;
}

.v2-ne-sc-legend-swatch--module {
    background: #1e3d59;
}

.v2-ne-sc-ad-carousel {
    position: relative;
    padding-left: 2.25rem;
    padding-right: 2.25rem;
}

.v2-ne-sc-ad-carousel .carousel-indicators [data-bs-target] {
    background-color: #1e3d59;
    opacity: 0.35;
}

.v2-ne-sc-ad-carousel .carousel-indicators .active {
    opacity: 1;
}

.v2-ne-sc-ad-carousel .carousel-control-prev,
.v2-ne-sc-ad-carousel .carousel-control-next {
    width: 2rem;
    opacity: 0.9;
}

.v2-ne-sc-ad-carousel .carousel-control-prev-icon,
.v2-ne-sc-ad-carousel .carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

.v2-ne-sc-ad-slide {
    min-height: 152px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 轮播：中崛主色、报价单绿、成本图蓝（与 quotation_offer 饼图条呼应） */
.v2-ne-sc-ad-slide--a {
    background: linear-gradient(145deg, #1e3d59 0%, #2a5278 55%, #1e3d59 100%);
}

.v2-ne-sc-ad-slide--b {
    background: linear-gradient(145deg, #6b9c2e 0%, #8eba42 45%, #6a8f32 100%);
}

.v2-ne-sc-ad-slide--c {
    background: linear-gradient(145deg, #348abd 0%, #1e3d59 100%);
}

.v2-ne-sinorise-ad-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.88;
}

/* 卡片底栏：对齐 quotation .company-footer 层次 */
.v2-ne-sinorise-card-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.82rem;
    color: #555;
}

.v2-ne-sinorise-card-footer-name {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.1rem;
}

.v2-ne-sinorise-card-footer-en {
    font-size: 0.78rem;
    color: #718096;
    margin-bottom: 0.5rem;
}

.v2-ne-sinorise-card-footer-note {
    font-size: 0.78rem;
    color: #718096;
    line-height: 1.45;
}

/* -------- 新能源 · 项目展示地图图例 -------- */
.v2-ne-map-legend {
    background: rgba(11, 23, 38, 0.04);
    /* 与地图区块保持同高（new_energy_home 地图固定 360px） */
    height: 360px;
    min-height: 360px;
    overflow-y: auto;
}

.v2-ne-map-legend-list li:last-child {
    margin-bottom: 0 !important;
}

/* 图例：每个阶段条目（包含复选框）整体可点击，支持 hover 预览 */
.v2-ne-map-legend-item {
    cursor: pointer;
    user-select: none;
    transition: opacity 0.15s ease;
}

.v2-ne-map-legend-item:hover {
    opacity: 0.92;
}

/* 与 bootstrap form-check-input 默认 margin 细节对齐，避免图例高度抖动 */
.v2-ne-map-legend-item .v2-ne-stage-toggle {
    margin: 0 !important;
}

.v2-ne-legend-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #333;
    flex-shrink: 0;
}

/* 与 web_new_energy_v2.NE_STATUS_COLORS 一致，供图例与地图脚本配色同源 */
.v2-ne-legend-swatch--dev {
    background: #5eb8e0;
    border-color: #1e6b8a;
}
.v2-ne-legend-swatch--build {
    background: #f0c040;
    border-color: #b8860b;
}
.v2-ne-legend-swatch--operate {
    background: #5ed67a;
    border-color: #2d8a4e;
}
.v2-ne-legend-swatch--sold {
    background: #a67fd6;
    border-color: #6b4c9a;
}
.v2-ne-legend-swatch--paused {
    background: #c0c0c0;
    border-color: #888888;
}
.v2-ne-legend-swatch--terminated {
    background: #d08080;
    border-color: #8b3a3a;
}
.v2-ne-legend-swatch--unknown {
    background: #999999;
    border-color: #333333;
}

.v2-ne-projects-map {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* -------- 新能源 · 状态 Badge（颜色与图例一致）-------- */
.v2-ne-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #999999;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    background: transparent;
    line-height: 1.2;
}

.v2-ne-status-badge--dev { background: rgba(94, 184, 224, 0.12); border-color: #1e6b8a; color: #1e6b8a; }
.v2-ne-status-badge--build { background: rgba(240, 192, 64, 0.12); border-color: #b8860b; color: #b8860b; }
.v2-ne-status-badge--operate { background: rgba(94, 214, 122, 0.12); border-color: #2d8a4e; color: #2d8a4e; }
.v2-ne-status-badge--sold { background: rgba(166, 127, 214, 0.12); border-color: #6b4c9a; color: #6b4c9a; }
.v2-ne-status-badge--paused { background: rgba(192, 192, 192, 0.12); border-color: #888888; color: #6b7280; }
.v2-ne-status-badge--terminated { background: rgba(208, 128, 128, 0.12); border-color: #8b3a3a; color: #8b3a3a; }
.v2-ne-status-badge--unknown { background: rgba(153, 153, 153, 0.12); border-color: #333333; color: #333333; }

/* -------- 新能源 · 类型 Badge（图标 + 文字 + 不同颜色）-------- */
.v2-ne-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #1e3d59;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.v2-ne-type-badge--pv { background: rgba(30,61,89,0.06); border-color: rgba(30,61,89,0.25); }
.v2-ne-type-badge--storage { background: rgba(245,158,11,0.10); border-color: rgba(245,158,11,0.35); }
.v2-ne-type-badge--hybrid { background: rgba(34,197,94,0.10); border-color: rgba(34,197,94,0.35); }
.v2-ne-type-badge--unknown { background: #f1f5f9; border-color: #e2e8f0; color: #64748b; }

/* 让类型 badge 内图标容器复用 v2-kpi-mini-icon 风格（颜色按类型覆盖） */
.v2-ne-type-icon {
    margin-right: 0.25rem;
}

/* 类型列仅展示图标时：压缩右侧与下方留白，避免表格行高被拉大 */
.v2-ne-type-icon-only {
    margin-right: 0 !important;
    margin-bottom: 0 !important;
}

.v2-ne-type-icon--pv {
    background: rgba(30,61,89,0.08) !important;
    color: rgba(30,61,89,0.95) !important;
    border: 1px solid rgba(30,61,89,0.18) !important;
}

.v2-ne-type-icon--storage {
    background: rgba(245,158,11,0.10) !important;
    color: rgba(217,119,6,0.95) !important;
    border: 1px solid rgba(217,119,6,0.22) !important;
}

.v2-ne-type-icon--hybrid {
    background: rgba(34,197,94,0.10) !important;
    color: rgba(22,163,74,0.95) !important;
    border: 1px solid rgba(22,163,74,0.22) !important;
}

.v2-ne-type-icon--unknown {
    background: rgba(148,163,184,0.12) !important;
    color: rgba(100,116,139,0.95) !important;
    border: 1px solid rgba(148,163,184,0.22) !important;
}

/* -------- 响应式调整 -------- */
/* 由于 `v2-world-map-wrap` 已使用 `aspect-ratio` 自适应，因此这里不再对高度做响应式覆盖。 */

@media (max-width: 576px) {
    .v2-calendar-grid {
        gap: 0.4rem;
    }
    .v2-calendar-day {
        min-height: 56px;
    }
    .v2-kpi-grid {
        grid-template-columns: 1fr 1fr;
    }
    .v2-location-kpi-grid {
        grid-template-columns: 1fr;
    }
    .v2-planners-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .v2-home-fixed-height {
        min-height: 220px;
    }
}

/* ========== 翊能达财务 · 积分相关三页（用户账单 / 服务定价 / 套餐订阅）========== */
.v2-finance-credit-page {
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 32%);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.v2-finance-hero {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 55%);
    border-radius: 10px;
    border-left: 4px solid #1e3d59;
    box-shadow: 0 2px 8px rgba(30, 61, 89, 0.08);
}

.v2-finance-hero-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 61, 89, 0.09);
    color: #1e3d59;
    border-radius: 10px;
    font-size: 1.35rem;
}

.v2-finance-hero-body {
    flex: 1;
    min-width: 0;
}

.v2-finance-credit-page .v2-admin-section.v2-finance-section {
    padding: 1rem 1.15rem;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.v2-finance-toolbar .row {
    margin-bottom: 0;
}

.v2-finance-toolbar form {
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e8eef4;
}

.v2-finance-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
    background: #fff;
}

.v2-finance-table-wrap .table-responsive {
    margin-bottom: 0;
}

/* 服务定价：单行卡片 */
.v2-finance-pricing-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.v2-finance-pricing-card-head {
    padding: 0.65rem 1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #1e3d59;
    font-size: 0.95rem;
}

.v2-finance-pricing-card-body {
    padding: 1rem 1rem 1.1rem;
}

/* 套餐订阅页：模板行卡片 */
.v2-finance-plan-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

@media (max-width: 576px) {
    .v2-finance-hero {
        flex-direction: column;
        align-items: stretch;
    }
    .v2-finance-hero-icon {
        align-self: flex-start;
    }
}

