/* ============================================================
   维九科技 - 全局样式 (Apple Inspired)
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* 主色调 */
  --primary: #0066cc;
  --primary-hover: #0077ed;
  --primary-light: #2997ff;
  --primary-bg: #f0f6ff;

  /* 中性色 */
  --ink: #1d1d1f;
  --ink-80: #333333;
  --ink-60: #666666;
  --ink-48: #86868b;
  --ink-30: #a1a1a6;
  --ink-15: #d2d2d7;

  /* 背景 */
  --canvas: #ffffff;
  --canvas-alt: #f5f5f7;
  --canvas-dark: #000000;

  /* 分割线 */
  --hairline: #e0e0e0;
  --hairline-light: #f0f0f0;

  /* 功能色 */
  --success: #34c759;
  --warning: #ff9500;
  --error: #ff3b30;

  /* 字体 */
  --font-display: "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Consolas", monospace;

  /* 间距 */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 64px;
  --spacing-2xl: 96px;
  --spacing-3xl: 128px;

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1);

  /* 过渡 */
  --transition-fast: 0.15s ease;
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* 导航高度 */
  --nav-height: 52px;

  /* 内容宽度 */
  --content-width: 1200px;
  --content-narrow: 860px;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  letter-spacing: -0.022em;
  overflow-x: hidden;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
}

.display-xl {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.02em;
}

.display-lg {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.display-md {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.15;
}

.heading-lg {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.heading-md {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.body-lg {
  font-size: 18px;
  line-height: 1.6;
}

.body-md {
  font-size: 16px;
  line-height: 1.55;
}

.body-sm {
  font-size: 14px;
  line-height: 1.5;
}

.caption {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-48);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.text-muted {
  color: var(--ink-48);
}

.text-center { text-align: center; }
.text-left { text-align: left; }

/* ---------- Links ---------- */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-narrow {
  max-width: var(--content-narrow);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--hairline);
  background: rgba(255, 255, 255, 0.92);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  list-style: none;
}

.nav-links a {
  color: var(--ink-60);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

/* 语言切换按钮 */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--canvas-alt);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-60);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-toggle:hover {
  background: var(--hairline-light);
  color: var(--ink);
}

.lang-toggle .globe-icon {
  width: 14px;
  height: 14px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 102, 204, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 8px 16px;
}

.btn-ghost:hover {
  background: var(--canvas-alt);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
}

/* ---------- Sections ---------- */
.section {
  padding: var(--spacing-3xl) 0;
}

.section-alt {
  background: var(--canvas-alt);
}

.section-dark {
  background: var(--canvas-dark);
  color: white;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-header .caption {
  display: inline-block;
  margin-bottom: var(--spacing-sm);
}

.section-header h2 {
  margin-bottom: var(--spacing-sm);
}

.section-header p {
  color: var(--ink-48);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-header p {
  color: var(--ink-30);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
  width: 100%;
}

.hero-text {
  max-width: 560px;
}

.hero-text .caption {
  display: inline-block;
  margin-bottom: var(--spacing-md);
  color: var(--primary);
}

.hero-text h1 {
  margin-bottom: var(--spacing-md);
}

.hero-text p {
  font-size: 19px;
  color: var(--ink-60);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

.hero-actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-graphic {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  position: relative;
}

/* 科技感背景装饰 */
.hero-graphic::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(0, 102, 204, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(41, 151, 255, 0.06) 0%, transparent 50%);
  border-radius: 50%;
}

.hero-graphic-inner {
  position: absolute;
  inset: 10%;
  border: 1.5px solid var(--hairline);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero-graphic-inner .chip-icon {
  font-size: 80px;
  opacity: 0.15;
}

/* 浮动元素 */
.float-chip {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float 6s ease-in-out infinite;
}

.float-chip:nth-child(2) { top: 10%; right: 5%; animation-delay: -2s; }
.float-chip:nth-child(3) { bottom: 20%; left: 0; animation-delay: -4s; }

.float-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.stat-item {
  text-align: center;
  padding: var(--spacing-md);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--hairline-light);
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 14px;
  color: var(--ink-48);
  margin-top: 4px;
}

/* ---------- Patent Section ---------- */
.patents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.patent-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline-light);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.patent-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.patent-card-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  background: var(--canvas-alt);
  padding: var(--spacing-sm);
}

.patent-card-body {
  padding: var(--spacing-md);
}

.patent-card-body h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.patent-card-body .patent-number {
  font-size: 13px;
  color: var(--ink-48);
  font-family: var(--font-mono);
}

/* 无图片占位 */
.empty-state {
  text-align: center;
  padding: var(--spacing-3xl) var(--spacing-md);
  color: var(--ink-48);
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: var(--spacing-sm);
  opacity: 0.3;
}

.empty-state p {
  font-size: 15px;
}

.empty-state .path-hint {
  display: inline-block;
  margin-top: var(--spacing-sm);
  padding: 6px 14px;
  background: var(--canvas-alt);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-60);
}

/* ---------- Product Cards ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: var(--spacing-lg);
}

.product-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--hairline-light);
  transition: all var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.product-card-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: contain;
  background: var(--canvas-alt);
  padding: var(--spacing-sm);
}

.product-card-body {
  padding: var(--spacing-md);
}

.product-card-category {
  font-size: 12px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.product-card-body h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-card-body .desc {
  font-size: 14px;
  color: var(--ink-48);
  margin-bottom: var(--spacing-sm);
  line-height: 1.5;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--hairline-light);
}

.product-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.product-price-small {
  font-size: 12px;
  color: var(--ink-48);
  display: block;
}

/* ---------- News Cards ---------- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.news-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--spacing-md);
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline-light);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}

.news-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: var(--hairline);
}

.news-card-image {
  width: 200px;
  height: 150px;
  object-fit: cover;
  background: var(--canvas-alt);
}

.news-card-body {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-card-date {
  font-size: 13px;
  color: var(--ink-48);
  margin-bottom: var(--spacing-xs);
}

.news-card-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.news-card-body p {
  font-size: 14px;
  color: var(--ink-60);
  line-height: 1.5;
}

.news-card-body .read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  margin-top: var(--spacing-xs);
}

/* ---------- About Page ---------- */
.about-hero {
  padding: calc(var(--nav-height) + var(--spacing-3xl)) 0 var(--spacing-2xl);
  text-align: center;
  background: linear-gradient(180deg, var(--canvas-alt) 0%, var(--canvas) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.about-image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  background: var(--canvas-alt);
  overflow: hidden;
  position: relative;
}

.about-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f0fe 0%, #d4e4fc 100%);
}

.about-image-placeholder span {
  font-size: 64px;
  opacity: 0.3;
}

.about-text h2 {
  margin-bottom: var(--spacing-md);
}

.about-text p {
  color: var(--ink-60);
  margin-bottom: var(--spacing-sm);
  font-size: 16px;
  line-height: 1.7;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.value-card {
  text-align: center;
  padding: var(--spacing-lg) var(--spacing-md);
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline-light);
}

.value-icon {
  font-size: 36px;
  margin-bottom: var(--spacing-sm);
}

.value-card h4 {
  font-size: 17px;
  margin-bottom: 4px;
}

.value-card p {
  font-size: 14px;
  color: var(--ink-48);
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
}

.contact-info-list {
  list-style: none;
}

.contact-info-item {
  display: flex;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--hairline-light);
}

.contact-info-item:first-child {
  padding-top: 0;
}

.contact-info-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-bg);
  border-radius: var(--radius-md);
  color: var(--primary);
}

.contact-info-text h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-info-text p {
  font-size: 14px;
  color: var(--ink-60);
  line-height: 1.5;
}

/* 联系表单 */
.contact-form {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  border: 1px solid var(--hairline-light);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--canvas);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-hint {
  font-size: 12px;
  color: var(--ink-48);
  margin-top: var(--spacing-xs);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--canvas-alt);
  border-top: 1px solid var(--hairline);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-brand h3 {
  font-size: 20px;
  margin-bottom: var(--spacing-xs);
}

.footer-brand p {
  font-size: 14px;
  color: var(--ink-48);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: var(--spacing-sm);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 14px;
  color: var(--ink-48);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink-48);
}

.footer-bottom a {
  color: var(--ink-48);
}

.footer-bottom a:hover {
  color: var(--ink);
}

/* ---------- Page Header ---------- */
.page-header {
  padding: calc(var(--nav-height) + var(--spacing-2xl)) 0 var(--spacing-xl);
  text-align: center;
  background: linear-gradient(180deg, var(--canvas-alt) 0%, var(--canvas) 100%);
}

.page-header .caption {
  display: inline-block;
  margin-bottom: var(--spacing-sm);
}

.page-header h1 {
  margin-bottom: var(--spacing-xs);
}

.page-header p {
  color: var(--ink-48);
  font-size: 17px;
  max-width: 500px;
  margin: 0 auto;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-48);
  margin-bottom: var(--spacing-sm);
}

.breadcrumb a {
  color: var(--ink-48);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .sep {
  color: var(--ink-30);
}

/* ---------- Modal / Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  z-index: 3000;
  opacity: 0;
  transition: all var(--transition-slow);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--error);
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Scroll to Top ---------- */
.scroll-top {
  position: fixed;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ink-60);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  color: var(--primary);
  box-shadow: var(--shadow-lg);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root {
    --spacing-3xl: 96px;
    --spacing-2xl: 64px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-width: 500px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: var(--spacing-lg) auto 0;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-3xl: 64px;
    --spacing-2xl: 48px;
    --spacing-xl: 32px;
    --nav-height: 48px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--hairline);
    gap: var(--spacing-sm);
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + 60px) 0 60px;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .news-card-image {
    width: 100%;
    height: 180px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
  }

  .stat-number {
    font-size: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-xs);
    text-align: center;
  }

  .patents-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xs);
  }
}
