:root {
  --bg: #070814;
  --bg-alt: #0f1022;
  --card: #0d0f1f;
  --text: #e7ebf7;
  --muted: #b8bed4;
  --accent: #8ad2ff;
  --accent-2: #8ff5c7;
  --border: rgba(255, 255, 255, 0.08);
  --glow: 0 30px 80px rgba(138, 210, 255, 0.12);
  --radius: 14px;
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 10% 20%, rgba(138, 210, 255, 0.2), transparent 30%),
              radial-gradient(circle at 90% 10%, rgba(143, 245, 199, 0.2), transparent 25%),
              radial-gradient(circle at 50% 70%, rgba(138, 210, 255, 0.15), transparent 30%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .nav-links,
html[dir="rtl"] .header-actions {
  flex-direction: row-reverse;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  padding: 10px 14px;
  background: var(--accent);
  color: #02030a;
  border-radius: 10px;
  font-weight: 700;
  transition: top 0.2s ease;
  z-index: 999;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  backdrop-filter: blur(14px);
  background: rgba(7, 8, 20, 0.72);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo__image {
  display: block;
  height: 48px;
  width: auto;
}

.logo__image--mark {
  display: none;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-links a.active {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item--dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  min-width: 200px;
  background: rgba(13, 15, 31, 0.98);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  z-index: 20;
}

.nav-dropdown a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-dropdown a:hover {
  color: var(--text);
  background: rgba(138, 210, 255, 0.12);
}

.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown {
  display: flex;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

select {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #02030a;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: var(--glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(138, 210, 255, 0.25);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  padding: 40px 0 32px;
  align-items: center;
}

.hero__content h1 {
  font-size: clamp(32px, 4vw, 46px);
  margin: 12px 0;
  line-height: 1.1;
}

.hero__content .lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.metric {
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.metric__value {
  font-size: 24px;
  font-weight: 700;
}

.metric__label {
  color: var(--muted);
  font-size: 14px;
}

.hero__panel .panel {
  background: linear-gradient(180deg, rgba(8, 10, 26, 0.8), rgba(7, 8, 20, 0.95));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.panel__header {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.pill--accent {
  border: none;
  background: linear-gradient(135deg, rgba(138, 210, 255, 0.2), rgba(143, 245, 199, 0.2));
  color: var(--accent);
}

.panel__body h3 {
  margin: 0 0 12px;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.timeline__time {
  font-weight: 700;
  color: var(--accent);
}

.timeline__title {
  margin: 0 0 4px;
}

.timeline__desc {
  margin: 0;
  color: var(--muted);
}

.panel__footer {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 56px 0;
}

.section--alt {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 56px 28px;
  box-shadow: var(--shadow-card);
}

.section__header {
  max-width: 820px;
  margin-bottom: 26px;
}

.section__header h2 {
  font-size: 32px;
  margin: 8px 0;
}

.section__description {
  color: var(--muted);
  line-height: 1.6;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
  line-height: 1.5;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.pillar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.pillar h3 {
  margin: 6px 0 8px;
}

.pillar p {
  color: var(--muted);
}

.pillar ul {
  margin: 8px 0 0 16px;
  padding: 0;
  color: var(--text);
  line-height: 1.6;
}

.programs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.program {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.logo-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.logo-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.logo-placeholder {
  width: 120px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(138, 210, 255, 0.1), rgba(143, 245, 199, 0.1));
  border-radius: 12px;
  margin-bottom: 12px;
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.member-logo {
  width: 100%;
  max-width: 160px;
  height: auto;
  max-height: 80px;
  object-fit: contain;
}

.logo-name {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.community-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.community-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 80px;
}

.community-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

@media (max-width: 768px) {
  .logo-wall {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .logo-placeholder {
    width: 80px;
    height: 60px;
    font-size: 18px;
  }

  .member-logo {
    max-width: 100px;
    max-height: 50px;
  }

  .logo-name {
    font-size: 12px;
  }

  .community-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .community-item {
    font-size: 14px;
    padding: 16px;
    min-height: 60px;
  }
}

@media (max-width: 480px) {
  .logo-wall {
    grid-template-columns: repeat(2, 1fr);
  }
}

.program__meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.highlight {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.resource {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 600;
}

.section--cta {
  padding: 60px 0;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(138, 210, 255, 0.08), rgba(143, 245, 199, 0.06));
  box-shadow: var(--shadow-card);
}

.cta__actions {
  display: flex;
  gap: 10px;
}

.footer {
  padding: 32px 24px 40px;
  border-top: 1px solid var(--border);
  background: rgba(5, 6, 15, 0.85);
  text-align: center;
}

.footer__brand {
  font-weight: 700;
  margin-bottom: 6px;
}

.footer__text {
  color: var(--muted);
  margin: 0 0 10px;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  flex-wrap: wrap;
}

.eyebrow {
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  font-size: 13px;
  margin: 0;
}

.mobile-menu-toggle {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 960px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 24px;
  }

  .logo {
    flex: 0 0 auto;
    max-width: calc(100% - 60px);
  }

  .logo__image--full {
    display: block !important;
    height: 32px;  /* 移动端缩小一点 */
  }

  .logo__image--mark {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links > a {
    padding: 8px 0;
  }

  .nav-item--dropdown .nav-dropdown {
    position: static;
    display: none;
    margin-left: 16px;
    margin-top: 8px;
  }

  .nav-item--dropdown.active .nav-dropdown {
    display: flex;
  }

  .header-actions {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid var(--border);
  }

  .nav-links.active ~ .header-actions {
    display: flex;
  }

  .header-actions .btn {
    font-size: 14px;
    padding: 10px 14px;
    text-align: center;
    width: 100%;
  }

  .header-actions select {
    font-size: 14px;
    padding: 10px 12px;
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

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