:root {
  --bg-dark: #050a14;
  --primary-gold: #c5a059;
  --card-bg: rgba(26, 42, 64, 0.6);
  --text-gray: #cbd5e1;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: #000;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans", sans-serif;
  color: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: var(--primary-gold);
  text-decoration: none;
}

.stack-container {
  width: 100%;
}

section {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg-dark);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s linear;
  will-change: transform, opacity;
}

.bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(5,10,20,0.5) 0%, var(--bg-dark) 100%);
  z-index: -1;
}

.content {
  position: relative;
  z-index: 2;
  width: 85%;
  max-width: 1100px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

section.is-visible .content {
  opacity: 1;
  transform: translateY(0);
}

h1 {
  font-size: 4rem;
  color: var(--primary-gold);
  margin: 0 0 12px 0;
  letter-spacing: 5px;
  text-transform: uppercase;
}

h2 {
  font-size: 2.6rem;
  color: var(--primary-gold);
  margin-bottom: 24px;
  text-align: center;
}

h3 {
  color: var(--primary-gold);
  margin: 0 0 12px 0;
  font-size: 1.8rem;
}

p {
  font-size: 1.1rem;
  color: var(--text-gray);
}

.hero-tagline {
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.hero-actions {
  margin-top: 18px;
  font-size: 0.9rem;
  opacity: 0.85;
}

.leader-flex {
  display: flex;
  gap: 60px;
  align-items: center;
}

.leader-photo {
  flex: 0 0 350px;
  height: 480px;
  border-left: 5px solid var(--primary-gold);
  overflow: hidden;
  background: rgba(0,0,0,0.2);
}

.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.record-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.record-container img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 50px;
  width: 100%;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.partner-img-wrapper {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.partner-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.partner-item h4 {
  color: var(--primary-gold);
  font-size: 1.4rem;
  margin: 0;
  letter-spacing: 1px;
}

.partner-footer-desc {
  margin: 60px auto 0;
  padding: 25px;
  border-top: 1px solid rgba(197, 160, 89, 0.3);
  text-align: center;
  line-height: 1.8;
  color: #cbd5e1;
  font-size: 1rem;
  max-width: 900px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.info-card {
  background: var(--card-bg);
  padding: 30px;
  border-left: 3px solid var(--primary-gold);
  backdrop-filter: blur(10px);
}

.info-card h4 {
  color: var(--primary-gold);
  margin: 0 0 10px 0;
  font-size: 1.3rem;
}

.meeting-box {
  border: 1px solid rgba(197, 160, 89, 0.4);
  padding: 40px;
  background: rgba(5, 10, 20, 0.85);
  line-height: 2;
  text-align: justify;
}

.footer-note {
  text-align: center;
  margin-top: 40px;
  font-size: 0.85rem;
  color: #777;
}

/* ── Contact Section ── */
.contact-section {
  min-height: 100vh;
  height: auto !important;
  padding: 80px 0;
}

.contact-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 50px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 10px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.contact-info-item h4 {
  color: var(--primary-gold);
  margin: 0 0 4px 0;
  font-size: 1.15rem;
}

.contact-info-item p {
  margin: 0;
  font-size: 0.95rem;
  color: #8899aa;
}

.contact-form {
  background: var(--card-bg);
  padding: 40px;
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--primary-gold);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: 6px;
  background: rgba(5, 10, 20, 0.7);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #556;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

#contactSubmit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary-gold), #d4af61);
  color: #050a14;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

#contactSubmit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(197, 160, 89, 0.35);
}

#contactSubmit:active {
  transform: translateY(0);
}

#contactSubmit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  text-align: center;
  margin-top: 14px;
  font-size: 0.95rem;
  min-height: 1.5em;
}

.form-status.success { color: #4ade80; }
.form-status.error   { color: #f87171; }

.admin-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(5, 10, 20, 0.85);
  border: 1px solid rgba(197, 160, 89, 0.5);
  font-size: 0.85rem;
  z-index: 10;
}

.contact-closing {
  margin-top: 40px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-gray);
  padding: 28px 20px;
  border-top: 1px solid rgba(197, 160, 89, 0.25);
  line-height: 1.8;
  letter-spacing: 0.5px;
}

.contact-closing {
  margin-top: 40px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-gray);
  padding: 28px 20px;
  border-top: 1px solid rgba(197, 160, 89, 0.25);
  line-height: 1.8;
  letter-spacing: 0.5px;
}

@media (max-width: 900px) {
  h1 {
    font-size: 2.8rem;
  }

  .leader-flex {
    flex-direction: column;
  }

  .leader-photo {
    width: 100%;
    height: 360px;
  }

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

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

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

  .contact-form {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  section {
    position: relative;
    height: auto;
    min-height: 100vh;
    padding: 70px 0;
    overflow: visible;
  }

  .content {
    width: 90%;
  }

  h2 {
    font-size: 2rem;
    margin-bottom: 18px;
  }

  .leader-flex {
    gap: 26px;
  }

  .leader-photo {
    height: 300px;
  }

  .partner-grid {
    gap: 28px;
    margin-top: 32px;
  }

  .partner-footer-desc {
    margin-top: 36px;
    padding: 18px;
  }

  .info-card {
    padding: 22px;
  }

  .meeting-box {
    padding: 24px;
    line-height: 1.8;
  }

  .footer-note {
    margin-top: 26px;
  }
}
