/**
 * 研小匠 OpenRDai — 全局品牌样式
 * ================================
 *
 * 唯一的品牌词样式入口。所有页面引用此 CSS 后，
 * 在"研小匠"文字外层加 class="brand-rd" 即可应用统一配色。
 *
 * 品牌色规范（V2 — 加深稳重版）：
 *   主色（浅色背景）：#047857 emerald-700  深翠绿 — 研发/创新/合规
 *   主色（深色背景）：#10B981 emerald-500  亮翠绿 — 暗色UI下保证可读性
 *   辅助色：#F59E0B amber-500           琥珀金 — 高新认定/首购优惠
 */

/* ── 品牌词统一样式（浅色模式默认）── */
.brand-rd {
    color: #10B981 !important;
    /* emerald-500 — 亮翠绿，与官网一致 */
    font-weight: 700;
    font-family: 'Noto Serif SC', '宋体', SimSun, serif;
    letter-spacing: 0.02em;
}

/* 深色主题下品牌词同色（emerald-500 在深色背景上也够亮） */
[data-theme="dark"] .brand-rd {
    color: #10B981 !important;
}

/* 品牌词在饱和彩色背景上（如绿色 banner）需要白字 */
.brand-rd-on-color {
    color: #ffffff !important;
    font-weight: 700;
    font-family: 'Noto Serif SC', '宋体', SimSun, serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 副品牌词 OpenRDai（英文）统一中性灰 */
.brand-rd-en {
    color: #6B7280;
    font-weight: 500;
    font-size: 0.95em;
    margin-left: 0.25em;
}

[data-theme="dark"] .brand-rd-en {
    color: #9CA3AF;
}

/* ============================================================
 * 品牌色变量 — 供其它组件引用，避免硬编码十六进制色值
 * ============================================================ */
:root {
    --rd-brand: #10B981;
    /* emerald-500 亮翠绿 — 与官网统一 */
    --rd-brand-hover: #059669;
    /* emerald-600 hover 加深 */
    --rd-brand-light: #34D399;
    /* emerald-400 浅色辅助 */
    --rd-brand-pale: #D1FAE5;
    /* emerald-100 极浅背景 */
}

[data-theme="dark"] {
    --rd-brand: #10B981;
    /* emerald-500 深色模式主品牌色 */
    --rd-brand-hover: #34D399;
    /* emerald-400 hover 提亮 */
    --rd-brand-light: #6EE7B7;
    /* emerald-300 浅色辅助 */
    --rd-brand-pale: rgba(16, 185, 129, 0.1);
    /* 半透明绿 */
}
