@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;600;700;900&display=swap');

:root {
  --background: 210 20% 98%;
  --foreground: 215 25% 15%;
  --card: 0 0% 100%;
  --card-foreground: 215 25% 15%;
  --primary: 210 100% 40%;
  --primary-foreground: 0 0% 100%;
  --primary-hover: 210 100% 35%;
  --accent: 357 100% 45%;
  --accent-foreground: 0 0% 100%;
  --accent-hover: 357 100% 40%;
  --secondary: 210 30% 95%;
  --secondary-foreground: 215 25% 25%;
  --muted: 210 20% 94%;
  --muted-foreground: 215 15% 50%;
  --border: 210 20% 88%;
  --radius: 0.5rem;
  --header-height: 72px;
  --gradient-primary: linear-gradient(135deg, hsl(210 100% 45%) 0%, hsl(210 100% 35%) 100%);
  --gradient-hero: linear-gradient(180deg, hsl(210 40% 96%) 0%, hsl(210 30% 92%) 100%);
  --gradient-card: linear-gradient(145deg, hsl(0 0% 100%) 0%, hsl(210 20% 98%) 100%);
  --shadow-card: 0 4px 20px -4px hsl(210 30% 20% / 0.1);
  --shadow-elevated: 0 8px 30px -8px hsl(210 30% 20% / 0.15);
  --shadow-button: 0 4px 14px -4px hsl(210 100% 40% / 0.4);
  --shadow-accent: 0 4px 14px -4px hsl(357 100% 45% / 0.4);
}

* { box-sizing: border-box; }
* { border-color: hsl(var(--border)); }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', 'Noto Sans SC', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans SC', 'Inter', system-ui, sans-serif;
  margin-top: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container-wide {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) { .container-wide { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container-wide { padding-left: 2rem; padding-right: 2rem; } }

.section-padding { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .section-padding { padding-top: 6rem; padding-bottom: 6rem; } }

.text-gradient {
  background-image: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card-elevated {
  background: var(--gradient-card);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-card);
}
.card-elevated:hover { box-shadow: var(--shadow-elevated); }

.bg-card { background-color: hsl(var(--card)); }
.bg-background { background-color: hsl(var(--background)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-primary { background-color: hsl(var(--primary)); }
.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-accent { color: hsl(var(--accent)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }

.bg-primary\/10 { background-color: hsl(var(--primary) / 0.1); }
.bg-primary\/5 { background-color: hsl(var(--primary) / 0.05); }
.bg-accent\/20 { background-color: hsl(var(--accent) / 0.2); }
.bg-background\/95 { background-color: hsl(var(--background) / 0.95); }
.bg-foreground\/95 { background-color: hsl(var(--foreground) / 0.95); }
.bg-foreground\/80 { background-color: hsl(var(--foreground) / 0.8); }
.bg-foreground\/50 { background-color: hsl(var(--foreground) / 0.5); }
.text-primary-foreground\/80 { color: hsl(var(--primary-foreground) / 0.8); }

.btn-primary, .btn-hero, .btn-outline, .btn-hero-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 0.875rem;
}
.btn-primary, .btn-hero {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  box-shadow: var(--shadow-accent);
  padding: 0.75rem 1.5rem;
}
.btn-hero { font-weight: 700; padding: 0.875rem 2rem; font-size: 1rem; }
.btn-hero-xl { padding: 1rem 2.5rem; font-size: 1.125rem; }
.btn-primary:hover, .btn-hero:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px -4px hsl(357 100% 45% / 0.5);
}
.btn-outline {
  border: 2px solid hsl(var(--primary));
  background: transparent;
  color: hsl(var(--primary));
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
.btn-outline:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.btn-hero-outline {
  border: 2px solid hsl(var(--primary-foreground) / 0.3);
  background: hsl(var(--primary-foreground) / 0.1);
  color: hsl(var(--primary-foreground));
  padding: 0.75rem 1.5rem;
  backdrop-filter: blur(4px);
}
.btn-hero-outline:hover { background: hsl(var(--primary-foreground) / 0.2); }

.link-underline { position: relative; }
.link-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: hsl(var(--primary));
  transition: width 0.3s;
}
.link-underline:hover::after { width: 100%; }

/* Layout */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.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; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .sm-block { display: block !important; }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
}

.w-full { width: 100%; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.ml-8 { margin-left: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-16 { padding-top: 4rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-24 { padding-bottom: 6rem; }
.pt-72 { padding-top: 72px; }

.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-border { border-color: hsl(var(--border)); }
.border-background\/10 { border-color: hsl(var(--background) / 0.1); }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.-z-10 { z-index: -10; }

.object-cover { object-fit: cover; }
.flex-shrink-0 { flex-shrink: 0; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.list-none { list-style: none; padding-left: 0; margin: 0; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: hsl(var(--card) / 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}
.site-header .container-wide { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-desktop { display: none; }
@media (min-width: 1024px) {
  .nav-desktop { display: flex; align-items: center; gap: 0.25rem; }
  .nav-mobile-btn { display: none; }
}
.nav-desktop a, .nav-mobile a {
  color: hsl(var(--foreground) / 0.8);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}
.nav-desktop a:hover, .nav-mobile a:hover { color: hsl(var(--primary)); }

.dropdown { position: relative; }
.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  width: 12rem;
  padding: 0.5rem 0;
  background: hsl(var(--card));
  border-radius: 0.5rem;
  box-shadow: var(--shadow-elevated);
  border: 1px solid hsl(var(--border));
  display: none;
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a { display: block; padding: 0.5rem 1rem; }

/* Mobile nav */
.nav-mobile { padding: 1rem 0; border-top: 1px solid hsl(var(--border)); }
.nav-mobile a { display: block; padding: 0.75rem 1rem; }
.nav-mobile.active { display: block; }

/* Hero gradient */
.bg-gradient-to-r from-foreground\/95 { background: linear-gradient(to right, hsl(var(--foreground) / 0.95), hsl(var(--foreground) / 0.8), hsl(var(--foreground) / 0.5)); }
.bg-gradient-to-br.from-primary\/5 { background: linear-gradient(to bottom right, hsl(var(--primary) / 0.05), hsl(var(--background)), hsl(var(--accent) / 0.05)); }
.bg-gradient-to-br.from-primary.to-primary\/80 { background: linear-gradient(to bottom right, hsl(var(--primary)), hsl(var(--primary) / 0.8)); }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1rem; text-align: left; }
tr.border-b { border-bottom: 1px solid hsl(var(--border)); }
tr:last-child.border-0 { border-bottom: none; }
tr:hover { background: hsl(var(--muted) / 0.5); }

/* Details/Summary FAQ */
details summary {
  cursor: pointer;
  list-style: none;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}
details summary::-webkit-details-marker { display: none; }
details[open] summary { border-bottom: 1px solid hsl(var(--border)); }
details .content { padding: 0 1.5rem 1.5rem; color: hsl(var(--muted-foreground)); }

/* Animations */
.animate-fade-in { animation: fadeIn 0.6s ease-out forwards; }
.animate-slide-up { animation: slideUp 0.6s ease-out forwards; }
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Footer */
.site-footer {
  background: hsl(var(--foreground));
  color: hsl(var(--background) / 0.9);
  padding: 4rem 0;
}
.site-footer a { color: hsl(var(--background) / 0.7); }
.site-footer a:hover { color: hsl(var(--background)); }
.site-footer .grid { gap: 2.5rem; }
@media (min-width: 768px) { .site-footer .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer .grid { grid-template-columns: 1fr repeat(3, auto); } }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--background) / 0.1);
  font-size: 0.75rem;
  color: hsl(var(--background) / 0.5);
}

/* Icon placeholders (inline SVG or emoji) */
.icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--primary) / 0.1);
}
.icon-wrap-sm { width: 2.5rem; height: 2.5rem; }
.icon-wrap-lg { width: 3.5rem; height: 3.5rem; }
.icon-wrap-xl { width: 4rem; height: 4rem; }

/* Responsive text */
@media (min-width: 768px) {
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-lg { font-size: 1.125rem; }
}
@media (min-width: 1024px) {
  .lg\:text-5xl { font-size: 3rem; }
}

.font-chinese { font-family: 'Noto Sans SC', 'Inter', sans-serif; }

/* Inline SVG icons (simple) */
svg.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
svg.icon-lg { width: 1.75rem; height: 1.75rem; }
svg.icon-xl { width: 2rem; height: 2rem; }
