/* 首页专属样式。来源：设计稿「Tinuv Studio 主站」v3 · tinuv.me 主官网（TinuvHomeV3）。
   通用的页面底、玻璃、按钮、排版在 md-theme.css / site.css。 */

/* 品牌花体：Mr Dafoe（SIL OFL 1.1），只含拉丁子集，自托管避免依赖 Google Fonts */
@font-face {
  font-family: 'Mr Dafoe';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/mr-dafoe-latin.woff2') format('woff2');
}

body { margin: 0; background: #0E1116; }
a { color: #60A5FA; }
a:hover { color: #93C5FD; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 8px 14px; border-radius: 10px; background: #F3F4F6; color: #0E1116; }
.skip-link:focus { left: 16px; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: #9CA3AF; margin: 0; }
.feat { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #fff; }
.feat img { width: 28px; height: 28px; }
.feat span.ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.helplink { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 4px; font-size: 16px; color: #F3F4F6; border-top: .5px solid rgba(255,255,255,.07); text-decoration: none; }
.helplink:hover { color: #93C5FD; }
.helplink svg { color: #6B7280; flex-shrink: 0; }

/* 字标：图标与花体墨迹间距 4px、外框上下居中（Chrome 4x 渲染实测；Mr Dafoe 的 T 向左伸出，css gap 要比可见间距大） */
.script-lockup { display: flex; align-items: center; gap: 6.5px; flex-shrink: 0; text-decoration: none; }
.sl-text { font-family: 'Mr Dafoe', cursive; font-size: 38px; line-height: 1.25; color: #F3F4F6; white-space: nowrap; position: relative; top: .9px; }
.sl-tile { width: 28px; height: 28px; flex-shrink: 0; border-radius: 22.37%; background: linear-gradient(180deg, #FFFFFF, #E6E8EC); display: flex; align-items: center; justify-content: center; }
.sl-tile svg { width: 88%; height: 88%; fill: #0E1116; }
.script-lockup.sm { gap: 6px; }
.script-lockup.sm .sl-tile { width: 22px; height: 22px; }
.script-lockup.sm .sl-text { font-size: 30px; top: .6px; }
/* 品牌名一律用花体，任何时候只能横排一行 */
.script { font-family: 'Mr Dafoe', cursive; font-weight: 400; letter-spacing: 0; white-space: nowrap; }

/* 「<斜杠/>」：像一枚自闭合标签，代码配色 + 闪烁光标 */
.slash-eyebrow { display: flex; align-items: center; gap: 10px; letter-spacing: .04em; color: #C9CDD4; }
.slash-tag { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 9px; background: rgba(96,165,250,.10); box-shadow: inset 0 0 0 .5px rgba(96,165,250,.35); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; font-weight: 500; letter-spacing: 0; }
.slash-tag .pt { color: #60A5FA; }
.slash-tag .nm { color: #F3F4F6; margin: 0 1px; }
.caret { width: 2px; height: 16px; border-radius: 1px; background: #60A5FA; margin-left: -4px; animation: caret-blink 1.1s steps(1) infinite; }
.slash-sm { gap: 8px; }
.slash-sm .slash-tag { height: 24px; padding: 0 8px; border-radius: 7px; font-size: 13px; }
.slash-sm .caret { height: 13px; margin-left: -3px; }
@keyframes caret-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }

/* 首屏图标墙：只铺到内容区右缘（与 .wrap 同宽同边距），不出血到页面边 */
.wall-box { position: absolute; top: 0; bottom: 0; left: 0; right: max(32px, calc((100% - 1200px) / 2 + 32px)); overflow: hidden; pointer-events: none; }
.icon-wall { position: absolute; top: 50%; left: 62%; display: flex; gap: 24px; transform: translate(-50%, -50%) rotate(-24deg); pointer-events: none; }
/* 每列内容重复三遍（上移一组让上方也有余量），平移一组高度即无缝循环；相邻列反向，形成交错流动。
   格子用 margin-bottom 而不是 gap，保证轨道高度正好是两组的整数倍 */
.icon-wall .col { height: 912px; }
.icon-wall .track { display: flex; flex-direction: column; margin-top: -912px; animation: wall-up 64s linear infinite; }
.icon-wall .col.down .track { animation-name: wall-down; animation-duration: 72s; }
.icon-wall .col:hover .track { animation-play-state: paused; }
@keyframes wall-up { from { transform: translateY(0); } to { transform: translateY(-33.3333%); } }
@keyframes wall-down { from { transform: translateY(-33.3333%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .icon-wall .track { animation: none; } }

/* 格子：悬停描边 + 轻微放大，点击去 App Store */
.wt { display: block; width: 128px; height: 128px; margin-bottom: 24px; border-radius: 29px; flex-shrink: 0; overflow: hidden; pointer-events: auto; cursor: pointer; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.12), 0 20px 44px rgba(0,0,0,.5); outline: 2px solid transparent; outline-offset: 4px; transition: outline-color .18s ease, transform .18s ease; }
.wt:hover { outline-color: rgba(255,255,255,.9); transform: scale(1.04); }
.wt img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
.wall-fade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #0E1116 30%, rgba(14,17,22,.7) 46%, rgba(14,17,22,0) 66%), linear-gradient(0deg, #0E1116 0%, rgba(14,17,22,0) 28%), linear-gradient(180deg, #0E1116 0%, rgba(14,17,22,0) 18%); }

/* 首屏文字层横跨整个内容宽度，会挡住下面的图标；只让左侧文字栏接收鼠标 */
.hero-copy { pointer-events: none; }
.hero-copy > div { pointer-events: auto; }

/* App 卡片：深色磨砂 + 右侧一团品牌蓝光 */
.app-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px 420px at 82% 55%, rgba(37,99,235,.30), rgba(37,99,235,0) 70%), radial-gradient(420px 320px at 8% 0%, rgba(45,212,191,.08), rgba(45,212,191,0) 70%); }
/* 平台：SF Symbols 官方设备图标 + 名称 */
.platforms { list-style: none; margin: 6px 0 0; padding: 0; display: flex; gap: 16px; font-size: 14px; color: rgba(255,255,255,.75); }
.platforms li { display: flex; align-items: center; gap: 6px; }
.btn-apple { display: inline-flex; align-items: center; gap: 8px; }
.btn-apple svg { margin-top: -2px; }
.device { width: 272px; padding: 9px; box-sizing: border-box; border-radius: 46px; background: #05070A; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.16), 0 30px 60px rgba(0,0,0,.55); }
.device img { display: block; width: 100%; height: auto; border-radius: 37px; }

@media (max-width: 820px) {
  .t-hero h1 { font-size: 48px !important; }
  .wall-box { right: 20px; }
  .icon-wall { left: 78%; opacity: .4; }
  .wall-fade { background: linear-gradient(90deg, #0E1116 10%, rgba(14,17,22,.55) 60%, rgba(14,17,22,.2) 100%), linear-gradient(0deg, #0E1116 0%, rgba(14,17,22,0) 30%); }
  .app-card { padding: 28px 22px !important; }
  .app-card .app-title { font-size: 30px !important; }
  /* 设计稿的语言按钮和菜单按钮在静态站里没有功能：只有一种语言，导航只有三项，手机上直接显示 */
  .topnav { display: flex !important; gap: 0; margin-left: auto; margin-right: -6px; }
  .topnav a { white-space: nowrap; font-size: 15px; padding: 8px 6px; }
  .topbar .wrap { gap: 12px; }
}
