:root {
  --brand: #ff6b35;
  --brand-dark: #e05520;
  --brand-light: #fff3ee;
  --brand-soft: rgba(255, 107, 53, 0.12);
  --text: #222;
  --text-soft: #555;
  --text-mute: #888;
  --bg: #fff;
  --bg-soft: #fafafa;
  --bg-elevated: #ffffff;
  --border: #eee;
  --border-strong: #e2e2e2;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.12);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.6);
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.dark {
  --text: #e8e8e8;
  --text-soft: #b0b0b0;
  --text-mute: #8a8a8a;
  --bg: #141414;
  --bg-soft: #1d1d1d;
  --bg-elevated: #1a1a1a;
  --border: #2c2c2c;
  --border-strong: #3a3a3a;
  --brand-light: #2a1a12;
  --brand-soft: rgba(255, 107, 53, 0.18);
  --glass: rgba(20, 20, 20, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.6);
}

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

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

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

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

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

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

ul {
  list-style: none;
}

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

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 6px;
}

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

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #ff9a5a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.35);
  transition: transform 0.35s var(--ease);
}

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

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

.nav a {
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}

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

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

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

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 5px 6px 5px 14px;
  gap: 8px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

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

.search-box input::placeholder {
  color: var(--text-mute);
}

.search-box button {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 5px 14px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.search-box button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

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

.icon-btn:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.menu-btn {
  display: none;
}

/* ================= Hero ================= */
.hero {
  position: relative;
  padding: 70px 0 60px;
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--bg) 60%, var(--bg) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.22), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -220px;
  left: -140px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 123, 213, 0.16), transparent 70%);
  pointer-events: none;
}

body.dark .hero {
  background: linear-gradient(135deg, #2a1a12 0%, #1d1d1d 60%, #1d1d1d 100%);
}

body.dark .hero::before {
  background: radial-gradient(circle, rgba(255, 107, 53, 0.28), transparent 70%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

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

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

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

.breadcrumb span {
  color: var(--brand);
  font-weight: 600;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(255, 107, 53, 0.3);
  animation: pulseBadge 3s ease-in-out infinite;
}

@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 6px 18px rgba(255, 107, 53, 0.3); }
  50% { box-shadow: 0 6px 26px rgba(255, 107, 53, 0.55); }
}

.hero h1 {
  font-size: 42px;
  line-height: 1.25;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero h1 em {
  color: var(--brand);
  font-style: normal;
  background: linear-gradient(120deg, var(--brand), #ff9a5a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 17px;
  color: var(--text-soft);
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #ff8a4c);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 107, 53, 0.32);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(255, 107, 53, 0.45);
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-3px);
}

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

.tag {
  background: var(--brand-soft);
  color: var(--brand);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.25s var(--ease), background-color 0.25s ease;
}

.tag:hover {
  transform: translateY(-2px);
  background: var(--brand);
  color: #fff;
}

/* ================= Slider ================= */
.hero-visual {
  position: relative;
}

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

.slide {
  display: none;
  padding: 0;
}

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

.slide svg {
  width: 100%;
  height: auto;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

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

.slider-dots span.active {
  background: var(--brand);
  width: 22px;
  border-radius: 5px;
}

/* ================= Stats ================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.stat {
  text-align: center;
  padding: 24px 12px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

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

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

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

/* ================= Section ================= */
section {
  padding: 70px 0;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 46px;
}

.section-head h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
  line-height: 1.35;
}

.section-head p {
  color: var(--text-soft);
  font-size: 16px;
}

.section-head .kicker {
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.bg-soft {
  background: var(--bg-soft);
}

/* ================= Grid & Cards ================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

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

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), #ff9a5a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

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

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.35s var(--ease), background-color 0.35s ease;
}

.card:hover .icon {
  transform: scale(1.08) rotate(-4deg);
  background: var(--brand-soft);
}

.card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.card p {
  color: var(--text-soft);
  font-size: 15px;
}

/* ================= About ================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

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

.about-text p {
  color: var(--text-soft);
  margin-bottom: 16px;
}

.timeline {
  position: relative;
  padding-left: 28px;
  margin-top: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 22px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px var(--brand-soft);
  transition: transform 0.3s var(--ease);
}

.timeline-item:hover::before {
  transform: scale(1.25);
}

.timeline-item h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.timeline-item span {
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
}

.timeline-item p {
  font-size: 14px;
  color: var(--text-soft);
  margin-top: 4px;
}

/* ================= Articles ================= */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.article-thumb {
  height: 160px;
  position: relative;
  overflow: hidden;
}

.article-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.article-card:hover .article-thumb svg {
  transform: scale(1.06);
}

.article-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 10px;
}

.article-meta span:first-child::before {
  content: "📅 ";
  font-size: 12px;
}

.article-body h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.article-body p {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 14px;
  flex: 1;
}

.read-more {
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  transition: gap 0.25s ease;
}

.read-more:hover {
  gap: 10px;
}

/* ================= FAQ ================= */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

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

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

.faq-item.open {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

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

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

.faq-q .plus {
  font-size: 22px;
  color: var(--brand);
  transition: transform 0.35s var(--ease);
  flex-shrink: 0;
  line-height: 1;
}

.faq-item.open .plus {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s ease;
  padding: 0 24px;
}

.faq-item.open .faq-a {
  max-height: 600px;
  padding-bottom: 22px;
}

.faq-a p {
  color: var(--text-soft);
  font-size: 15px;
}

/* ================= HowTo ================= */
.howto-steps {
  max-width: 860px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px dashed var(--border);
  transition: transform 0.3s var(--ease);
}

.step:hover {
  transform: translateX(6px);
}

.step:last-child {
  border-bottom: none;
}

.step-num {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #ff9a5a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
  transition: transform 0.35s var(--ease);
}

.step:hover .step-num {
  transform: rotate(-8deg) scale(1.08);
}

.step-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
  line-height: 1.45;
}

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

/* ================= Contact ================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s var(--ease);
}

.contact-info-item:hover {
  transform: translateX(4px);
}

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

.contact-info-item .ci-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.3s ease, transform 0.3s var(--ease);
}

.contact-info-item:hover .ci-icon {
  background: var(--brand-soft);
  transform: scale(1.08);
}

.contact-info-item h4 {
  font-size: 15px;
  margin-bottom: 2px;
}

.contact-info-item p {
  font-size: 14px;
  color: var(--text-soft);
}

.contact-form {
  background: var(--bg-soft);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.contact-form h3 {
  font-size: 20px;
  margin-bottom: 18px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-mute);
}

.contact-form .btn {
  width: 100%;
}

/* ================= Author Box ================= */
.author-box {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--bg-soft);
  padding: 24px;
  border-radius: var(--radius);
  margin-top: 40px;
  border: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

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

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(255, 107, 53, 0.3);
}

.author-box h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.author-box p {
  font-size: 14px;
  color: var(--text-soft);
}

/* ================= Value List ================= */
.value-list {
  list-style: none;
  margin-top: 16px;
}

.value-list li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-soft);
  align-items: flex-start;
}

.value-list li::before {
  content: "✓";
  color: var(--brand);
  font-weight: 800;
  flex-shrink: 0;
}

.value-list li a {
  color: var(--text-soft);
}

.value-list li a:hover {
  color: var(--brand);
}

/* ================= Footer ================= */
.footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 60px 0 30px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), #ff9a5a, #3a7bd5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

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

.footer p {
  font-size: 14px;
  line-height: 1.9;
  color: #999;
}

.footer ul {
  list-style: none;
}

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

.footer ul li a {
  color: #999;
  font-size: 14px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer ul li a:hover {
  color: var(--brand);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid #2c2c2c;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #777;
}

/* ================= Back Top ================= */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #ff9a5a);
  color: #fff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.45);
  z-index: 99;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

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

.back-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 12px 28px rgba(255, 107, 53, 0.6);
}

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

/* ================= Reveal ================= */
.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;
}

/* ================= Responsive ================= */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 36px;
  }
  .hero-grid {
    gap: 36px;
  }
  .search-box input {
    width: 110px;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .grid-3,
  .grid-2,
  .article-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s var(--ease);
  }

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

  .nav.open a {
    width: 100%;
    padding: 8px 0;
  }

  .menu-btn {
    display: flex;
  }

  .search-box {
    display: none;
  }

  .hero {
    padding: 50px 0 44px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 16px;
  }

  section {
    padding: 54px 0;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .section-head p {
    font-size: 15px;
  }

  .about-text h2 {
    font-size: 26px;
  }

  .contact-form {
    padding: 24px;
  }

  .footer {
    padding: 48px 0 26px;
  }

  .footer-grid {
    gap: 30px;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero-badge {
    font-size: 12px;
    padding: 4px 12px;
  }

  .btn {
    padding: 11px 22px;
    font-size: 14px;
  }

  .hero-actions {
    gap: 10px;
  }

  .stats {
    gap: 12px;
  }

  .stat {
    padding: 18px 8px;
  }

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

  .stat .label {
    font-size: 12px;
  }

  .card {
    padding: 22px;
  }

  .card h3 {
    font-size: 17px;
  }

  .article-thumb {
    height: 130px;
  }

  .article-body {
    padding: 18px;
  }

  .article-body h3 {
    font-size: 16px;
  }

  .faq-q {
    padding: 16px 18px;
    font-size: 15px;
  }

  .faq-a {
    padding: 0 18px;
  }

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

  .step {
    gap: 16px;
    padding: 20px 0;
  }

  .step-num {
    width: 44px;
    height: 44px;
    font-size: 17px;
  }

  .step-content h3 {
    font-size: 16px;
  }

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

  .contact-form {
    padding: 20px;
  }

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

  .footer-bottom {
    flex-direction: column;
    font-size: 12px;
  }
}

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