:root {
  --bg: #f3efe8;
  --bg-soft: #f8f5f0;
  --ink: #2d3152;
  --ink-soft: #626789;
  --accent: #ec9e5c;
  --accent-strong: #d7782a;
  --mint: #2e9d8f;
  --sand: #e8be6a;
  --card: #ffffff;
  --border: rgba(45, 49, 82, 0.12);
  --shadow: 0 10px 30px rgba(34, 37, 64, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: radial-gradient(circle at 10% 10%, #fffaf0 0%, var(--bg) 45%, #ece7de 100%);
  font-family: "Noto Sans SC", "Poppins", sans-serif;
}

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

.page-shell {
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 1.2rem 0 3rem;
}

.top-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  padding: 0.8rem 1rem;
  margin-bottom: 1.3rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.brand-chip {
  display: inline-flex;
  align-items: center;
}

.brand-chip img {
  display: block;
  height: 44px;
  max-width: 260px;
  width: auto;
  object-fit: contain;
}

.menu-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.menu-links a {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: all 0.2s ease;
}

.menu-links a:hover {
  color: var(--ink);
  background: rgba(236, 158, 92, 0.16);
}

.lang-switch {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-weight: 600;
  background: #fff;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.hero-main,
.hero-script-card {
  background: linear-gradient(140deg, #fffef7 10%, #f4e8d5 100%);
  border: 1px solid rgba(236, 158, 92, 0.35);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero-main {
  padding: 2rem;
}

.hero-script-card {
  padding: 1.5rem;
  background: linear-gradient(150deg, #f4f8ff 0%, #fef5ea 100%);
}

.badge {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  letter-spacing: 0.07em;
  font-size: 0.76rem;
  color: var(--accent-strong);
  margin-bottom: 0.6rem;
}

h1 {
  margin: 0;
  font-family: "Poppins", "Noto Sans SC", sans-serif;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.1;
}

.hero-subtitle {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(215, 120, 42, 0.28);
}

.btn-secondary {
  background: #fff;
  border: 1px solid var(--border);
}

.section {
  margin-top: 1rem;
  padding: 1.4rem 1.3rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.section-head span {
  display: inline-block;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.section-head h2 {
  margin-top: 0.35rem;
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.section-summary {
  margin-top: -0.2rem;
  margin-bottom: 1rem;
  color: var(--ink-soft);
}

.about-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 2fr 1fr;
}

.about-card,
.office-card,
.mission-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 1.2rem;
}

.about-card {
  background: #f7f7fa;
}

.office-card {
  background: #f5f6f7;
}

.office-card ul {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.office-card li {
  background: #fff;
  border-radius: 12px;
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
}

.mission-card {
  min-height: 170px;
}

.mission-1 {
  background: linear-gradient(155deg, #f3c97f 0%, #e5b96a 100%);
}

.mission-2 {
  background: linear-gradient(155deg, #5ca79b 0%, #de9f76 100%);
  color: #fff;
}

.team-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.spec-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spec-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 0.9rem;
}

.spec-card h3 {
  margin: 0;
  font-size: 0.96rem;
}

.spec-card p {
  margin-top: 0.45rem;
  color: var(--ink-soft);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.9rem;
}

.pill-row h4 {
  margin: 0;
  margin-right: 0.3rem;
}

.pill {
  border-radius: 999px;
  background: #f9efe4;
  border: 1px solid rgba(215, 120, 42, 0.25);
  padding: 0.35rem 0.7rem;
  font-size: 0.88rem;
}

.gallery-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #f0f1f4;
  border: 1px solid var(--border);
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.video-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.video-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.8rem;
}

.video-card h3 {
  margin-top: 0.2rem;
  margin-bottom: 0.6rem;
}

.video-card video {
  width: 100%;
  border-radius: 12px;
  background: #111;
}

.survey-form {
  display: grid;
  gap: 0.9rem;
}

.survey-form fieldset {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem;
  background: #fff;
}

.survey-form legend {
  font-weight: 700;
  padding: 0 0.4rem;
}

.legend-hint {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.option-grid label {
  background: #fbfaf9;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
}

.checkbox-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.survey-form input[type="text"],
.survey-form input[type="email"],
.survey-form input[type="password"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.65rem;
  font: inherit;
}

#custom-name-input {
  margin-top: 0.7rem;
  display: none;
}

.consent-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  color: var(--ink-soft);
}

.btn-submit {
  width: fit-content;
}

.survey-feedback {
  margin: 0;
  font-weight: 600;
}

.success-card {
  margin-top: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(46, 157, 143, 0.35);
  background: rgba(46, 157, 143, 0.08);
  padding: 1rem;
}

.hidden {
  display: none;
}

.site-footer {
  margin-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding: 0.9rem 0.3rem;
  color: var(--ink-soft);
}

.footer-meta {
  display: grid;
  gap: 0.28rem;
}

.footer-copy,
.footer-beian {
  margin: 0;
}

.footer-beian {
  font-size: 0.9rem;
}

.footer-beian a {
  color: var(--ink-soft);
}

.footer-beian a:hover {
  color: var(--accent-strong);
}

.beian-sep {
  margin: 0 0.35rem;
  color: rgba(45, 49, 82, 0.35);
}

.site-footer a {
  color: var(--accent-strong);
  font-weight: 700;
}

.admin-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.admin-login-card {
  width: min(420px, 92vw);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.admin-login-card h1 {
  font-size: 1.5rem;
}

.admin-login-card form {
  display: grid;
  gap: 0.55rem;
}

.admin-shell {
  width: min(1180px, 96vw);
  display: grid;
  gap: 1rem;
}

.admin-top,
.admin-stats,
.admin-grid,
.admin-table-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.admin-top h1 {
  font-size: 1.3rem;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.admin-stats {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  background: #faf9f7;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem;
}

.stat-card h2 {
  margin: 0;
  font-size: 1.5rem;
}

.stat-card p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
}

.admin-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.admin-panel li {
  display: flex;
  justify-content: space-between;
  background: #fafafa;
  border-radius: 8px;
  padding: 0.55rem;
}

.table-scroll {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 900px;
}

th,
td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 0.55rem;
  font-size: 0.9rem;
}

.error-text {
  color: #b42020;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise-in 0.6s ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 0.05s;
}

.reveal:nth-child(3) {
  animation-delay: 0.09s;
}

.reveal:nth-child(4) {
  animation-delay: 0.12s;
}

.reveal:nth-child(5) {
  animation-delay: 0.16s;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero,
  .about-grid,
  .video-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .team-grid,
  .spec-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkbox-grid,
  .option-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .top-nav {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .menu-links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .brand-chip img {
    height: 36px;
    max-width: 190px;
  }

  .team-grid,
  .spec-grid,
  .gallery-grid,
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(1180px, 95vw);
  }

  .section {
    padding: 1rem 0.85rem;
  }

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