/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-card: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;
  --accent: hsl(95, 70%, 40%);
  --accent-dim: hsla(95, 70%, 40%, 0.1);
  --accent-glow: hsla(95, 70%, 40%, 0.2);
  --divider: #e0e0e0;
  --nav-height: 64px;
  --max-width: 1200px;
  --transition-speed: 0.7s;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Splash Screen ===== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash.out {
  animation: splash-out 1.2s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes splash-out {
  from { transform: translateX(0); }
  to   { transform: translateX(100%); }
}

.splash-logo img {
  max-height: 80px;
  animation: splash-pulse 1.5s ease-in-out infinite;
}

.splash-bar-wrap {
  position: absolute;
  bottom: 12vh;
  left: 5vw;
  right: 5vw;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.splash-bar-track {
  width: 100%;
  height: 2px;
  background: #e8e8e8;
  overflow: hidden;
}

.splash-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 6px hsla(95, 70%, 40%, 0.3);
}

.splash-pct {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

@keyframes splash-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ===== Page Wrapper ===== */
.pages {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: hsl(95, 70%, 40%);
}

.page {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: none;
  align-items: center;
  background: #ffffff;
}

.page.active {
  display: flex;
  clip-path: inset(0 0 0 0);
}

/* Transition states */
.page.entering {
  display: flex;
}
.page.entering.fwd {
  animation: enter-from-right var(--enter-speed, 0.7s) cubic-bezier(0.77, 0, 0.175, 1) forwards;
}
.page.entering.rev {
  animation: enter-from-left var(--enter-speed, 0.7s) cubic-bezier(0.77, 0, 0.175, 1) forwards;
}
.page.leaving {
  display: flex;
}
.page.leaving.fwd {
  animation: exit-to-left var(--exit-speed, 0.5s) ease forwards;
}
.page.leaving.rev {
  animation: exit-to-right var(--exit-speed, 0.5s) ease forwards;
}

/* Per-page speeds */
.page[data-page="0"] { --enter-speed: 1.2s; --exit-speed: 1s; }
.page[data-page="1"] { --enter-speed: 1.2s; --exit-speed: 1s; }
.page[data-page="2"] { --enter-speed: 1.2s; --exit-speed: 1s; }
.page[data-page="3"] { --enter-speed: 1.2s; --exit-speed: 1s; }
.page[data-page="4"] { --enter-speed: 1.2s; --exit-speed: 1s; }
.page[data-page="5"] { --enter-speed: 1.2s; --exit-speed: 1s; }
.page[data-page="6"] { --enter-speed: 1.2s; --exit-speed: 1s; }

@keyframes enter-from-right {
  from { clip-path: inset(0 0 0 100%); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes enter-from-left {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes exit-to-left {
  from { clip-path: inset(0 0 0 0); }
  to   { clip-path: inset(0 100% 0 0); }
}
@keyframes exit-to-right {
  from { clip-path: inset(0 0 0 0); }
  to   { clip-path: inset(0 0 0 100%); }
}

/* Mobile: vertical wipe */
@media (max-width: 768px) {
  .page[data-page] { --enter-speed: 1s; --exit-speed: 0.8s; }

  @keyframes enter-from-right {
    from { clip-path: inset(100% 0 0 0); }
    to   { clip-path: inset(0 0 0 0); }
  }
  @keyframes exit-to-left {
    from { clip-path: inset(0 0 0 0); }
    to   { clip-path: inset(0 0 100% 0); }
  }
  @keyframes enter-from-left {
    from { clip-path: inset(0 0 100% 0); }
    to   { clip-path: inset(0 0 0 0); }
  }
  @keyframes exit-to-right {
    from { clip-path: inset(0 0 0 0); }
    to   { clip-path: inset(100% 0 0 0); }
  }
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.3s, border-color 0.3s;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 36px; width: auto; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.3s;
  letter-spacing: 0.5px;
}

.nav-links a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

/* ===== Hero Page ===== */
.page-hero {
  position: relative;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 33%,
    rgba(255, 255, 255, 0.6) 60%,
    var(--bg-primary) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40vh 24px 80px;
  max-width: 800px;
}

.hero-logo { margin-bottom: 40px; }
.hero-logo img { max-height: 120px; margin: 0 auto; }

.hero-title {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 4px;
}

.hero-subtitle {
  font-size: 72px;
  font-weight: 300;
  letter-spacing: 24px;
  margin-bottom: 20px;
}

.hero-divider {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 24px auto;
  opacity: 0.6;
}

/* ===== Content Sections ===== */
.page-section {
  padding: 100px 24px;
}

.page-alt {
  background: var(--bg-secondary);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.section-title {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 6px;
  text-align: center;
}

.section-divider {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 20px auto 60px;
  opacity: 0.5;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text { color: var(--text-secondary); font-size: 16px; line-height: 2.2; }

.about-stats { display: flex; flex-direction: column; gap: 40px; }

.stat-item {
  text-align: center;
  padding: 24px;
  border: 1px solid var(--divider);
  background: var(--bg-card);
}

.stat-num {
  display: block;
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 4px;
}

.stat-label { font-size: 14px; color: var(--text-muted); letter-spacing: 2px; }

/* ===== Info ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.info-card {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-card);
  border: 1px solid var(--divider);
  transition: border-color 0.3s, transform 0.3s;
}

.info-card:hover { border-color: var(--accent); transform: translateY(-4px); }

.info-icon { font-size: 36px; margin-bottom: 16px; }

.info-card h3 {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.info-highlight {
  font-size: 20px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.info-card p { font-size: 13px; color: var(--text-muted); }

/* ===== Content ===== */
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--divider);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.content-card:hover { border-color: var(--accent); transform: translateY(-4px); }

.content-card-img { height: 200px; background-size: cover; background-position: center; }

.content-card-body { padding: 24px; }

.content-card-body h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.content-card-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }

/* ===== Register ===== */
.register-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.register-card {
  background: var(--bg-card);
  border: 1px solid var(--divider);
  padding: 48px 32px;
  text-align: center;
  transition: border-color 0.3s;
}

.register-card:hover { border-color: var(--accent); }

.register-card h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.register-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.register-status {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 2px;
}

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; width: 100%; }

.faq-item { border-bottom: 1px solid var(--divider); }

.faq-item summary {
  padding: 20px 0;
  font-size: 16px;
  cursor: pointer;
  letter-spacing: 1px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.faq-item summary:hover { color: var(--accent); }

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--accent);
  font-weight: 300;
}

.faq-item[open] summary::after { content: "−"; }

.faq-answer { padding: 0 0 20px; color: var(--text-secondary); font-size: 14px; line-height: 2; }

/* ===== Footer ===== */
.page-footer {
  background: #1a1a1a;
  justify-content: center;
}

.footer-inner { max-width: var(--max-width); margin: 0 auto; width: 100%; padding: 0 24px; }

.footer-brand { text-align: center; margin-bottom: 48px; }

.footer-logo { height: 48px; margin: 0 auto 12px; filter: invert(0.8); }

.footer-brand p { color: var(--text-muted); font-size: 14px; letter-spacing: 2px; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 2.4;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--text-primary); }

.footer-text { font-size: 13px; color: var(--text-muted); line-height: 2; }

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-bottom p { font-size: 12px; color: var(--text-muted); line-height: 2; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--divider);
  }

  .hero-bg { background-position: 68% center; }
  .hero-subtitle { font-size: 48px; font-weight: 300; letter-spacing: 12px; }
  .hero-title { font-size: 20px; letter-spacing: 2px; }
  .hero-content { padding: 40vh 24px 80px; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .info-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .register-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; gap: 32px; }

  .page-section { padding: 64px 24px; align-items: flex-start; }
  .page-footer { align-items: flex-start; padding-top: 120px; }
}
