/* ============================================================
   Baixi Psychology — EN/PC language layer (★ 2026-10-20)
   设计：与中文版共用 pc/css/*.css（布局/色彩/组件），
   本文件只做「语言差异层」：西文字体栈、字号/行高/字距微调、
   长词断行与溢出兜底。由 en/pc/*.html 在共用 CSS 之后追加引用，
   命中即覆盖（同特异性下后加载者生效；关键覆盖加 !important 兜底）。
   ============================================================ */

/* ---------- 1. 全局西文字体与排版基线 ---------- */
html[lang], .en-page, body {
    font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial,
                 "PingFang SC", "Microsoft YaHei", sans-serif;
}
h1, h2, h3, h4, h5, h6 {
    font-family: "Georgia", "Times New Roman", "Inter", serif;
    letter-spacing: .01em;           /* 西文标题去中式紧排 */
}
h1 { font-size: 1em; }               /* 与中文同级页面视觉重量接近时，
                                        长英文标题需略缩（相对 .hero-title 等类容器） */

/* ---------- 2. 导航/按钮/表单：英文更长，收窄内边距与字号 ---------- */
.nav-menu a, .main-nav a, header nav a {
    font-size: 14px;                 /* 中文版 15px 视觉宽度 ≈ 英文 14px */
    letter-spacing: .02em;
    white-space: nowrap;
}
.layui-btn, .btn, button[class*="btn"] {
    font-size: 14px;
    letter-spacing: .02em;
    padding-left: 18px; padding-right: 18px;
}
.form-label, label { letter-spacing: .01em; }
input.layui-input, input.form-input, textarea {
    font-family: inherit;
    font-size: 14px;
}
::placeholder { color: #9aa3af; opacity: 1; letter-spacing: .01em; }

/* ---------- 3. 长词安全：断词与溢出兜底（英文长词/URL 防撑破布局） ---------- */
p, li, .card-body, .layui-card-body, article, section {
    overflow-wrap: break-word;       /* Chromium/FF/Safari 现代写法 */
    word-wrap: break-word;           /* 旧浏览器兜底 */
    hyphens: auto;                   /* 允许连字符断词（窄容器） */
}
.section-title, .page-title, .card-title, h2 span, h3 span {
    overflow-wrap: break-word;
    word-break: break-word;          /* 防超长标题单行撑破 */
}
a { word-break: break-word; }

/* ---------- 4. 大写字距优化（英文 ALL-CAPS 标签） ---------- */
.upper, .text-uppercase, [class*="tag"], [class*="badge"] {
    letter-spacing: .08em;           /* 大写字母默认过挤 */
    text-transform: uppercase;
}
.eyebrow, .kicker { letter-spacing: .12em; }

/* ---------- 5. 行高：西文需要比中文略松的行高 ---------- */
p { line-height: 1.65; }
li { line-height: 1.55; }

/* ---------- 6. hero/品牌区：英文句长约为中文 1.8 倍，降字号防换行溢出 ---------- */
.hero-title, .banner-title { font-size: .92em !important; line-height: 1.2; }
.hero-sub, .banner-sub   { font-size: .9em !important; line-height: 1.6; }
.stat-label, .stat-value { letter-spacing: .01em; }

/* ---------- 7. 表格/网格自适应兜底 ---------- */
table { table-layout: auto; }
.layui-table th, .layui-table td { word-break: break-word; }
.grid, .cards, [class*="grid-"] { gap: 14px; }

/* ---------- 8. 品牌名与装饰字（保持与中文版一致的视觉锚点） ---------- */
.brand-en { font-variant: small-caps; letter-spacing: .14em; }
BAIXI, .logo-text { letter-spacing: .1em; }

/* ---------- 9. 数字/价格：等宽数字对齐 ---------- */
.price, .stat-value, .num, [class*="count"] {
    font-variant-numeric: tabular-nums;
}

/* ---------- 10. 印章/竖排装饰（中文装饰字保留，微调字距防重叠） ---------- */
.seal, .stamp { letter-spacing: .05em; }
