:root {
  --primary: #2b5cff;
  --primary-dark: #1a3fd6;
  --primary-soft: rgba(43, 92, 255, 0.1);
  --accent: #ff5c8a;
  --accent-soft: rgba(255, 92, 138, 0.12);
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --text: #1a1f2e;
  --text-soft: #5a6274;
  --border: #e3e8f2;
  --card: #ffffff;
  --shadow: 0 6px 24px rgba(20, 40, 90, 0.08);
  --shadow-hover: 0 14px 38px rgba(20, 40, 90, 0.16);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;
  --gradient-banner: linear-gradient(135deg, #eef2ff 0%, #f7f0ff 55%, #ffeef4 100%);
  --gradient-brand: linear-gradient(135deg, #2b5cff 0%, #6b8cff 45%, #ff5c8a 100%);
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-theme="dark"] {
  --primary: #6b8cff;
  --primary-dark: #4a6ee0;
  --primary-soft: rgba(107, 140, 255, 0.16);
  --accent: #ff7aa2;
  --accent-soft: rgba(255, 122, 162, 0.16);
  --bg: #0f1420;
  --bg-soft: #161d2c;
  --bg-glass: rgba(22, 29, 44, 0.72);
  --text: #e8ecf5;
  --text-soft: #a3adc2;
  --border: #26304a;
  --card: #161d2c;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 14px 38px rgba(0, 0, 0, 0.55);
  --gradient-banner: linear-gradient(135deg, #141b2e 0%, #1a1430 55%, #241428 100%);
}

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

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

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

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}

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

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

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

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

.logo svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  transition: transform 0.35s var(--ease);
}

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

.nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}

.nav a {
  color: var(--text-soft);
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

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

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  padding: 8px 12px 8px 34px;
  border-radius: var(--radius-full);
  width: 180px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: width 0.3s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.search-box input:focus {
  border-color: var(--primary);
  width: 220px;
  background: var(--bg);
}

.search-box svg {
  position: absolute;
  left: 11px;
  width: 16px;
  height: 16px;
  color: var(--text-soft);
  pointer-events: none;
}

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

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

.icon-btn:active {
  transform: translateY(0) scale(0.96);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.menu-btn {
  display: none;
}

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

.mobile-nav a {
  padding: 10px 0;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
}

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

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

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

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

/* ========== Breadcrumb ========== */
.breadcrumb {
  padding: 16px 0;
  font-size: 13.5px;
  color: var(--text-soft);
}

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

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

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

/* ========== Hero ========== */
.hero {
  position: relative;
  background: var(--gradient-banner);
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}

.hero::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(43, 92, 255, 0.35), transparent 70%);
  top: -140px;
  left: -100px;
  animation: floatOrb 14s ease-in-out infinite;
}

.hero::after {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 92, 138, 0.32), transparent 70%);
  bottom: -160px;
  right: -80px;
  animation: floatOrb 18s ease-in-out infinite reverse;
}

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

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 60px 0;
}

.hero h1 {
  font-size: 38px;
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero h1 .hl {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero p.lead {
  font-size: 17px;
  color: var(--text-soft);
  margin-bottom: 24px;
}

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

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background-color 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(43, 92, 255, 0.32);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(43, 92, 255, 0.42);
}

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

.btn-ghost:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(43, 92, 255, 0.28);
}

/* ========== Hero Visual ========== */
.hero-visual {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
  transform: rotate(-2deg);
  width: 100%;
  max-width: 380px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.hero-card:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.hero-card .cover {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--bg-soft);
}

.hero-card .cover svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

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

.badge-float {
  position: absolute;
  background: var(--accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  top: -10px;
  right: 10px;
  box-shadow: 0 4px 14px rgba(255, 92, 138, 0.4);
  animation: badgePulse 2.6s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ========== Sections ========== */
.section {
  padding: 64px 0;
  transition: background-color 0.35s var(--ease);
}

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

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

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

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

.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* ========== Carousel ========== */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.carousel-track {
  display: flex;
  transition: transform 0.55s var(--ease);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.carousel-slide .slide-icon {
  flex: 0 0 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  box-shadow: 0 8px 20px rgba(43, 92, 255, 0.3);
}

.carousel-slide .slide-icon svg {
  width: 36px;
  height: 36px;
  color: #fff;
}

.carousel-slide h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

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

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: width 0.3s var(--ease), background-color 0.3s var(--ease);
}

.carousel-dots button:hover {
  background: var(--primary);
  opacity: 0.7;
}

.carousel-dots button.active {
  background: var(--primary);
  width: 22px;
  border-radius: 5px;
}

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

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

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

/* ========== Cards ========== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.35s var(--ease);
}

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

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.3s var(--ease);
}

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

.card .icon svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

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

.card p + p {
  margin-top: 10px;
}

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

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

.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

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

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

.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}

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

.article-meta {
  font-size: 12.5px;
  color: var(--text-soft);
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.article-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

.read-more {
  margin-top: 14px;
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s var(--ease);
}

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

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

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

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

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

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

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

.faq-q .plus {
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary);
  transition: transform 0.35s var(--ease), background-color 0.25s var(--ease);
}

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

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

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

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

/* ========== HowTo ========== */
.howto-step {
  display: flex;
  gap: 20px;
  margin-bottom: 26px;
  align-items: flex-start;
}

.step-num {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(43, 92, 255, 0.3);
  transition: transform 0.3s var(--ease);
}

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

.howto-step h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

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

/* ========== Contact ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-info,
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact-info:hover,
.contact-form:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

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

.contact-info ul {
  list-style: none;
}

.contact-info li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14.5px;
}

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

.contact-info li svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex: 0 0 20px;
  margin-top: 3px;
}

.contact-info strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

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

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

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

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

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

/* ========== Tag & Author ========== */
.tag {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 6px;
  margin-bottom: 10px;
}

.author-box {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin-top: 30px;
}

.author-box .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 52px;
}

.author-box .avatar svg {
  width: 100%;
  height: 100%;
}

.author-box h4 {
  font-size: 15px;
  margin-bottom: 3px;
}

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

/* ========== Timeline ========== */
.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 26px;
}

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

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

.timeline-item:hover::before {
  transform: scale(1.25);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

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

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

.timeline-item .year {
  font-weight: 800;
  color: var(--primary);
  font-size: 14px;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 56px 0 24px;
  margin-top: 20px;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}

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

.footer-grid h4 {
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 10px;
  font-size: 14px;
}

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

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

.footer-about p {
  font-size: 14px;
  color: var(--text-soft);
  margin-top: 12px;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-soft);
}

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

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

/* ========== Back to top ========== */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease), transform 0.3s var(--ease), background-color 0.2s var(--ease);
  z-index: 900;
}

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

.to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.to-top svg {
  width: 22px;
  height: 22px;
}

/* ========== Reveal animation ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}

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

/* ========== Responsive ========== */
@media (max-width: 1100px) {
  .nav {
    gap: 16px;
    font-size: 14px;
  }
  .search-box input {
    width: 150px;
  }
  .search-box input:focus {
    width: 180px;
  }
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 44px 0;
  }
  .hero-visual {
    min-height: auto;
  }
  .hero-card {
    transform: rotate(0);
    max-width: 100%;
  }
  .grid-3,
  .grid-4,
  .grid-2,
  .article-list,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav {
    display: none;
  }
  .menu-btn {
    display: flex;
  }
  .search-box input {
    width: 140px;
  }
  .search-box input:focus {
    width: 160px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .section {
    padding: 52px 0;
  }
  .section-head h2 {
    font-size: 25px;
  }
  .footer-grid {
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 60px;
  }
  .search-box {
    display: none;
  }
  .section {
    padding: 44px 0;
  }
  .section-head {
    margin-bottom: 32px;
  }
  .section-head h2 {
    font-size: 22px;
  }
  .hero h1 {
    font-size: 24px;
  }
  .hero p.lead {
    font-size: 15.5px;
  }
  .stat-num {
    font-size: 28px;
  }
  .carousel-slide {
    flex-direction: column;
    text-align: center;
    padding: 22px;
  }
  .carousel-slide .slide-icon {
    flex: 0 0 60px;
    height: 60px;
  }
  .card,
  .article-card,
  .contact-info,
  .contact-form {
    padding: 20px;
  }
  .howto-step {
    gap: 14px;
  }
  .step-num {
    flex: 0 0 38px;
    height: 38px;
    font-size: 16px;
  }
  .author-box {
    flex-direction: column;
    text-align: center;
  }
  .to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 380px) {
  .container {
    padding: 0 14px;
  }
  .hero h1 {
    font-size: 21px;
  }
  .btn {
    padding: 10px 18px;
    font-size: 14px;
  }
}

/* ========== Motion & print ========== */
@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;
  }
}

@media print {
  .site-header,
  .to-top,
  .carousel-dots,
  .hero-cta,
  .mobile-nav {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .card,
  .article-card,
  .faq-item {
    box-shadow: none;
    border-color: #ccc;
  }
}