:root {
  --primary: #2c5f8d;
  --primary-light: #4a7fb5;
  --primary-dark: #1e4467;
  --accent: #e8734a;
  --accent-light: #f0956f;
  --bg: #f4f7fb;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.65);
  --bg-glass-strong: rgba(255, 255, 255, 0.82);
  --text: #1f2d3d;
  --text-secondary: #4a5a6a;
  --text-muted: #7a8a9a;
  --border: rgba(44, 95, 141, 0.12);
  --border-strong: rgba(44, 95, 141, 0.22);
  --shadow-sm: 0 1px 3px rgba(31, 45, 61, 0.06), 0 1px 2px rgba(31, 45, 61, 0.04);
  --shadow-md: 0 4px 16px rgba(31, 45, 61, 0.08), 0 2px 6px rgba(31, 45, 61, 0.04);
  --shadow-lg: 0 12px 32px rgba(31, 45, 61, 0.12), 0 4px 12px rgba(31, 45, 61, 0.06);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-full: 999px;
  --header-h: 60px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-hero: linear-gradient(135deg, #1e4467 0%, #2c5f8d 35%, #4a7fb5 70%, #6a9fd0 100%);
  --gradient-accent: linear-gradient(135deg, #e8734a 0%, #f0956f 100%);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #6a9fd0;
    --primary-light: #8ab8e0;
    --primary-dark: #4a7fb5;
    --accent: #f0956f;
    --accent-light: #f5b394;
    --bg: #0f1620;
    --bg-elevated: #1a2432;
    --bg-glass: rgba(26, 36, 50, 0.6);
    --bg-glass-strong: rgba(26, 36, 50, 0.85);
    --text: #e4ebf2;
    --text-secondary: #b0bfcf;
    --text-muted: #7a8a9a;
    --border: rgba(138, 184, 224, 0.14);
    --border-strong: rgba(138, 184, 224, 0.26);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
    --gradient-hero: linear-gradient(135deg, #0a1520 0%, #142535 40%, #1e4467 80%, #2c5f8d 100%);
  }
}

*,
*::before,
*::after {
  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: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(74, 127, 181, 0.07) 0%, transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(232, 115, 74, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

@media (min-width: 720px) {
  body {
    font-size: 16px;
  }
}

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

a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 400px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width: 720px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 1100px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* ============ HEADER ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass-strong);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), background var(--transition);
}

header:hover {
  box-shadow: var(--shadow-md);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  max-width: 1240px;
  margin: 0 auto;
  min-height: var(--header-h);
}

@media (min-width: 720px) {
  .nav-bar {
    padding: 12px 32px;
  }
}

@media (min-width: 1100px) {
  .nav-bar {
    padding: 12px 40px;
  }
}

.logo {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
  white-space: nowrap;
  position: relative;
  padding-left: 14px;
}

.logo::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 20px;
  border-radius: 3px;
  background: var(--gradient-accent);
}

@media (min-width: 720px) {
  .logo {
    font-size: 21px;
  }
}

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

nav a {
  display: inline-block;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  text-decoration: none;
}

nav a:hover {
  color: var(--primary);
  background: rgba(74, 127, 181, 0.1);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  background: var(--gradient-hero);
  color: #fff;
  padding: 56px 16px 64px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 720px) {
  .hero {
    padding: 80px 32px 96px;
  }
}

@media (min-width: 1100px) {
  .hero {
    padding: 100px 40px 120px;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(232, 115, 74, 0.22) 0%, transparent 55%);
  z-index: -1;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 100%, 100% 55%, 50% 100%, 0 55%);
  z-index: 1;
  pointer-events: none;
}

.hero h1 {
  position: relative;
  font-size: 26px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  animation: heroFadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@media (min-width: 480px) {
  .hero h1 {
    font-size: 32px;
  }
}

@media (min-width: 720px) {
  .hero h1 {
    font-size: 42px;
  }
}

@media (min-width: 1100px) {
  .hero h1 {
    font-size: 48px;
  }
}

.hero p {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  animation: heroFadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}

@media (min-width: 720px) {
  .hero p {
    font-size: 17px;
  }
}

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

/* ============ SECTIONS ============ */
main {
  position: relative;
}

section {
  padding: 40px 0;
}

@media (min-width: 720px) {
  section {
    padding: 56px 0;
  }
}

@media (min-width: 1100px) {
  section {
    padding: 72px 0;
  }
}

section:first-of-type {
  padding-top: 32px;
}

@media (min-width: 720px) {
  section:first-of-type {
    padding-top: 40px;
  }
}

/* ============ CARDS ============ */
.card {
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition);
}

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

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

@media (min-width: 720px) {
  .card {
    padding: 24px;
    margin-bottom: 22px;
  }
}

@media (min-width: 1100px) {
  .card {
    padding: 28px 32px;
  }
}

/* ============ HEADINGS ============ */
h2 {
  position: relative;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 800;
  color: var(--text);
  padding-left: 16px;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 5px;
  border-radius: 3px;
  background: var(--gradient-accent);
}

@media (min-width: 720px) {
  h2 {
    font-size: 26px;
  }
}

@media (min-width: 1100px) {
  h2 {
    font-size: 29px;
    margin-bottom: 22px;
  }
}

h3 {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 22px 0 10px;
  letter-spacing: -0.005em;
}

@media (min-width: 720px) {
  h3 {
    font-size: 19px;
    margin: 26px 0 12px;
  }
}

h4 {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--text);
  margin: 16px 0 8px;
}

@media (min-width: 720px) {
  h4 {
    font-size: 16px;
  }
}

/* ============ TEXT ============ */
p {
  margin-bottom: 14px;
  text-align: justify;
  color: var(--text-secondary);
  line-height: 1.78;
}

p:last-child {
  margin-bottom: 0;
}

/* ============ GRID ============ */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 18px 0;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

.grid > div {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.grid > div::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(74, 127, 181, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.grid > div:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.grid > div:hover::after {
  opacity: 1;
}

.grid h3 {
  margin-top: 0;
  font-size: 16px;
  color: var(--primary-dark);
}

@media (min-width: 720px) {
  .grid h3 {
    font-size: 17px;
  }
}

.grid p {
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 0;
  color: var(--text-muted);
}

/* ============ ARTICLE ITEMS ============ */
.article-item {
  padding: 16px 0;
  border-bottom: 1px dashed var(--border-strong);
  transition: padding-left var(--transition);
}

.article-item:first-child {
  padding-top: 4px;
}

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

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

.article-item h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 16px;
  color: var(--primary-dark);
  transition: color var(--transition);
}

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

@media (min-width: 720px) {
  .article-item h3 {
    font-size: 18px;
  }
}

.article-item time {
  display: inline-block;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
  padding: 2px 10px;
  background: rgba(74, 127, 181, 0.08);
  border-radius: var(--radius-full);
  letter-spacing: 0.01em;
}

.article-item p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.article-item a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  padding: 4px 0;
  transition: gap var(--transition), color var(--transition);
}

.article-item a:hover {
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
}

.article-item a::after {
  content: "→";
  transition: transform var(--transition);
}

.article-item a:hover::after {
  transform: translateX(2px);
}

/* ============ IMG WRAP ============ */
.img-wrap {
  margin: 20px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  line-height: 0;
}

.img-wrap img {
  width: 100%;
  border-radius: var(--radius-md);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.img-wrap:hover img {
  transform: scale(1.03);
}

/* ============ LISTS ============ */
ol,
ul {
  margin: 12px 0 16px 22px;
  color: var(--text-secondary);
}

li {
  margin-bottom: 8px;
  line-height: 1.72;
  font-size: 14.5px;
}

@media (min-width: 720px) {
  li {
    font-size: 15px;
  }
}

li::marker {
  color: var(--accent);
  font-weight: 700;
}

/* ============ FAQ ============ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
  transition: background var(--transition);
}

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

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  padding: 14px 36px 14px 0;
  list-style: none;
  position: relative;
  transition: color var(--transition);
  border-radius: var(--radius-sm);
}

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

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--transition), border-color var(--transition);
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
  border-color: var(--accent);
}

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

.faq-item[open] summary {
  color: var(--primary-dark);
}

.faq-item p {
  margin-top: 4px;
  margin-bottom: 14px;
  padding: 14px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
  background: rgba(74, 127, 181, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  animation: faqSlide 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@media (min-width: 720px) {
  .faq-item summary {
    font-size: 16px;
  }
  .faq-item p {
    font-size: 14.5px;
  }
}

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

/* ============ TABLE ============ */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 18px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  background: var(--bg-elevated);
}

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

th {
  background: rgba(74, 127, 181, 0.1);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

td {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.6;
  word-break: break-word;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr,
table tr {
  transition: background var(--transition);
}

table tr:hover td {
  background: rgba(74, 127, 181, 0.05);
}

@media (max-width: 560px) {
  table {
    font-size: 13px;
  }
  th,
  td {
    padding: 10px 10px;
  }
  th {
    font-size: 12.5px;
  }
  td {
    font-size: 13px;
  }
}

/* ============ FOOTER ============ */
footer {
  position: relative;
  background: linear-gradient(160deg, #14212e 0%, #1a2d3f 100%);
  color: #c8d3de;
  padding: 48px 16px 24px;
  margin-top: 48px;
  overflow: hidden;
}

@media (min-width: 720px) {
  footer {
    padding: 56px 32px 28px;
    margin-top: 64px;
  }
}

@media (min-width: 1100px) {
  footer {
    padding: 64px 40px 32px;
    margin-top: 80px;
  }
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
}

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

footer h3 {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-left: 12px;
  position: relative;
}

footer h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: var(--gradient-accent);
}

/* ============ FRIEND LINKS ============ */
.friend-links {
  margin-bottom: 32px;
}

.friend-links ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  margin: 0;
  padding: 0;
}

@media (min-width: 480px) {
  .friend-links ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 720px) {
  .friend-links ul {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 20px;
  }
}

@media (min-width: 1024px) {
  .friend-links ul {
    grid-template-columns: repeat(5, 1fr);
  }
}

.friend-links li {
  margin: 0;
}

.friend-links a {
  display: inline-block;
  color: #9fb6cc;
  font-size: 13.5px;
  line-height: 1.6;
  padding: 4px 0;
  transition: color var(--transition), transform var(--transition);
  text-decoration: none;
  word-break: break-all;
}

.friend-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transform: translateX(2px);
}

@media (min-width: 720px) {
  .friend-links a {
    font-size: 14px;
  }
}

/* ============ FOOTER BOTTOM ============ */
.footer-bottom {
  border-top: 1px solid rgba(200, 211, 222, 0.14);
  margin-top: 28px;
  padding-top: 20px;
  font-size: 12.5px;
  line-height: 1.75;
  text-align: center;
  color: #8fa3b8;
}

.footer-bottom p {
  text-align: center;
  color: #8fa3b8;
  font-size: 12.5px;
  line-height: 1.75;
  margin-bottom: 6px;
}

.footer-bottom p:last-child {
  margin-bottom: 0;
}

/* ============ BACK TO TOP ============ */
.back-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  background: var(--gradient-hero);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  text-decoration: none;
}

.back-top:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 36px rgba(30, 68, 103, 0.4);
  filter: brightness(1.1);
}

@media (min-width: 720px) {
  .back-top {
    right: 28px;
    bottom: 28px;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

/* ============ SCROLL ANIMATION ============ */
@media (prefers-reduced-motion: no-preference) {
  section {
    animation: sectionReveal 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 22%;
  }

  @supports not (animation-timeline: view()) {
    section {
      animation: none;
    }
  }
}

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

/* ============ FOCUS / ACCESSIBILITY ============ */
a:focus-visible,
summary:focus-visible,
.back-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============ SELECTION ============ */
::selection {
  background: rgba(232, 115, 74, 0.25);
  color: var(--text);
}

/* ============ SCROLLBAR ============ */
@media (min-width: 720px) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-track {
    background: var(--bg);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg);
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
  }
}

/* ============ MOBILE NAV ============ */
@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  .nav-bar {
    justify-content: center;
  }
  .logo {
    font-size: 20px;
  }
}

/* ============ SITEMAP SECTION ============ */
#sitemap ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  margin: 0;
  padding: 0;
}

@media (min-width: 720px) {
  #sitemap ul {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 20px;
  }
}

@media (min-width: 1024px) {
  #sitemap ul {
    grid-template-columns: repeat(5, 1fr);
  }
}

#sitemap li {
  margin: 0;
}

#sitemap a {
  display: inline-block;
  font-size: 14px;
  padding: 4px 0;
  color: var(--primary);
  transition: color var(--transition), transform var(--transition);
}

#sitemap a:hover {
  color: var(--accent);
  transform: translateX(2px);
  text-decoration: none;
}

/* ============ HOWTO SECTION ============ */
#howto ol {
  counter-reset: howto-step;
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

#howto ol > li {
  counter-increment: howto-step;
  position: relative;
  padding-left: 40px;
  margin-bottom: 12px;
  min-height: 30px;
}

#howto ol > li::before {
  content: counter(howto-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-hero);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

#howto ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

#howto ul > li {
  position: relative;
  padding-left: 22px;
}

#howto ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ============ CONTACT SECTION ============ */
#contact table {
  margin-top: 16px;
}

#contact h3 {
  margin-top: 26px;
}

/* ============ 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;
  }
  .img-wrap:hover img {
    transform: none;
  }
}

/* ============ PRINT ============ */
@media print {
  header,
  .back-top,
  footer .friend-links {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}