:root {
  --brand: #f5c518;
  --brand-2: #ffb300;
  --brand-3: #ffe066;
  --brand-dark: #d9a900;
  --text: #1f2328;
  --text-soft: #5a6270;
  --text-mute: #8a93a0;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-card: #ffffff;
  --border: #e6e9ef;
  --link: #0b6bcb;
  --link-hover: #0854a0;
  --shadow-sm: 0 2px 8px rgba(20, 24, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 24, 32, 0.10);
  --shadow-lg: 0 18px 48px rgba(20, 24, 32, 0.16);
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.55);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --grad-hero: linear-gradient(135deg, #fff4c2 0%, #ffe066 35%, #ffd23f 70%, #f5c518 100%);
  --grad-accent: linear-gradient(135deg, #f5c518 0%, #ffb300 100%);
  --grad-soft: linear-gradient(135deg, #fffdf5 0%, #fff8dc 100%);
}

body.dark-mode {
  --brand: #f5c518;
  --brand-2: #ffc933;
  --brand-3: #ffe680;
  --brand-dark: #ffd84d;
  --text: #e9edf3;
  --text-soft: #b6bec9;
  --text-mute: #8a93a0;
  --bg: #101317;
  --bg-soft: #171b21;
  --bg-card: #1b2027;
  --border: #2a313a;
  --link: #6fb4ff;
  --link-hover: #9ccbff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
  --glass-bg: rgba(24, 28, 34, 0.62);
  --glass-border: rgba(255, 255, 255, 0.10);
  --grad-hero: linear-gradient(135deg, #2a2408 0%, #3a3009 40%, #4a3c0a 75%, #5a480c 100%);
  --grad-accent: linear-gradient(135deg, #f5c518 0%, #ffb300 100%);
  --grad-soft: linear-gradient(135deg, #171b21 0%, #1e242c 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

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

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ Header ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  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 {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 20px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--text);
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: transform 0.25s var(--ease);
}

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

.logo svg {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(245, 197, 24, 0.45);
  transition: transform 0.4s var(--ease);
}

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

.logo-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

#main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

#main-nav a {
  display: inline-block;
  padding: 6px 10px;
  font-size: 15px;
  color: var(--text);
  border-radius: var(--radius-pill);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

#main-nav a:hover {
  background: var(--bg-soft);
  color: var(--brand-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

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

.site-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.18);
}

.site-search input {
  width: 180px;
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  border-radius: var(--radius-pill);
  outline: none;
}

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

.site-search button,
#theme-toggle,
#menu-toggle {
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--grad-accent);
  color: #1f2328;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

#theme-toggle,
#menu-toggle {
  background: var(--bg-soft);
  color: var(--text);
  border-color: var(--border);
}

.site-search button:hover,
#theme-toggle:hover,
#menu-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.site-search button:active,
#theme-toggle:active,
#menu-toggle:active {
  transform: translateY(0) scale(0.98);
}

#menu-toggle {
  display: none;
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 20px 0;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: var(--text-mute);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--text-mute);
}

.breadcrumb [aria-current="page"] {
  color: var(--text-soft);
  font-weight: 600;
}

/* ============ Main sections ============ */
main {
  display: block;
}

main > section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 20px;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.35s var(--ease);
}

main > section:last-of-type {
  border-bottom: none;
}

h1 {
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.35;
  margin: 0 0 18px;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, var(--text) 30%, var(--brand-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

h2 {
  position: relative;
  font-size: clamp(20px, 2.4vw, 26px);
  margin: 0 0 20px;
  padding-left: 16px;
  letter-spacing: 0.3px;
  line-height: 1.4;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  bottom: 0.22em;
  width: 6px;
  border-radius: var(--radius-pill);
  background: var(--grad-accent);
  box-shadow: 0 0 12px rgba(245, 197, 24, 0.55);
}

h3 {
  font-size: 18px;
  margin: 24px 0 10px;
  color: var(--text);
  line-height: 1.5;
}

h4 {
  font-size: 16px;
  margin: 16px 0 6px;
}

p {
  margin: 0 0 14px;
  color: var(--text-soft);
}

article p {
  color: var(--text-soft);
}

ul,
ol {
  padding-left: 22px;
  margin: 0 0 14px;
}

li {
  margin-bottom: 6px;
  color: var(--text-soft);
}

li::marker {
  color: var(--brand-dark);
}

.note {
  font-size: 13px;
  color: var(--text-mute);
  font-style: italic;
}

/* ============ Hero ============ */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  align-items: start;
  padding-top: 36px;
}

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

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.45), transparent 55%);
  mix-blend-mode: soft-light;
}

.slide {
  display: none;
  position: relative;
  animation: slideFade 0.6s var(--ease);
}

.slide.is-active {
  display: block;
}

.slide svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.slide-caption {
  padding: 18px 22px 22px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border);
}

.slide-caption h2 {
  border: none;
  padding: 0;
  margin: 0 0 6px;
  font-size: 20px;
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--text);
}

.slide-caption h2::before {
  display: none;
}

.slide-caption p {
  margin: 0;
  font-size: 15px;
  color: var(--text-soft);
}

.slider-controls {
  position: absolute;
  right: 14px;
  top: 14px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.slider-controls button {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.slider-controls button:hover {
  background: var(--grad-accent);
  color: #1f2328;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.slider-controls button:active {
  transform: scale(0.96);
}

.hero-intro {
  padding: 4px 0;
}

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

.hero-points {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-points li {
  position: relative;
  margin: 0;
  padding: 12px 14px 12px 40px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.hero-points li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #1f2328;
  background: var(--grad-accent);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(245, 197, 24, 0.5);
}

.hero-points li:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: 15px;
  color: var(--text-soft);
  padding: 14px 18px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat {
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============ Anchor nav ============ */
.anchor-nav {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--header-h);
  z-index: 900;
}

.anchor-nav ul {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 20px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 14px;
}

.anchor-nav a {
  display: inline-block;
  padding: 4px 12px;
  color: var(--text-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: all 0.2s var(--ease);
}

.anchor-nav a:hover {
  color: var(--text);
  background: var(--bg-soft);
  border-color: var(--border);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ============ Articles ============ */
#articles > p {
  font-size: 15px;
}

#articles article {
  position: relative;
  padding: 20px 22px;
  margin-bottom: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
  overflow: hidden;
}

#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-accent);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}

#articles article:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

#articles article:hover::before {
  opacity: 1;
}

#articles article h3 {
  margin-top: 0;
  font-size: 17px;
}

#articles article h3 a,
#articles article a {
  font-weight: 600;
}

#articles article > p:nth-of-type(1) {
  font-size: 13px;
  color: var(--text-mute);
}

#articles article > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: all 0.2s var(--ease);
}

#articles article > a::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}

#articles article > a:hover {
  background: var(--grad-accent);
  color: #1f2328;
  border-color: transparent;
  text-decoration: none;
}

#articles article > a:hover::after {
  transform: translateX(3px);
}

/* ============ FAQ ============ */
#faq details {
  padding: 14px 18px;
  margin-bottom: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

#faq details:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

#faq details[open] {
  background: var(--grad-soft);
  border-color: var(--brand);
}

#faq summary {
  position: relative;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  padding-right: 28px;
  transition: color 0.2s var(--ease);
}

#faq summary::-webkit-details-marker {
  display: none;
}

#faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  color: #1f2328;
  background: var(--grad-accent);
  border-radius: 50%;
  transition: transform 0.3s var(--ease);
}

#faq details[open] summary {
  color: var(--brand-dark);
}

#faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

#faq details p {
  margin: 12px 0 0;
  animation: fadeIn 0.35s var(--ease);
}

/* ============ HowTo ============ */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

#howto ol li {
  position: relative;
  counter-increment: step;
  padding: 12px 16px 12px 52px;
  margin-bottom: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #1f2328;
  background: var(--grad-accent);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(245, 197, 24, 0.45);
}

#howto ol li:hover {
  transform: translateX(4px);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

/* ============ Contact ============ */
#contact ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

#contact ul li {
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 15px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

#contact ul li:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

/* ============ Sitemap & Links ============ */
#sitemap nav ul,
#links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px 16px;
}

#sitemap nav li,
#links li {
  margin: 0;
}

#sitemap nav a,
#links a {
  display: block;
  padding: 8px 12px;
  font-size: 14.5px;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
}

#sitemap nav a:hover,
#links a:hover {
  color: var(--text);
  background: var(--grad-soft);
  border-color: var(--brand);
  text-decoration: none;
  transform: translateX(3px);
}

/* ============ Legal / EEAT ============ */
#legal article,
#eeat article {
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ============ Footer ============ */
#site-footer {
  position: relative;
  margin-top: 24px;
  padding: 40px 20px 20px;
  background: var(--grad-soft);
  border-top: 1px solid var(--border);
}

#site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-accent);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 28px;
}

.footer-inner h2,
.footer-inner h3 {
  font-size: 16px;
  margin: 0 0 12px;
  color: var(--text);
}

.footer-inner h2 {
  padding-left: 0;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.footer-inner h2::before {
  display: none;
}

.footer-inner p {
  font-size: 14px;
  margin: 0 0 8px;
  color: var(--text-soft);
}

.footer-inner ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.footer-inner li {
  margin-bottom: 8px;
  color: var(--text-soft);
}

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

.footer-inner a:hover {
  color: var(--brand-dark);
  padding-left: 3px;
  text-decoration: none;
}

.copyright {
  max-width: 1240px;
  margin: 28px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-mute);
  text-align: center;
}

/* ============ Back to top ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1001;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #1f2328;
  background: var(--grad-accent);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.2s var(--ease);
}

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

#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 52px rgba(245, 197, 24, 0.5);
}

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

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

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

svg.is-loaded {
  opacity: 1;
  transition: opacity 0.6s var(--ease);
}

.search-focus {
  outline: 3px solid var(--brand);
  outline-offset: 6px;
  border-radius: var(--radius);
  animation: pulse 1.2s var(--ease) 2;
}

/* ============ Keyframes ============ */
@keyframes slideFade {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.55);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(245, 197, 24, 0);
  }
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

@media (max-width: 860px) {
  #main-nav {
    display: none;
    width: 100%;
    order: 4;
    padding-top: 6px;
    border-top: 1px solid var(--border);
    margin-top: 6px;
  }

  #main-nav.is-open {
    display: block;
    animation: fadeIn 0.3s var(--ease);
  }

  #main-nav ul {
    flex-direction: column;
    gap: 2px;
    padding: 6px 0;
  }

  #main-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
  }

  #menu-toggle {
    display: inline-block;
  }

  .header-tools {
    gap: 6px;
  }

  .site-search input {
    width: 120px;
  }

  .anchor-nav {
    position: static;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 8px 14px;
    gap: 10px;
  }

  .logo {
    font-size: 18px;
  }

  .logo svg {
    width: 30px;
    height: 30px;
  }

  main > section {
    padding: 32px 14px;
  }

  .breadcrumb {
    padding: 12px 14px 0;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    font-size: 14px;
    padding: 12px 14px;
  }

  .stat {
    font-size: 19px;
  }

  .site-search {
    flex: 1 1 100%;
    order: 5;
  }

  .site-search input {
    width: 100%;
    flex: 1;
  }

  .header-tools {
    flex-wrap: wrap;
    width: 100%;
  }

  .slider-controls {
    position: static;
    padding: 0 14px 14px;
    justify-content: flex-end;
  }

  .slide-caption {
    padding: 14px 16px 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #contact ul {
    grid-template-columns: 1fr;
  }

  #back-to-top {
    right: 14px;
    bottom: 14px;
    padding: 8px 12px;
    font-size: 13px;
  }

  #legal article,
  #eeat article {
    padding: 18px 16px;
  }
}

@media (max-width: 380px) {
  .site-search button,
  #theme-toggle,
  #menu-toggle {
    padding: 6px 10px;
    font-size: 13px;
  }

  h1 {
    font-size: 22px;
  }
}

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

/* ============ Print ============ */
@media print {
  #site-header,
  .anchor-nav,
  #back-to-top,
  .slider-controls,
  .site-search,
  #theme-toggle,
  #menu-toggle {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  main > section {
    border-bottom: 1px solid #ccc;
    padding: 16px 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}