/* ==========================================================================
   乐游体育 · Leyou Sports 共享样式
   /assets/site.css
   版本：V4 SiteKit
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --blue: #1E90FF;
  --blue-bright: #4DA3FF;
  --blue-deep: #0A5CC8;
  --orange: #FF7F50;
  --orange-bright: #FFA07A;
  --bg: #0D1117;
  --card: #161B22;
  --card-raised: #1C2128;
  --border: #30363D;
  --border-soft: rgba(48, 54, 61, 0.55);
  --text: #E6EDF3;
  --text-dim: #8B949E;
  --green: #3FB950;
  --yellow: #D29922;
  --red: #F85149;
  --white: #FFFFFF;

  --font-display: Impact, "Haettenschweiler", "Arial Narrow Bold", "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-data: "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, "Liberation Mono", monospace;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --container-w: 1200px;
  --shadow-card: 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-float: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-blue: 0 4px 18px rgba(30, 144, 255, 0.28);
  --shadow-orange: 0 4px 18px rgba(255, 127, 80, 0.26);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 200ms ease;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 40% at 82% -6%, rgba(30, 144, 255, 0.12), transparent),
    radial-gradient(ellipse 45% 35% at 8% 22%, rgba(255, 127, 80, 0.06), transparent),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: auto, auto, 36px 36px, 36px 36px;
  background-attachment: fixed, fixed, scroll, scroll;
  padding-top: 0.875rem;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background-color var(--transition);
}

a:hover {
  color: var(--blue-bright);
  text-decoration: underline;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

select,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(30, 144, 255, 0.35);
  color: var(--white);
}

/* ---------- 3. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.container-narrow {
  max-width: 860px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2.5rem;
}

.section-index-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.3125rem 0.875rem;
  border-radius: var(--radius-pill);
  background: rgba(30, 144, 255, 0.1);
  border: 1px solid rgba(30, 144, 255, 0.25);
  color: var(--blue);
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.section-subtitle {
  max-width: 640px;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.7;
}

.accent-line {
  display: inline-block;
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  margin-top: 0.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-dim { color: var(--text-dim); }
.text-blue { color: var(--blue); }
.text-orange { color: var(--orange); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--blue);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: var(--shadow-blue);
  text-decoration: none;
  transition: top 200ms ease;
}

.skip-link:hover {
  color: var(--white);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

/* ---------- 5. 悬浮胶囊头部 ---------- */
.site-header {
  position: sticky;
  top: 0.875rem;
  z-index: 200;
  margin-bottom: 1.5rem;
  padding-inline: 1rem;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 0.4375rem 0.5rem 0.4375rem 0.875rem;
  background: rgba(13, 17, 23, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
  transition: box-shadow 300ms var(--ease-out), border-color 300ms;
}

.site-header:hover .header-inner {
  border-color: rgba(30, 144, 255, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(30, 144, 255, 0.06);
}

/* 品牌组合 */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-lockup:hover {
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background:
    linear-gradient(135deg, var(--blue) 0%, var(--blue) 62%, var(--orange) 62%, var(--orange) 100%);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: var(--shadow-blue);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--text);
}

.brand-sub {
  font-family: var(--font-data);
  font-size: 0.5625rem;
  letter-spacing: 0.24em;
  color: var(--blue);
  margin-top: 0.25rem;
}

/* 导航 */
.site-nav-wrap {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  transition: color 200ms, background-color 200ms, box-shadow 200ms;
}

.site-nav-link:hover {
  color: var(--text);
  background: rgba(48, 54, 61, 0.5);
  text-decoration: none;
}

.site-nav-link[aria-current="page"] {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 2px 14px rgba(30, 144, 255, 0.4);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  transition: border-color 200ms, background-color 200ms;
}

.nav-toggle:hover {
  border-color: var(--blue);
  background: rgba(30, 144, 255, 0.06);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 250ms var(--ease-out), opacity 200ms;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: transform 200ms var(--ease-out), box-shadow 200ms, border-color 200ms, background-color 200ms;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: var(--blue-bright);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(30, 144, 255, 0.4);
}

.btn-accent {
  background: var(--orange);
  color: #1A0E08;
  box-shadow: var(--shadow-orange);
}

.btn-accent:hover {
  background: var(--orange-bright);
  color: #1A0E08;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(255, 127, 80, 0.38);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
}

/* ---------- 7. 面包屑 ---------- */
.breadcrumb {
  padding: 1rem 0 0;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  color: var(--text-dim);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--text-dim);
  opacity: 0.5;
}

.breadcrumb-link {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 200ms;
}

.breadcrumb-link:hover {
  color: var(--blue);
  text-decoration: none;
}

.breadcrumb-item[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* ---------- 8. 卡片 / Bento ---------- */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform 300ms var(--ease-out), box-shadow 300ms, border-color 300ms;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 144, 255, 0.4);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(30, 144, 255, 0.08);
}

.card-accent {
  border-top: 3px solid var(--blue);
}

.card-accent--orange {
  border-top-color: var(--orange);
}

.card-media {
  overflow: hidden;
  margin: -1.5rem -1.5rem 1.25rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-title {
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.625rem;
}

.card-text {
  color: var(--text-dim);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
}

/* 数据统计块 */
.stat-card {
  text-align: center;
  padding: 2rem 1.25rem;
}

.stat-value {
  font-family: var(--font-data);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.stat-value--orange {
  color: var(--orange);
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.stat-delta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
  font-family: var(--font-data);
  font-size: 0.8125rem;
}

.stat-delta[data-trend="up"] { color: var(--green); }
.stat-delta[data-trend="down"] { color: var(--red); }

/* ---------- 9. 标签 / 芯片 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.tag-blue {
  background: rgba(30, 144, 255, 0.12);
  color: var(--blue);
  border: 1px solid rgba(30, 144, 255, 0.3);
}

.tag-orange {
  background: rgba(255, 127, 80, 0.12);
  color: var(--orange);
  border: 1px solid rgba(255, 127, 80, 0.3);
}

.tag-green {
  background: rgba(63, 185, 80, 0.12);
  color: var(--green);
  border: 1px solid rgba(63, 185, 80, 0.3);
}

.tag-dim {
  background: rgba(139, 148, 158, 0.1);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8125rem;
}

.data-tick {
  font-family: var(--font-data);
  color: var(--green);
  font-weight: 600;
}

/* ---------- 10. 数据表格 ---------- */
.data-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
}

.data-table th {
  background: var(--card-raised);
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.data-table td {
  font-family: var(--font-data);
  color: var(--text);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover td {
  background: rgba(30, 144, 255, 0.04);
}

/* ---------- 11. 页首 Hero ---------- */
.page-hero {
  position: relative;
  padding: 4rem 0 2.5rem;
  overflow: hidden;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 55%;
  height: 160%;
  background: radial-gradient(ellipse at center, rgba(30, 144, 255, 0.14), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: -60% -6% auto auto;
  width: 36%;
  height: 160%;
  background: radial-gradient(ellipse at center, rgba(255, 127, 80, 0.08), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.page-hero-index {
  font-family: var(--font-data);
  font-size: 0.8125rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.page-hero-index::before {
  content: "";
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  border-radius: 2px;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  max-width: 12em;
}

.page-hero-title .title-highlight {
  color: var(--blue);
}

.page-hero-lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 0 1.5rem;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  align-items: center;
}

/* ---------- 12. 章节编号 ---------- */
.chapter-number {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(30, 144, 255, 0.55);
  user-select: none;
  pointer-events: none;
}

/* ---------- 13. 图片容器 ---------- */
.img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--border);
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease-out);
}

.img-wrapper:hover img {
  transform: scale(1.04);
}

.img-aspect-16-9 {
  aspect-ratio: 16 / 9;
}

.img-aspect-4-3 {
  aspect-ratio: 4 / 3;
}

.img-aspect-1-1 {
  aspect-ratio: 1 / 1;
}

.img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background:
    linear-gradient(135deg, rgba(30, 144, 255, 0.1), transparent 40%),
    linear-gradient(45deg, transparent 50%, rgba(255, 127, 80, 0.08) 50%),
    var(--card);
  color: var(--text-dim);
  font-family: var(--font-data);
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
}

/* ---------- 14. Select 下拉 ---------- */
.select-wrap {
  position: relative;
  display: inline-block;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.4;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  cursor: pointer;
  transition: border-color 200ms;
}

.select-wrap select:hover {
  border-color: var(--blue);
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* ---------- 15. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 5rem;
  padding-top: 3.5rem;
  background: #11161D;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), transparent 45%, var(--orange));
  opacity: 0.75;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr 0.9fr 0.9fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.brand-lockup--footer .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 1.0625rem;
}

.footer-blurb {
  color: var(--text-dim);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 320px;
}

.footer-trust {
  color: var(--text-dim);
  font-size: 0.8125rem;
  line-height: 1.6;
  max-width: 320px;
  padding: 0.625rem 1rem;
  border-left: 3px solid var(--blue);
  background: rgba(30, 144, 255, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.footer-col {
  min-width: 0;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 1.125rem;
  text-transform: uppercase;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 200ms, transform 200ms;
}

.footer-link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.5;
  flex-shrink: 0;
  transition: opacity 200ms, transform 200ms;
}

.footer-link:hover {
  color: var(--blue);
  text-decoration: none;
  transform: translateX(3px);
}

.footer-link:hover::before {
  opacity: 1;
}

.footer-text {
  color: var(--text-dim);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.footer-note {
  margin-top: 0.75rem;
  color: var(--text-dim);
  font-size: 0.75rem;
  line-height: 1.5;
  opacity: 0.75;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  background: #0A0E13;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.125rem;
  padding-bottom: 1.125rem;
}

.footer-copy,
.footer-icp {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.footer-icp {
  font-family: var(--font-data);
  letter-spacing: 0.05em;
}

/* ---------- 16. 滚动进度 / 返回顶部 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 300;
  background: transparent;
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  border-radius: 0 2px 2px 0;
  transition: width 80ms linear;
}

.scroll-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--card-raised);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow-float);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 250ms, transform 250ms, visibility 250ms, border-color 250ms, color 250ms;
}

.scroll-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero {
    padding-top: 3rem;
  }
}

@media (max-width: 900px) {
  body {
    padding-top: 0.75rem;
  }

  .site-header {
    top: 0.75rem;
    padding-inline: 0.75rem;
  }

  .header-inner {
    gap: 0.75rem;
    border-radius: 50%;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav-wrap {
    position: absolute;
    top: calc(100% + 0.625rem);
    left: 0;
    right: 0;
    z-index: 210;
    display: block;
    padding: 0.5rem;
    background: var(--card-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: opacity 220ms ease, transform 220ms var(--ease-out), visibility 220ms;
  }

  .site-header[data-open] .site-nav-wrap {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .site-nav-wrap::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    margin-left: -7px;
    width: 14px;
    height: 14px;
    background: inherit;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    transform: rotate(45deg);
  }

  .site-nav {
    flex-direction: column;
    gap: 0.25rem;
  }

  .site-nav-link {
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
  }

  .site-header[data-open] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header[data-open] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .site-header[data-open] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
  }

  .page-hero-title {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .scroll-top {
    right: 1rem;
    bottom: 1rem;
  }
}

/* ---------- 18. 可访问性与减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .card:hover,
  .img-wrapper:hover img,
  .btn:hover,
  .footer-link:hover,
  .site-header:hover .header-inner {
    transform: none;
  }

  .site-nav-wrap {
    transition: none;
  }
}
