:root {
  --brand: #1F3A5F;
  --brand-deep: #16293F;
  --brand-soft: #E8EEF5;
  --accent: #C2410C;
  --accent-soft: #FEF0E7;
  --text-main: #17202A;
  --text-body: #243447;
  --text-sub: #4B5563;
  --text-muted: #5B6675;
  --bg-page: #F5F7FA;
  --bg-card: #FFFFFF;
  --bg-alt: #EEF2F7;
  --border: #D5DDE7;
  --link: #1D4ED8;
  --link-hover: #0B2A6F;
  --btn-text: #FFFFFF;
  --footer-bg: #16293F;
  --footer-text: #E5E7EB;
  --footer-sub: #B7C2D0;
  --shadow: 0 2px 10px rgba(23, 32, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(23, 32, 42, 0.14);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-blur: 14px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --grad-hero: linear-gradient(135deg, #1F3A5F 0%, #2C5282 45%, #C2410C 100%);
  --grad-accent: linear-gradient(120deg, #C2410C 0%, #EA580C 100%);
  --grad-soft: linear-gradient(135deg, #E8EEF5 0%, #F5F7FA 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  --brand: #8FB6E8;
  --brand-deep: #0F1A28;
  --brand-soft: #1B2A3D;
  --accent: #F59E6B;
  --accent-soft: #3A2A1C;
  --text-main: #F8FAFC;
  --text-body: #E5E7EB;
  --text-sub: #CBD5E1;
  --text-muted: #A8B4C4;
  --bg-page: #0B1220;
  --bg-card: #131C2B;
  --bg-alt: #182234;
  --border: #2A3A52;
  --link: #8FB6E8;
  --link-hover: #C7DDF7;
  --btn-text: #0B1220;
  --footer-bg: #0A1119;
  --footer-text: #E5E7EB;
  --footer-sub: #B7C2D0;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(19, 28, 43, 0.68);
  --glass-border: rgba(143, 182, 232, 0.18);
  --grad-hero: linear-gradient(135deg, #0F1A28 0%, #1B2A3D 48%, #7C3B1B 100%);
  --grad-accent: linear-gradient(120deg, #B45309 0%, #F59E6B 100%);
  --grad-soft: linear-gradient(135deg, #131C2B 0%, #0B1220 100%);
}

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

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

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

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

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

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

h1,
h2,
h3,
h4 {
  color: var(--text-main);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 1.9rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 0.6em;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5em;
}

h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4em;
}

p {
  margin-bottom: 1em;
  color: var(--text-body);
}

ul,
ol {
  padding-left: 1.4em;
  margin-bottom: 1em;
}

li {
  margin-bottom: 0.4em;
  color: var(--text-body);
}

blockquote {
  margin: 0;
}

.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(--brand);
  color: var(--btn-text);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.3s var(--ease);
}

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

.logo svg {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease);
}

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

.logo-text {
  color: var(--text-main);
  display: block;
}

.logo-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-sub);
}

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

.main-nav a {
  color: var(--text-body);
  font-size: 0.95rem;
  padding: 7px 12px;
  display: inline-block;
  border-radius: var(--radius-pill);
  position: relative;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--text-main);
  background: var(--brand-soft);
  text-decoration: none;
  transform: translateY(-1px);
}

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

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  transition: box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

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

.search-box input {
  border: none;
  outline: none;
  padding: 8px 14px;
  font-size: 0.9rem;
  width: 150px;
  color: var(--text-body);
  background: transparent;
  transition: width 0.3s var(--ease);
}

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

.search-box input:focus {
  width: 190px;
}

.search-box button {
  border: none;
  background: var(--grad-accent);
  color: #FFFFFF;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: filter 0.25s var(--ease);
}

.search-box button:hover {
  filter: brightness(1.08);
}

.theme-toggle,
.menu-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-body);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.theme-toggle:hover,
.menu-toggle:hover {
  background: var(--brand-soft);
  color: var(--text-main);
  border-color: var(--brand);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

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

.breadcrumb li::after {
  content: "›";
  margin-left: 6px;
  color: var(--text-muted);
}

.breadcrumb li:last-child::after {
  content: "";
}

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

.breadcrumb [aria-current] {
  color: var(--text-main);
  font-weight: 600;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  background: var(--grad-hero);
  color: #FFFFFF;
  padding: 56px 0 48px;
  overflow: hidden;
}

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

.hero::after {
  content: "";
  position: absolute;
  bottom: -180px;
  left: -100px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(245, 158, 107, 0.28) 0%, rgba(245, 158, 107, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

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

.hero h1 {
  color: #FFFFFF;
  font-size: 2.1rem;
  margin-bottom: 14px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.hero p {
  color: #E8EEF5;
  font-size: 1.02rem;
  max-width: 900px;
}

.hero .kw {
  color: #FFD9A8;
  font-weight: 700;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  font-size: 0.88rem;
  color: #D7E3F2;
}

.hero-meta span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.28s var(--ease), color 0.28s var(--ease);
}

.btn-primary {
  background: var(--grad-accent);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(194, 65, 12, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(194, 65, 12, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-outline:hover,
.btn-outline:focus {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* ============ Sections ============ */
.section {
  padding: 48px 0;
}

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

.section-title {
  position: relative;
  border-left: 5px solid var(--accent);
  padding-left: 16px;
  margin-bottom: 26px;
}

.section-title h2 {
  margin-bottom: 6px;
  background: linear-gradient(90deg, var(--text-main), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="dark"] .section-title h2 {
  background: linear-gradient(90deg, var(--text-main), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title p {
  color: var(--text-sub);
  margin: 0;
  font-size: 0.95rem;
}

/* ============ Cards ============ */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

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

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

.card h3 {
  color: var(--text-main);
}

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

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

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

.grid-2 > .card,
.grid-3 > .card,
.grid-4 > .card {
  margin-bottom: 0;
}

.stat-num {
  font-size: 2.1rem;
  font-weight: 800;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  line-height: 1.2;
}

.stat-label {
  color: var(--text-sub);
  font-size: 0.9rem;
}

/* ============ Carousel ============ */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

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

.slide {
  position: relative;
  min-width: 100%;
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  min-height: 220px;
}

.slide h3 {
  font-size: 1.35rem;
  color: var(--text-main);
  position: relative;
  z-index: 1;
}

.slide p {
  color: var(--text-body);
  margin: 0;
  position: relative;
  z-index: 1;
}

.slide-1 {
  background: linear-gradient(120deg, #E8EEF5 0%, #D6E3F2 55%, #C9DCF0 100%);
}

.slide-2 {
  background: linear-gradient(120deg, #FDF0E3 0%, #F7DFC6 55%, #F3D2AE 100%);
}

.slide-3 {
  background: linear-gradient(120deg, #E7F3EC 0%, #D3E9DC 55%, #C2E0CF 100%);
}

html[data-theme="dark"] .slide-1 {
  background: linear-gradient(120deg, #1B2A3D 0%, #22354C 60%, #2A4362 100%);
}

html[data-theme="dark"] .slide-2 {
  background: linear-gradient(120deg, #3A2A1C 0%, #4A3623 60%, #5A4029 100%);
}

html[data-theme="dark"] .slide-3 {
  background: linear-gradient(120deg, #1D3229 0%, #244034 60%, #2B4C3E 100%);
}

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

.carousel-dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  cursor: pointer;
  padding: 0;
  transition: background 0.28s var(--ease), transform 0.28s var(--ease), border-color 0.28s var(--ease);
}

.carousel-dots button:hover {
  transform: scale(1.3);
}

.carousel-dots button.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.25);
}

.carousel-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
}

.carousel-arrows button {
  pointer-events: auto;
  background: rgba(22, 41, 63, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.28s var(--ease), transform 0.28s var(--ease);
}

.carousel-arrows button:hover {
  background: rgba(22, 41, 63, 0.95);
  transform: scale(1.1);
}

/* ============ Article list ============ */
.article-item {
  border-bottom: none;
  padding: 24px;
}

.article-item h4 {
  font-size: 1.06rem;
  margin-bottom: 6px;
}

.article-item h4 a {
  color: var(--text-main);
  transition: color 0.25s var(--ease);
}

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

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

.article-summary {
  color: var(--text-body);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.read-more {
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.28s var(--ease), color 0.28s var(--ease);
}

.read-more:hover {
  gap: 9px;
  text-decoration: none;
}

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

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

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

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

.faq-q:hover {
  background: var(--bg-alt);
}

.faq-q .icon {
  color: var(--accent);
  font-weight: 800;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  transition: transform 0.35s var(--ease);
}

.faq-item.open .faq-q .icon {
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 18px 16px;
  color: var(--text-body);
  font-size: 0.95rem;
  display: none;
  animation: fadeSlide 0.35s var(--ease);
}

.faq-item.open .faq-a {
  display: block;
}

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

/* ============ Table ============ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 520px;
}

caption {
  text-align: left;
  padding: 14px 16px;
  color: var(--text-sub);
  font-size: 0.9rem;
}

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

th {
  background: var(--bg-alt);
  color: var(--text-main);
  font-weight: 700;
}

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

tbody tr:hover {
  background: var(--brand-soft);
}

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

/* ============ Steps ============ */
.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.steps li {
  position: relative;
  padding-left: 54px;
  margin-bottom: 18px;
  color: var(--text-body);
  transition: transform 0.3s var(--ease);
}

.steps li:hover {
  transform: translateX(4px);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #FFFFFF;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.35);
}

.steps li strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 2px;
}

/* ============ Author ============ */
.author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.author-avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease);
}

.card:hover .author-avatar {
  transform: scale(1.06) rotate(-3deg);
}

.author-info {
  flex: 1;
  min-width: 200px;
}

.author-info strong {
  color: var(--text-main);
}

.author-info p {
  font-size: 0.92rem;
  color: var(--text-body);
  margin-bottom: 0.4em;
}

/* ============ Contact ============ */
.contact-list {
  list-style: none;
  padding-left: 0;
}

.contact-list li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text-body);
}

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

.contact-list .label {
  color: var(--text-sub);
  min-width: 88px;
  flex: 0 0 auto;
  font-weight: 600;
}

/* ============ Footer ============ */
.site-footer {
  position: relative;
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 44px 0 18px;
  margin-top: 20px;
  overflow: hidden;
}

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

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

.site-footer h4 {
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 12px;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: var(--footer-text);
  font-size: 0.9rem;
}

.site-footer a:hover,
.site-footer a:focus {
  color: #FFFFFF;
  text-decoration: underline;
}

.site-footer ul {
  list-style: none;
  padding-left: 0;
}

.site-footer li {
  margin-bottom: 7px;
}

.footer-bottom {
  border-top: 1px solid #2A3A52;
  margin-top: 28px;
  padding-top: 16px;
  font-size: 0.84rem;
  color: var(--footer-sub);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

.footer-bottom a:hover {
  color: #FFFFFF;
}

/* ============ Back to top ============ */
#backTop {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 120;
  background: var(--grad-accent);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(194, 65, 12, 0.4);
  display: none;
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}

#backTop:hover {
  transform: translateY(-4px) scale(1.06);
  filter: brightness(1.08);
}

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

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

/* ============ Anchor nav ============ */
.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.anchor-nav a {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  padding: 6px 15px;
  font-size: 0.86rem;
  color: #FFFFFF;
  transition: background 0.28s var(--ease), transform 0.28s var(--ease), border-color 0.28s var(--ease);
}

.anchor-nav a:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: #FFFFFF;
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-2px);
}

/* ============ Misc ============ */
.note {
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  padding: 16px 18px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-body);
  font-size: 0.94rem;
  box-shadow: var(--shadow);
}

.note strong {
  color: var(--text-main);
}

.tag {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  font-size: 0.8rem;
  margin: 0 6px 6px 0;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.tag:hover {
  transform: translateY(-2px);
  background: var(--accent-soft);
}

html[data-theme="dark"] .tag {
  color: #E8EEF5;
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero h1 {
    font-size: 1.8rem;
  }
}

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

  .container {
    padding: 0 16px;
  }

  .header-inner {
    gap: 10px;
  }

  .main-nav {
    display: none;
    width: 100%;
    order: 5;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-md);
    margin-top: 6px;
    border: 1px solid var(--glass-border);
  }

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

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px;
  }

  .main-nav a {
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    width: 100%;
  }

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

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  h1 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 40px 0 34px;
  }

  .hero h1 {
    font-size: 1.55rem;
  }

  .hero p {
    font-size: 0.96rem;
  }

  .search-box input {
    width: 110px;
  }

  .search-box input:focus {
    width: 130px;
  }

  .slide {
    padding: 30px 22px;
    min-height: 200px;
  }

  .slide h3 {
    font-size: 1.15rem;
  }

  .section {
    padding: 36px 0;
  }

  .card {
    padding: 20px;
  }

  .carousel-arrows button {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .steps li {
    padding-left: 46px;
  }

  .steps li::before {
    width: 32px;
    height: 32px;
    font-size: 0.88rem;
  }

  #backTop {
    right: 14px;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 400px) {
  .search-box input {
    width: 88px;
  }

  .search-box input:focus {
    width: 104px;
  }

  .theme-toggle,
  .menu-toggle {
    padding: 7px 10px;
    font-size: 0.82rem;
  }
}

@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,
  .site-footer,
  #backTop,
  .carousel-arrows,
  .carousel-dots,
  .anchor-nav {
    display: none !important;
  }

  body {
    background: #FFFFFF;
    color: #000000;
  }

  .card {
    box-shadow: none;
    border: 1px solid #CCCCCC;
  }
}