/* ============================================================
   apple-ui.css · 北辰之光 共享样式 v1（2026-10）
   只补"手感和细节"，不改变页面现有的颜色、版面和字体。
   每个页面在 </head> 前引用一行：<link rel="stylesheet" href="apple-ui.css">
   删掉这一行引用，页面就回到原来的样子。
   ============================================================ */

/* 1. 字体：保留原来的 Noto，后面补上苹果设备、安卓、Windows 的系统字体兜底。
      Google 字体加载慢、被屏蔽的时候，不会闪一下，也不会退回难看的默认字体。 */
:root{
  --font-body:'Noto Sans SC',-apple-system,BlinkMacSystemFont,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
  --font-display:'Noto Serif SC','Songti SC','STSong','SimSun',serif;

  /* 以下变量先备着，后面统一页面时再用，现在不影响任何页面 */
  --ease-ios:cubic-bezier(.32,.72,0,1);
  --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;
  --radius-sm:10px;--radius-md:12px;--radius-lg:16px;
}

/* 2. 手机浏览器：不自动放大文字；点击没有灰色闪烁；去掉双击放大的延迟 */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;}
a,button,input,select,textarea,label,summary,[onclick],[role="button"]{
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}

/* 3. 按下立刻有反馈：轻微缩小，松手回弹。没有加 transition，不会覆盖页面原有的过渡 */
button:not(:disabled):active,
.cta-btn:active,
.btn-main:active,
.menu-card:active,
[role="button"]:active{
  transform:scale(.97);
}

/* 4. 键盘聚焦：清晰的外框，只在键盘操作时出现，鼠标点击不会出现 */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible{
  outline:2px solid var(--gold,#B8956A);
  outline-offset:2px;
}

/* 5. 手机上的输入框字号不小于 16px，否则 iPhone 一点进去就会自动放大页面 */
@media (max-width:760px){
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="button"]):not([type="submit"]),
  select,
  textarea{
    font-size:16px !important;
  }
}

/* 6. 用户在系统里开了"减少动效"：动画和过渡几乎瞬间完成，页面滚动也不再平滑滑动 */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto !important;}
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
}

/* 7. 页脚的版权与免责声明（每个页面底部统一使用） */
.site-legal{
  font-family:var(--font-body);
  font-size:11px;line-height:1.8;
  color:var(--muted-ink,#6B6558);
  max-width:560px;margin:16px auto 0;text-align:center;
}
.site-legal a{color:inherit;text-decoration:underline;text-underline-offset:2px;}
