/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #121212;
  --bg-card: #2a2a2e;
  --bg-card-hover: #323236;
  --accent: #8e84ad;
  --accent-light: #a89ec4;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #6a6a6e;
  --border-radius: 12px;
  --header-height: 64px;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  width: 100%;
  max-width: none;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  height: 48px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 40px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  font-size: 15px;
  color: var(--text-secondary);
  padding: 8px 0;
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ===== Main Content ===== */
main {
  flex: 1;
  padding-top: var(--header-height);
}

/* ===== Hero Carousel ===== */
.hero {
  position: relative;
  aspect-ratio: 16 / 9;
  width: min(100%, calc((100vh - var(--header-height)) * 16 / 9));
  height: auto;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(18, 18, 18, 0.85) 0%,
    rgba(18, 18, 18, 0.2) 40%,
    transparent 70%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 32px 64px;
}

.hero-logo {
  font-size: 14px;
  color: var(--accent-light);
  letter-spacing: 2px;
  margin-bottom: 12px;
  opacity: 0.9;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}

.hero-dot.active {
  width: 12px;
  height: 12px;
  background: var(--text-primary);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.hero-project-logo {
  position: absolute;
  bottom: -12px;
  left: -28px;
  z-index: 20;
  height: 192px;
  width: auto;
  max-width: min(63vw, 540px) !important;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6))
    drop-shadow(0 2px 16px rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

.content-column {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.hero-info {
  padding-top: 36px;
  padding-bottom: 8px;
}

.hero-info-brand {
  font-size: 14px;
  color: var(--accent-light);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.hero-info-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.hero-info-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

/* ===== Home Content ===== */
.home-content {
  padding-top: 24px;
  padding-bottom: 48px;
}

/* Wide intro card */
.intro-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  transition: background var(--transition);
  cursor: default;
}

.intro-card:hover {
  background: var(--bg-card-hover);
}

.intro-card-text h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.intro-card-text p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.intro-card-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 20px;
}

/* Three column grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  transition: background var(--transition);
}

.info-card:hover {
  background: var(--bg-card-hover);
}

.info-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 12px;
}

.info-card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.info-card-body {
  flex: 1;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.info-card-body ul {
  list-style: disc;
  padding-left: 18px;
}

.info-card-body li {
  margin-bottom: 4px;
}

.info-card-body .contact-line {
  margin-bottom: 8px;
}

.info-card-body .contact-line strong {
  color: var(--text-primary);
  font-weight: 500;
}

.contact-card-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.contact-card-text {
  min-width: 0;
  flex: 1;
}

.contact-qr {
  width: 112px;
  height: 112px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
  background: #fff;
}


.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--accent);
  transition: color var(--transition);
}

.card-link:hover {
  color: var(--accent-light);
}

.card-link::after {
  content: "→";
  transition: transform var(--transition);
}

.card-link:hover::after {
  transform: translateX(3px);
}

/* ===== Sub Pages ===== */
.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 32px 64px;
}

.page-header {
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.8;
}

/* Recruitment job cards */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.job-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 28px 32px;
  transition: background var(--transition);
}

.job-card:hover {
  background: var(--bg-card-hover);
}

.job-card-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}

.job-card-header h2 {
  font-size: 20px;
  font-weight: 600;
}

.job-dept {
  font-size: 13px;
  color: var(--accent);
  background: rgba(142, 132, 173, 0.15);
  padding: 2px 10px;
  border-radius: 4px;
}

.job-requirements {
  list-style: disc;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.9;
}

.job-requirements li {
  margin-bottom: 2px;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contact-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 28px 32px;
  transition: background var(--transition);
}

.contact-card:hover {
  background: var(--bg-card-hover);
}

.contact-card-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-card-value {
  font-size: 16px;
  color: var(--text-primary);
  word-break: break-all;
}

.contact-card-value a {
  color: var(--accent-light);
  transition: color var(--transition);
}

.contact-card-value a:hover {
  color: var(--text-primary);
}

.contact-card.full-width {
  grid-column: 1 / -1;
}

.contact-card--with-qr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.contact-card-main {
  min-width: 0;
  flex: 1;
}

.contact-card .contact-qr {
  width: 128px;
  height: 128px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
  background: #fff;
}


/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 24px 32px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.8;
}

.site-footer-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.85;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 12px;
  }

  .content-column {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-nav {
    gap: 24px;
  }

  .nav-link {
    font-size: 14px;
  }

  .hero-project-logo {
    bottom: -8px;
    left: -20px;
    height: 144px;
    max-width: min(63vw, 420px);
  }

  .hero-info {
    padding-top: 28px;
    padding-bottom: 4px;
  }

  .hero-info-title {
    font-size: 24px;
  }

  .hero-info-subtitle {
    font-size: 14px;
  }

  .hero-overlay {
    padding: 32px 20px 56px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .home-content,
  .page-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .intro-card {
    padding: 20px 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 26px;
  }

  .job-card {
    padding: 20px 24px;
  }
}

@media (max-width: 480px) {
  .site-logo img {
    height: 37px;
  }

  .site-nav {
    gap: 16px;
  }

  .nav-link {
    font-size: 13px;
  }

  .hero-project-logo {
    height: 72px;
    max-width: min(47vw, 240px);
    left: -9px;
    bottom: -4px;
  }
}
