:root {
  --primary: #00d4ff;
  --primary-dark: #0099cc;
  --secondary: #ff6b35;
  --accent: #7b5cff;
  --success: #00ff88;
  --bg-body: #f0f4f8;
  --bg-card: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.85);
  --bg-footer: #0a1a2f;
  --text-primary: #0a1a2f;
  --text-secondary: #4a5568;
  --text-muted: #8896a6;
  --text-inverse: #ffffff;
  --border-color: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 24px rgba(0, 212, 255, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass-blur: 16px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  --max-width: 1200px;
  --header-height: 68px;
}

[data-theme="dark"] {
  --bg-body: #0b1120;
  --bg-card: #141c2e;
  --bg-header: rgba(11, 17, 32, 0.85);
  --bg-footer: #060a14;
  --text-primary: #e8edf5;
  --text-secondary: #a0aec0;
  --text-muted: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 24px rgba(0, 212, 255, 0.15);
  --glass-bg: rgba(20, 28, 46, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--bg-body);
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

ul,
ol {
  list-style: none;
}

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

input,
button,
textarea,
select {
  font: inherit;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-primary);
}

h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.4rem); }
h4 { font-size: clamp(1rem, 1.8vw, 1.15rem); }

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

address {
  font-style: normal;
}

blockquote {
  margin: 0;
  padding: 0;
}

/* ========== HEADER ========== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

#site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo svg {
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: transform var(--transition-bounce), box-shadow var(--transition-smooth);
}

.logo:hover svg {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: var(--shadow-glow);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

#main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

#main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

#main-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

#main-nav a:hover {
  color: var(--primary);
  background: rgba(0, 212, 255, 0.08);
  transform: translateY(-1px);
}

#mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: background var(--transition-fast), transform var(--transition-fast);
  flex-shrink: 0;
}

#mobile-menu-btn:hover {
  background: var(--border-color);
  transform: scale(1.05);
}

#dark-mode-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-bounce);
  flex-shrink: 0;
}

#dark-mode-btn:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary);
  transform: rotate(25deg) scale(1.08);
}

#site-search {
  display: flex;
  align-items: center;
  background: var(--border-color);
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
  flex-shrink: 0;
  max-width: 220px;
}

#site-search:focus-within {
  background: var(--bg-card);
  box-shadow: 0 0 0 2px var(--primary), var(--shadow-sm);
}

#site-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  color: var(--text-primary);
  width: 130px;
  padding: 6px 0;
}

#site-search input::placeholder {
  color: var(--text-muted);
}

#site-search button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  flex-shrink: 0;
}

#site-search button:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-glow);
}

/* ========== BREADCRUMB ========== */
#breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px 0;
}

#breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

#breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-muted);
  opacity: 0.5;
}

#breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

#breadcrumb a:hover {
  color: var(--primary);
}

#breadcrumb [aria-current="page"] {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ========== HERO ========== */
#hero {
  position: relative;
  max-width: var(--max-width);
  margin: 24px auto 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.hero-slider {
  position: relative;
  width: 100%;
  min-height: 360px;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.hero-slider .slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slider .slide svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 56px 48px 48px;
  margin-top: -360px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(
    105deg,
    rgba(10, 26, 47, 0.92) 0%,
    rgba(10, 26, 47, 0.75) 45%,
    rgba(10, 26, 47, 0.25) 100%
  );
  border-radius: var(--radius-xl);
}

.hero-content h1 {
  color: #ffffff;
  max-width: 640px;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease both;
}

.hero-content > p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease 0.15s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform var(--transition-bounce), box-shadow var(--transition-smooth), background var(--transition-smooth), color var(--transition-smooth);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.35);
}

.btn-primary:hover {
  color: #ffffff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.45s both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.stat-number::after {
  content: "+";
  font-size: 0.75em;
  opacity: 0.7;
}

.stat-item:nth-child(3) .stat-number::after {
  content: "%";
}

.stat-item:nth-child(4) .stat-number::after {
  content: "h";
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
}

/* ========== MAIN SECTIONS ========== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 48px;
}

main > section {
  margin-top: 56px;
  animation: fadeInUp 0.6s ease both;
}

main > section h2 {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 24px;
}

main > section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

main > section h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

main > section h3:first-of-type {
  margin-top: 0;
}

main > section h4 {
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

main > section p {
  max-width: 80ch;
}

main > section ul {
  margin: 12px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

main > section ul li {
  position: relative;
  padding-left: 22px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

main > section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  flex-shrink: 0;
}

main > section ul li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ========== CARDS ========== */
#about,
#products,
#solutions,
#cases,
#news,
#articles,
#howto,
#faq,
#contact {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: box-shadow var(--transition-smooth), transform var(--transition-smooth);
}

#about:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#articles:hover,
#howto:hover,
#faq:hover,
#contact:hover {
  box-shadow: var(--shadow-lg);
}

/* ========== NEWS & ARTICLES ========== */
#news article,
#articles article {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
  transition: transform var(--transition-smooth), padding-left var(--transition-smooth);
}

#news article:last-child,
#articles article:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#news article:first-of-type,
#articles article:first-of-type {
  padding-top: 0;
}

#news article:hover,
#articles article:hover {
  transform: translateX(6px);
}

#news article h3,
#articles article h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}

#news article:hover h3,
#articles article:hover h3 {
  color: var(--primary);
}

#news article time,
#articles article time {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

#news article p,
#articles article p {
  font-size: 0.92rem;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

#news article a,
#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

#news article a::after,
#articles article a::after {
  content: "→";
  transition: transform var(--transition-fast);
}

#news article a:hover,
#articles article a:hover {
  gap: 8px;
}

#news article a:hover::after,
#articles article a:hover::after {
  transform: translateX(3px);
}

/* ========== CASES / BLOCKQUOTES ========== */
#cases blockquote {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(123, 92, 255, 0.06));
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 16px 0;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

#cases blockquote:hover {
  transform: translateY(-2px) scale(1.005);
  box-shadow: var(--shadow-md);
}

#cases blockquote p {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.75;
}

#cases blockquote p::before {
  content: "\201C";
  font-size: 1.6em;
  color: var(--primary);
  opacity: 0.4;
  line-height: 0;
  vertical-align: -0.35em;
  margin-right: 2px;
}

#cases blockquote footer {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: right;
}

/* ========== FAQ ========== */
#faq > div[itemscope] {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#faq [itemprop="mainEntity"] {
  background: var(--bg-body);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  border: 1px solid var(--border-color);
  transition: box-shadow var(--transition-smooth), transform var(--transition-smooth), border-color var(--transition-smooth);
}

#faq [itemprop="mainEntity"]:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, 0.3);
}

#faq [itemprop="name"] {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

#faq [itemprop="name"]::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

#faq [itemprop="text"] {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
  padding-left: 34px;
}

/* ========== CONTACT ========== */
#contact address {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(123, 92, 255, 0.05));
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 16px 0 24px;
  border: 1px solid var(--border-color);
}

#contact address p {
  margin-bottom: 8px;
  font-size: 0.92rem;
}

#contact address p:last-child {
  margin-bottom: 0;
}

#contact address strong {
  color: var(--text-primary);
  font-weight: 600;
  margin-right: 4px;
}

#contact address a {
  color: var(--primary);
  font-weight: 500;
}

/* ========== SITEMAP & LINKS ========== */
#sitemap,
#links {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

#sitemap nav ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap nav ul li::before,
#links ul li::before {
  display: none;
}

#sitemap nav a,
#links a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

#sitemap nav a:hover,
#links a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ========== FOOTER ========== */
#site-footer {
  background: var(--bg-footer);
  color: rgba(255, 255, 255, 0.7);
  margin-top: 56px;
  padding: 56px 24px 32px;
  transition: background var(--transition-smooth);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-section h3 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.footer-section p {
  font-size: 0.85rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.6);
}

.footer-section ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-section ul li {
  padding-left: 0;
}

.footer-section ul li::before {
  display: none;
}

.footer-section ul a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-section ul a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-section address p {
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.6);
}

#site-footer section[id] {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#site-footer section[id] h2 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 12px;
}

#site-footer section[id] h2::after {
  display: none;
}

#site-footer section[id] p {
  font-size: 0.82rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.5);
  max-width: 80ch;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

/* ========== BACK TO TOP ========== */
#back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth), transform var(--transition-bounce), box-shadow var(--transition-smooth);
  z-index: 999;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.6);
}

#back-to-top:active {
  transform: translateY(-1px) scale(0.98);
}

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

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(0, 212, 255, 0);
  }
}

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========== MOBILE MENU ========== */
@media (max-width: 1024px) {
  #main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-header);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth), visibility var(--transition-smooth);
    z-index: 999;
    box-shadow: var(--shadow-lg);
  }

  #main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  #main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  #main-nav a {
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

  #mobile-menu-btn {
    display: flex;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .header-inner {
    padding: 0 16px;
    gap: 10px;
  }

  .logo-text {
    font-size: 1.05rem;
  }

  #site-search {
    max-width: 160px;
    padding-left: 12px;
  }

  #site-search input {
    width: 80px;
    font-size: 0.8rem;
  }

  #breadcrumb {
    padding: 10px 16px 0;
  }

  #hero {
    margin: 16px 16px 0;
    border-radius: var(--radius-lg);
  }

  .hero-slider {
    min-height: 280px;
  }

  .hero-content {
    padding: 36px 24px 32px;
    margin-top: -280px;
    min-height: 280px;
    border-radius: var(--radius-lg);
  }

  .hero-content h1 {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  .hero-content > p {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }

  .hero-actions {
    gap: 10px;
    margin-bottom: 28px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 11px 22px;
    font-size: 0.85rem;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 1.35rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  main {
    padding: 0 16px 32px;
  }

  main > section {
    margin-top: 36px;
  }

  #about,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #howto,
  #faq,
  #contact,
  #sitemap,
  #links {
    padding: 24px 20px;
    border-radius: var(--radius-md);
  }

  main > section h2 {
    font-size: 1.2rem;
    margin-bottom: 18px;
  }

  main > section h3 {
    margin-top: 24px;
    font-size: 1.05rem;
  }

  main > section ul li {
    font-size: 0.88rem;
    padding-left: 18px;
  }

  #news article h3,
  #articles article h3 {
    font-size: 1rem;
  }

  #faq [itemprop="mainEntity"] {
    padding: 16px 18px;
  }

  #faq [itemprop="name"] {
    font-size: 0.92rem;
  }

  #faq [itemprop="text"] {
    font-size: 0.85rem;
    padding-left: 30px;
  }

  #contact address {
    padding: 18px 20px;
  }

  #site-footer {
    padding: 40px 16px 24px;
    margin-top: 36px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-section h3 {
    font-size: 0.95rem;
  }

  #back-to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 480px) {
  .logo-text {
    display: none;
  }

  #site-search {
    max-width: 140px;
  }

  #site-search input {
    width: 60px;
  }

  #dark-mode-btn {
    width: 36px;
    height: 36px;
  }

  #mobile-menu-btn {
    width: 36px;
    height: 36px;
  }

  .hero-content h1 {
    font-size: 1.2rem;
  }

  .hero-stats {
    gap: 14px;
  }

  .stat-number {
    font-size: 1.15rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 10px 18px;
    font-size: 0.8rem;
  }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

::selection {
  background: rgba(0, 212, 255, 0.25);
  color: var(--text-primary);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
  opacity: 0.5;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

@media print {
  #site-header,
  #back-to-top,
  #mobile-menu-btn,
  #dark-mode-btn,
  #site-search,
  .hero-actions {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  #hero {
    box-shadow: none;
  }
}