/* ========================================
   力得育仁儿童能力教育研究院 — H5 Styles
   Mobile-first · Warm education brand
   ======================================== */

:root {
  --color-primary: #2B7A78;
  --color-primary-dark: #1E5A58;
  --color-primary-light: #3AAFA9;
  --color-accent: #F4A261;
  --color-accent-soft: #FFE8D1;
  --color-bg: #F7FBFA;
  --color-bg-alt: #EAF4F3;
  --color-surface: #FFFFFF;
  --color-text: #1A2E2D;
  --color-text-muted: #5A7070;
  --color-border: #D4E5E3;
  --color-doc: #C44536;
  --color-plaque: #B8860B;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(43, 122, 120, 0.08);
  --shadow-lg: 0 12px 40px rgba(43, 122, 120, 0.12);
  --header-h: 64px;
  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--color-primary-dark);
}

ul, ol {
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.muted {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.center-text {
  text-align: center;
  margin-bottom: 1.25rem;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.15s var(--ease);
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.text-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow);
  border-bottom-color: var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-text);
  flex-shrink: 0;
}

.logo:hover {
  color: var(--color-text);
}

.logo-img {
  height: 34px;
  width: auto;
  max-width: min(180px, 52vw);
  object-fit: contain;
  display: block;
}

.nav-toggle {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-toggle:hover {
  background: var(--color-bg-alt);
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

.primary-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 0;
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease),
    visibility 0.3s;
}

.primary-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.primary-nav ul {
  display: flex;
  flex-direction: column;
  padding: 0 12px;
}

.primary-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.75rem 1rem;
  color: var(--color-text);
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.primary-nav a:hover,
.primary-nav a.is-active {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: 4rem 0 4.5rem;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(58, 175, 169, 0.45), transparent),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(244, 162, 97, 0.25), transparent),
    linear-gradient(145deg, #1E5A58 0%, #2B7A78 45%, #3AAFA9 100%);
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: clamp(1.65rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: 0.95;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.hero-desc {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ========== Sections ========== */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}

.section-lead {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ========== Tabs ========== */
.tabs {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tab-list {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--color-border);
  scrollbar-width: none;
}

.tab-list::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex: 1 0 auto;
  min-height: 52px;
  padding: 0.85rem 1.1rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.tab-btn:hover {
  color: var(--color-primary);
  background: var(--color-bg);
}

.tab-btn.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-panel {
  display: none;
  padding: 1.75rem 1.25rem 2rem;
}

.tab-panel.is-active {
  display: block;
  animation: fadeIn 0.35s var(--ease);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ========== Prose ========== */
.prose p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.prose h3 {
  font-size: 1.15rem;
  margin: 1.75rem 0 1rem;
  color: var(--color-primary-dark);
}

.brand-quote {
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(135deg, var(--color-bg-alt), #fff);
  border-left: 4px solid var(--color-primary-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 500;
  color: var(--color-primary-dark);
  line-height: 1.8;
}

/* ========== Feature / Info cards ========== */
.feature-grid {
  display: grid;
  gap: 1rem;
}

.feature-grid.three,
.feature-grid.four {
  grid-template-columns: 1fr;
}

.feature-card,
.info-card,
.pillar-card,
.coop-card,
.location-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.feature-card {
  text-align: center;
}

.feature-icon,
.pillar-icon {
  font-size: 1.75rem;
  margin-bottom: 0.65rem;
}

.feature-card h4,
.info-card h3,
.pillar-card h3,
.coop-card h3,
.location-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary-dark);
}

.feature-card p,
.info-card p,
.pillar-card p,
.coop-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.info-num {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary-light);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.info-card {
  border-top: 3px solid var(--color-primary-light);
}

.info-figure {
  display: block;
  width: 100%;
  margin-top: 0.85rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) - 4px);
  background: var(--color-bg-alt);
  overflow: hidden;
  cursor: zoom-in;
}

.info-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  transition: transform 0.35s var(--ease);
}

.info-figure:hover img,
.info-figure:focus-visible img {
  transform: scale(1.04);
}

.pillar-card {
  text-align: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.coop-card {
  display: flex;
  flex-direction: column;
}

.coop-card .text-link {
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ========== Honors ========== */
.honors {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px dashed var(--color-border);
}

.honors h3 {
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.35rem;
}

.honors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 1rem;
}

.honor-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 0;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow);
  cursor: pointer;
  overflow: hidden;
  font: inherit;
  color: inherit;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.honor-card:hover,
.honor-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  outline: none;
}

.honor-card:focus-visible {
  box-shadow: var(--shadow-lg), 0 0 0 3px rgba(58, 175, 169, 0.35);
}

.honor-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #f6faf9, #eaf1f0);
  padding: 0.55rem;
  overflow: hidden;
}

.honor-thumb.landscape {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #fffbeb, #f7f0da);
}

.honor-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.honor-caption {
  display: block;
  padding: 0.7rem 0.75rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-text);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.honor-card.doc .honor-caption {
  border-top-color: rgba(196, 69, 54, 0.18);
}

.honor-card.plaque .honor-caption {
  border-top-color: rgba(184, 134, 11, 0.22);
}

/* ========== Lightbox ========== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 24, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(920px, 100%);
  max-height: min(92vh, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: fadeIn 0.25s var(--ease);
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(92vh - 4.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.lightbox-caption {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.5;
  max-width: 36rem;
  padding: 0 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: -0.35rem;
  right: -0.15rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  display: grid;
  place-items: center;
  transition: background 0.15s, transform 0.15s;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: #fff;
  transform: scale(1.05);
  outline: none;
}

body.lightbox-open {
  overflow: hidden;
}

/* ========== Dean letter ========== */
.dean-letter h3 {
  font-size: 1.2rem;
  color: var(--color-primary-dark);
  margin-bottom: 1.25rem;
  text-align: center;
}

.dean-sign {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  text-align: right;
}

.dean-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.65rem;
}

.dean-sign ul {
  display: inline-block;
  text-align: right;
}

.dean-sign li {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ========== Environment grid ========== */
.env-group + .env-group {
  margin-top: 1.75rem;
}

.env-subtitle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.env-subtitle::before {
  content: "";
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: var(--color-primary);
}

.env-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.env-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-alt);
  cursor: zoom-in;
  box-shadow: 0 2px 8px rgba(21, 65, 67, 0.1);
}

.env-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}

.env-card:hover img,
.env-card:focus-visible img {
  transform: scale(1.06);
}

.env-card .env-label {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.4rem 0.75rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  text-align: left;
  background: linear-gradient(180deg, rgba(15, 42, 43, 0), rgba(15, 42, 43, 0.72));
  pointer-events: none;
}

/* ========== Accordion / Products ========== */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.accordion-item {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.accordion-item summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 56px;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  user-select: none;
  transition: background 0.2s;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: rotate(45deg);
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}

.accordion-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.accordion-item summary:hover {
  background: var(--color-bg);
}

.acc-index {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.acc-title {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.4;
}

.acc-count {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-bg);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.acc-body {
  padding: 0 1.15rem 1.35rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.1rem;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.product-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.55;
}

.product-list:not(.numbered) li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary-light);
}

.product-list.numbered {
  counter-reset: prod;
}

.product-list.numbered li {
  padding-left: 1.75rem;
  counter-increment: prod;
}

.product-list.numbered li::before {
  content: counter(prod) ".";
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.85rem;
}

.level-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.level-tags span {
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

.acc-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.placeholder-note {
  padding: 1rem;
  background: var(--color-accent-soft);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-accent);
  color: var(--color-text);
}

.special-series {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.sub-block h4 {
  font-size: 0.95rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed var(--color-border);
}

.sub-block em {
  font-style: normal;
  font-weight: 700;
  color: var(--color-primary);
  margin-right: 0.35rem;
}

/* ========== Assessment ========== */
.assess-hero {
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-light));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.assess-hero p:first-child {
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.assess-sub {
  opacity: 0.9;
  font-size: 0.9rem;
}

/* ========== Contact ========== */
.contact-layout {
  display: grid;
  gap: 1.5rem;
}

.contact-locations {
  display: grid;
  gap: 1rem;
}

.location-card p {
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 1.75rem;
}

.footer-inner {
  text-align: center;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.footer-brand p {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-bottom: 1.25rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.15rem;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.75rem;
  opacity: 0.55;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
}

/* ========== Tablet ~768 ========== */
@media (min-width: 768px) {
  :root {
    --header-h: 72px;
  }

  .container {
    padding: 0 28px;
  }

  .section {
    padding: 4.5rem 0;
  }

  .logo-img {
    height: 44px;
    max-width: 220px;
  }

  .hero {
    padding: 5.5rem 0 6rem;
  }

  .tab-panel {
    padding: 2rem 2rem 2.25rem;
  }

  .feature-grid.three {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-grid.four {
    grid-template-columns: repeat(2, 1fr);
  }

  .honors-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .env-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .contact-locations {
    grid-template-columns: 1fr 1fr;
  }

  .acc-title {
    font-size: 1rem;
  }
}

/* ========== Desktop ~1024+ ========== */
@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .primary-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    padding: 0;
  }

  .primary-nav a {
    min-height: 40px;
    padding: 0.45rem 0.7rem;
    font-size: 0.9rem;
  }

  .hero {
    padding: 6.5rem 0 7rem;
  }

  .feature-grid.four {
    grid-template-columns: repeat(4, 1fr);
  }

  .section {
    padding: 5rem 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


.footer-beian {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
}

.footer-beian a {
  color: var(--muted, #64748b);
  text-decoration: none;
}

.footer-beian a:hover {
  color: var(--primary, #0d9488);
  text-decoration: underline;
}
