:root {
  --primary: #ff6b9d;
  --primary-dark: #e84a7f;
  --primary-light: #ffb3cc;
  --secondary: #7c5cff;
  --accent: #ff9a56;
  --bg: #fff5f9;
  --bg-alt: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --bg-glass-border: rgba(255, 255, 255, 0.65);
  --text: #2d1b2e;
  --text-secondary: #6b5568;
  --text-muted: #9a8598;
  --border: rgba(255, 107, 157, 0.15);
  --shadow-sm: 0 2px 8px rgba(255, 107, 157, 0.08);
  --shadow-md: 0 8px 32px rgba(255, 107, 157, 0.12);
  --shadow-lg: 0 16px 48px rgba(255, 107, 157, 0.18);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --gradient-primary: linear-gradient(135deg, #ff6b9d 0%, #7c5cff 100%);
  --gradient-hero: linear-gradient(135deg, #ff6b9d 0%, #ff9a56 50%, #7c5cff 100%);
  --gradient-soft: linear-gradient(135deg, #fff0f5 0%, #f0e6ff 100%);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
}

[data-theme="dark"] {
  --primary: #ff7bae;
  --primary-dark: #ff5c96;
  --primary-light: #ffa8cc;
  --secondary: #9d7bff;
  --accent: #ffad6e;
  --bg: #14101f;
  --bg-alt: #1c1728;
  --bg-card: rgba(30, 24, 44, 0.78);
  --bg-glass: rgba(30, 24, 44, 0.6);
  --bg-glass-border: rgba(255, 255, 255, 0.08);
  --text: #f0e8f4;
  --text-secondary: #b8a8c4;
  --text-muted: #7a6a88;
  --border: rgba(255, 123, 174, 0.15);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --gradient-soft: linear-gradient(135deg, #1c1728 0%, #201a30 100%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  transition: background-color var(--transition), color var(--transition);
  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);
}

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

ul,
ol {
  list-style: none;
}

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

input,
button {
  font-size: inherit;
}

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

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

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

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.logo svg {
  transition: transform var(--transition);
}

.logo:hover svg {
  transform: rotate(15deg) scale(1.08);
}

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

.main-nav {
  flex: 1;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--transition), background-color var(--transition);
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0.2rem;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: transform var(--transition);
}

.main-nav a:hover {
  color: var(--primary);
  background: rgba(255, 107, 157, 0.06);
}

.main-nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

#mobile-menu-btn {
  display: none;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: background-color var(--transition);
  flex-shrink: 0;
}

#mobile-menu-btn:hover {
  background: rgba(255, 107, 157, 0.1);
}

#theme-toggle {
  padding: 0.5rem;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: color var(--transition), background-color var(--transition), transform var(--transition);
  flex-shrink: 0;
}

#theme-toggle:hover {
  color: var(--primary);
  background: rgba(255, 107, 157, 0.1);
  transform: rotate(30deg);
}

.site-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}

.site-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.15);
}

.site-search input {
  border: none;
  outline: none;
  background: transparent;
  padding: 0.5rem 0.5rem 0.5rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text);
  width: 180px;
  transition: width var(--transition);
}

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

.site-search input:focus {
  width: 220px;
}

.site-search button {
  padding: 0.5rem 1.1rem;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  margin: 3px;
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
}

.site-search button:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem 0;
}

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

.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.5rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
}

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

.breadcrumb [aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  max-width: var(--max-width);
  margin: 1.5rem auto;
  padding: 0 1.5rem;
}

.hero-slides {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 420px;
  background: var(--gradient-hero);
  box-shadow: var(--shadow-lg);
}

.hero-slides::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.slide {
  position: absolute;
  inset: 0;
  padding: 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.slide h1,
.slide h2 {
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  max-width: 800px;
}

.slide p {
  font-size: clamp(0.88rem, 1.6vw, 1.02rem);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.85;
  max-width: 720px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.75rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-dark);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  background: #fff;
  color: var(--primary-dark);
}

.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 5;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: all var(--transition);
  padding: 0;
}

.hero-dots button[aria-selected="true"] {
  width: 32px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-dots button:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* ========== STATS ========== */
.stats {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-item {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ========== SECTIONS ========== */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section > h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.1rem;
  line-height: 1.4;
}

.section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  border-radius: 4px;
  background: var(--gradient-primary);
}

.section > h3 {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.85rem;
  line-height: 1.45;
}

.section > h3:first-of-type {
  margin-top: 0.5rem;
}

.section > p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 1rem;
  max-width: 900px;
}

.section > ul,
.section > ol {
  margin: 0.75rem 0 1.25rem;
  padding-left: 0.25rem;
}

.section > ul li,
.section > ol li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.section > ul li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient-primary);
}

.section > ol {
  counter-reset: item;
}

.section > ol li {
  counter-increment: item;
}

.section > ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.section > ul li strong,
.section > ol li strong {
  color: var(--text);
  font-weight: 700;
}

/* ========== BRAND LIST ========== */
#brand ul li {
  padding: 0.7rem 0.9rem 0.7rem 2.2rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.6rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

#brand ul li::before {
  left: 0.9rem;
  top: 1.1em;
}

#brand ul li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

/* ========== PRODUCTS / ADVANTAGES CARDS ========== */
#products > h3,
#advantages > h3,
#solutions > h3 {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 1.1rem 1.4rem 0.85rem;
  margin-bottom: 0;
  border-bottom: none;
  transition: background-color var(--transition);
}

#products > h3 + p,
#advantages > h3 + p,
#solutions > h3 + p {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-glass-border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 0 1.4rem 1.3rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

#products > h3:hover + p,
#advantages > h3:hover + p,
#solutions > h3:hover + p {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ========== CASES / TESTIMONIALS ========== */
#cases > h3 {
  padding: 1rem 1.4rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin-bottom: 0;
  color: var(--primary);
}

#cases > h3 + p {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-glass-border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 0 1.4rem 1.3rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

#cases > h3:hover + p {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ========== TESTIMONIALS ========== */
#testimonials blockquote {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bg-glass-border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem 1.4rem 2rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

#testimonials blockquote::before {
  content: "\201C";
  position: absolute;
  top: 0.3rem;
  left: 0.6rem;
  font-size: 2.5rem;
  color: var(--primary-light);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.7;
}

#testimonials blockquote:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

#testimonials blockquote p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.85;
  font-style: italic;
}

/* ========== NEWS / ARTICLES ========== */
.news-item,
.article-item {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.news-item:hover,
.article-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 107, 157, 0.3);
}

.news-item h3,
.article-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.news-item h3 a,
.article-item h3 a {
  color: var(--text);
  transition: color var(--transition);
}

.news-item h3 a:hover,
.article-item h3 a:hover {
  color: var(--primary);
}

.news-item time,
.article-item time {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  padding: 0.15rem 0.65rem;
  background: rgba(255, 107, 157, 0.08);
  border-radius: 50px;
}

.news-item p,
.article-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 0.75rem;
}

.article-item > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition), color var(--transition);
}

.article-item > a::after {
  content: "→";
  transition: transform var(--transition);
}

.article-item > a:hover {
  gap: 0.6rem;
  color: var(--primary-dark);
}

.article-item > a:hover::after {
  transform: translateX(3px);
}

/* ========== FAQ ========== */
#faq details {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

#faq details:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 107, 157, 0.25);
}

#faq details[open] {
  border-color: rgba(255, 107, 157, 0.35);
  box-shadow: var(--shadow-md);
}

#faq summary {
  padding: 1.1rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color var(--transition), background-color var(--transition);
  position: relative;
  padding-right: 3rem;
}

#faq summary::-webkit-details-marker {
  display: none;
}

#faq summary::after {
  content: "+";
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--primary);
  transition: transform var(--transition);
  line-height: 1;
}

#faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

#faq summary:hover {
  color: var(--primary);
  background: rgba(255, 107, 157, 0.04);
}

#faq details p {
  padding: 0 1.4rem 1.2rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.9;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0;
  animation: fadeSlideDown 0.35s ease;
}

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

/* ========== HOWTO ========== */
#howto h3 {
  color: var(--primary);
}

#howto ol {
  counter-reset: item;
}

#howto ol li {
  padding: 0.8rem 1rem 0.8rem 2.6rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.6rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

#howto ol li::before {
  left: 0.9rem;
  top: 0.95em;
  width: 1.35rem;
  height: 1.35rem;
  font-size: 0.72rem;
}

#howto ol li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

/* ========== CONTACT ========== */
#contact p {
  padding: 0.4rem 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

#contact p strong {
  color: var(--text);
}

/* ========== SITEMAP / LINKS ========== */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

#sitemap li,
#links li {
  padding: 0;
  margin: 0;
}

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-glass-border);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ========== FOOTER ========== */
footer {
  background: var(--gradient-soft);
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 3rem 1.5rem 2rem;
  transition: background var(--transition);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand svg {
  transition: transform var(--transition);
}

.footer-brand:hover svg {
  transform: rotate(15deg) scale(1.1);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

footer nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

footer nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

footer nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gradient-primary);
  transition: width var(--transition);
}

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

footer nav a:hover::after {
  width: 100%;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 600px;
  line-height: 1.8;
}

/* ========== BACK TO TOP ========== */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), box-shadow var(--transition);
  z-index: 999;
  line-height: 1;
}

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

#back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: var(--shadow-lg);
}

/* ========== SCROLL ANIMATIONS ========== */
.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);
}

.section,
.stats,
.hero {
  opacity: 0;
  transform: translateY(30px);
  animation: sectionReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.section:nth-child(1) { animation-delay: 0.05s; }
.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.15s; }
.section:nth-child(4) { animation-delay: 0.2s; }

@keyframes sectionReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .header-inner {
    padding: 0.65rem 1rem;
  }

  .main-nav a {
    padding: 0.4rem 0.6rem;
    font-size: 0.82rem;
  }

  .site-search input {
    width: 140px;
  }

  .site-search input:focus {
    width: 170px;
  }

  .slide {
    padding: 2.5rem 2.5rem;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .header-inner {
    padding: 0.6rem 1rem;
    gap: 0.6rem;
  }

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

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

  #theme-toggle {
    order: 3;
  }

  .site-search {
    order: 5;
    width: 100%;
    flex-basis: 100%;
    margin-top: 0.25rem;
  }

  .site-search input {
    width: 100%;
    flex: 1;
  }

  .site-search input:focus {
    width: 100%;
  }

  .main-nav {
    order: 4;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .main-nav.open {
    max-height: 500px;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
  }

  .main-nav a {
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
  }

  .main-nav a::after {
    display: none;
  }

  .hero-slides {
    min-height: 380px;
    border-radius: var(--radius-lg);
  }

  .slide {
    padding: 2rem 1.5rem;
    gap: 1rem;
  }

  .slide h1,
  .slide h2 {
    font-size: 1.25rem;
  }

  .slide p {
    font-size: 0.85rem;
  }

  .btn-primary {
    padding: 0.65rem 1.6rem;
    font-size: 0.88rem;
  }

  .stats {
    gap: 0.85rem;
    padding: 0 1rem;
  }

  .stat-item {
    padding: 1.25rem 0.75rem;
    border-radius: var(--radius-md);
  }

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

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

  .section {
    padding: 2rem 1rem;
  }

  .section > h2 {
    font-size: 1.2rem;
    margin-bottom: 1.1rem;
  }

  .section > h3 {
    font-size: 1rem;
    margin: 1.5rem 0 0.65rem;
  }

  .section > p {
    font-size: 0.88rem;
  }

  #products > h3,
  #advantages > h3,
  #solutions > h3 {
    padding: 0.9rem 1.1rem 0.7rem;
  }

  #products > h3 + p,
  #advantages > h3 + p,
  #solutions > h3 + p {
    padding: 0 1.1rem 1.1rem;
  }

  #cases > h3 {
    padding: 0.85rem 1.1rem;
  }

  #cases > h3 + p {
    padding: 0 1.1rem 1.1rem;
  }

  .news-item,
  .article-item {
    padding: 1.1rem 1.2rem;
    border-radius: var(--radius-md);
  }

  .news-item h3,
  .article-item h3 {
    font-size: 0.95rem;
  }

  #faq summary {
    padding: 0.95rem 1.1rem;
    padding-right: 2.5rem;
    font-size: 0.88rem;
  }

  #faq summary::after {
    right: 1.1rem;
  }

  #faq details p {
    padding: 0.85rem 1.1rem 1rem;
    font-size: 0.84rem;
  }

  #testimonials blockquote {
    padding: 1.1rem 1.2rem 1.1rem 1.6rem;
    border-radius: var(--radius-sm);
  }

  #testimonials blockquote p {
    font-size: 0.85rem;
  }

  #back-to-top {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }

  footer {
    padding: 2rem 1rem 1.5rem;
  }

  footer nav ul {
    gap: 0.4rem 1rem;
  }

  footer nav a {
    font-size: 0.8rem;
  }

  .footer-copy {
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .header-inner {
    padding: 0.5rem 0.75rem;
  }

  .logo svg {
    width: 32px;
    height: 32px;
  }

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

  .hero-slides {
    min-height: 340px;
    border-radius: var(--radius-md);
  }

  .slide {
    padding: 1.5rem 1.1rem;
  }

  .slide h1,
  .slide h2 {
    font-size: 1.1rem;
  }

  .slide p {
    font-size: 0.8rem;
    line-height: 1.75;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    padding: 0 0.75rem;
  }

  .stat-item {
    padding: 1rem 0.5rem;
  }

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

  .section {
    padding: 1.5rem 0.75rem;
  }

  .section > h2 {
    font-size: 1.1rem;
    padding-left: 0.9rem;
  }

  .section > h2::before {
    width: 3px;
  }

  #sitemap a,
  #links a {
    padding: 0.35rem 0.8rem;
    font-size: 0.75rem;
  }
}

/* ========== REDUCED MOTION ========== */
@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;
  }

  .section,
  .stats,
  .hero {
    opacity: 1;
    transform: none;
  }
}

/* ========== PRINT ========== */
@media print {
  #site-header,
  #back-to-top,
  .hero-dots,
  .site-search,
  #mobile-menu-btn,
  #theme-toggle {
    display: none !important;
  }

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

  .section {
    page-break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* ========== SELECTION ========== */
::selection {
  background: rgba(255, 107, 157, 0.25);
  color: var(--text);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 157, 0.3);
  border-radius: 4px;
  transition: background var(--transition);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 107, 157, 0.5);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: rgba(255, 123, 174, 0.3);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 123, 174, 0.5);
}

/* ========== FOCUS VISIBLE ========== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ========== HOVER LIFT UTILITY ========== */
.news-item,
.article-item,
.stat-item,
#faq details,
#testimonials blockquote {
  will-change: transform;
}

/* ========== GLASS SHINE EFFECT ========== */
.hero-slides::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 60%
  );
  animation: glassShine 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glassShine {
  0%, 100% {
    transform: translateX(-30%) translateY(-30%) rotate(45deg);
  }
  50% {
    transform: translateX(30%) translateY(30%) rotate(45deg);
  }
}

/* ========== GRADIENT TEXT ANIMATION ========== */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.logo-text {
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

.stat-number {
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}