/*
 Theme Name:   DAISCH CN
 Theme URI:    https://daisch.com/
 Description:  GeneratePress child theme for DAISCH (戴世) Chinese official website — motion capture, robotics, and embodied intelligence.
 Author:       DAISCH
 Author URI:   https://daisch.com/
 Template:     generatepress
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  daisch-cn
*/

/* ============================================================
   DAISCH 戴世 中文官网 — GeneratePress Child Theme
   Design System & Global Tokens
   ============================================================ */

:root {
  /* ── Brand Palette ── */
  --daisch-white:          #FFFFFF;
  --daisch-gray-50:        #F8F9FA;
  --daisch-gray-100:       #F5F5F5;
  --daisch-gray-150:       #EEEEEE;
  --daisch-gray-200:       #E5E5E5;
  --daisch-gray-300:       #D0D0D0;
  --daisch-gray-400:       #AAAAAA;
  --daisch-gray-500:       #888888;
  --daisch-gray-600:       #666666;
  --daisch-gray-700:       #444444;
  --daisch-gray-800:       #333333;
  --daisch-gray-900:       #222222;
  --daisch-black:          #000000;

  /* ── Accent ── */
  --daisch-accent:           #E63946;
  --daisch-accent-hover:     #cf2a35;
  --daisch-accent-glow:      rgba(230, 57, 70, 0.10);
  --daisch-accent-link:      #1a73e8;

  /* ── Footer ── */
  --daisch-footer-bg:        #3A3A3A;
  --daisch-footer-text:      #EEEEEE;
  --daisch-footer-muted:     #BBBBBB;
  --daisch-footer-heading:   #FFFFFF;
  --daisch-footer-border:    #4A4A4A;
  --daisch-footer-bottom-bg: #333333;

  /* ── Text ── */
  --daisch-text-primary:     #000000;
  --daisch-text-secondary:   #555555;
  --daisch-text-muted:       #888888;
  --daisch-text-invert:      #FFFFFF;

  /* ── Surface ── */
  --daisch-surface:          #FFFFFF;
  --daisch-surface-alt:      #F5F5F5;

  /* ── Border ── */
  --daisch-border:           #E5E5E5;
  --daisch-border-light:     #EEEEEE;

  /* ── Typography ── */
  --daisch-font-en:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --daisch-font-cn:  'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* ── Spacing (8px grid) ── */
  --daisch-space-1:  4px;
  --daisch-space-2:  8px;
  --daisch-space-3:  12px;
  --daisch-space-4:  16px;
  --daisch-space-5:  24px;
  --daisch-space-6:  32px;
  --daisch-space-7:  40px;
  --daisch-space-8:  48px;
  --daisch-space-9:  64px;
  --daisch-space-10: 80px;
  --daisch-space-11: 120px;

  /* ── Header Dimensions ── */
  --daisch-header-top-height:     36px;
  --daisch-header-height:         72px;
  --daisch-header-height-scroll:  56px;
  --daisch-header-total-height:   calc(var(--daisch-header-top-height) + var(--daisch-header-height));

  /* ── Easing ── */
  --daisch-ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --daisch-duration:  0.3s;

  /* ── Layout ── */
  --daisch-max-width:   1200px;
  --daisch-page-gutter: 24px;

  /* ── Radius ── */
  --daisch-radius-sm:   4px;
  --daisch-radius-md:   8px;
  --daisch-radius-lg:   12px;
  --daisch-radius-full: 9999px;

  /* ── Shadows ── */
  --daisch-shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.06);
  --daisch-shadow-md:  0 4px 16px rgba(0, 0, 0, 0.08);
  --daisch-shadow-lg:  0 12px 40px rgba(0, 0, 0, 0.10);
}

/* ── Reset ── */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  margin: 0; padding: 0;
  width: 100%; overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  background: var(--daisch-white);
  color: var(--daisch-text-primary);
  font-family: var(--daisch-font-cn);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.25;
  color: var(--daisch-text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin: 0 0 1em;
  color: var(--daisch-text-secondary);
}

a {
  color: var(--daisch-text-primary);
  text-decoration: none;
  transition: color var(--daisch-duration) var(--daisch-ease-out);
}

a:hover { color: var(--daisch-accent); }

/* ── Utility Classes ── */
.daisch-container {
  width: 100%;
  max-width: var(--daisch-max-width);
  margin: 0 auto;
  padding: 0 var(--daisch-page-gutter);
}

.daisch-container--wide { max-width: 1440px; }
.daisch-container--narrow { max-width: 960px; }

.daisch-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;
}

/* ── Buttons ── */
.daisch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--daisch-space-2);
  padding: 10px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border: none;
  border-radius: var(--daisch-radius-sm);
  cursor: pointer;
  transition: all var(--daisch-duration) var(--daisch-ease-out);
  text-decoration: none;
  white-space: nowrap;
}

.daisch-btn--primary {
  background: var(--daisch-accent);
  color: #fff;
}
.daisch-btn--primary:hover {
  background: var(--daisch-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.30);
}

.daisch-btn--outline {
  background: transparent;
  color: var(--daisch-text-primary);
  border: 1px solid var(--daisch-gray-300);
}
.daisch-btn--outline:hover {
  border-color: var(--daisch-accent);
  color: var(--daisch-accent);
}

.daisch-btn--sm  { padding: 6px 14px; font-size: 12px; }
.daisch-btn--lg  { padding: 14px 32px; font-size: 16px; }
.daisch-btn--block { display: flex; width: 100%; }

/* ── GP Overrides ── */
.site, .site-content, .content-area, .site-main { max-width: none; margin: 0; padding: 0; }
.inside-article, .entry-content { margin: 0; padding: 0; max-width: none; }
.grid-container { max-width: none; padding: 0; }
#masthead, .site-header, .site-footer { display: none; }
.separate-containers .inside-article { padding: 0; }
.page-header, .entry-header { display: none; }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
