/* ==========================================================================
   合规组件样式（2026-10-05 合规审计整改）
   1. 配图「效果示意」标注（广告法第4/28条）
   2. Cookie 同意横幅（个人信息保护法第14条）
   3. 主体信息公示栏 / 侵权投诉渠道
   ========================================================================== */

/* ---------- 1. 配图效果示意标注 ---------- */
.figure-note {
    display: block;
    margin-top: 8px;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.6;
    color: #64748b;
    background: #f8fafc;
    border-left: 3px solid #cbd5e1;
    border-radius: 0 4px 4px 0;
    text-align: left;
}

.figure-note-wrap {
    position: relative;
    display: block;
}

/* 无底色版图注：页面级免责声明（首页数据口径 / 合作伙伴商标、联系页服务承诺）
   [2026-10-14 v2.2.1] 原先这些位置靠内联 style="border-left:none;background:transparent"
   去覆盖基础样式，但正文页 CSP 是 style-src 'self' 'nonce-…'（不含 unsafe-inline），
   内联 style 属性会被浏览器拒绝 → 覆盖失效，页面上仍显示成灰底描边的「提示框」。
   现改为类名承载，与 CSP 一致，渲染结果可预期。 */
.figure-note--plain {
    margin-top: 10px;
    background: transparent;
    border-left: none;
    border-radius: 0;
}

/* 图片右下角角标（列表卡片用，避免撑高卡片） */
.figure-note-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    padding: 2px 8px;
    font-size: 11px;
    line-height: 1.6;
    color: #fff;
    background: rgba(15, 23, 42, .62);
    border-radius: 3px;
    pointer-events: none;
    letter-spacing: .2px;
}

/* 详情页主图下方的「效果示意」说明（案例详情 / 服务详情）
   [布局修复 2026-10-14 v2.2.1] 原先这两个说明是 flex 行内的第三个元素，
   会被挤到主图右侧、或压成极窄一列（案例详情页用户已反馈）。
   现统一改为「图片正下方的居中图注」：无底色、无左边框、居中排版，
   与首页数据口径注释（index.php）、联系页注释的既有样式一致。 */
.case-detail-showcase .figure-note,
.service-detail-img-wrap .figure-note {
    /* 两个容器方向不同：案例详情是 column（靠 align-items:center 居中），
       服务详情是 row+wrap（靠下面的 width:100% + 自动外边距换行居中），
       所以这里只写与方向无关的属性。 */
    margin: 0 auto;
    max-width: 720px;
    padding: 0;
    text-align: center;
    background: transparent;
    border-left: none;
    border-radius: 0;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.7;
}

/* 服务详情：两张并列图 + 说明三件套同处一个 flex 容器。
   用 width:100%（而非 flex-basis:100%）抢占一整行 —— 桌面端是 row 方向，
   basis 由 width 派生即可换行；移动端容器会切成 column 方向，
   此时 flex-basis 作用在高度上会把说明拉满整屏，width 则始终安全。 */
.service-detail-img-wrap .figure-note {
    flex: 0 0 auto;
    width: 100%;
    margin: 4px auto 0;
}

/* ---------- 2. Cookie 同意横幅 ---------- */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    /* [提亮 2026-10-13 v2.2.0] 原 #0f172a 近黑，与提亮后的整站深色体系（--navy-900 #1b2b47）脱节。
       这是新访客进站第一眼看到的深色块，统一到同一色阶。 */
    background: #1b2b47;
    color: #e8edf5;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, .18);
    font-size: 13px;
}

.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1 1 420px;
    line-height: 1.7;
}

.cookie-consent-text a {
    color: #93c5fd;
    text-decoration: underline;
    margin-left: 4px;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 9px 20px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.4;
}

.cookie-btn-primary {
    background: var(--primary, #1e3a8a);
    color: #fff;
    border-color: var(--primary, #1e3a8a);
}

.cookie-btn-primary:hover {
    background: var(--primary-dark, #172554);
}

.cookie-btn-ghost {
    background: transparent;
    color: #cbd5e1;
    border-color: #475569;
}

.cookie-btn-ghost:hover {
    background: #1e293b;
    color: #fff;
}

/* 移动端：底部有导航栏时抬升，避免遮挡 */
@media (max-width: 767px) {
    .cookie-consent {
        padding-bottom: 66px;
    }
    .cookie-consent-inner {
        padding: 12px 16px;
        gap: 12px;
    }
    .cookie-consent-actions {
        width: 100%;
    }
    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}

/* ---------- 3. 主体信息公示 / 侵权投诉 ---------- */
.entity-disclosure {
    margin-top: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, .06);
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.9;
    color: #cbd5e1;
}

.entity-disclosure-title {
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 6px;
}

.entity-disclosure-row {
    display: block;
    word-break: break-all;
}

.entity-disclosure-row span {
    color: #94a3b8;
    margin-right: 6px;
}

.entity-disclosure .entity-license-link {
    color: #93c5fd;
    text-decoration: underline;
}

.footer-cookie-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: inherit;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: underline;
    opacity: .85;
}

.footer-cookie-btn:hover {
    opacity: 1;
}

/* 法律声明页：投诉渠道卡片 */
.legal-contact-card {
    margin-top: 16px;
    padding: 18px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.9;
}

.legal-contact-card h3 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #0f172a;
}

/* 合规管理体系概要列表（法律声明第九节） */
.legal-compliance-list {
    margin: 14px 0 6px;
    padding-left: 22px;
    font-size: 14px;
    line-height: 1.95;
    color: #334155;
}

.legal-compliance-list li {
    margin-bottom: 6px;
}

/* 表单就近告知（个人信息保护法第17条） */
.form-collect-notice {
    margin-bottom: 14px;
    padding: 10px 14px;
    font-size: 12.5px;
    line-height: 1.7;
    color: #475569;
    background: #f1f5f9;
    border-left: 3px solid var(--primary, #1e3a8a);
    border-radius: 0 4px 4px 0;
}

.form-collect-notice a {
    color: var(--primary, #1e3a8a);
    text-decoration: underline;
}

/* ---------- 4. 站点版本标识 ---------- */
/* 页脚版本号：低调展示，不影响视觉，仅用于核对升级是否生效 */
.footer-version,
.footer-mobile-version {
    display: inline-block;
    font-size: 11px;
    line-height: 1.6;
    color: #94a3b8;
    opacity: .65;
    letter-spacing: .3px;
    user-select: all;
    -webkit-user-select: all;
}

.footer-mobile-version {
    margin-top: 8px;
    text-align: center;
    width: 100%;
}
