/* ============================================================
   styles.css — 屋大维课堂 静态站样式（像素级还原 Next.js 版本）
   ============================================================ */

/* ===== 1. CSS Reset (Tailwind preflight) ===== */
*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

/* ===== 工具类 ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

body {
  margin: 0;
  line-height: inherit;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}
a {
  color: inherit;
  text-decoration: inherit;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
img {
  vertical-align: middle;
}
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: inherit;
  color: inherit;
}
p {
  margin: 0;
}

/* ===== 2. CSS Custom Properties (Design Tokens) ===== */
:root {
  /* Primary Red Scale */
  --color-primary-50: #ffe9e9;
  --color-primary-100: #ffd1d2;
  --color-primary-200: #f9a2a2;
  --color-primary-300: #f47070;
  --color-primary-400: #ef4545;
  --color-primary-500: #ed2a2a;
  --color-primary-600: #ec1a1c;
  --color-primary-700: #d20b10;
  --color-primary-800: #bc020c;
  --color-primary-900: #a50007;

  /* Neutral */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-neutral-100: #f5f5f5;
  --color-neutral-300: #d4d4d4;
  --color-coolGray-200: #e5e7eb;
  --color-coolGray-300: #d1d5db;
  --color-gray: #6b7280;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-slate-100: #f1f5f9;

  /* Accent */
  --color-blue-100: #dbeafe;
  --color-blue-500: #3b82f6;
  --color-blue-600: #2563eb;
  --color-orange-100: #ffedd5;
  --color-orange-300: #fdba74;
  --color-orange-500: #f97316;
  --color-orange: #fb923c;
  --color-green-400: #4ade80;
  --color-red-100: #fee2e2;
  --color-red-200: #fecaca;
  --color-red-500: #ef4444;
  --color-red-600: #dc2626;

  /* Typography */
  --font-family:
    'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Hiragino Sans GB',
    'Heiti SC', 'Microsoft YaHei', 'WenQuanYi Micro Hei', ui-sans-serif,
    system-ui, sans-serif;

  /* Spacing */
  --max-width: 1280px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ===== 3. Global Styles ===== */
html,
body {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body {
  font-family: var(--font-family);
  color: var(--color-black);
  background: var(--color-white);
}

#main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--color-neutral-100);
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== 4. Utility Classes ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
}

.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.flex-row {
  flex-direction: row;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-1 {
  flex: 1 1 0%;
}
.flex-auto {
  flex: 0 0 auto;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.items-end {
  align-items: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-around {
  justify-content: space-around;
}
.justify-end {
  justify-content: flex-end;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.fixed {
  position: fixed;
}
.hidden {
  display: none;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.inline {
  display: inline;
}
.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}
.overflow-hidden {
  overflow: hidden;
}
.rounded-sm {
  border-radius: 0.125rem;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-md {
  border-radius: 0.375rem;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-full {
  border-radius: 9999px;
}
.shadow-sm {
  box-shadow: var(--shadow-sm);
}
.shadow-md {
  box-shadow: var(--shadow-md);
}
.shadow-lg {
  box-shadow: var(--shadow-lg);
}
.shadow-2xl {
  box-shadow: var(--shadow-2xl);
}
.bg-white {
  background-color: var(--color-white);
}
.bg-primary {
  background-color: var(--color-primary-500);
}
.bg-coolGray-200 {
  background-color: var(--color-coolGray-200);
}
.bg-neutral-100 {
  background-color: var(--color-neutral-100);
}
.text-white {
  color: var(--color-white);
}
.text-primary {
  color: var(--color-primary-500);
}
.text-gray {
  color: var(--color-gray);
}
.text-gray-600 {
  color: var(--color-gray-600);
}
.text-gray-700 {
  color: var(--color-gray-700);
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}
.text-5xl {
  font-size: 3rem;
  line-height: 1;
}
.font-bold {
  font-weight: 700;
}
.font-600 {
  font-weight: 600;
}
.italic {
  font-style: italic;
}
.tracking-widest {
  letter-spacing: 0.1em;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-8 {
  gap: 2rem;
}
.space-y-2 > * + * {
  margin-top: 0.5rem;
}
.space-y-3 > * + * {
  margin-top: 0.75rem;
}
.space-y-4 > * + * {
  margin-top: 1rem;
}
.space-x-4 > * + * {
  margin-left: 1rem;
}
.space-x-6 > * + * {
  margin-left: 1.5rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Section wrapper */
.section {
  width: 100%;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* ===== 5. Navbar ===== */
.navbar {
  background: var(--color-white);
  width: 100%;
  border-bottom: 1px solid var(--color-coolGray-200);
  position: relative;
  z-index: 100;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
}
.navbar-logo img {
  width: 145.6px;
  height: 40px;
}

/* Hide mobile APP button when on apps page */
.mobile-app-btn[aria-hidden='true'] {
  display: none;
}

/* Mobile menu checkbox */
.menu-checkbox {
  display: none;
}

/* Hamburger toggle */
.menu-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  order: 2;
}
.menu-toggle .icon-close {
  display: none;
}
.menu-toggle .icon-menu {
  display: block;
}
.menu-checkbox:checked ~ .menu-toggle .icon-close {
  display: block;
}
.menu-checkbox:checked ~ .menu-toggle .icon-menu {
  display: none;
}

.menu-checkbox:checked ~ .navbar-menu {
  display: block;
}

/* Nav menu container */
.navbar-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--color-white);
  z-index: 2;
  padding: 2rem 0;
}

/* Backdrop */
.navbar-backdrop {
  position: absolute;
  top: 100%;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.5);
  height: 100vh;
}
.menu-checkbox:not(:checked) ~ .navbar-backdrop {
  display: none;
}

/* Nav links */
.navbar-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 0.75rem;
  gap: 0.75rem;
  z-index: 999;
  background: var(--color-white);
}

.nav-link {
  display: block;
  position: relative;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  transition:
    color 150ms ease,
    background-color 150ms ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  height: 0.25rem;
  transform: translateX(-50%);
  border-radius: 0.375rem;
  background: var(--color-primary-300);
  width: 0;
  transition:
    width 150ms ease,
    background-color 150ms ease;
}

.nav-link:hover {
  color: var(--color-primary-500);
  background: var(--color-slate-100);
}

.nav-link.active,
.nav-link[aria-checked='true'] {
  font-weight: 600;
  color: var(--color-primary-500);
  background: var(--color-slate-100);
}
.nav-link.active::after,
.nav-link[aria-checked='true']::after {
  background: var(--color-primary-500);
}
/* Desktop nav-link hover - no bg change */
@media (min-width: 768px) {
  .nav-link:hover {
    background: transparent;
  }
  .nav-link:hover::after {
    width: 1.25rem;
    background: var(--color-primary-300);
  }
  .nav-link.active:hover::after,
  .nav-link[aria-checked='true']:hover::after {
    background: var(--color-primary-500);
  }
}

/* Navbar Phone */
.navbar-tel {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
  padding-top: 0.75rem;
}
.navbar-tel svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-primary-500);
}
.tel-number {
  color: var(--color-primary-500);
  font-size: 1.125rem;
  font-weight: 700;
}
.tel-sub {
  font-style: italic;
  color: var(--color-primary-500);
  font-size: 0.75rem;
}

/* Mobile APP button */
.mobile-app-btn {
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  background: var(--color-primary-500);
  color: var(--color-white);
  order: 1;
  font-size: 0.875rem;
}

/* Desktop Navbar */
@media (min-width: 768px) {
  .navbar-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .navbar-logo {
    padding: 0;
  }
  .menu-toggle {
    display: none;
    order: 0;
  }
  .mobile-app-btn {
    display: none;
    order: 0;
  }

  .navbar-menu {
    display: flex;
    position: relative;
    top: auto;
    left: auto;
    flex: 1;
    background: transparent;
    padding: 0;
  }
  .navbar-backdrop {
    display: none !important;
  }

  .navbar-links {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    padding: 0;
    gap: 1.5rem;
    z-index: auto;
    background: transparent;
    padding-top: 0;
    padding-bottom: 0;
  }
  .nav-link {
    padding-top: 1.75rem;
    padding-bottom: 1.5rem;
  }
  .nav-link.active,
  .nav-link[aria-checked='true'] {
    background: transparent;
  }
  .nav-link.active::after,
  .nav-link[aria-checked='true']::after {
    width: 1.25rem;
    background: var(--color-primary-500);
  }
  .navbar-tel {
    padding-top: 0;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .nav-link {
    font-size: 1.125rem;
  }
}

@media (min-width: 1280px) {
  .navbar-inner {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (min-width: 640px) {
  .navbar-logo img {
    width: 152px;
    height: 50px;
  }
}

/* ===== 6. Footer ===== */
.site-footer {
  color: var(--color-gray-600);
  background: var(--color-white);
}
.footer-inner {
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-coolGray-200);
  color: var(--color-gray-400);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
}
.footer-inner a {
  color: var(--color-gray-400);
}
.footer-inner a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    gap: 1rem;
  }
  .footer-inner > * + * {
    margin-top: 0;
  }
}

/* ===== 7. GoTop (Floating Sidebar) ===== */
.gotop-bar {
  width: 100%;
  height: 3.5rem;
  display: flex;
  transition: opacity 500ms ease;
  background: rgba(255, 255, 255, 0.2);
  border-top: 1px solid var(--color-coolGray-300);
  box-shadow: var(--shadow-2xl);
}

.gotop-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--color-coolGray-200);
  cursor: pointer;
}
.gotop-item:last-child {
  border-right: none;
}

.gotop-item-icon {
  width: 2rem;
  height: 2rem;
  padding: 0.25rem;
  color: var(--color-primary-500);
}

.gotop-item-text {
  font-size: 0.875rem;
}

.gotop-item:hover .gotop-item-text {
  color: var(--color-primary-500);
}

/* GoTop back-to-top button (fixed on mobile) */
.go-top-btn {
  position: fixed;
  right: 1rem;
  bottom: 7.5rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
  z-index: 50;
}
.go-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}
.go-top-btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.25rem;
  background: var(--color-primary-500);
  border-radius: 9999px;
  color: var(--color-white);
}
.go-top-btn-text {
  display: none;
  font-size: 0.875rem;
  text-align: center;
}

/* Desktop GoTop */
@media (min-width: 640px) {
  .gotop-bar {
    width: 5.5rem;
    height: auto;
    padding: 2px;
    position: fixed;
    top: calc(100% - 450px);
    right: 2rem;
    border: none;
    background: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    z-index: 999;
  }
  .gotop-item {
    width: 100%;
    aspect-ratio: 0.8;
    border-right: none;
    border-top: 1px solid var(--color-coolGray-200);
    flex-direction: column;
    background: var(--color-white);
    cursor: pointer;
  }
  .gotop-item:first-child {
    border-top: none;
  }
  .gotop-item:last-child {
    border-top: 1px solid var(--color-coolGray-200);
  } /* override */

  .gotop-item-icon {
    width: 3rem;
    height: 3rem;
    padding: 0.5rem;
    border-radius: 9999px;
    background: var(--color-primary-500);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
  }
  .gotop-item-text {
    font-size: 0.875rem;
  }

  /* Desktop back-to-top */
  .go-top-btn {
    position: static;
    opacity: 1;
    pointer-events: auto;
    width: 100%;
    aspect-ratio: 0.8;
    border-top: 1px solid var(--color-coolGray-200);
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: none;
    z-index: auto;
  }
  .go-top-btn.visible {
    /* always visible on desktop */
  }
  .go-top-btn-icon {
    width: 3rem;
    height: 3rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-500);
  }
  .go-top-btn-text {
    display: block;
    font-size: 0.875rem;
  }
  .go-top-btn:hover .go-top-btn-text {
    color: var(--color-primary-500);
  }
}

/* ===== 8. QR Code Modal ===== */
.qr-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  transition: opacity 500ms ease;
}
.qr-modal[aria-hidden='true'] {
  display: none;
}

.qr-modal-inner {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10%;
}

.qr-modal-backdrop {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--color-black);
  opacity: 0.5;
  z-index: -1;
}

.qr-modal-content {
  width: 25rem;
  min-height: 20rem;
  max-height: 90%;
  background: var(--color-white);
  background-image: linear-gradient(to bottom, var(--color-primary-500), var(--color-primary-500));
  background-position: bottom;
  background-size: 100% 50%;
  background-repeat: no-repeat;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.qr-modal-header {
  padding: 2.5rem 0 0 0;
}

.qr-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  background: var(--color-gray-300);
  width: 2rem;
  height: 2rem;
  padding: 0.25rem;
  border-radius: 9999px;
  transition:
    background 500ms ease,
    color 500ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.qr-modal-close:hover {
  background: var(--color-gray-400);
  box-shadow: var(--shadow-lg);
  color: var(--color-white);
}
.qr-modal-close svg {
  width: 100%;
  height: 100%;
}

.qr-modal-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-black);
}

.qr-modal-img-wrap {
  margin: 1.5rem auto;
  width: 11.25rem;
  height: 11.25rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--color-white);
}
.qr-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-modal-subtitle {
  margin-top: 2.5rem;
  padding-bottom: 2.5rem;
  text-align: center;
  font-size: 1.25rem;
  color: var(--color-white);
}

/* ===== 9. Carousel (Homepage Section 1) ===== */
.carousel-section {
  width: 100%;
  position: relative;
}
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 2 / 1;
  position: relative;
  overflow: hidden;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-slide-link {
  display: block;
  width: 100%;
  height: 100%;
}

/* Carousel pagination dots */
.carousel-pagination {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}
.carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--color-neutral-300);
  transition: all 500ms ease;
  cursor: pointer;
}
.carousel-dot.active {
  width: 1.25rem;
  border-radius: 0.375rem;
  background: var(--color-primary-500);
}

@media (min-width: 768px) {
  .carousel-slide {
    aspect-ratio: 3.2 / 1;
    border-radius: 0.125rem;
  }
}

/* ===== 10. CourseTypes (Homepage Section 2) ===== */
.course-section {
  width: 100%;
  background-color: var(--color-coolGray-200);
  padding-top: 2rem;
  padding-bottom: 2rem;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.course-header {
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.course-grid {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  row-gap: 1rem;
  margin: 0 auto;
}

.course-card {
  width: 44.44%;
  max-width: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-coolGray-200);
  border-radius: 0.375rem;
  padding: 0.75rem;
  transition:
    box-shadow 500ms ease,
    transform 500ms ease;
}
.course-card:hover {
  box-shadow: var(--shadow-md);
}

.course-card-icon-wrap {
  width: 100%;
  padding-top: 1rem;
  padding-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.course-card-icon-circle {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 9999px;
  background: var(--color-coolGray-200);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.course-card-icon-circle img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.course-card-title {
  text-align: center;
  font-size: 1.125rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.course-card-desc {
  color: var(--color-gray);
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .course-card-icon-wrap {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }
  .course-card-icon-circle {
    width: 5rem;
    height: 5rem;
  }
}

@media (min-width: 768px) {
  .course-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .course-header {
    margin-bottom: 3rem;
    font-size: 2.25rem;
  }
  .course-card {
    width: 180px;
    padding: 1.25rem;
    cursor: default;
  }
  .course-card-icon-wrap {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .course-card-icon-circle {
    width: 5.5rem;
    height: 5.5rem;
  }
  .course-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  .course-card-desc {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .course-card {
    width: 240px;
  }
  .course-card:hover {
    transform: scale(1.1);
  }
  .course-card-icon-wrap {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .course-card-icon-circle {
    width: 6.5rem;
    height: 6.5rem;
  }
  .course-card-title {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

@media (min-width: 1280px) {
  .course-card {
    width: 260px;
  }
}

/* ===== 11. OneToOneTx (Homepage Section 3) ===== */
.onetoone-section {
  width: 100%;
  background: var(--color-white);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.onetoone-header {
  margin-bottom: 1.5rem;
  text-align: center;
}
.onetoone-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.onetoone-header h4 {
  font-size: 1.25rem;
  color: var(--color-gray);
}

.onetoone-grid {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  row-gap: 1rem;
  margin: 0 auto;
}

.onetoone-card {
  width: 44.44%;
  background: var(--color-primary-500);
  border: 1px solid transparent;
  color: var(--color-white);
  border-radius: 0.375rem;
  transition:
    box-shadow 500ms ease,
    transform 500ms ease;
}
/* Center the first card on mobile */
.onetoone-card:first-child {
  margin-left: 27.78%;
  margin-right: 27.78%;
}
.onetoone-card:hover {
  box-shadow: var(--shadow-md);
}

.onetoone-card-img {
  width: 100%;
  aspect-ratio: 0.9;
  position: relative;
}
.onetoone-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.onetoone-card-info {
  padding: 0.5rem;
  display: flex;
  flex-direction: row;
  gap: 0.25rem;
  align-items: center;
}
.onetoone-card-info svg {
  width: 2rem;
  height: 2rem;
  color: var(--color-white);
}
.onetoone-card-title {
  font-size: 1.125rem;
  font-weight: 600;
}
.onetoone-card-subtitle {
  font-size: 0.875rem;
  color: var(--color-coolGray-200);
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .onetoone-card-info svg {
    width: 2.5rem;
    height: 2.5rem;
  }
  .onetoone-card-title {
    font-size: 1.25rem;
  }
}

@media (min-width: 768px) {
  .onetoone-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .onetoone-header {
    margin-bottom: 3rem;
  }
  .onetoone-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }

  .onetoone-card {
    width: 250px;
    cursor: pointer;
  }
  .onetoone-card:first-child {
    margin-left: 0;
    margin-right: 0;
  }
  .onetoone-card-info {
    padding: 1rem;
  }
  .onetoone-card-info svg {
    width: 3.5rem;
    height: 3.5rem;
  }
  .onetoone-card-title {
    font-size: 1.5rem;
  }
  .onetoone-card-subtitle {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .onetoone-card {
    width: 280px;
  }
  .onetoone-card:hover {
    transform: scale(1.1);
  }
  .onetoone-card-info svg {
    width: 4rem;
    height: 4rem;
  }
  .onetoone-card-title {
    font-size: 1.875rem;
  }
}

@media (min-width: 1280px) {
  .onetoone-card {
    width: 300px;
  }
}

/* ===== 12. Personalize (Homepage Section 4) ===== */
.personalize-section {
  width: 100%;
  background: var(--color-primary-500);
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.personalize-section .container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.personalize-header h2 {
  font-size: 1.5rem;
  color: var(--color-white);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}
.personalize-badge {
  display: inline-block;
  padding: 0.25rem 1.5rem;
  background: var(--color-white);
  font-size: 1.25rem;
  color: var(--color-primary-500);
  border-radius: 9999px;
  margin-bottom: 1rem;
  text-align: center;
}

.personalize-bg-wrap {
  width: 100%;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
}

.personalize-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--color-white);
  border-radius: 0.125rem;
  transition: transform 500ms ease;
  position: relative;
}
.personalize-card::after {
  display: none;
}

.personalize-card-icon-wrap {
  width: 33.33%;
  max-width: 10rem;
}
.personalize-card-icon-circle {
  width: 42.86%;
  aspect-ratio: 1;
  padding: 0.75rem;
  border-radius: 9999px;
  margin: 0 auto;
}
.personalize-card-icon-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.personalize-card-title {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  text-align: center;
  font-weight: 600;
}
.personalize-card-desc {
  flex: 1;
  color: var(--color-gray);
  font-size: 1rem;
}

@media (min-width: 768px) {
  .personalize-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .personalize-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }

  .personalize-bg-wrap {
    flex-direction: row;
    justify-content: space-around;
    padding-left: 0;
    padding-right: 0;
    background-image: url('../images/personalize/personalize_bg.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom;
    padding-top: 1.5rem;
    padding-bottom: 6rem;
  }
  .personalize-card {
    display: block;
    width: 13.33%;
    height: 50%;
    min-height: 8.75rem;
    border-radius: 0.375rem;
    position: relative;
  }
  .personalize-card:nth-child(odd) {
    margin-top: 8.33%;
  }
  .personalize-card::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border: solid transparent;
    border-top-color: var(--color-white);
    border-left-width: 0.625rem;
    border-right-width: 0.625rem;
    border-top-width: 1rem;
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
  }
  .personalize-card:hover {
    transform: scale(1.1);
    cursor: default;
  }
  .personalize-card-icon-wrap {
    width: 100%;
  }
  .personalize-card-icon-circle {
    width: 50%;
    padding: 1rem;
  }
  .personalize-card-desc {
    font-size: 0.875rem;
  }
}

@media (min-width: 1024px) {
  .personalize-card {
    padding: 1.25rem;
  }
  .personalize-card-icon-wrap {
    padding: 1rem;
  }
  .personalize-card-title {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}

@media (max-width: 767px) {
  .personalize-bg-wrap {
    background: none !important;
  }
}

/* Icon bg colors */
.icon-bg-blue {
  background: var(--color-blue-500);
}
.icon-bg-orange {
  background: var(--color-orange-300);
}
.icon-bg-green {
  background: var(--color-green-400);
}

/* ===== 13. ProductTypes (Homepage Section 5) ===== */
.product-section {
  width: 100%;
  background: var(--color-white);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.product-header {
  text-align: center;
}
.product-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.product-header h3 {
  font-size: 1.25rem;
  color: var(--color-gray);
}

.product-desc {
  text-align: center;
  color: var(--color-gray);
  line-height: 1.625;
  margin-top: 0.5rem;
}
.product-desc b {
  color: var(--color-gray-700);
}

.product-grid {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  margin-top: 2rem;
}

.product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 600;
}

.product-circle {
  width: 6rem;
  height: 6rem;
  position: relative;
  padding: 0.25rem;
  border-radius: 9999px;
  animation: rotating 4s linear infinite;
}

.product-circle-inner {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  padding: 0.75rem;
}
.product-circle-core {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.product-circle-num {
  color: var(--color-white);
  font-size: 1.875rem;
  font-weight: 700;
}

.product-name {
  margin-top: 1rem;
}

.product-badge {
  margin-top: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  color: var(--color-white);
  font-weight: 600;
}

@media (min-width: 768px) {
  .product-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .product-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }
  .product-circle {
    width: 10rem;
    height: 10rem;
  }
  .product-circle-inner {
    padding: 1.5rem;
  }
  .product-circle-num {
    font-size: 3rem;
  }
  .product-badge {
    padding: 0.25rem 1.5rem;
  }
}

/* Product item colors */
.product-item-1 .product-circle {
  background: repeating-conic-gradient(
    from var(--rotate),
    #3b82f6 0%,
    #3b82f6 5%,
    transparent 5%,
    transparent 40%,
    #3b82f6 50%
  );
}
.product-item-1 .product-circle-inner {
  background: var(--color-blue-100);
}
.product-item-1 .product-circle-core {
  background: var(--color-blue-500);
}
.product-item-1 .product-badge {
  background: var(--color-blue-500);
}

.product-item-2 .product-circle {
  background: repeating-conic-gradient(
    from var(--rotate),
    #f97316 0%,
    #f97316 5%,
    transparent 5%,
    transparent 40%,
    #f97316 50%
  );
}
.product-item-2 .product-circle-inner {
  background: var(--color-orange-100);
}
.product-item-2 .product-circle-core {
  background: var(--color-orange-500);
}
.product-item-2 .product-badge {
  background: var(--color-orange-500);
}

.product-item-3 .product-circle {
  background: repeating-conic-gradient(
    from var(--rotate),
    #dc2626 0%,
    #dc2626 5%,
    transparent 5%,
    transparent 40%,
    #dc2626 50%
  );
}
.product-item-3 .product-circle-inner {
  background: var(--color-red-100);
}
.product-item-3 .product-circle-core {
  background: var(--color-red-500);
}
.product-item-3 .product-badge {
  background: var(--color-red-600);
}

/* @property and @keyframes for conic-gradient animation */
@property --rotate {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes rotating {
  0% {
    --rotate: 0deg;
  }
  100% {
    --rotate: 360deg;
  }
}

/* ===== 14. TiKu (Homepage Section 6) ===== */
.tiku-section {
  width: 100%;
  background-color: var(--color-coolGray-200);
  padding-top: 2rem;
  padding-bottom: 2rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  background-size: cover;
  background-repeat: no-repeat;
}

.tiku-header {
  text-align: center;
}
.tiku-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.tiku-header h3 {
  font-size: 1.25rem;
  color: var(--color-gray);
  margin-bottom: 1rem;
}

.tiku-grid {
  width: 100%;
  max-width: var(--max-width);
  aspect-ratio: 2.5;
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0 auto;
}

.tiku-col-left,
.tiku-col-right {
  display: flex;
  flex-direction: column;
  row-gap: 0.75rem;
}

.tiku-col-center {
  width: 100%;
  height: 7.5rem;
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.tiku-col-center img {
  height: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.tiku-item-label {
  display: inline-block;
  padding: 0 0.75rem;
  color: var(--color-white);
  background: var(--color-gray-500);
  border-radius: 9999px;
  font-size: 0.875rem;
}
.tiku-item-desc {
  margin-top: 0.25rem;
  color: var(--color-gray-700);
  font-size: 0.875rem;
}
.tiku-item-line {
  width: 100%;
  aspect-ratio: 191 / 5;
  margin-top: 0.5rem;
  background-repeat: no-repeat;
  background-size: contain;
}

@media (min-width: 768px) {
  .tiku-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .tiku-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }

  .tiku-grid {
    flex-direction: row;
    justify-content: center;
    gap: 25%;
  }
  .tiku-col-left {
    flex: 1;
    align-items: flex-end;
    justify-content: space-around;
    row-gap: 0;
  }
  .tiku-col-right {
    flex: 1;
    flex-direction: column;
    text-align: right;
    justify-content: space-around;
    row-gap: 0;
  }
  .tiku-col-center {
    position: absolute;
    height: 100%;
    align-items: center;
    width: 25%;
    top: 0;
    bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
  }
  .tiku-col-center img {
    width: 100%;
    height: auto;
  }

  .tiku-item-wrap-l {
    width: 20rem;
    max-width: 87.5%;
  }
  .tiku-item-wrap-l:first-child {
    margin-right: -1rem;
  }
  .tiku-item-wrap-l:nth-child(2) {
    margin-right: 1.5rem;
  }
  .tiku-item-wrap-l:nth-child(3) {
    margin-right: 1.5rem;
  }
  .tiku-item-wrap-l:last-child {
    margin-right: -1rem;
  }

  .tiku-item-wrap-r {
    width: 20rem;
    max-width: 87.5%;
    margin-left: auto;
  }
  .tiku-item-wrap-r:nth-child(even) {
    margin-left: 1.5rem;
  }
  .tiku-item-wrap-r:nth-child(odd) {
    margin-left: -1rem;
  }

  .tiku-item-line-r {
    transform: scaleX(-1);
  }
}

/* ===== 15. Links (Homepage Section 7 / Footer branding) ===== */
.links-section {
  width: 100%;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.links-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.links-content {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.links-brand {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 1rem;
}
.links-brand img {
  width: 120px;
  height: 60px;
  object-fit: contain;
}
.links-brand .links-slogan {
  max-width: 28rem;
  font-weight: 700;
  font-size: 1.25rem;
  font-style: italic;
}
.links-brand .links-subslogan {
  color: var(--color-gray);
}

.links-qrcodes {
  display: flex;
  width: 100%;
  flex-direction: row;
  gap: 1rem;
  justify-content: space-around;
}
.links-qr-item {
  text-align: center;
}
.links-qr-item img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}
.links-qr-item p {
  margin-top: 0.25rem;
  color: var(--color-gray);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .links-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .links-content {
    flex-direction: row;
  }
  .links-brand {
    width: auto;
  }
  .links-brand .links-slogan {
    font-size: 1.875rem;
  }
  .links-qrcodes {
    width: auto;
  }
}

/* LinkLoading skeleton animation */
.skeleton {
  background: var(--color-coolGray-200);
  border-radius: 0.375rem;
}
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

/* ===== About Header ===== */
.about-header {
  width: 100%;
  background-color: var(--color-coolGray-200);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.about-header-inner {
  width: 100%;
  max-width: var(--max-width);
  aspect-ratio: 2.5;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 1rem;
}
.about-header-text {
  color: var(--color-white);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.about-header-text .about-en {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.8));
}
.about-header-text .about-cn {
  font-size: 1.875rem;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.8));
}

@media (min-width: 640px) {
  .about-header-text .about-en {
    font-size: 1.5rem;
  }
  .about-header-text .about-cn {
    font-size: 2.25rem;
  }
}
@media (min-width: 768px) {
  .about-header-inner {
    aspect-ratio: 3;
  }
  .about-header-text .about-en {
    font-size: 1.875rem;
  }
  .about-header-text .about-cn {
    font-size: 3rem;
  }
}

/* ===== About Intro ===== */
.about-intro {
  width: 100%;
  background: var(--color-white);
  padding-top: 2rem;
  padding-bottom: 2rem;
  background-repeat: no-repeat;
  background-size: 20%;
  background-position: 0 -10%;
}

.about-intro-main {
  width: 100%;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-intro-text {
  flex: 1;
}
.about-intro-text > * + * {
  margin-top: 1rem;
}

.about-intro-text p {
  color: var(--color-gray-600);
  line-height: 1.625;
  text-indent: 2em;
}

.about-intro-logo {
  width: 158px;
  height: 50px;
  position: relative;
}
.about-intro-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-intro-video {
  width: 100%;
}
.about-intro-video video {
  width: 100%;
  height: 100%;
}

.about-intro-stats {
  width: 100%;
  margin-top: 2.5rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  row-gap: 2rem;
}

.about-stat-item {
  width: 33.33%;
  max-width: 7.5rem;
  padding: 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.about-stat-item:nth-child(1) {
  margin-left: 11.11%;
  margin-right: 5.56%;
}
.about-stat-item:nth-child(2) {
  margin-left: 5.56%;
  margin-right: 11.11%;
}

.about-stat-icon {
  width: 50%;
  aspect-ratio: 1;
  position: relative;
}
.about-stat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.about-stat-title {
  text-align: center;
  font-weight: 600;
}
.about-stat-desc {
  color: var(--color-gray);
  font-size: 0.875rem;
  text-align: center;
}

@media (min-width: 768px) {
  .about-intro {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .about-intro-main {
    flex-direction: row;
    gap: 2.5rem;
    align-items: center;
  }
  .about-intro-text > * + * {
    margin-top: 1.5rem;
  }
  .about-intro-video {
    width: 381.6px;
    height: 216px;
  }
  .about-stat-item {
    max-width: 7.5rem;
    width: 20%;
    margin: 0 !important;
  }
  .about-stat-icon {
    width: 60%;
  }
  .about-intro-stats {
    margin-top: 5rem;
    padding: 0;
  }
}

@media (min-width: 1024px) {
  .about-intro-main {
    align-items: flex-start;
  }
  .about-intro-text > * + * {
    margin-top: 1.5rem;
  }
  .about-intro-video {
    width: 480.4px;
    height: 272px;
  }
}

@media (min-width: 1280px) {
  .about-intro {
    background-position: 3% -10%;
  }
  .about-intro-text > * + * {
    margin-top: 2.5rem;
  }
  .about-intro-logo {
    width: 234px;
    height: 74px;
  }
  .about-intro-text p {
    line-height: 2;
  }
  .about-intro-video {
    width: 636px;
    height: 360px;
  }
}

/* ===== About Section Common ===== */
.about-section {
  width: 100%;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.about-section-white {
  background: var(--color-white);
}
.about-section-gray {
  background: var(--color-coolGray-200);
}

.about-section-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
@media (min-width: 1280px) {
  .about-section-inner {
    padding-left: 0;
    padding-right: 0;
  }
}

.about-section-header {
  margin-bottom: 1.5rem;
  text-align: center;
}
.about-section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.about-section-underline {
  width: 2.5rem;
  height: 2px;
  background: var(--color-primary-500);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .about-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .about-section-header {
    margin-bottom: 3rem;
  }
  .about-section-header h2 {
    font-size: 2.25rem;
  }
}

/* ===== About OperationMode ===== */
.opmode-grid {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  row-gap: 0.5rem;
}
.opmode-card {
  width: 45%;
}
.opmode-card-img {
  width: 100%;
  aspect-ratio: 1.35;
  position: relative;
}
.opmode-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.opmode-card-title {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 1.125rem;
}
.opmode-card-desc {
  color: var(--color-gray);
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .opmode-grid {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  .opmode-card {
    width: 100%;
    max-width: 250px;
  }
  .opmode-spacer {
    display: none;
  }
}
@media (min-width: 768px) {
  .opmode-grid {
    gap: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .opmode-grid {
    gap: 2rem;
  }
}

/* ===== About Campus ===== */
.campus-grid {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  row-gap: 0.5rem;
}
.campus-card {
  width: 45%;
  text-align: center;
}
.campus-card-img {
  width: 100%;
  aspect-ratio: 1.35;
  position: relative;
}
.campus-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.campus-card-badge {
  display: inline-block;
  padding: 1px 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--color-primary-500);
  font-size: 0.875rem;
  color: var(--color-white);
  border-radius: 9999px;
}
.campus-card-addr {
  color: var(--color-gray);
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .campus-grid {
    gap: 0.5rem;
  }
  .campus-card {
    width: 100%;
    max-width: 220px;
  }
}
@media (min-width: 768px) {
  .campus-grid {
    gap: 1.5rem;
  }
  .campus-card-badge {
    padding: 1px 1rem;
  }
  .campus-spacer {
    display: none;
  }
}
@media (min-width: 1024px) {
  .campus-grid {
    gap: 2rem;
  }
}

/* ===== About License ===== */
.license-img {
  width: 100%;
  aspect-ratio: 2.57;
  position: relative;
}
.license-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== About Teachers & Researcher ===== */
.about-team-header {
  margin-bottom: 1.5rem;
  text-align: center;
}
.about-team-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.about-team-badge {
  display: inline-block;
  padding: 0.25rem 1.5rem;
  font-size: 0.875rem;
  color: var(--color-gray);
  border-radius: 9999px;
}

@media (min-width: 768px) {
  .about-team-header {
    margin-bottom: 3rem;
  }
  .about-team-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }
  .about-team-badge {
    font-size: 1.125rem;
  }
}
@media (min-width: 1024px) {
  .about-team-badge {
    font-size: 1.25rem;
  }
}

.teachers-img {
  width: 100%;
  aspect-ratio: 2.07;
  position: relative;
}
.teachers-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.researcher-img-outer {
  width: 100%;
  aspect-ratio: 2.4;
  position: relative;
}
.researcher-img-inner {
  width: 70%;
  aspect-ratio: 1.67;
  margin: 0 auto;
  position: relative;
}
.researcher-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (min-width: 1024px) {
  .researcher-img-inner {
    width: 60%;
  }
}

/* ===== About OneToOne (School Logos) ===== */
.school-grid {
  width: 100%;
  columns: 2;
  column-gap: 0;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.school-item {
  width: 100%;
  break-inside: avoid;
  margin-bottom: 0.5rem;
}
.school-card {
  width: 80%;
  max-width: 160px;
  margin: 0 auto;
  aspect-ratio: 2.5;
  padding: 0.25rem;
  background: var(--color-white);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
}
.school-card-img {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

@media (min-width: 640px) {
  .school-grid {
    columns: 4;
  }
  .school-item {
    margin-bottom: 0.75rem;
  }
  .school-card {
    width: 70%;
  }
}
@media (min-width: 768px) {
  .school-card {
    width: 80%;
    padding: 0.5rem;
  }
}
@media (min-width: 1280px) {
  .school-grid {
    columns: 5;
    padding: 0;
  }
  .school-item {
    margin-bottom: 1rem;
  }
}

/* ============================================================
   APPS PAGE
   ============================================================ */

.apps-section {
  width: 100%;
  background: var(--color-white);
  background-repeat: no-repeat;
  background-size: auto 70%;
  background-position: top right;
}

.apps-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
}

.apps-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.apps-subtitle-cn {
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  color: var(--color-gray-400);
}
.apps-subtitle-en {
  font-size: 1.25rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  color: var(--color-gray-400);
}
.apps-brand {
  font-size: 1.875rem;
  color: var(--color-white);
  letter-spacing: 0.1em;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.apps-wudawei {
  display: none;
  font-size: 1.5rem;
}

.apps-qr {
  display: none;
}
.apps-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.apps-sys-req {
  font-size: 0.875rem;
  color: var(--color-gray);
}
.apps-dl-btn-desktop {
  display: none;
}

.apps-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.apps-phone-wrap {
  width: 100%;
  aspect-ratio: 1.44;
  position: relative;
}
.apps-phone-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.apps-dl-btn-mobile {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-primary-500);
  border-radius: 9999px;
  color: var(--color-white);
  text-align: center;
  display: inline-block;
  font-size: 0.875rem;
}

/* WeChat guide */
.wechat-guide-img {
  width: 100%;
  aspect-ratio: 0.5625;
  position: relative;
}
.wechat-guide-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (min-width: 768px) {
  .apps-section {
    background-size: auto 90%;
  }
  .apps-container {
    padding: 5rem 1rem;
    flex-direction: row;
    justify-content: space-around;
    gap: 5%;
  }
  .apps-left {
    flex: 0 0 auto;
    align-items: flex-start;
    text-align: left;
  }
  .apps-subtitle-cn {
    color: var(--color-black);
  }
  .apps-subtitle-en {
    color: var(--color-blue-600);
  }
  .apps-brand {
    color: var(--color-blue-600);
  }
  .apps-wudawei {
    display: block;
  }

  .apps-qr {
    display: block;
    width: 7.5rem;
    height: 7.5rem;
    margin: 0.5rem 0;
    position: relative;
    background: var(--color-white);
    border-radius: 0.125rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
  }
  .apps-dl-btn-desktop {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 1rem;
    background: var(--color-orange);
    border-radius: 9999px;
    color: var(--color-white);
    text-align: center;
  }
  .apps-dl-btn-mobile {
    display: none;
  }
  .apps-center {
    width: 60%;
  }
}

@media (min-width: 1024px) {
  .apps-subtitle-cn {
    font-size: 1.25rem;
  }
  .apps-subtitle-en {
    font-size: 1.5rem;
  }
  .apps-brand {
    font-size: 2.25rem;
  }
  .apps-wudawei {
    font-size: 2.25rem;
  }
  .apps-qr {
    width: 10rem;
    height: 10rem;
    margin: 0.75rem 0;
  }
  .apps-dl-btn-desktop {
    margin-top: 1rem;
    padding: 0.5rem 1.25rem;
  }
}

@media (min-width: 1280px) {
  .apps-container {
    padding-left: 0;
    padding-right: 0;
    gap: 10%;
  }
  .apps-center {
    width: 50%;
  }
}
