/* ============================================
   新美业官网 - 设计令牌系统
   黄玄 × 张鑫旭 视角融合
   ============================================ */

:root {
  /* 主色系 - 奢华深调 */
  --color-primary: #8B1A1A;        /* 深酒红 */
  --color-primary-light: #A52A2A;  /* 亮酒红 */
  --color-primary-dark: #6B0F0F;   /* 深酒红 */
  
  /* 辅助色系 */
  --color-accent: #D4AF37;         /* 香槟金 */
  --color-accent-light: #E8C96A;   /* 亮金 */
  --color-accent-dark: #B8941F;    /* 深金 */
  
  /* 中性色 - 深色画布体系 */
  --color-bg-primary: #0A0A0A;     /* 纯黑画布 */
  --color-bg-secondary: #141414;   /* 深灰背景 */
  --color-bg-tertiary: #1E1E1E;    /* 次级背景 */
  --color-bg-card: #252525;        /* 卡片背景 */
  --color-bg-elevated: #2E2E2E;    /* 悬浮层 */
  
  /* 文字色 */
  --color-text-primary: #FFFFFF;
  --color-text-secondary: rgba(255,255,255,0.85);
  --color-text-tertiary: rgba(255,255,255,0.6);
  --color-text-muted: rgba(255,255,255,0.4);
  
  /* 边框色 */
  --color-border: rgba(255,255,255,0.08);
  --color-border-hover: rgba(255,255,255,0.15);
  
  /* 间距系统 - 8px基准 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;
  
  /* 圆角系统 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* 阴影系统 */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 40px rgba(139,26,26,0.3);
  
  /* 字体系统 */
  --font-display: 'Noto Serif SC', 'Playfair Display', serif;
  --font-body: 'Inter', 'Noto Sans SC', system-ui, sans-serif;
  
  /* 字号系统 */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 2rem;      /* 32px */
  --text-4xl: 2.5rem;    /* 40px */
  --text-5xl: 3.5rem;    /* 56px */
  --text-6xl: 4.5rem;    /* 72px */
  
  /* 字重系统 */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  
  /* 过渡系统 */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* 容器系统 */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
}

/* ============================================
   CSS Reset & 基础样式
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ============================================
   工具类
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-sm {
  max-width: var(--container-sm);
}

.container-md {
  max-width: var(--container-md);
}

.container-lg {
  max-width: var(--container-lg);
}

/* 排版工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-tertiary); }

/* 响应式断点 */
@media (max-width: 1024px) {
  :root {
    --space-5xl: 96px;
  }
}

@media (max-width: 768px) {
  :root {
    --space-4xl: 64px;
    --space-5xl: 64px;
  }
  
  .container {
    padding: 0 var(--space-lg);
  }
}

/* ============================================
   动画关键帧
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================
   可见性动画
   ============================================ */

.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-down {
  opacity: 0;
  transform: translateY(-24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-down.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
}
