/* ============================================
   琼海订购 — Design Tokens
   Source: LottieFiles DNA adaptation
   Palette: Teal monochrome + neutral gray
   Typography: Noto Serif SC (display) + Inter (body)
   Shape: Soft rounded 8px, NOT pill
   ============================================ */

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

:root {
  /* --- Brand Colors --- */
  --qh-primary: #5266EB;
  --qh-primary-hover: #3D4FD9;
  --qh-secondary: #3D4FD9;
  --qh-secondary-hover: #3D4FD9;


  /*--color-primary:       #2A2924;*/
  /*--color-secondary:     #5A5548;*/
  /*--color-accent:        #5266EB;*/
  /*--color-accent-hover:  #3D4FD9;*/
  /*--color-accent-light:  rgba(82, 102, 235, 0.08);*/


  /* --- Surface --- */
  --qh-bg: #FFFFFF;
  --qh-bg-tint: #F4FAF8;
  --qh-bg-muted: #F7F8F8;
  --qh-card: #FFFFFF;
  --qh-elevated: #FFFFFF;

  /* --- Neutral Scale (oklch-derived hex) --- */
  --qh-neutral-900: #1A1D21;
  --qh-neutral-700: #3D4247;
  --qh-neutral-500: #6E7378;
  --qh-neutral-400: #8E9399;
  --qh-neutral-300: #B0B5BA;
  --qh-neutral-200: #E2E4E6;
  --qh-neutral-100: #F2F3F4;
  --qh-neutral-50: #F9FAFA;

  /* --- Text --- */
  --qh-text: #1A1D21;
  --qh-text-secondary: #3D4247;
  --qh-text-muted: #6E7378;
  --qh-text-on-primary: #FFFFFF;

  /* --- Semantic --- */
  --qh-success: #2E7D32;
  --qh-warning: #E65100;
  --qh-error: #C62828;
  --qh-info: #01579B;

  /* --- Border --- */
  --qh-border: #E2E4E6;
  --qh-border-light: #F2F3F4;

  /* --- Typography --- */
  --qh-font-display: "Noto Serif SC", "Songti SC", Georgia, serif;
  --qh-font-body: "Inter", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;

  --qh-text-xs: 0.75rem;
  --qh-text-sm: 0.875rem;
  --qh-text-base: 1rem;
  --qh-text-lg: 1.125rem;
  --qh-text-xl: 1.25rem;
  --qh-text-2xl: 1.5rem;
  --qh-text-3xl: 2rem;
  --qh-text-4xl: 2.5rem;

  --qh-leading-tight: 1.25;
  --qh-leading-normal: 1.6;
  --qh-leading-relaxed: 1.75;

  /* --- Spacing --- */
  --qh-space-1: 4px;
  --qh-space-2: 8px;
  --qh-space-3: 12px;
  --qh-space-4: 16px;
  --qh-space-5: 20px;
  --qh-space-6: 24px;
  --qh-space-8: 32px;
  --qh-space-10: 40px;
  --qh-space-12: 48px;
  --qh-space-16: 64px;
  --qh-space-20: 80px;

  /* --- Shape --- */
  --qh-radius-sm: 4px;
  --qh-radius-md: 8px;
  --qh-radius-lg: 16px;
  --qh-radius-xl: 24px;

  /* --- Elevation --- */
  --qh-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --qh-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --qh-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --qh-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);

  /* --- Motion --- */
  --qh-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --qh-duration-fast: 150ms;
  --qh-duration-base: 200ms;
  --qh-duration-slow: 300ms;

  /* --- Layout --- */
  --qh-max-width: 1200px;
  --qh-nav-height: 64px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--qh-nav-height) + 16px);
}

body {
  font-family: var(--qh-font-body);
  font-size: var(--qh-text-base);
  line-height: var(--qh-leading-normal);
  color: var(--qh-text);
  background: var(--qh-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--qh-duration-fast) var(--qh-ease);
}

ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--qh-font-display);
  color: var(--qh-text);
  line-height: var(--qh-leading-tight);
}

/* --- Utility Classes --- */
.wrap {
  max-width: var(--qh-max-width);
  margin-inline: auto;
  padding-inline: var(--qh-space-5);
}

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