/* 官网样式 / Website styles. 颜色只用 tokens.css 里的 --txy-* 变量（来自 @txy/shared 设计令牌）。 */
:root {
  --font:
    "TXY Inter", "Noto Sans SC Variable", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --radius: 12px;
  --wrap: 1160px;
}
:root[lang="zh-TW"] {
  --font:
    "TXY Inter", "Noto Sans TC Variable", -apple-system, BlinkMacSystemFont, "PingFang TC",
    "Microsoft JhengHei", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--txy-bg);
  color: var(--txy-text);
  font: 16px/1.75 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
:focus-visible {
  outline: 2px solid var(--txy-focus);
  outline-offset: 3px;
  border-radius: 4px;
}
a {
  color: var(--txy-brand-text);
  text-underline-offset: 3px;
}
h1,
h2,
h3 {
  line-height: 1.3;
  margin: 0;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
.wrap-narrow {
  max-width: 820px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--txy-brand);
  color: var(--txy-on-brand);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}
main:focus {
  outline: none;
}

/* 语言建议条 / language suggestion bar */
.suggest {
  margin: 0;
  padding: 10px 20px;
  text-align: center;
  background: var(--txy-info-soft);
  color: var(--txy-text);
  font-size: 14px;
}
.suggest a {
  color: var(--txy-info);
  font-weight: 600;
}
.suggest-close {
  margin-left: 8px;
  border: 0;
  background: none;
  color: var(--txy-text-secondary);
  font-size: 18px;
  cursor: pointer;
  min-width: 24px;
  min-height: 24px;
}

/* 按钮 / buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  background: var(--txy-brand);
  color: var(--txy-on-brand);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.button:hover {
  background: var(--txy-brand-hover);
}
.button-small {
  min-height: 36px;
  padding: 0 16px;
  font-size: 14px;
}
.button-ghost {
  background: transparent;
  color: var(--txy-text);
  border: 1px solid var(--txy-border-strong);
}
.button-ghost:hover {
  background: var(--txy-surface-muted);
}
