:root {
  --candy-pink: #FF6B9D;
  --candy-pink-dark: #E85585;
  --candy-yellow: #FFF3B0;
  --candy-blue: #8BE9FD;
  --candy-purple: #B388FF;
  --candy-mint: #7CFFCB;
  --candy-orange: #FFB86B;
  --candy-peach: #FFD3B6;
  --candy-lavender: #E8D5FF;
  --candy-rose: #FFC7D8;
  --bg-primary: #FFF9FB;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #FFF0F5;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --bg-glass-strong: rgba(255, 255, 255, 0.82);
  --text-primary: #2D2A32;
  --text-secondary: #5C5566;
  --text-muted: #8E8798;
  --text-inverse: #FFFFFF;
  --border-light: rgba(255, 107, 157, 0.15);
  --border-medium: rgba(255, 107, 157, 0.28);
  --shadow-sm: 0 2px 8px rgba(255, 107, 157, 0.08);
  --shadow-md: 0 6px 24px rgba(255, 107, 157, 0.12);
  --shadow-lg: 0 12px 48px rgba(255, 107, 157, 0.16);
  --shadow-glow: 0 0 32px rgba(255, 107, 157, 0.25);
  --gradient-hero: linear-gradient(135deg, #FF6B9D 0%, #B388FF 30%, #8BE9FD 65%, #7CFFCB 100%);
  --gradient-btn: linear-gradient(135deg, #FF6B9D 0%, #B388FF 100%);
  --gradient-btn-hover: linear-gradient(135deg, #E85585 0%, #9B6BFF 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 107, 157, 0.08) 0%, rgba(139, 233, 253, 0.08) 100%);
  --gradient-banner: linear-gradient(120deg, #FF6B9D 0%, #FFB86B 25%, #FFF3B0 50%, #8BE9FD 75%, #B388FF 100%);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --max-width: 1200px;
  --header-height: 68px;
}

[data-theme="dark"] {
  --bg-primary: #14101A;
  --bg-secondary: #1C1624;
  --bg-tertiary: #221A2E;
  --bg-card: rgba(36, 28, 48, 0.72);
  --bg-glass: rgba(28, 22, 36, 0.6);
  --bg-glass-strong: rgba(36, 28, 48, 0.88);
  --text-primary: #F5F0FA;
  --text-secondary: #C4B8D4;
  --text-muted: #8A7E9A;
  --text-inverse: #14101A;
  --border-light: rgba(179, 136, 255, 0.15);
  --border-medium: rgba(179, 136, 255, 0.28);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 32px rgba(179, 136, 255, 0.2);
  --gradient-hero: linear-gradient(135deg, #B388FF 0%, #FF6B9D 40%, #8BE9FD 80%, #7CFFCB 100%);
  --gradient-card: linear-gradient(135deg, rgba(179, 136, 255, 0.1) 0%, rgba(139, 233, 253, 0.06) 100%);
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(255, 107, 157, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(139, 233, 253, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(179, 136, 255, 0.06) 0%, transparent 60%);
  background-attachment: fixed;
  transition: background-color var(--transition-slow), color var(--transition-slow);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[data-theme="dark"] body {
  background-image:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(179, 136, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(255, 107, 157, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(139, 233, 253, 0.06) 0%, transparent 60%);
}

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

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

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

[data-theme="dark"] a {
  color: var(--candy-blue);
}

[data-theme="dark"] a:hover {
  color: var(--candy-mint);
}

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

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

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform var(--transition-bounce);
}

.brand:hover {
  transform: scale(1.04);
}

.brand svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 6px rgba(255, 107, 157, 0.3));
  transition: filter var(--transition-base);
}

.brand:hover svg {
  filter: drop-shadow(0 4px 12px rgba(255, 107, 157, 0.5));
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--gradient-btn);
  -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 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  white-space: nowrap;
  position: relative;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-btn);
  border-radius: var(--radius-full);
  transform: translateX(-50%);
  transition: width var(--transition-base);
}

.main-nav a:hover {
  color: var(--candy-pink);
  background: rgba(255, 107, 157, 0.08);
  transform: translateY(-1px);
}

.main-nav a:hover::after {
  width: 60%;
}

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

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

.site-search input {
  width: 150px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: width var(--transition-base);
}

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

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

.site-search button {
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-inverse);
  background: var(--gradient-btn);
  border-radius: var(--radius-full);
  margin: 3px;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

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

#theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
  transition: background var(--transition-fast), transform var(--transition-bounce), box-shadow var(--transition-fast);
}

#theme-toggle:hover {
  background: rgba(255, 107, 157, 0.12);
  transform: rotate(20deg) scale(1.1);
  box-shadow: var(--shadow-sm);
}

#menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

#menu-toggle:hover {
  background: rgba(255, 107, 157, 0.12);
}

main {
  padding-top: var(--header-height);
}

.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 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-secondary);
  transition: color var(--transition-fast);
}

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

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

section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

section h2 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 20px;
  color: var(--text-primary);
  position: relative;
  padding-left: 18px;
  letter-spacing: -0.01em;
}

section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 5px;
  border-radius: var(--radius-full);
  background: var(--gradient-btn);
}

section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

section p {
  margin-bottom: 14px;
  color: var(--text-secondary);
  line-height: 1.85;
}

section ul, section ol {
  margin-bottom: 16px;
  padding-left: 0;
}

section ul li, section ol li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  line-height: 1.75;
}

section ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-btn);
  opacity: 0.7;
}

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: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-inverse);
  background: var(--gradient-btn);
  border-radius: 50%;
}

section strong {
  color: var(--text-primary);
  font-weight: 700;
}

.hero {
  position: relative;
  max-width: 100%;
  padding: 56px 24px 48px;
  background: var(--gradient-banner);
  background-size: 300% 300%;
  animation: gradientShift 14s ease infinite;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
  margin-bottom: 8px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 45%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(60px) saturate(140%);
  -webkit-backdrop-filter: blur(60px) saturate(140%);
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.3;
  color: #FFFFFF;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.7s ease both;
}

.hero-lead {
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 28px;
  max-width: 820px;
  animation: fadeInUp 0.7s 0.1s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
  animation: fadeInUp 0.7s 0.2s ease both;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: transform var(--transition-bounce), box-shadow var(--transition-base), background var(--transition-base);
  will-change: transform;
}

.btn-primary {
  color: var(--candy-pink);
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  color: var(--candy-pink-dark);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.hero-carousel {
  margin-bottom: 40px;
  animation: fadeInUp 0.7s 0.3s ease both;
}

.carousel-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.carousel-slide {
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-bounce), background var(--transition-base), box-shadow var(--transition-base);
}

.carousel-slide:hover {
  transform: translateY(-6px) scale(1.02);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.carousel-slide h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
  padding-left: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

.carousel-slide h2::before {
  display: none;
}

.carousel-slide p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  line-height: 1.7;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all var(--transition-base);
}

.dot.active {
  width: 24px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  animation: fadeInUp 0.7s 0.4s ease both;
}

.hero-stats > div {
  text-align: center;
  padding: 18px 12px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-bounce), background var(--transition-base);
}

.hero-stats > div:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.28);
}

.hero-stats dt {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 6px;
  font-weight: 500;
}

.hero-stats dd {
  font-size: 1.5rem;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  line-height: 1.2;
}

.hero-stats .num {
  font-variant-numeric: tabular-nums;
}

.anchor-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px 8px;
  position: sticky;
  top: var(--header-height);
  z-index: 100;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-base);
}

.anchor-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.anchor-nav a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.anchor-nav a:hover {
  color: var(--text-inverse);
  background: var(--gradient-btn);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

#about,
#history,
#culture,
#products,
#advantages,
#solutions,
#applications,
#cases,
#reviews,
#news,
#articles,
#knowledge,
#faq,
#howto,
#contact,
#sitemap,
#links,
#legal {
  animation: fadeInUp 0.6s ease both;
}

#about { animation-delay: 0.05s; }
#history { animation-delay: 0.1s; }
#products { animation-delay: 0.15s; }
#advantages { animation-delay: 0.2s; }
#solutions { animation-delay: 0.25s; }
#cases { animation-delay: 0.3s; }
#news { animation-delay: 0.35s; }
#articles { animation-delay: 0.4s; }
#faq { animation-delay: 0.45s; }
#howto { animation-delay: 0.5s; }
#contact { animation-delay: 0.55s; }

#news article,
#articles article {
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-bottom: 18px;
  transition: transform var(--transition-bounce), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

#news article::before,
#articles article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-btn);
  opacity: 0;
  transition: opacity var(--transition-base);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-medium);
}

#news article:hover::before,
#articles article:hover::before {
  opacity: 1;
}

#news article h3,
#articles article h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

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

#news article time,
#articles article time {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding: 2px 10px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
}

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

#news article a,
#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--candy-pink);
  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);
}

#reviews blockquote {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--candy-pink);
  border-radius: var(--radius-md);
  padding: 22px 26px 22px 30px;
  margin-bottom: 16px;
  transition: transform var(--transition-bounce), box-shadow var(--transition-base), border-left-color var(--transition-base);
}

#reviews blockquote::before {
  content: '"';
  position: absolute;
  top: 6px;
  left: 10px;
  font-size: 3rem;
  font-weight: 900;
  color: var(--candy-pink);
  opacity: 0.15;
  line-height: 1;
  font-family: Georgia, serif;
}

#reviews blockquote:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--candy-purple);
}

#reviews blockquote p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 0;
  font-style: italic;
}

#faq details {
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

#faq details:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

#faq details[open] {
  border-color: var(--candy-pink);
  box-shadow: var(--shadow-md);
}

#faq summary {
  padding: 16px 22px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
}

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

#faq summary::after {
  content: '+';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--candy-pink);
  background: rgba(255, 107, 157, 0.1);
  border-radius: 50%;
  transition: transform var(--transition-base), background var(--transition-base);
}

#faq details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
  background: var(--gradient-btn);
  color: #FFFFFF;
}

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

#faq details p {
  padding: 0 22px 18px;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 0;
  animation: fadeInUp 0.3s ease both;
}

#howto ol {
  counter-reset: howto-counter;
}

#howto ol li {
  counter-increment: howto-counter;
  padding-left: 40px;
  margin-bottom: 12px;
  position: relative;
}

#howto ol li::before {
  content: counter(howto-counter);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-inverse);
  background: var(--gradient-btn);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3);
}

#contact ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

#contact ul li {
  padding: 14px 18px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  transition: transform var(--transition-bounce), box-shadow var(--transition-base), border-color var(--transition-base);
}

#contact ul li::before {
  display: none;
}

#contact ul li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

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

#sitemap li,
#links li {
  padding-left: 0;
}

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

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

#sitemap a:hover,
#links a:hover {
  color: var(--text-inverse);
  background: var(--gradient-btn);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

#legal h2:not(:first-child) {
  margin-top: 36px;
}

footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-banner);
  background-size: 300% 100%;
  animation: gradientShift 8s ease infinite;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 24px 28px;
  text-align: center;
}

.footer-inner p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.7;
}

.footer-inner p:first-child {
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-inner a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-inner a:hover {
  color: var(--candy-pink);
}

#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-inverse);
  background: var(--gradient-btn);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-bounce), box-shadow var(--transition-base);
}

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

#back-to-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(255, 107, 157, 0.4);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

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

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

@media (max-width: 1024px) {
  .main-nav ul {
    gap: 2px;
  }
  .main-nav a {
    padding: 7px 9px;
    font-size: 0.82rem;
  }
  .site-search input {
    width: 120px;
  }
  .site-search input:focus {
    width: 160px;
  }
}

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

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
    box-shadow: var(--shadow-md);
  }

  .main-nav.open {
    max-height: 480px;
    padding: 12px 0;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 0 16px;
  }

  .main-nav a {
    padding: 12px 16px;
    font-size: 0.92rem;
    border-radius: var(--radius-md);
    text-align: left;
  }

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

  #menu-toggle {
    display: flex;
  }

  .site-search {
    display: none;
  }

  .brand-text {
    font-size: 1.1rem;
  }

  .hero {
    padding: 40px 20px 36px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

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

  .carousel-track {
    grid-template-columns: 1fr;
  }

  .anchor-nav {
    padding: 14px 16px 6px;
  }

  .anchor-nav ul {
    gap: 6px;
  }

  .anchor-nav a {
    padding: 5px 11px;
    font-size: 0.75rem;
  }

  section {
    padding: 36px 20px;
  }

  section h2 {
    font-size: 1.4rem;
  }

  section h3 {
    font-size: 1.08rem;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

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

  .brand svg {
    width: 34px;
    height: 34px;
  }

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

  #theme-toggle,
  #menu-toggle {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .breadcrumb {
    padding: 12px 16px 0;
  }

  .hero {
    padding: 32px 16px 28px;
  }

  .hero h1 {
    font-size: 1.45rem;
    margin-bottom: 16px;
  }

  .hero-lead {
    font-size: 0.88rem;
    line-height: 1.8;
    margin-bottom: 22px;
  }

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

  .btn-primary,
  .btn-secondary {
    padding: 11px 22px;
    font-size: 0.88rem;
    flex: 1 1 auto;
    min-width: 140px;
  }

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

  .hero-stats > div {
    padding: 14px 8px;
  }

  .hero-stats dd {
    font-size: 1.2rem;
  }

  .hero-stats dt {
    font-size: 0.7rem;
  }

  .anchor-nav {
    padding: 10px 12px 4px;
  }

  .anchor-nav ul {
    gap: 5px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
  }

  .anchor-nav ul::-webkit-scrollbar {
    display: none;
  }

  .anchor-nav a {
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  section {
    padding: 30px 16px;
  }

  section h2 {
    font-size: 1.25rem;
    padding-left: 14px;
    margin-bottom: 16px;
  }

  section h2::before {
    width: 4px;
  }

  section h3 {
    font-size: 1rem;
    margin-top: 22px;
  }

  section p {
    font-size: 0.9rem;
    line-height: 1.8;
  }

  #news article,
  #articles article {
    padding: 18px 18px;
  }

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

  #reviews blockquote {
    padding: 18px 18px 18px 24px;
  }

  #faq summary {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  #faq details p {
    padding: 0 16px 14px;
    font-size: 0.86rem;
  }

  #contact ul {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    padding: 28px 16px 22px;
  }

  .footer-inner p {
    font-size: 0.76rem;
  }

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

@media (max-width: 380px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .btn-primary,
  .btn-secondary {
    min-width: 100%;
  }
}

@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;
  }
}

@media print {
  #site-header,
  .anchor-nav,
  #back-to-top,
  .site-search,
  #theme-toggle,
  #menu-toggle {
    display: none !important;
  }

  body {
    background: #FFFFFF;
    color: #000000;
  }

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