:root {
  --brand: #e63946;
  --brand-2: #f4a261;
  --brand-3: #ff6b9d;
  --ink: #1a1a2e;
  --ink-2: #2d2d44;
  --bg: #ffffff;
  --bg-2: #f7f7fb;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.55);
  --line: #e6e6ef;
  --muted: #5b5b6e;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 8px 30px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 18px 50px rgba(26, 26, 46, 0.16);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

body.dark {
  --bg: #12121c;
  --bg-2: #1a1a28;
  --glass: rgba(30, 30, 46, 0.55);
  --glass-border: rgba(255, 255, 255, 0.08);
  --ink: #eaeaf2;
  --ink-2: #c9c9d8;
  --line: #2a2a3c;
  --muted: #9a9ab0;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

ul {
  list-style: none;
}

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

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.logo .mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-3) 55%, var(--brand-2));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(230, 57, 70, 0.35);
  transition: transform 0.35s var(--ease);
}

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

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 15px;
  color: var(--ink-2);
}

.nav-links a {
  position: relative;
  padding: 4px 0;
}

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

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

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

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

.icon-btn {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  transition: all 0.25s var(--ease);
}

.icon-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(230, 57, 70, 0.18);
}

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

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}

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

.search-box button {
  border: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-radius: 7px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 13px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.search-box button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.menu-toggle {
  display: none;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.mobile-menu.open {
  display: block;
  animation: slideDown 0.32s var(--ease);
}

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

.mobile-menu a {
  display: block;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  transition: background-color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.mobile-menu a:hover {
  background: rgba(230, 57, 70, 0.07);
  padding-left: 26px;
  color: var(--brand);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 14px 0;
}

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

.breadcrumb span {
  margin: 0 6px;
}

/* ---------- Hero / Gradient Banner ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 42%, #5a1f33 78%, #7a2a3d 100%);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(244, 162, 97, 0.28), transparent 42%),
    radial-gradient(circle at 82% 72%, rgba(230, 57, 70, 0.32), transparent 46%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  padding: 56px 20px 64px;
}

.hero h1 {
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0.5px;
  max-width: 820px;
  background: linear-gradient(120deg, #ffffff 30%, #ffd8c2 70%, #ffb3b3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 30px rgba(230, 57, 70, 0.18);
}

.hero .lead {
  margin-top: 16px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: #d8d8e6;
  max-width: 760px;
}

.hero .cta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-3) 50%, var(--brand-2));
  color: #fff;
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 34px rgba(230, 57, 70, 0.5);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 34px;
}

.stat {
  min-width: 96px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 162, 97, 0.55);
}

.stat .num {
  font-size: 26px;
  font-weight: 900;
  color: var(--brand-2);
  line-height: 1.2;
}

.stat .lbl {
  font-size: 13px;
  color: #c8c8da;
}

.hero-decoration {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 420px;
  height: 420px;
  opacity: 0.18;
  z-index: 1;
  animation: floatSpin 26s linear infinite;
}

@keyframes floatSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 56px 0;
  position: relative;
}

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

.section-head {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-head h2 {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 900;
  letter-spacing: 0.4px;
  line-height: 1.35;
  position: relative;
  padding-left: 16px;
}

.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  bottom: 0.22em;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- Grid & Cards ---------- */
.grid {
  display: grid;
  gap: 20px;
}

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

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

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

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.06), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

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

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

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

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

.card ul {
  font-size: 14px;
  line-height: 2.1;
  color: var(--muted);
}

.card ul a {
  display: inline-block;
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.card ul a:hover {
  color: var(--brand);
  transform: translateX(4px);
}

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(230, 57, 70, 0.1);
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 10px;
  transition: background-color 0.25s var(--ease);
}

.card:hover .tag {
  background: rgba(230, 57, 70, 0.18);
}

/* ---------- Banner / Carousel ---------- */
.banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #2d2d44 0%, #4a1f33 55%, #7a2a3d 100%);
  color: #fff;
  min-height: 200px;
  box-shadow: var(--shadow-lg);
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(244, 162, 97, 0.35), transparent 40%),
    radial-gradient(circle at 8% 88%, rgba(230, 57, 70, 0.3), transparent 42%);
  pointer-events: none;
}

.slide {
  display: none;
  padding: 36px 30px 56px;
  position: relative;
  z-index: 1;
}

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

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

.slide h3 {
  font-size: 22px;
  font-weight: 900;
}

.slide p {
  margin-top: 10px;
  color: #d6d6e4;
  font-size: 15px;
  max-width: 640px;
}

.banner-dots {
  position: absolute;
  bottom: 16px;
  right: 22px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease), width 0.3s var(--ease);
}

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

.dot.active {
  background: var(--brand-2);
  width: 22px;
  border-radius: 999px;
}

/* ---------- Articles ---------- */
.article-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  transition: padding-left 0.3s var(--ease);
}

.article-item:hover {
  padding-left: 8px;
}

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

.article-item h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.5;
}

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

.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.article-item p {
  font-size: 14.5px;
  color: var(--muted);
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  transition: transform 0.25s var(--ease), letter-spacing 0.25s var(--ease);
}

.read-more:hover {
  transform: translateX(5px);
  letter-spacing: 0.4px;
}

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

.faq-item:hover {
  border-color: rgba(230, 57, 70, 0.45);
}

.faq-item.open {
  border-color: var(--brand);
  box-shadow: 0 10px 28px rgba(230, 57, 70, 0.12);
}

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

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

.faq-q .plus {
  color: var(--brand);
  font-size: 20px;
  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 var(--ease);
  padding: 0 20px;
  color: var(--muted);
  font-size: 14.5px;
}

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

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 56px;
  margin-bottom: 26px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(230, 57, 70, 0.3);
  transition: transform 0.3s var(--ease);
}

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

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

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

/* ---------- Author ---------- */
.author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-3) 55%, var(--brand-2));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
}

.author-box h3 {
  font-size: 16px;
  font-weight: 800;
}

.author-box p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

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

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.contact-item:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.contact-item .ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(230, 57, 70, 0.1);
  display: grid;
  place-items: center;
  color: var(--brand);
  flex-shrink: 0;
  font-size: 16px;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.contact-item:hover .ic {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  transform: rotate(-6deg);
}

.contact-item h4 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 3px;
}

.contact-item p {
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Footer ---------- */
footer.site {
  background: #12121c;
  color: #b8b8cc;
  padding: 48px 0 24px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

footer.site::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-3), var(--brand-2), var(--brand));
  background-size: 200% 100%;
  animation: gradientShift 6s linear infinite;
}

@keyframes gradientShift {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 200% 50%;
  }
}

footer.site h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
}

footer.site a:hover {
  color: var(--brand-2);
}

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

.footer-grid ul {
  list-style: none;
  font-size: 13.5px;
  line-height: 2.1;
}

.footer-grid ul a {
  transition: padding-left 0.25s var(--ease), color 0.25s var(--ease);
  display: inline-block;
}

.footer-grid ul a:hover {
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid #2a2a3c;
  margin-top: 34px;
  padding-top: 20px;
  font-size: 13px;
  color: #8a8aa0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.footer-bottom a {
  margin-left: 14px;
  transition: color 0.25s var(--ease);
}

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

/* ---------- Back to top ---------- */
#toTop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: none;
  place-items: center;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.4);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#toTop.show {
  display: grid;
  animation: popIn 0.3s var(--ease);
}

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

#toTop:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 32px rgba(230, 57, 70, 0.55);
}

/* ---------- Anchor nav ---------- */
.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.anchor-nav a {
  font-size: 13.5px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  background: var(--bg);
  transition: all 0.25s var(--ease);
}

.anchor-nav a:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(230, 57, 70, 0.16);
}

/* ---------- Table ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bg);
}

th,
td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
}

th {
  background: var(--bg-2);
  font-weight: 800;
}

tbody tr {
  transition: background-color 0.2s var(--ease);
}

tbody tr:hover {
  background: rgba(230, 57, 70, 0.05);
}

/* ---------- Blockquote ---------- */
blockquote {
  border-left: 4px solid var(--brand);
  background: var(--bg-2);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  color: var(--ink-2);
  font-size: 14.5px;
  margin: 18px 0;
  position: relative;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

blockquote:hover {
  border-left-color: var(--brand-2);
  transform: translateX(4px);
}

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

/* ---------- Focus visible (accessibility) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Reduced motion ---------- */
@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;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-decoration {
    width: 320px;
    height: 320px;
    right: -70px;
    top: -70px;
  }
}

@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    gap: 16px;
    font-size: 14px;
  }
  .search-box input {
    width: 100px;
  }
}

@media (max-width: 760px) {
  .nav-links,
  .search-box {
    display: none;
  }
  .menu-toggle {
    display: grid;
  }
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero .wrap {
    padding: 40px 20px 48px;
  }
  .hero-decoration {
    width: 240px;
    height: 240px;
    right: -80px;
    top: -60px;
    opacity: 0.14;
  }
  .hero-stats {
    gap: 12px;
  }
  .stat {
    flex: 1 1 calc(50% - 12px);
    min-width: 0;
  }
  .stat .num {
    font-size: 22px;
  }
  .section {
    padding: 40px 0;
  }
  .section-head h2 {
    padding-left: 14px;
  }
  .slide {
    padding: 28px 22px 52px;
  }
  .slide h3 {
    font-size: 19px;
  }
  .card {
    padding: 20px;
  }
  .author-box {
    flex-direction: row;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-bottom a {
    margin-left: 0;
    margin-right: 14px;
  }
  #toTop {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
  .article-item:hover {
    padding-left: 0;
  }
}

@media (max-width: 400px) {
  .logo span:not(.mark) {
    font-size: 15px;
  }
  .btn {
    padding: 11px 18px;
    font-size: 14px;
  }
  .stat {
    flex: 1 1 100%;
  }
}