/* Identidad visual Aula de Xinès. Cargar después de styles.css. */
:root {
  --cream:#f8f9fa; --ink:#242424; --muted:#656565; --line:#e3e5e7;
  --gray:#f1f2f3; --red:#af2025; --red-soft:#faecec; --maroon:#801a20;
  --shadow:0 8px 28px rgba(25,30,35,.05);
}
body { background:#fff; font-family:Arial,'Noto Sans SC',sans-serif; }
h1,h2,h3,.dsp { font-family:Arial,'Noto Sans SC',sans-serif; }
.site-header { position:relative; background:#fff; backdrop-filter:none; border-bottom:1px solid var(--line); }
.site-header .nav { height:auto; min-height:120px; gap:34px; }
.school-logo { display:block; flex:none; line-height:0; }
.school-logo img { display:block; width:110px; height:110px; object-fit:contain; }
.school-menu { margin-left:auto; display:flex; align-items:center; gap:30px; }
.school-menu a { padding:12px 0; color:var(--maroon); text-decoration:none; text-transform:uppercase; font-size:15px; font-weight:700; border-bottom:2px solid transparent; }
.school-menu a:hover { border-bottom-color:var(--maroon); }
.site-header .lang { border-radius:4px; flex-shrink:0; }
.site-header .lang button { min-height:38px; padding:8px 12px; }
#pinyin { padding-top:32px; scroll-margin-top:16px; }
.sec-head { max-width:none; margin-bottom:26px; }
.sec-head h1 { font-size:clamp(26px,3.4vw,36px); line-height:1.2; margin:0 0 12px; font-weight:700; letter-spacing:-.025em; }
.sec-head p { font-size:16px; }
.tool { border-radius:8px; }
.toolbar { background:#fff; }
.modes { border-radius:5px; }
.modes button { border-radius:3px; }
.modes button.on { background:var(--maroon); color:#fff; box-shadow:none; }
.search input,.btn,.big-play { border-radius:5px; }
.chip { border-radius:5px; }
.toggles { background:#f7f7f7; }
.syl { border-radius:5px; }
.panel { border-radius:8px; box-shadow:none; }
.d-left { background:#fafafa; }
.skip-link { position:absolute; top:-80px; left:16px; z-index:100; background:var(--maroon); color:#fff; padding:12px 18px; }
.skip-link:focus { top:12px; }
@media(max-width:640px) {
  .wrap { padding-left:16px; padding-right:16px; }
  .site-header .nav { min-height:0; gap:0; flex-wrap:wrap; padding-top:4px; padding-bottom:0; }
  .school-logo img { width:88px; height:88px; }
  .site-header .lang { margin-left:auto; }
  .school-menu { order:3; width:100%; margin:0; justify-content:space-between; gap:16px; border-top:1px solid var(--line); }
  .school-menu a { font-size:13px; padding:12px 4px; }
  #pinyin { padding-top:25px; }
  .sec-head { margin-bottom:20px; }
  .sec-head p { font-size:14px; }
  .toolbar { padding:12px; gap:12px; }
  .modes { width:100%; }
  .modes button { flex:1; min-height:40px; }
  .search { flex-basis:100%; min-width:0; }
  .chips { padding:12px; gap:6px; }
  .chip { min-height:38px; padding:7px 10px; }
  .toggles { padding:10px 12px; }
}
