:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --primary-light: #4a90e2;
  --accent: #ff6b6b;
  --accent-2: #7c4dff;
  --bg: #f5f7fb;
  --bg-alt: #ffffff;
  --bg-elevated: #ffffff;
  --text: #1c2333;
  --text-secondary: #5a6478;
  --text-muted: #8a93a6;
  --border: #e3e8f0;
  --shadow-sm: 0 2px 8px rgba(26, 35, 51, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 35, 51, 0.1);
  --shadow-lg: 0 16px 48px rgba(26, 35, 51, 0.14);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.5);
  --gradient-hero: linear-gradient(135deg, #1a73e8 0%, #7c4dff 55%, #ff6b6b 100%);
  --gradient-soft: linear-gradient(135deg, rgba(26, 115, 232, 0.08), rgba(124, 77, 255, 0.08));
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 72px;
  --max-w: 1200px;
}

[data-theme="dark"] {
  --primary: #5b9dff;
  --primary-dark: #3d7ee0;
  --primary-light: #7fb4ff;
  --accent: #ff7b7b;
  --accent-2: #9d7bff;
  --bg: #0e1220;
  --bg-alt: #161b2c;
  --bg-elevated: #1c2236;
  --text: #e8ecf5;
  --text-secondary: #a8b2c8;
  --text-muted: #7a849b;
  --border: #2a3348;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(22, 27, 44, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --gradient-hero: linear-gradient(135deg, #1a3a6b 0%, #3d2a6b 55%, #6b2a3a 100%);
  --gradient-soft: linear-gradient(135deg, rgba(91, 157, 255, 0.1), rgba(157, 123, 255, 0.1));
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
}

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

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

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

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4 {
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p { margin-bottom: 1rem; }

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

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

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

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
  opacity: 0.85;
}

.brand-logo {
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.brand:hover .brand-logo {
  transform: rotate(-6deg) scale(1.05);
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

.main-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--transition);
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--primary);
  background: var(--gradient-soft);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-search {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 4px 4px 14px;
  transition: all var(--transition);
}

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

.site-search input {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.875rem;
  width: 150px;
  padding: 6px 0;
  outline: none;
  font-family: inherit;
}

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

.site-search button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: all var(--transition);
}

.site-search button:hover {
  background: var(--primary-dark);
  transform: scale(1.08);
}

.theme-toggle,
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.theme-toggle:hover,
.menu-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: rotate(15deg);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 20px 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--text-muted);
}

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

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

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

/* ============ HERO ============ */
.hero {
  max-width: var(--max-w);
  margin: 20px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: stretch;
}

.hero-slider {
  position: relative;
  background: var(--gradient-hero);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.25), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.15), transparent 40%);
  pointer-events: none;
}

.hero-slider::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  top: -80px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.slide {
  display: none;
  position: relative;
  z-index: 1;
  animation: fadeSlide 0.6s ease both;
}

.slide.active {
  display: block;
}

.slide h1,
.slide h2 {
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.slide p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 680px;
}

.slide .hero-lead {
  font-size: 0.95rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  color: var(--primary-dark);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  transform: translateY(-3px);
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 44px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

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

.dot:hover {
  background: rgba(255, 255, 255, 0.75);
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

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

/* ============ ANCHOR NAV ============ */
.anchor-nav {
  max-width: var(--max-w);
  margin: 24px auto 0;
  padding: 0 20px;
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 50;
}

.anchor-nav ul {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  scrollbar-width: none;
}

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

.anchor-nav a {
  display: block;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--transition);
}

.anchor-nav a:hover {
  background: var(--primary);
  color: #fff;
}

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

.section {
  margin-top: 48px;
  padding: 36px 32px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
  animation: revealUp 0.7s ease both;
}

.section:hover {
  box-shadow: var(--shadow-md);
}

.section > h2 {
  position: relative;
  padding-left: 18px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: auto;
  width: 5px;
  height: 1.3em;
  border-radius: var(--radius-full);
  background: var(--gradient-hero);
}

.section h3 {
  margin: 24px 0 10px;
  color: var(--text);
}

.section h3:first-of-type {
  margin-top: 8px;
}

.section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.section a:not(.btn-primary):not(.btn-ghost):not(.read-more) {
  text-decoration: underline;
  text-decoration-color: rgba(26, 115, 232, 0.35);
  text-underline-offset: 3px;
}

.section a:not(.btn-primary):not(.btn-ghost):not(.read-more):hover {
  text-decoration-color: var(--primary);
}

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

/* ============ NEWS ============ */
.news-item {
  padding: 22px 24px;
  margin-bottom: 16px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.news-item:last-child {
  margin-bottom: 0;
}

.news-item:hover {
  transform: translateX(6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.news-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.meta {
  font-size: 0.82rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 8px !important;
}

.meta time {
  font-weight: 600;
  color: var(--primary);
}

/* ============ ARTICLE CARDS ============ */
.article-card {
  padding: 22px 24px;
  margin-bottom: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-hero);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.article-card:hover::before {
  transform: scaleY(1);
}

.article-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.article-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.article-card h3 a:hover {
  color: var(--primary);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 4px;
}

.read-more::after {
  content: "→";
  transition: transform var(--transition);
}

.read-more:hover::after {
  transform: translateX(4px);
}

/* ============ REVIEWS ============ */
blockquote {
  position: relative;
  padding: 20px 24px 20px 56px;
  margin-bottom: 16px;
  background: var(--gradient-soft);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  transition: all var(--transition);
}

blockquote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  left: 18px;
  top: 8px;
  font-size: 3rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.35;
  font-family: Georgia, serif;
}

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

/* ============ FAQ ============ */
.faq-item {
  margin-bottom: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-item[open] {
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
}

.faq-item summary {
  padding: 18px 52px 18px 22px;
  cursor: pointer;
  position: relative;
  list-style: none;
  transition: background var(--transition);
}

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

.faq-item summary:hover {
  background: var(--gradient-soft);
}

.faq-item summary h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  display: inline;
}

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

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 22px 20px;
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  animation: fadeSlide 0.35s ease both;
}

/* ============ HOWTO ============ */
.section ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.section ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 56px;
  margin-bottom: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.section ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-hero);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.section ol li:hover {
  transform: translateX(6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ============ SITEMAP & LINKS ============ */
.sitemap-list,
.friend-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.sitemap-list a,
.friend-links a {
  display: block;
  padding: 10px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  text-decoration: none !important;
}

.sitemap-list a:hover,
.friend-links a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ============ CONTACT ============ */
.contact-info {
  font-style: normal;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.contact-info p {
  padding: 14px 18px;
  background: var(--gradient-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  margin: 0;
  transition: all var(--transition);
}

.contact-info p:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.contact-info strong {
  color: var(--text);
}

/* ============ FOOTER ============ */
.site-footer {
  margin-top: 64px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-hero);
}

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

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

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

.footer-col p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.7;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  font-size: 0.86rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  display: inline-block;
}

.footer-col ul a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--gradient-hero);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition);
  z-index: 900;
}

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

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

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: row;
  }

  .stat {
    padding: 16px;
  }

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

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

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

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
  }

  .main-nav.open {
    max-height: 70vh;
    overflow-y: auto;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 16px;
    gap: 4px;
  }

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

  .menu-toggle {
    display: flex;
  }

  .site-search {
    display: none;
  }

  .hero-slider {
    padding: 36px 28px;
    min-height: 300px;
  }

  .slider-dots {
    left: 28px;
  }

  .section {
    padding: 28px 22px;
    margin-top: 36px;
  }

  .anchor-nav {
    position: static;
  }

  .anchor-nav ul {
    border-radius: var(--radius-md);
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 64px;
  }

  body {
    font-size: 15px;
  }

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

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

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding: 0 14px;
    margin-top: 14px;
  }

  .hero-slider {
    padding: 28px 22px;
    min-height: 320px;
    border-radius: var(--radius-md);
  }

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

  .hero-cta {
    gap: 10px;
  }

  .btn-primary,
  .btn-ghost {
    padding: 10px 20px;
    font-size: 0.88rem;
    flex: 1;
  }

  .hero-stats {
    flex-direction: column;
    gap: 10px;
  }

  .stat {
    flex-direction: row;
    justify-content: space-between;
    padding: 14px 18px;
  }

  .stat-num {
    font-size: 1.6rem;
  }

  .stat-label {
    margin-top: 0;
    text-align: right;
  }

  .breadcrumb,
  .anchor-nav,
  main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }

  .section > h2 {
    padding-left: 14px;
  }

  .news-item,
  .article-card {
    padding: 18px;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .sitemap-list,
  .friend-links {
    grid-template-columns: 1fr 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  .faq-item summary {
    padding: 16px 44px 16px 18px;
  }

  .faq-item summary h3 {
    font-size: 0.94rem;
  }

  .section ol li {
    padding: 12px 14px 12px 50px;
  }
}

@media (max-width: 380px) {
  .sitemap-list,
  .friend-links {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
  }
}

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

/* ============ PRINT ============ */
@media print {
  .site-header,
  .anchor-nav,
  .back-to-top,
  .hero-stats,
  .slider-dots,
  .site-footer {
    display: none !important;
  }

  .section {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }

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