/* ===================================================================
   星空体育 · 共享样式 /assets/site.css
   设计基调：极简文字建筑 × 星夜印刷物
   =================================================================== */

/* ---------- 1. Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #FFFFFF;
  background-color: #0A1930;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1px 1px at 18% 30%, rgba(255,255,255,0.22), transparent),
    radial-gradient(1px 1px at 72% 16%, rgba(255,255,255,0.16), transparent),
    radial-gradient(1.5px 1.5px at 36% 64%, rgba(245,179,0,0.16), transparent),
    radial-gradient(1px 1px at 86% 46%, rgba(255,255,255,0.12), transparent),
    radial-gradient(1px 1px at 52% 82%, rgba(176,196,222,0.18), transparent),
    radial-gradient(1px 1px at 8% 75%, rgba(255,255,255,0.10), transparent);
  pointer-events: none;
}

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

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

ul[class], ol[class] {
  list-style: none;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  line-height: 1.2;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* ---------- 2. Design Tokens ---------- */
:root {
  --sky-deep: #0A1930;
  --sky-layer: #1E3A5F;
  --star-gold: #F5B300;
  --flame-red: #E63946;
  --cloud: #FFFFFF;
  --moon-blue: #B0C4DE;
  --prayer-green: #2E5E4E;
  --gold-grad: linear-gradient(135deg, #F5B300, #FFD700);
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --container-w: 1280px;
  --header-h: 76px;
  --radius: 12px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 3. Base Elements ---------- */
::selection {
  background: rgba(245,179,0,0.85);
  color: #0A1930;
}

:focus-visible {
  outline: 2px solid var(--star-gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.caption {
  font-size: 13px;
  line-height: 1.6;
  color: var(--moon-blue);
}

#main-content {
  display: block;
  position: relative;
  min-height: 60vh;
}

/* ---------- 4. Layout ---------- */
.container {
  width: min(100% - 48px, var(--container-w));
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: 24px;
}

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

/* ---------- 5. Skip Link ---------- */
.skip-link {
  position: fixed;
  top: -120%;
  left: 16px;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--star-gold);
  color: #0A1930;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  transition: top 0.3s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* ---------- 6. Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10,25,48,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(176,196,222,0.08);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header[data-scrolled] {
  background: rgba(10,25,48,0.96);
  box-shadow: 0 4px 28px rgba(0,0,0,0.45);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand__symbol {
  display: inline-flex;
  font-size: 24px;
  line-height: 1;
  color: var(--star-gold);
  transition: transform 0.6s var(--ease);
}

.brand:hover .brand__symbol {
  transform: rotate(360deg);
}

.brand__group {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--cloud);
}

.brand__en {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.42em;
  color: var(--moon-blue);
  margin-top: 2px;
  text-transform: uppercase;
}

/* ---------- 7. Navigation ---------- */
.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--moon-blue);
  position: relative;
  transition: color 0.3s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav__link:hover {
  color: var(--cloud);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__index {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--star-gold);
  opacity: 0.75;
}

.nav__title {
  white-space: nowrap;
}

.nav__link[aria-current="page"] {
  color: var(--star-gold);
  font-weight: 700;
}

.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ---------- 8. Header Tools ---------- */
.header__tools {
  display: none;
  align-items: center;
  gap: 8px;
}

.header__replay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245,179,0,0.45);
  background: rgba(245,179,0,0.12);
  color: var(--star-gold);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.header__replay:hover {
  background: rgba(245,179,0,0.2);
  box-shadow: 0 0 16px rgba(245,179,0,0.2);
}

.header__replay-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flame-red);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.header__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(176,196,222,0.25);
  border-radius: 8px;
  background: rgba(30,58,95,0.4);
  color: var(--cloud);
  min-height: 40px;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.header__menu-btn:hover {
  border-color: var(--star-gold);
  background: rgba(30,58,95,0.6);
}

.header__menu-btn:focus-visible {
  outline: 2px solid var(--star-gold);
  outline-offset: 2px;
}

.header__menu-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.header__menu-bar {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.header__menu-btn[aria-expanded="true"] .header__menu-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.header__menu-btn[aria-expanded="true"] .header__menu-bar:nth-child(2) {
  opacity: 0;
}

.header__menu-btn[aria-expanded="true"] .header__menu-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.header__menu-label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

/* ---------- 9. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.btn--primary {
  background: var(--star-gold);
  color: #0A1930;
  box-shadow: 0 0 24px rgba(245,179,0,0.22);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(245,179,0,0.35);
}

.btn--ghost {
  border-color: rgba(176,196,222,0.3);
  color: var(--cloud);
  background: rgba(30,58,95,0.4);
}

.btn--ghost:hover {
  border-color: var(--star-gold);
  color: var(--star-gold);
  transform: translateY(-2px);
}

/* ---------- 10. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 13px;
  color: var(--moon-blue);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item::after {
  content: "›";
  color: rgba(176,196,222,0.4);
  font-size: 16px;
}

.breadcrumb__item:last-child::after {
  display: none;
}

.breadcrumb__link {
  transition: color 0.3s var(--ease);
}

.breadcrumb__link:hover {
  color: var(--star-gold);
}

.breadcrumb__item[aria-current="page"] {
  color: var(--star-gold);
  font-weight: 700;
}

/* ---------- 11. Typography Blocks ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--star-gold);
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--star-gold);
  display: inline-block;
}

.section-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 12px;
}

.display-title {
  font-size: clamp(56px, 10vw, 96px);
  font-weight: 100;
  line-height: 1.0;
  letter-spacing: 0.02em;
}

.page-heading {
  padding: calc(var(--header-h) + 48px) 0 32px;
}

.page-heading__index {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--star-gold);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.page-heading__title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-heading__desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--moon-blue);
  max-width: 620px;
  margin-top: 16px;
}

.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 56px;
}

/* ---------- 12. Components ---------- */
.paper-card {
  position: relative;
  background: linear-gradient(145deg, rgba(30,58,95,0.85), rgba(10,25,48,0.75));
  border: 1px solid rgba(176,196,222,0.1);
  border-radius: var(--radius);
  padding: 32px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.paper-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--star-gold), transparent 72%);
}

.paper-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.print-frame {
  position: relative;
  border: 1px solid rgba(245,179,0,0.3);
  padding: 16px;
}

.print-frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(245,179,0,0.12);
  pointer-events: none;
}

.theme-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, rgba(30,58,95,0.6), rgba(10,25,48,0.4));
  border-left: 4px solid var(--star-gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 32px 40px;
}

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--star-gold), rgba(176,196,222,0.05));
}

.timeline__item {
  position: relative;
  padding: 0 0 36px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sky-deep);
  border: 2px solid var(--star-gold);
  box-shadow: 0 0 0 4px rgba(245,179,0,0.12);
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border-left: 2px solid rgba(245,179,0,0.2);
}

.toc__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--moon-blue);
  background: none;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.toc__item:hover {
  color: var(--cloud);
  border-left-color: var(--star-gold);
}

.toc__item.is-active,
.toc__item[aria-current="true"] {
  color: var(--star-gold);
  font-weight: 700;
  border-left-color: var(--star-gold);
  background: linear-gradient(90deg, rgba(245,179,0,0.08), transparent);
}

/* ---------- 13. Figure / Image Container ---------- */
.figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--sky-layer), var(--sky-deep));
}

.figure::before {
  content: "";
  display: block;
  padding-bottom: var(--figure-ratio, 56.25%);
}

.figure > img,
.figure > picture > img,
.figure > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure--wide { --figure-ratio: 42%; }
.figure--tall { --figure-ratio: 75%; }
.figure--square { --figure-ratio: 100%; }

/* ---------- 14. Scroll Progress ---------- */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--star-gold), var(--flame-red));
  box-shadow: 0 0 10px rgba(245,179,0,0.45);
  z-index: 1002;
  pointer-events: none;
}

/* ---------- 15. Back to Top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(10,25,48,0.92);
  border: 1px solid rgba(245,179,0,0.5);
  color: var(--star-gold);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.back-to-top span {
  transform: translateY(-1px);
}

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

.back-to-top:hover {
  background: var(--star-gold);
  color: #0A1930;
}

/* ---------- 16. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 96px;
  background:
    repeating-linear-gradient(90deg,
      rgba(245,179,0,0.025) 0,
      rgba(245,179,0,0.025) 60px,
      rgba(255,255,255,0.015) 60px,
      rgba(255,255,255,0.015) 120px,
      rgba(230,57,70,0.025) 120px,
      rgba(230,57,70,0.025) 180px,
      rgba(46,94,78,0.025) 180px,
      rgba(46,94,78,0.025) 240px),
    linear-gradient(180deg, #081326, #060D1C);
  border-top: 1px solid rgba(245,179,0,0.15);
}

.footer__prayer {
  position: relative;
  display: flex;
  height: 36px;
  margin-bottom: 48px;
}

.footer__prayer::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.18);
}

.footer__prayer-flag {
  flex: 1;
  height: 100%;
  clip-path: polygon(50% 0%, 100% 100%, 0 100%);
}

.footer__prayer-flag--blue   { background: #3D6FA3; }
.footer__prayer-flag--white  { background: rgba(255,255,255,0.85); }
.footer__prayer-flag--red    { background: var(--flame-red); }
.footer__prayer-flag--green  { background: var(--prayer-green); }
.footer__prayer-flag--gold   { background: var(--star-gold); }

.footer__main {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.9fr 1.3fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__brand-symbol {
  font-size: 44px;
  line-height: 1;
  color: var(--star-gold);
  margin-bottom: 10px;
}

.footer__brand-name {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--cloud);
}

.footer__brand-en {
  font-size: 10px;
  letter-spacing: 0.42em;
  color: var(--moon-blue);
  margin-top: 4px;
  text-transform: uppercase;
}

.footer__statement-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--star-gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer__statement-text {
  font-size: 14px;
  line-height: 1.85;
  color: var(--moon-blue);
  max-width: 460px;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cloud);
  margin-bottom: 16px;
}

.footer__link {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--moon-blue);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}

.footer__link:hover {
  color: var(--star-gold);
  padding-left: 8px;
}

.footer__contact-line {
  font-size: 14px;
  color: var(--moon-blue);
  padding: 3px 0;
  word-break: break-all;
}

.footer__bottom {
  border-top: 1px solid rgba(176,196,222,0.1);
  padding: 24px 0 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: rgba(176,196,222,0.55);
}

/* ---------- 17. Responsive ---------- */
@media (max-width: 1080px) {
  .nav__link {
    padding: 10px 10px;
    font-size: 14px;
  }

  .brand__name {
    font-size: 18px;
  }

  .brand__en {
    letter-spacing: 0.3em;
  }

  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .header__tools {
    display: flex;
  }

  .header__replay {
    display: inline-flex;
  }

  .header__menu-btn {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    margin-left: 0;
    background: linear-gradient(180deg, rgba(10,25,48,0.98), rgba(14,35,65,0.98));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 48px 32px 40px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
  }

  .nav[data-open] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-width: 420px;
    margin: 0 auto;
  }

  .nav__item {
    border-bottom: 1px solid rgba(176,196,222,0.08);
  }

  .nav__link {
    padding: 18px 4px;
    font-size: 20px;
    font-weight: 800;
    color: var(--cloud);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav__link::after {
    display: none;
  }

  .nav__index {
    font-size: 12px;
  }

  .nav__title {
    order: 1;
  }

  .nav__link[aria-current="page"] {
    color: var(--star-gold);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, var(--container-w));
  }

  .brand__symbol {
    font-size: 20px;
  }

  .brand__name {
    font-size: 17px;
  }

  .brand__en {
    display: none;
  }

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

  .theme-strip {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .footer__main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 4px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  .page-heading {
    padding-top: calc(var(--header-h) + 32px);
  }

  .hero {
    padding-top: calc(var(--header-h) + 40px);
  }
}

/* ---------- 18. Scrollspy & Reveal Protocol ---------- */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js-ready [data-reveal="visible"] {
  opacity: 1;
  transform: none;
}

/* ---------- 19. Reduced Motion ---------- */
@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;
  }

  .js-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .header__replay-dot {
    animation: none;
  }

  .back-to-top {
    transition: none;
  }
}
