:root {
  --primary: #ff6b35;
  --primary-dark: #e8551f;
  --primary-light: #ff9a3c;
  --accent: #ffb347;
  --gradient-banner: linear-gradient(135deg, #ff6b35 0%, #ff9a3c 55%, #ffb347 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(255, 179, 71, 0.12));
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --text: #1f2329;
  --text-light: #5c6370;
  --border: #e5e8ec;
  --border-glass: rgba(255, 255, 255, 0.55);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 14px 40px rgba(255, 107, 53, 0.16);
  --shadow-glass: 0 8px 32px rgba(31, 35, 41, 0.1);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

body.dark {
  --primary: #ff7f50;
  --primary-dark: #ff6b35;
  --primary-light: #ffa66b;
  --accent: #ffc078;
  --gradient-banner: linear-gradient(135deg, #a83f1c 0%, #c95a26 55%, #e8833a 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255, 127, 80, 0.16), rgba(255, 192, 120, 0.12));
  --bg: #15171b;
  --bg-alt: #1d2026;
  --bg-glass: rgba(29, 32, 38, 0.72);
  --text: #e8eaed;
  --text-light: #a0a6b0;
  --border: #2c3038;
  --border-glass: rgba(255, 255, 255, 0.08);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 14px 40px rgba(0, 0, 0, 0.5);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 107, 53, 0.08), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(255, 179, 71, 0.08), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(255, 107, 53, 0.05), transparent 50%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

button,
input {
  font-family: inherit;
}

::selection {
  background: var(--primary);
  color: #fff;
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  border: 2px solid var(--bg-alt);
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.header.scrolled {
  box-shadow: var(--shadow);
  border-bottom-color: transparent;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--primary);
  letter-spacing: 0.5px;
  flex: none;
  transition: transform 0.3s var(--ease);
}

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

.logo svg {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
  transition: transform 0.4s var(--ease);
}

.logo:hover svg {
  transform: rotate(-8deg) scale(1.06);
}

.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-light);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-banner);
  transform: translateX(-50%);
  transition: width 0.28s var(--ease);
}

.nav a:hover {
  background: var(--bg-alt);
  color: var(--primary);
  transform: translateY(-1px);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 6px 4px 14px;
  background: var(--bg-alt);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.35s var(--ease);
}

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

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  color: var(--text);
  width: 130px;
  font-size: 14px;
  transition: width 0.3s var(--ease);
}

.search-box input::placeholder {
  color: var(--text-light);
  opacity: 0.8;
}

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

.search-box button {
  border: none;
  background: var(--gradient-banner);
  color: #fff;
  border-radius: 16px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
}

.search-box button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
  filter: brightness(1.05);
}

.search-box button:active {
  transform: translateY(0) scale(0.97);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.3s var(--ease), border-color 0.25s var(--ease);
}

.icon-btn:hover {
  background: var(--bg-alt);
  color: var(--primary);
  border-color: var(--primary);
  transform: rotate(15deg);
}

.icon-btn:active {
  transform: scale(0.92);
}

.menu-toggle {
  display: none;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  padding: 16px 0;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 24px 0;
  background: var(--gradient-banner);
  color: #fff;
  box-shadow: 0 18px 46px rgba(255, 107, 53, 0.28);
  isolation: isolate;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.28), transparent 45%),
    radial-gradient(circle at 8% 92%, rgba(255, 255, 255, 0.16), transparent 42%);
  pointer-events: none;
  z-index: 1;
}

.banner::after {
  content: "";
  position: absolute;
  top: -60%;
  right: -10%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
  z-index: 1;
}

.banner-slide {
  display: none;
  padding: 56px 40px;
  min-height: 280px;
  position: relative;
  z-index: 2;
}

.banner-slide.active {
  display: block;
  animation: fade 0.6s var(--ease);
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.banner-slide h2 {
  font-size: 32px;
  margin-bottom: 14px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}

.banner-slide p {
  font-size: 16px;
  opacity: 0.95;
  max-width: 640px;
  margin-bottom: 20px;
  line-height: 1.8;
}

.banner-slide .btn {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  padding: 10px 24px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background-color 0.28s var(--ease);
}

.banner-slide .btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  background: #fffaf7;
}

.banner-slide .btn:active {
  transform: translateY(-1px) scale(0.99);
}

.banner-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.banner-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.3s var(--ease), background-color 0.3s var(--ease);
}

.banner-dots span:hover {
  background: rgba(255, 255, 255, 0.8);
}

.banner-dots span.active {
  background: #fff;
  width: 24px;
  border-radius: 5px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.stat {
  position: relative;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-banner);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.stat:hover::before {
  transform: scaleX(1);
}

.stat .num {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.stat .label {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 6px;
}

section {
  padding: 36px 0;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  border-radius: 2px;
  margin-top: 10px;
  background: var(--gradient-banner);
}

.section-sub {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 15px;
  max-width: 760px;
}

h1 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.35s var(--ease);
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 107, 53, 0.35);
}

.card:hover::after {
  opacity: 1;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 700;
  transition: color 0.25s var(--ease);
}

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

.card p {
  font-size: 14.5px;
  color: var(--text-light);
  line-height: 1.8;
}

.card svg {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 12px;
  transition: transform 0.35s var(--ease);
}

.card:hover svg {
  transform: scale(1.08) rotate(-4deg);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

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

.article-card {
  position: relative;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.35s var(--ease);
}

.article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-banner);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}

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

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

.article-card .meta {
  font-size: 12.5px;
  color: var(--text-light);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.article-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  line-height: 1.45;
  font-weight: 700;
  transition: color 0.25s var(--ease);
}

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

.article-card p {
  font-size: 14px;
  color: var(--text-light);
  flex: 1;
  line-height: 1.8;
}

.article-card .more {
  margin-top: 14px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
  transition: transform 0.25s var(--ease), letter-spacing 0.25s var(--ease);
}

.article-card:hover .more {
  transform: translateX(4px);
  letter-spacing: 0.5px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--bg-alt);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.35s var(--ease);
}

.faq-item:hover {
  border-color: rgba(255, 107, 53, 0.4);
}

.faq-item.open {
  border-color: var(--primary);
  box-shadow: 0 6px 22px rgba(255, 107, 53, 0.12);
}

.faq-q {
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15.5px;
  transition: color 0.25s var(--ease);
  user-select: none;
}

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

.faq-item.open .faq-q {
  color: var(--primary);
}

.faq-q .arrow {
  transition: transform 0.35s var(--ease), color 0.25s var(--ease);
  color: var(--primary);
  flex: none;
  font-size: 13px;
}

.faq-item.open .arrow {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 0 18px;
  color: var(--text-light);
  font-size: 14.5px;
  line-height: 1.85;
}

.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 18px 16px;
}

.howto-step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.howto-step:hover {
  background: var(--bg-alt);
  border-color: var(--border);
  transform: translateX(6px);
  box-shadow: var(--shadow);
}

.howto-step .idx {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-banner);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.32);
  transition: transform 0.35s var(--ease);
}

.howto-step:hover .idx {
  transform: scale(1.1) rotate(-6deg);
}

.howto-step h4 {
  font-size: 16px;
  margin-bottom: 4px;
  font-weight: 700;
}

.howto-step p {
  font-size: 14.5px;
  color: var(--text-light);
  line-height: 1.8;
}

.content-block p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.85;
}

.content-block h3 {
  font-size: 19px;
  margin: 22px 0 10px;
  font-weight: 700;
}

.content-block h4 {
  font-size: 16px;
  margin: 16px 0 8px;
  font-weight: 700;
}

.author-box {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px 0;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.author-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.author-box svg {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.28);
}

.author-box .info {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.9;
}

.author-box .info strong {
  color: var(--text);
  font-size: 15px;
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.anchor-nav a {
  font-size: 13.5px;
  padding: 6px 14px;
  border-radius: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-light);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), background-color 0.25s var(--ease);
}

.anchor-nav a:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  background: var(--bg);
}

.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 40px;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 32px;
}

.footer h4 {
  font-size: 15px;
  margin-bottom: 14px;
  font-weight: 700;
  position: relative;
  padding-bottom: 8px;
}

.footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient-banner);
}

.footer p,
.footer li {
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 2;
  list-style: none;
}

.footer a {
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

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

.footer ul li a:hover {
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.9;
}

.footer-bottom a {
  color: var(--primary);
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-banner);
  color: #fff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(255, 107, 53, 0.4);
  z-index: 99;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

.back-top.show {
  display: flex;
  animation: popIn 0.35s var(--ease);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.6) translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.back-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 36px rgba(255, 107, 53, 0.5);
  filter: brightness(1.06);
}

.back-top:active {
  transform: scale(0.94);
}

@media (max-width: 900px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

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

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

  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    flex-direction: column;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    animation: fade 0.3s var(--ease);
  }

  .nav.open a {
    border-radius: 10px;
  }

  .menu-toggle {
    display: flex;
  }

  .search-box {
    display: none;
  }

  .banner-slide {
    padding: 36px 22px;
    min-height: 240px;
  }

  .banner-slide h2 {
    font-size: 24px;
  }

  .banner-slide p {
    font-size: 15px;
  }

  h1 {
    font-size: 25px;
  }

  .section-title {
    font-size: 22px;
  }

  .howto-step:hover {
    transform: none;
  }

  .card:hover,
  .article-card:hover,
  .stat:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .banner-slide h2 {
    font-size: 21px;
  }

  .banner-slide {
    padding: 30px 18px;
  }

  .stat .num {
    font-size: 28px;
  }

  h1 {
    font-size: 22px;
  }

  .section-title {
    font-size: 20px;
  }

  .card {
    padding: 20px;
  }

  .article-card {
    padding: 18px;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
  }

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

  .container {
    padding: 0 16px;
  }
}

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

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