/* ============ Comic Style (漫画风格) 基础：Reset / 排版 / 网点背景 / 动效 ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden], .is-hidden {
  display: none !important;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  /* 漫画半调网点背景纹理 (Halftone Dots Texture) */
  background-image: radial-gradient(var(--dot-color, rgba(26, 26, 26, 0.12)) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 漫画标题体系：浓重黑体、大写、间距张力 */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--ink-strong);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

img, video, svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  touch-action: manipulation;
}

a {
  touch-action: manipulation;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.15s ease;
}
a:hover {
  color: var(--primary-deep);
}

/* 漫画键盘可达焦点：粗墨线聚焦框 */
:focus-visible {
  outline: 4px solid var(--border-ink) !important;
  outline-offset: 2px;
  box-shadow: 4px 4px 0px 0px rgba(26, 26, 26, 1) !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 容器与版心 */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: var(--sp-3);
  padding-right: var(--sp-3);
}

main {
  padding-top: calc(var(--header-h) + var(--sp-3));
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + var(--sp-4));
}

/* 漫画风滚动条 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
  border-left: 3px solid var(--border-ink);
}
::-webkit-scrollbar-thumb {
  background: var(--yellow);
  border: 3px solid var(--border-ink);
  border-radius: var(--r-xs);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* 动效降低偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

