:root {
  --bg-primary: #0a0e27;
  --bg-secondary: #111633;
  --bg-tertiary: #1a1f3a;
  --bg-card: rgba(26, 31, 58, 0.7);
  --bg-glass: rgba(26, 31, 58, 0.45);
  --bg-glass-hover: rgba(26, 31, 58, 0.65);
  --text-primary: #e8ecf4;
  --text-secondary: #a0a8c0;
  --text-muted: #6b7394;
  --accent-primary: #ff6b6b;
  --accent-secondary: #4ecdc4;
  --accent-tertiary: #ffd93d;
  --accent-gradient: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 50%, #ffd93d 100%);
  --accent-gradient-2: linear-gradient(135deg, #4ecdc4 0%, #44a3aa 50%, #3d7ea6 100%);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 107, 107, 0.4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(255, 107, 107, 0.15);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "JetBrains Mono", monospace;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1200px;
  --header-height: 68px;
}

[data-theme="light"] {
  --bg-primary: #f5f7fc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #eef1f8;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --bg-glass-hover: rgba(255, 255, 255, 0.8);
  --text-primary: #1a1f3a;
  --text-secondary: #4a5270;
  --text-muted: #8b93b0;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(255, 107, 107, 0.5);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 30px rgba(255, 107, 107, 0.08);
}

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

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

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 10% 0%, rgba(255, 107, 107, 0.06), transparent),
    radial-gradient(ellipse 500px 350px at 90% 20%, rgba(78, 205, 196, 0.05), transparent),
    radial-gradient(ellipse 400px 300px at 50% 100%, rgba(255, 217, 61, 0.04), transparent);
  pointer-events: none;
  z-index: 0;
}

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

a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul,
ol {
  list-style: none;
}

.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: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

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

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

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

.logo svg {
  border-radius: 10px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

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

nav[role="navigation"] {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  gap: 4px;
  align-items: center;
}

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

.nav-list li a:hover {
  color: var(--text-primary);
  background: rgba(255, 107, 107, 0.1);
  transform: translateY(-1px);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.search-form input[type="search"] {
  width: 180px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast), width var(--transition-base), box-shadow var(--transition-fast);
}

.search-form input[type="search"]::placeholder {
  color: var(--text-muted);
}

.search-form input[type="search"]:focus {
  border-color: var(--accent-primary);
  width: 220px;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12);
}

.search-form button[type="submit"] {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: #fff;
  background: var(--accent-gradient);
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.search-form button[type="submit"]:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

#theme-toggle {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-base), border-color var(--transition-fast);
  flex-shrink: 0;
  line-height: 1;
}

#theme-toggle:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent-primary);
  transform: rotate(20deg) scale(1.1);
}

#mobile-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: background var(--transition-fast);
}

#mobile-menu-toggle:hover {
  background: var(--bg-glass-hover);
}

/* ===== BREADCRUMB ===== */
#breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--header-height) + 16px) 24px 0;
}

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

#breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
}

#breadcrumb li:not(:last-child)::after {
  content: "›";
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
}

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

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

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

/* ===== MAIN ===== */
main {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 60px;
}

/* ===== SECTIONS COMMON ===== */
section {
  margin-bottom: 72px;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

section h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  padding-bottom: 14px;
  position: relative;
  color: var(--text-primary);
  line-height: 1.35;
}

section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition-slow);
}

section:hover h2::after {
  width: 100px;
}

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

section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--accent-secondary);
  line-height: 1.4;
}

section p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.8;
}

section article {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
  position: relative;
  overflow: hidden;
}

section article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}

section article:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow), var(--shadow-md);
  transform: translateY(-2px);
}

section article:hover::before {
  opacity: 1;
}

/* ===== HERO BANNER ===== */
#hero {
  margin-bottom: 56px;
  padding: 0;
  margin-top: 8px;
}

#hero.revealed {
  opacity: 1;
  transform: none;
}

.banner-slider {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.banner-slide {
  display: none;
  position: relative;
}

.banner-slide.active {
  display: block;
  animation: bannerFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bannerFadeIn {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.banner-slide svg {
  width: 100%;
  height: auto;
  display: block;
  min-height: 260px;
  object-fit: cover;
}

.banner-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 36px 32px;
  background: linear-gradient(to top, rgba(10, 14, 39, 0.92) 0%, rgba(10, 14, 39, 0.5) 60%, transparent 100%);
  color: #fff;
}

[data-theme="light"] .banner-caption {
  background: linear-gradient(to top, rgba(10, 14, 39, 0.88) 0%, rgba(10, 14, 39, 0.45) 60%, transparent 100%);
}

.banner-caption h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
  padding-bottom: 0;
  line-height: 1.4;
}

.banner-caption h2::after {
  display: none;
}

.banner-caption p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.banner-prev,
.banner-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
  z-index: 5;
  line-height: 1;
  padding-bottom: 3px;
}

.banner-prev {
  left: 16px;
}

.banner-next {
  right: 16px;
}

.banner-prev:hover,
.banner-next:hover {
  background: rgba(255, 107, 107, 0.7);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.banner-dots {
  position: absolute;
  bottom: 20px;
  right: 36px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.banner-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast), width var(--transition-base);
}

.banner-dots button.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: scale(1.2);
  width: 28px;
  border-radius: 5px;
}

.banner-dots button:hover {
  border-color: var(--accent-primary);
  background: rgba(255, 107, 107, 0.5);
}

/* ===== BLOCKQUOTE ===== */
blockquote {
  margin: 18px 0;
  padding: 18px 22px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-left: 4px solid var(--accent-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

blockquote:hover {
  border-left-color: var(--accent-secondary);
  background: var(--bg-glass-hover);
  transform: translateX(4px);
}

blockquote p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.75;
}

/* ===== TIME ===== */
time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

/* ===== NEWS / ARTICLE CARDS ===== */
#news article,
#articles article {
  margin-bottom: 18px;
  padding: 24px 28px;
}

#news article:last-child,
#articles article:last-child {
  margin-bottom: 0;
}

#news article h3,
#articles article h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

#articles article a[aria-label] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-top: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 50px;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

#articles article a[aria-label]:hover {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.35);
}

/* ===== FAQ ===== */
#faq details {
  background: var(--bg-card);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--border-color);
  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-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

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

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

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

#faq summary::before {
  content: "+";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(255, 107, 107, 0.1);
  border-radius: 50%;
  transition: transform var(--transition-base), background var(--transition-fast), color var(--transition-fast);
  line-height: 1;
}

#faq details[open] summary::before {
  content: "−";
  transform: rotate(180deg);
  background: var(--accent-primary);
  color: #fff;
}

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

#faq details > p {
  padding: 0 22px 20px 58px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  animation: faqSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===== HOWTO ===== */
#howto article ol {
  counter-reset: howto-step;
  list-style: none;
  padding: 0;
}

#howto article ol > li {
  counter-increment: howto-step;
  position: relative;
  padding: 20px 0 20px 64px;
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-fast);
}

#howto article ol > li:last-child {
  border-bottom: none;
}

#howto article ol > li::before {
  content: counter(howto-step);
  position: absolute;
  left: 0;
  top: 22px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  background: var(--accent-gradient);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(255, 107, 107, 0.3);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

#howto article ol > li:hover::before {
  transform: scale(1.12) rotate(-8deg);
  box-shadow: 0 6px 22px rgba(255, 107, 107, 0.45);
}

#howto article ol > li h4 {
  margin-top: 0;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-size: 0.98rem;
}

#howto article ol > li p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ===== CONTACT ===== */
#contact article p {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

/* ===== SITEMAP ===== */
#sitemap nav ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

#sitemap nav > ul > li {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

#sitemap nav > ul > li:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

#sitemap nav > ul > li > a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

#sitemap nav > ul > li > a:hover {
  color: var(--accent-primary);
}

#sitemap nav ul ul {
  margin-top: 8px;
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#sitemap nav ul ul li a {
  font-size: 0.82rem;
  color: var(--text-muted);
}

#sitemap nav ul ul li a:hover {
  color: var(--accent-secondary);
}

/* ===== LINKS ===== */
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#links ul li a {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

#links ul li a:hover {
  color: #fff;
  background: var(--accent-gradient);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

/* ===== FOOTER ===== */
footer[role="contentinfo"] {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
  transition: background var(--transition-base);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 36px;
}

.footer-col h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

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

.footer-col p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 8px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a {
  font-size: 0.84rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  display: inline-block;
}

.footer-col ul li a:hover {
  color: var(--accent-primary);
  padding-left: 6px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.footer-col a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px 32px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

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

/* ===== BACK TO TOP ===== */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent-gradient);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base), box-shadow var(--transition-fast);
  z-index: 999;
  line-height: 1;
}

#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 30px rgba(255, 107, 107, 0.55);
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
  border: 2px solid var(--bg-primary);
}

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

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

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

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 1024px) {
  .header-inner {
    padding: 0 18px;
    gap: 14px;
  }

  .nav-list li a {
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .search-form input[type="search"] {
    width: 140px;
  }

  .search-form input[type="search"]:focus {
    width: 170px;
  }

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

  section article {
    padding: 26px;
  }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

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

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

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

  nav[role="navigation"] {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-glass-hover);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    padding: 0 14px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-base);
    z-index: 999;
  }

  nav[role="navigation"].open {
    max-height: 480px;
    padding: 12px 14px;
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    gap: 2px;
    width: 100%;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list li a {
    padding: 12px 16px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    width: 100%;
  }

  .search-form {
    display: none;
  }

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

  #breadcrumb {
    padding: calc(var(--header-height) + 12px) 14px 0;
  }

  main {
    padding: 16px 14px 40px;
  }

  section {
    margin-bottom: 48px;
  }

  section h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  section article {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }

  .banner-slider {
    border-radius: var(--radius-lg);
  }

  .banner-slide svg {
    min-height: 200px;
  }

  .banner-caption {
    padding: 40px 18px 22px;
  }

  .banner-caption h2 {
    font-size: 1rem;
  }

  .banner-caption p {
    font-size: 0.8rem;
  }

  .banner-prev,
  .banner-next {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }

  .banner-prev {
    left: 8px;
  }

  .banner-next {
    right: 8px;
  }

  .banner-dots {
    right: 18px;
    bottom: 14px;
  }

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

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

  #faq details > p {
    padding: 0 16px 16px 50px;
    font-size: 0.85rem;
  }

  #howto article ol > li {
    padding: 16px 0 16px 52px;
  }

  #howto article ol > li::before {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
    top: 18px;
  }

  #sitemap nav ul {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  #links ul {
    gap: 8px;
  }

  #links ul li a {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

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

  .footer-bottom {
    padding: 16px 14px 28px;
  }

  .footer-bottom p {
    font-size: 0.72rem;
  }

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

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

  .banner-slide svg {
    min-height: 160px;
  }

  .banner-caption {
    padding: 30px 14px 18px;
  }

  .banner-caption h2 {
    font-size: 0.9rem;
  }

  .banner-dots {
    display: none;
  }

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

  section h2 {
    font-size: 1.15rem;
  }

  section h3 {
    font-size: 1rem;
  }

  section article {
    padding: 16px 12px;
  }
}

/* ===== 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 {
    opacity: 1;
    transform: none;
  }
}

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

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

  section {
    opacity: 1;
    transform: none;
    break-inside: avoid;
  }

  section article {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}