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

:root {
  --brand: #1a5fb4;
  --brand-2: #0f3d7a;
  --brand-3: #2f7ad6;
  --accent: #e8590c;
  --accent-2: #cf4d08;
  --bg: #ffffff;
  --bg-2: #f5f7fa;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.6);
  --text: #1f2328;
  --text-2: #5a6472;
  --line: #e3e8ef;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(15, 61, 122, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 61, 122, 0.1);
  --shadow-lg: 0 18px 50px rgba(15, 61, 122, 0.16);
  --grad-hero: linear-gradient(135deg, #0f3d7a 0%, #1a5fb4 48%, #2f7ad6 100%);
  --grad-accent: linear-gradient(120deg, #e8590c 0%, #f08c3a 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  --bg: #0f141b;
  --bg-2: #161d27;
  --bg-glass: rgba(22, 29, 39, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #e8edf3;
  --text-2: #9aa7b6;
  --line: #263140;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.55);
  --grad-hero: linear-gradient(135deg, #0a2a55 0%, #123f7d 50%, #1a5fb4 100%);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

::selection {
  background: rgba(26, 95, 180, 0.22);
  color: var(--text);
}

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

a:hover {
  text-decoration: underline;
}

html[data-theme="dark"] a {
  color: #6aa9f0;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  z-index: 9999;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

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

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

.brand span small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: 0.5px;
}

nav.main-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}

nav.main-nav a {
  position: relative;
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 15px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

nav.main-nav a:hover {
  background: var(--bg-2);
  color: var(--brand);
  text-decoration: none;
}

html[data-theme="dark"] nav.main-nav a:hover {
  color: #6aa9f0;
}

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

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

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.14);
}

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

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

.search-box button {
  border: none;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.search-box button:hover {
  background: var(--brand-2);
  transform: translateY(-1px);
}

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

.icon-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px) rotate(8deg);
}

html[data-theme="dark"] .icon-btn:hover {
  color: #6aa9f0;
}

.menu-toggle {
  display: none;
}

.breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--text-2);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

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

section {
  padding: 56px 0;
  position: relative;
}

section.alt {
  background: var(--bg-2);
  transition: background-color 0.3s ease;
}

h1 {
  font-size: 34px;
  line-height: 1.35;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 27px;
  line-height: 1.4;
  margin-bottom: 12px;
}

h3 {
  font-size: 20px;
  margin: 22px 0 8px;
}

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

p {
  margin-bottom: 14px;
  color: var(--text-2);
}

.lead {
  font-size: 17px;
  color: var(--text);
}

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

.section-head .kicker {
  display: inline-block;
  font-size: 13px;
  color: var(--brand);
  background: rgba(26, 95, 180, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

html[data-theme="dark"] .section-head .kicker {
  color: #6aa9f0;
  background: rgba(106, 169, 240, 0.12);
}

.hero {
  background: var(--grad-hero);
  color: #fff;
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 620px;
  height: 620px;
  background: radial-gradient(
    circle,
    rgba(232, 89, 12, 0.35) 0%,
    rgba(232, 89, 12, 0) 68%
  );
  pointer-events: none;
  animation: floatGlow 14s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -8%;
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle,
    rgba(47, 122, 214, 0.45) 0%,
    rgba(47, 122, 214, 0) 70%
  );
  pointer-events: none;
  animation: floatGlow 18s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-40px, 30px, 0) scale(1.12);
  }
}

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

.hero p {
  color: rgba(255, 255, 255, 0.88);
}

.hero h1 {
  color: #fff;
  max-width: 820px;
  animation: heroIn 0.9s var(--ease) both;
}

.hero .lead {
  max-width: 760px;
  margin: 18px 0 26px;
  font-size: 17px;
  animation: heroIn 0.9s 0.1s var(--ease) both;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: heroIn 0.9s 0.2s var(--ease) both;
}

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

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

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(232, 89, 12, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 30px rgba(232, 89, 12, 0.45);
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-line {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}

.btn-line:hover {
  background: rgba(26, 95, 180, 0.08);
  box-shadow: 0 8px 20px rgba(26, 95, 180, 0.18);
}

html[data-theme="dark"] .btn-line {
  color: #6aa9f0;
  border-color: #3d7fc4;
}

html[data-theme="dark"] .btn-line:hover {
  background: rgba(106, 169, 240, 0.12);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
  max-width: 820px;
  animation: heroIn 0.9s 0.3s var(--ease) both;
}

.hero-stats .stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 16px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), background-color 0.3s ease;
}

.hero-stats .stat:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.18);
}

.hero-stats .num {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.hero-stats .lab {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.35s ease, border-color 0.3s ease;
}

.carousel:hover {
  box-shadow: var(--shadow-lg);
}

.slides {
  display: flex;
  transition: transform 0.55s var(--ease);
}

.slide {
  min-width: 100%;
  padding: 40px 44px;
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.slide .txt {
  flex: 1;
  min-width: 240px;
}

.slide .art {
  flex: none;
  width: 200px;
  transition: transform 0.5s var(--ease);
}

.slide:hover .art {
  transform: scale(1.05) rotate(-1.5deg);
}

.slide h3 {
  margin-top: 0;
  font-size: 22px;
}

.slide .tag {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1px;
}

.carousel-nav {
  position: absolute;
  bottom: 14px;
  right: 18px;
  display: flex;
  gap: 8px;
}

.carousel-nav button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease,
    transform 0.2s ease, border-color 0.2s ease;
}

.carousel-nav button:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: scale(1.08);
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 44px;
  display: flex;
  gap: 6px;
}

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

.carousel-dots button.active {
  background: var(--brand);
  width: 20px;
  border-radius: 999px;
}

html[data-theme="dark"] .carousel-dots button.active {
  background: #6aa9f0;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

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

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

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(26, 95, 180, 0.08) 0%,
    rgba(232, 89, 12, 0.06) 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 95, 180, 0.35);
}

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

.card > * {
  position: relative;
  z-index: 1;
}

.card h3 {
  margin-top: 0;
}

.card .ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(26, 95, 180, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--brand);
  transition: transform 0.35s var(--ease), background-color 0.3s ease;
}

html[data-theme="dark"] .card .ico {
  color: #6aa9f0;
  background: rgba(106, 169, 240, 0.12);
}

.card:hover .ico {
  transform: scale(1.1) rotate(-6deg);
  background: rgba(26, 95, 180, 0.16);
}

.card .ico svg {
  width: 24px;
  height: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  will-change: opacity, transform;
}

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

.article-list {
  display: grid;
  gap: 18px;
}

.article-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  align-items: start;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.article-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 95, 180, 0.3);
}

.article-item .thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-2);
}

.article-item .thumb svg {
  transition: transform 0.5s var(--ease);
}

.article-item:hover .thumb svg {
  transform: scale(1.06);
}

.article-item h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

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

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

.read-more {
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.25s ease, color 0.2s ease;
}

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

.article-body {
  max-width: 860px;
}

.article-body h3 {
  border-left: 4px solid var(--brand);
  padding-left: 12px;
}

html[data-theme="dark"] .article-body h3 {
  border-left-color: #6aa9f0;
}

details.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: var(--bg);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

details.faq:hover {
  border-color: rgba(26, 95, 180, 0.35);
}

details.faq[open] {
  box-shadow: var(--shadow-sm);
}

details.faq summary {
  padding: 16px 48px 16px 20px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease;
}

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

html[data-theme="dark"] details.faq summary:hover {
  color: #6aa9f0;
}

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

details.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--brand);
  font-weight: 400;
  transition: transform 0.3s var(--ease);
}

html[data-theme="dark"] details.faq summary::after {
  color: #6aa9f0;
}

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

details.faq .ans {
  padding: 0 20px 18px;
  color: var(--text-2);
  font-size: 15px;
  animation: fadeDown 0.35s var(--ease);
}

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

.steps {
  counter-reset: step;
  list-style: none;
  display: grid;
  gap: 14px;
}

.steps li {
  position: relative;
  padding: 18px 20px 18px 64px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.steps li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(26, 95, 180, 0.3);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.3s var(--ease), background-color 0.3s ease;
}

.steps li:hover::before {
  transform: scale(1.1);
  background: var(--accent);
}

.steps li h4 {
  margin: 0 0 4px;
}

.steps li p {
  margin: 0;
  font-size: 14px;
}

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

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

.case:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 89, 12, 0.3);
}

.case .body {
  padding: 20px;
}

.case h3 {
  margin-top: 0;
  font-size: 18px;
}

.case .role {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.5px;
}

blockquote.quote {
  position: relative;
  border-left: 4px solid var(--accent);
  background: var(--bg-2);
  padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0 0 14px;
  color: var(--text);
  font-size: 15px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

blockquote.quote:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

blockquote.quote footer {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-2);
}

.author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.author-box:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(26, 95, 180, 0.3);
}

.author-box .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: var(--brand);
  transition: transform 0.35s var(--ease);
}

.author-box:hover .avatar {
  transform: scale(1.06);
}

.author-box h4 {
  margin: 0 0 4px;
}

.author-box p {
  font-size: 14px;
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.info-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.info-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-2);
}

.info-list li strong {
  color: var(--text);
  min-width: 76px;
  display: inline-block;
}

.info-list .ic {
  color: var(--brand);
  flex: none;
  margin-top: 3px;
  font-size: 10px;
}

html[data-theme="dark"] .info-list .ic {
  color: #6aa9f0;
}

footer.site-footer {
  background: #0d1a2b;
  color: #c4cdd9;
  padding: 56px 0 24px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

footer.site-footer::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(
    circle,
    rgba(26, 95, 180, 0.35) 0%,
    rgba(26, 95, 180, 0) 70%
  );
  pointer-events: none;
}

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

footer.site-footer a {
  color: #c4cdd9;
  transition: color 0.2s ease;
}

footer.site-footer a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
}

footer h4 {
  color: #fff;
  font-size: 15px;
  margin: 0 0 14px;
}

footer ul {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 36px;
  padding-top: 20px;
  font-size: 13px;
  color: #8a97a8;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-brand svg {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--grad-accent);
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(232, 89, 12, 0.45);
  z-index: 200;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.back-top.show {
  display: flex;
  animation: popIn 0.35s var(--ease);
}

.back-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 12px 32px rgba(232, 89, 12, 0.55);
}

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

.toc {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 24px;
}

.toc h4 {
  margin: 0 0 10px;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-2);
  display: grid;
  gap: 4px;
}

.toc a {
  color: var(--text-2);
}

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

.note {
  background: rgba(232, 89, 12, 0.08);
  border: 1px solid rgba(232, 89, 12, 0.25);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-2);
  margin: 16px 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: var(--radius-sm);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

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

th {
  background: var(--bg-2);
  color: var(--text);
  font-weight: 600;
}

td {
  color: var(--text-2);
}

.badge {
  display: inline-block;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(26, 95, 180, 0.1);
  color: var(--brand);
  font-weight: 600;
  margin-right: 6px;
}

html[data-theme="dark"] .badge {
  color: #6aa9f0;
  background: rgba(106, 169, 240, 0.14);
}

@media (max-width: 980px) {
  nav.main-nav {
    position: fixed;
    inset: 66px 0 auto 0;
    background: var(--bg-glass);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
    padding: 12px 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  }

  nav.main-nav.open {
    transform: translateY(0);
  }

  nav.main-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  .menu-toggle {
    display: flex;
  }

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

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

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

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 22px;
  }

  .slide {
    padding: 26px 22px;
  }

  .slide .art {
    display: none;
  }

  .carousel-dots {
    left: 22px;
  }

  section {
    padding: 44px 0;
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .article-item {
    grid-template-columns: 1fr;
  }

  .article-item .thumb {
    display: none;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .hero-stats .num {
    font-size: 22px;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .search-box {
    display: none;
  }

  .back-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }
}

@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;
  }
}

@media print {
  header.site-header,
  footer.site-footer,
  .back-top,
  .carousel-nav,
  .carousel-dots,
  .hero-cta {
    display: none !important;
  }

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

  .card,
  .case,
  .article-item {
    box-shadow: none;
    border-color: #ccc;
  }
}