:root {
  --brand: #e8543f;
  --brand-2: #ff8a3d;
  --brand-dark: #c43d2b;
  --brand-glow: rgba(232, 84, 63, 0.35);
  --bg: #fdfbf8;
  --bg-alt: #f5f1ec;
  --bg-elev: #ffffff;
  --text: #241f1c;
  --text-sub: #6a625b;
  --border: #eae3db;
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.65);
  --shadow-sm: 0 1px 3px rgba(36, 31, 28, 0.06), 0 1px 2px rgba(36, 31, 28, 0.04);
  --shadow-md: 0 6px 24px rgba(36, 31, 28, 0.08), 0 2px 8px rgba(36, 31, 28, 0.04);
  --shadow-lg: 0 18px 48px rgba(36, 31, 28, 0.14), 0 6px 16px rgba(36, 31, 28, 0.06);
  --grad-brand: linear-gradient(135deg, #ff9a4d 0%, #e8543f 52%, #c43d2b 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 154, 77, 0.14), rgba(232, 84, 63, 0.08));
  --grad-banner: linear-gradient(120deg, #2b1a16 0%, #4a2a22 38%, #7a3325 68%, #c43d2b 100%);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="dark"] {
  --brand: #ff7a5c;
  --brand-2: #ffab5e;
  --brand-dark: #ff9a7d;
  --brand-glow: rgba(255, 122, 92, 0.4);
  --bg: #121116;
  --bg-alt: #1a1920;
  --bg-elev: #201f27;
  --text: #f2eeea;
  --text-sub: #a9a2a0;
  --border: #2e2c36;
  --card: rgba(32, 31, 39, 0.66);
  --card-solid: #201f27;
  --glass: rgba(32, 31, 39, 0.55);
  --glass-border: rgba(255, 255, 255, 0.09);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.6);
  --grad-soft: linear-gradient(135deg, rgba(255, 122, 92, 0.16), rgba(255, 171, 94, 0.06));
  --grad-banner: linear-gradient(120deg, #1b1119 0%, #2a1620 40%, #4a1f24 70%, #7a2c26 100%);
}

* {
  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, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  letter-spacing: 0.01em;
  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;
  pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 8% -10%, rgba(255, 154, 77, 0.16), transparent 60%),
    radial-gradient(50vw 50vw at 100% 0%, rgba(232, 84, 63, 0.14), transparent 55%),
    radial-gradient(70vw 70vw at 50% 120%, rgba(196, 61, 43, 0.09), transparent 60%);
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(60vw 60vw at 8% -10%, rgba(255, 122, 92, 0.14), transparent 60%),
    radial-gradient(50vw 50vw at 100% 0%, rgba(255, 171, 94, 0.1), transparent 55%),
    radial-gradient(70vw 70vw at 50% 120%, rgba(122, 44, 38, 0.28), transparent 60%);
}

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

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

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

h1, h2, h3, h4 {
  line-height: 1.4;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 30px;
  font-weight: 800;
}

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

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

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

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: -0.02em;
  transition: transform 0.3s var(--ease), color 0.25s var(--ease);
}

.logo:hover {
  color: var(--brand);
  transform: translateY(-1px);
}

.logo svg {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 4px 14px var(--brand-glow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.logo:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 6px 20px var(--brand-glow);
}

.nav {
  display: flex;
  gap: 6px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav a {
  position: relative;
  color: var(--text-sub);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
  background: var(--grad-soft);
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

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

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

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-glow);
  background: var(--bg-elev);
}

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

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

.search-box button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-sub);
  font-size: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.search-box button:hover {
  color: #fff;
  background: var(--grad-brand);
  transform: scale(1.06);
}

.theme-btn,
.menu-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  color: var(--text);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.theme-btn:hover,
.menu-btn:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: 0 6px 16px var(--brand-glow);
}

.theme-btn:active,
.menu-btn:active {
  transform: translateY(0) scale(0.95);
}

.menu-btn {
  display: none;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 8px 20px 14px;
  animation: slideDown 0.3s var(--ease);
}

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

.mobile-nav a {
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text-sub);
  font-size: 15px;
  border-radius: 8px;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  color: var(--brand);
  background: var(--grad-soft);
  padding-left: 16px;
}

.mobile-nav.open {
  display: flex;
}

.banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 24px 0;
  background: var(--grad-banner);
  min-height: 340px;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(40% 80% at 85% 20%, rgba(255, 171, 94, 0.35), transparent 70%),
    radial-gradient(50% 90% at 10% 100%, rgba(232, 84, 63, 0.4), transparent 70%);
  pointer-events: none;
}

.banner::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.04), 0 0 0 80px rgba(255, 255, 255, 0.03);
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-24px, 24px) scale(1.06); }
}

.slides {
  display: flex;
  position: relative;
  z-index: 1;
  transition: transform 0.65s var(--ease);
}

.slide {
  min-width: 100%;
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  color: #fff;
}

.slide h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
  max-width: 720px;
}

.slide p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 640px;
  font-size: 15px;
  line-height: 1.8;
}

.slide .btn {
  align-self: flex-start;
  margin-top: 4px;
}

.btn {
  display: inline-block;
  position: relative;
  background: var(--grad-brand);
  color: #fff;
  padding: 11px 26px;
  border-radius: 26px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 6px 20px var(--brand-glow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
}

.btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--brand-glow);
  filter: saturate(1.1);
}

.btn:hover::after {
  left: 130%;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

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

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

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

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

.breadcrumb {
  font-size: 14px;
  color: var(--text-sub);
  margin: 18px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb a {
  color: var(--text-sub);
  padding: 2px 4px;
  border-radius: 6px;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.breadcrumb a:hover {
  color: var(--brand);
  background: var(--grad-soft);
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.anchor-nav a {
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 14px;
  color: var(--text-sub);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

.anchor-nav a:hover {
  color: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--brand-glow);
  background: var(--grad-soft);
}

section {
  padding: 44px 0;
}

.section-title {
  font-size: 25px;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
  padding-left: 16px;
  letter-spacing: -0.02em;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 5px;
  border-radius: 3px;
  background: var(--grad-brand);
  box-shadow: 0 0 12px var(--brand-glow);
}

.section-desc {
  color: var(--text-sub);
  margin-bottom: 26px;
  font-size: 15px;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

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

.card {
  position: relative;
  background: var(--card);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.6), transparent 40%, transparent 60%, rgba(232, 84, 63, 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

[data-theme="dark"] .card::before {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.14), transparent 40%, transparent 60%, rgba(255, 122, 92, 0.3));
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232, 84, 63, 0.28);
}

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

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

.card h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 14px 0 6px;
  color: var(--text);
}

.card h4:first-child {
  margin-top: 0;
}

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

.stat {
  text-align: center;
  padding: 26px 12px;
  background: var(--grad-soft);
}

.stat .num {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.2;
}

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

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

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

.article-item {
  position: relative;
  border-bottom: 1px solid var(--border);
  padding: 22px 16px;
  border-radius: var(--radius-sm);
  transition: background-color 0.3s var(--ease), padding-left 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.article-item:last-child {
  border-bottom: none;
}

.article-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}

.article-item:hover {
  background: var(--grad-soft);
  padding-left: 24px;
  box-shadow: var(--shadow-sm);
}

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

.article-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  transition: color 0.25s var(--ease);
}

.article-item:hover h3 {
  color: var(--brand);
}

.article-item .meta {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 8px;
  opacity: 0.9;
}

.article-item p {
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.8;
}

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

.article-item:hover .more {
  transform: translateX(4px);
  letter-spacing: 0.04em;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.faq-item:hover {
  border-color: rgba(232, 84, 63, 0.3);
  box-shadow: var(--shadow-md);
}

.faq-item.open {
  border-color: var(--brand);
  box-shadow: 0 8px 24px var(--brand-glow);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.faq-q:hover {
  color: var(--brand);
  background: var(--grad-soft);
}

.faq-q span.icon {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--brand);
  background: var(--grad-soft);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), color 0.35s var(--ease);
}

.faq-item.open .faq-q span.icon {
  transform: rotate(135deg);
  background: var(--grad-brand);
  color: #fff;
}

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

.faq-item.open .faq-a {
  max-height: 460px;
  padding-bottom: 18px;
}

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

.howto-step:hover {
  transform: translateX(4px);
  border-color: rgba(232, 84, 63, 0.25);
  box-shadow: var(--shadow-sm);
}

.howto-step .step-num {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 6px 16px var(--brand-glow);
  transition: transform 0.35s var(--ease);
}

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

.howto-step h4 {
  margin: 0 0 4px;
  font-size: 16px;
}

.howto-step p {
  color: var(--text-sub);
  font-size: 15px;
}

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

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.contact-item:hover {
  background: var(--grad-soft);
  transform: translateY(-2px);
}

.contact-item svg {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--brand);
  margin-top: 2px;
  transition: transform 0.3s var(--ease);
}

.contact-item:hover svg {
  transform: scale(1.12);
}

.contact-item div {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
  word-break: break-word;
}

.contact-item strong {
  color: var(--text);
  font-size: 15px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag {
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 5px 15px;
  font-size: 13px;
  color: var(--text-sub);
  cursor: default;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

.tag:hover {
  color: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px var(--brand-glow);
  background: var(--grad-soft);
}

footer {
  position: relative;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 44px 0 22px;
  margin-top: 44px;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0.85;
}

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

footer h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
  position: relative;
  padding-bottom: 8px;
}

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

footer p,
footer a {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.85;
}

footer a {
  display: inline-block;
  padding: 2px 0;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

footer a:hover {
  color: var(--brand);
  transform: translateX(3px);
}

footer ul {
  list-style: none;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 28px;
  padding-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--text-sub);
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--brand-glow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  z-index: 99;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-top:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 30px var(--brand-glow);
}

.back-top:active {
  transform: translateY(0) scale(0.96);
}

@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav {
    display: none;
  }
  .menu-btn {
    display: flex;
  }
  .search-box input {
    width: 90px;
  }
  .slide {
    padding: 42px 32px;
  }
  .slide h2 {
    font-size: 26px;
  }
  .banner {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }
  h1 {
    font-size: 23px;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .slide {
    padding: 34px 22px;
    gap: 14px;
  }
  .slide h2 {
    font-size: 21px;
  }
  .slide p {
    font-size: 14px;
  }
  .header-inner {
    gap: 12px;
    height: 60px;
  }
  .search-box {
    display: none;
  }
  .logo {
    font-size: 18px;
  }
  .logo svg {
    width: 28px;
    height: 28px;
  }
  .banner {
    min-height: 300px;
    border-radius: var(--radius);
  }
  section {
    padding: 34px 0;
  }
  .section-title {
    font-size: 21px;
  }
  .card {
    padding: 20px;
  }
  .stat .num {
    font-size: 28px;
  }
  .back-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
  .article-item {
    padding: 18px 12px;
  }
  .article-item:hover {
    padding-left: 18px;
  }
  .howto-step {
    gap: 12px;
    padding: 12px;
  }
}

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