/*
 * 纳途体育（N² SPORTS）官网基础样式：品牌配色变量、重置、品牌标志、导航、通用排版与按钮。
 * 同目录 sections.css 为各版块布局，responsive.css 为响应式与减少动效；按 base → sections → responsive 顺序加载。
 * 交互状态类由 app.js 添加：has-js / is-scrolled / is-open / is-visible / is-active / is-changing。
 * 品牌依据《品牌使用规范·最终深蓝版》：主色深蓝 #194664，强调色亮青 #01E7F9，辅助色白色；Logo 只用设计包原始轮廓，
 * 不加描边、阴影、渐变或透明度效果。页面装饰（45° 斜线、菱形序号）取自标志图形的角度，不复制标志本身。
 * 亮青只用于深色底上的强调、按钮和装饰；浅色底上的小字用深蓝，保证对比度。
 */
:root {
  --navy: #194664;
  --navy-950: #071723;
  --navy-900: #0b2131;
  --navy-800: #102c40;
  --navy-700: #153a54;
  --cyan: #01e7f9;
  --cyan-deep: #0096a8;
  --white: #ffffff;
  --paper: #f2f6f9;
  --ink: #0d2232;
  --ink-soft: #33495a;
  --muted: #5f7383;
  --line: #d3dee6;
  --line-dark: rgba(255, 255, 255, 0.12);
  --text-dark-muted: rgba(226, 238, 246, 0.72);
  --shadow: 0 18px 40px rgba(7, 23, 35, 0.12);
  --shell: 1240px;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  color: var(--navy-950);
  background: var(--cyan);
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

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

.shell {
  width: min(calc(100% - 64px), var(--shell));
  margin: 0 auto;
}

/* ---------- 品牌标志：中文页用中文横版，英文页用英文横版（按 html[lang] 切换） ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  /* 安全留白：不小于图形高度的 1/4 */
  padding: 10px 0;
}

.brand-logo {
  width: auto;
  height: 42px;
}

.brand-logo-en {
  display: none;
  height: 36px;
}

html[lang="en-US"] .brand-logo-zh {
  display: none;
}

html[lang="en-US"] .brand-logo-en {
  display: block;
}

/* ---------- 顶部进度条与导航 ---------- */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--cyan);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 23, 35, 0.88);
  border-color: var(--line-dark);
  backdrop-filter: blur(14px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 84px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
}

.main-navigation a {
  position: relative;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease;
}

.main-navigation a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-navigation a:hover,
.main-navigation a.is-active {
  color: var(--white);
}

.main-navigation a:hover::after,
.main-navigation a.is-active::after {
  transform: scaleX(1);
}

.language-switch,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.language-switch:hover,
.menu-toggle:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.language-switch svg,
.menu-toggle svg {
  width: 17px;
  height: 17px;
}

.menu-toggle {
  display: none;
  width: 42px;
  padding: 0;
  justify-content: center;
}

/* ---------- 通用排版 ---------- */

.section {
  position: relative;
  padding: 128px 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.kicker span {
  display: inline-block;
  width: 28px;
  height: 3px;
  background: var(--cyan-deep);
}

.light-kicker {
  color: var(--cyan);
}

.light-kicker span {
  background: var(--cyan);
}

.section h2 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.section-topline {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 80px;
}

.section-topline > p {
  max-width: 470px;
  color: var(--muted);
  font-size: 17px;
}

.dark-section {
  color: var(--white);
  background: var(--navy-900);
  overflow: hidden;
}

/* 深色版块右上角的 45° 斜线纹理，角度取自标志图形 */
.dark-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  height: 70%;
  background: repeating-linear-gradient(45deg, rgba(1, 231, 249, 0.07) 0 2px, transparent 2px 26px);
  -webkit-mask-image: radial-gradient(ellipse at top right, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at top right, #000 0%, transparent 70%);
  pointer-events: none;
}

.dark-section .shell {
  position: relative;
}

.dark-section .section-topline > p {
  color: var(--text-dark-muted);
}

/* ---------- 按钮 ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg {
  width: 18px;
  height: 18px;
}

.button-primary {
  color: var(--navy-950);
  background: var(--cyan);
}

.button-primary:hover {
  background: #5ff1fc;
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(7, 23, 35, 0.2);
}

.button-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
