/* ============================================================================
   AI-PBL 双色手绘视觉基准 v2 —— 从已批准的 reference/ai-pbl-dual-view-prototype-v2.html
   逐值提取，未新增配色。源文件 sha256:
   969daac79ffb55af34475916591160144e1308722bbde87dd7c875155cc6e465
   本文件只提供视觉基底；它不是生产样式表，不替换 public/styles.css。
   ========================================================================= */

:root{
  --yellow:#f6d85a;
  --yellow-soft:#fbe58b;
  --paper:#fffdf5;
  --ink:#262921;
  --muted:#62664f;
  --blue:#315cba;
  --coral:#ce4b31;
  --line:#d4c16e;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;
  --hand:"KaiTi","STKaiti","Kaiti SC","Noto Serif CJK SC",serif;
}

*{box-sizing:border-box}
html{min-height:100%}
body{
  margin:0;
  color:var(--ink);
  background:var(--yellow);
  font:14px/1.75 var(--sans);
  -webkit-font-smoothing:antialiased;
}
/* 纸张颗粒：来自基准的同一张 SVG，未加重装饰。 */
body::before{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Ccircle cx='13' cy='21' r='.65' fill='%23262921' opacity='.12'/%3E%3Ccircle cx='63' cy='69' r='.45' fill='%23262921' opacity='.12'/%3E%3C/svg%3E");
}

button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer;touch-action:manipulation;transition:background .15s,transform .15s}
button:disabled{cursor:default;opacity:.48}
/* 键盘可达：焦点始终可见，不只靠颜色。 */
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{
  outline:3px solid var(--blue);outline-offset:4px;
}
button:active:not(:disabled){transform:translateY(1px)}
button,a{-webkit-tap-highlight-color:transparent}
svg{display:block}
h1,h2,h3,p{margin:0}
button svg{flex-shrink:0}
button:hover:not(:disabled){filter:brightness(.97)}
[hidden]{display:none!important}

.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

/* --- 顶栏 ---------------------------------------------------------------- */
.topbar{
  height:96px;max-width:1320px;margin:auto;padding:0 44px;
  border-bottom:1px solid #26292138;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
}
.brand{display:flex;gap:11px;align-items:center;border:0;padding:0;background:none;text-align:left;min-height:48px;min-width:0}
.brand-icon{width:47px;height:45px;flex:0 0 auto}
.brand-text{display:block;min-width:0}
/* 主名称允许在「AI-PBL」与「商业探索教练」之间换行；「AI-PBL」本身不折断 */
.brand-name{font-weight:850;font-size:24px;letter-spacing:.5px;line-height:1.2;white-space:normal}
.brand-ascii{white-space:nowrap}
.brand-sub{display:block;font-size:11px;letter-spacing:2px;margin-top:5px;color:var(--muted)}
.header-right{display:flex;align-items:center;gap:25px;flex:0 0 auto}

/* --- 通用纸白卡：工作区始终纸白，颜色只做外框 ----------------------------- */
.sheet-card{
  position:relative;background:var(--paper);border:1.6px solid var(--ink);
  border-radius:6px 9px 3px 6px;box-shadow:4px 5px 0 #262921;
  padding:22px 24px 24px;
}
.sheet-card.soft{box-shadow:2px 3px 0 #26292124;border-width:1.2px;border-radius:5px 8px 4px 5px}

/* --- 按钮 ---------------------------------------------------------------- */
.primary{
  width:100%;min-height:53px;background:var(--ink);color:var(--paper);
  border:1px solid var(--ink);border-radius:5px 3px 7px 4px;
  font-size:15px;font-weight:650;padding:11px 17px;
  display:flex;align-items:center;justify-content:center;gap:23px;
  box-shadow:2px 3px 0 #26292124;
}
.primary:disabled{background:#5b5e4d;opacity:.72}
.primary svg{width:23px;height:23px}
.secondary{
  min-height:44px;border:1px solid #b7bfaa;background:#fffefa;
  border-radius:4px;padding:9px 11px;font-size:12px;text-align:center;flex:1;
}
.secondary:hover:not(:disabled){background:#f2f4e9}
.plain{
  min-height:44px;background:none;border:0;display:inline-flex;align-items:center;
  justify-content:center;gap:7px;padding:6px 2px;font-size:12px;
}
.plain svg{width:17px;height:19px}
.plain:hover{text-decoration:underline;text-underline-offset:5px}
/* 顶栏的“家长入口 / 孩子入口”是纯跳转链接，保持与旁边按钮同一语气。 */
a.plain{color:inherit;text-decoration:none}
a.plain:hover{text-decoration:underline;text-underline-offset:5px}

/* --- 状态提示 ------------------------------------------------------------ */
.hint{font-size:11px;color:#697254;line-height:1.9}
.banner{
  padding:11px 15px;border-radius:4px 7px 3px 5px;font-size:12px;line-height:1.85;
  border:1px solid #c9cdbb;background:#fffefa;
}
.banner[data-tone=paused]{background:#fff3bf;border-color:var(--line)}
.toast{
  position:fixed;bottom:25px;left:50%;transform:translate(-50%,15px);opacity:0;
  pointer-events:none;max-width:calc(100% - 32px);min-width:230px;
  background:var(--ink);color:var(--paper);font-size:12px;padding:12px 19px;
  border-radius:5px;z-index:99;text-align:center;transition:.2s;
}
.toast.on{opacity:1;transform:translate(-50%,0)}
/* 关键反馈不只靠颜色：状态点旁始终有文字。 */
.status-dot{width:6px;height:6px;background:var(--blue);border-radius:50%;display:inline-block;margin-right:7px}

/* --- 对话框 -------------------------------------------------------------- */
dialog{
  border:1.4px solid var(--ink);border-radius:6px 10px 4px 5px;background:var(--paper);
  color:var(--ink);padding:27px 29px;width:calc(100% - 34px);max-width:540px;
  max-height:85vh;overflow:auto;box-shadow:8px 9px 0 #26292150;
}
dialog::backdrop{background:#26292165}
.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:13px}
.dialog-head h2{font-size:22px;line-height:1.5}
.close{border:0;background:none;min-width:44px;min-height:44px;font-size:25px;line-height:1}
.dialog-copy{font-size:12px;line-height:1.9;color:#636d54;margin:11px 0}
.dialog-copy strong{font-weight:550;color:#35422d}
.dialog-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:22px}
.dialog-actions button{flex:1}

@keyframes enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.view-enter{animation:enter .25s ease both}

/* --- 页脚：两端共用同一套基底，各自的断点覆盖写在各自的表面样式里 --- */
.page-footer{
  max-width:1232px;margin:0 auto;padding:10px 0 23px;
  display:flex;justify-content:space-between;align-items:center;
  color:#555b43;font-size:10px;gap:20px;flex-wrap:wrap;
}
.page-footer button{font-size:10px;color:inherit}
.theme-note{font-size:10px;letter-spacing:1px}
/* 当前版本状态：常驻可见的短提示 */
.version-note{font-size:10px;letter-spacing:.5px;color:#8a6a1f}
/* 公共产品说明与使用边界：页内折叠，四种页面状态都读得到 */
.product-info{flex-basis:100%;margin-top:10px;padding-top:9px;border-top:1px solid #26292122}
.product-info>summary{cursor:pointer;font-size:11px;letter-spacing:1px;color:#46583a;width:fit-content}
.product-info>summary:hover{color:#262921}
.product-info-body{max-width:820px;margin-top:9px;font-size:11px;line-height:1.9;color:#555b43}
.product-info-body h3{margin:11px 0 3px;font-size:11px;letter-spacing:1px;color:#262921}
.product-info-body p{margin:0 0 6px}

/* --- 响应式：断点沿用基准 1350 / 1050 / 720 / 365 ------------------------- */
@media(max-width:1350px){
  .topbar{margin:0 34px;padding:0 10px}
  main,.page-footer{margin-left:44px;margin-right:44px}
}
@media(max-width:1050px){
  .topbar{margin:0 24px;padding:0 4px;height:84px}
  main,.page-footer{margin-left:28px;margin-right:28px}
}
@media(max-width:720px){
  .topbar{height:76px;margin:0 18px;padding:0;gap:10px}
  .brand{gap:5px}
  .brand-icon{width:31px;height:33px}
  .brand-name{font-size:19px;letter-spacing:0}
  .brand-sub{font-size:8px;letter-spacing:1px;margin-top:3px}
  .header-right{gap:8px}
  main,.page-footer{margin-left:23px;margin-right:23px}
  dialog{padding:22px;box-shadow:4px 5px 0 #26292150}
  .dialog-head h2{font-size:20px}
  .toast{font-size:11px;bottom:17px}
  .sheet-card{padding:19px 18px;box-shadow:3px 4px 0 #262921}
}
@media(max-width:365px){
  .topbar{margin:0 14px}
  .brand-name{font-size:17px}
  .brand-icon{width:27px}
  main,.page-footer{margin-left:18px;margin-right:18px}
  .sheet-card{padding:17px 15px}
}
/* 降低动态效果后，动画不阻断任何操作。 */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}
}

/* 地址没就绪时入口不可导航：不给出可点的链接，只留一个禁用态。 */
a.plain[aria-disabled=true]{color:inherit;text-decoration:none;opacity:.55;cursor:default}
a.plain[aria-disabled=true]:hover{text-decoration:none}
