:root {
  --brand: #1f2a44;
  --brand-2: #2e3d63;
  --brand-3: #3b4f7d;
  --accent: #f0b429;
  --accent-2: #e08e0b;
  --accent-soft: rgba(240, 180, 41, 0.16);
  --text: #1c2230;
  --muted: #5a6478;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --line: #e3e8f0;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.55);
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 8px 28px rgba(31, 42, 68, 0.10);
  --shadow-hover: 0 18px 44px rgba(31, 42, 68, 0.18);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-theme="dark"] {
  --brand: #0f1729;
  --brand-2: #1b2743;
  --brand-3: #26365c;
  --accent: #f5c451;
  --accent-2: #e0a11b;
  --accent-soft: rgba(245, 196, 81, 0.16);
  --text: #e7ecf5;
  --muted: #9aa7bd;
  --bg: #0d1320;
  --bg-soft: #131b2c;
  --line: #25314a;
  --glass: rgba(19, 27, 44, 0.62);
  --glass-border: rgba(255, 255, 255, 0.10);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 18px 44px rgba(0, 0, 0, 0.60);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

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

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

a {
  color: var(--brand-2);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

html[data-theme="dark"] a {
  color: var(--accent);
}

a:hover {
  text-decoration: underline;
}

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #1a1a1a;
  padding: 10px 16px;
  z-index: 9999;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(31, 42, 68, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  color: #fff;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.20);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.35s var(--ease);
}

html[data-theme="dark"] .site-header {
  background: rgba(15, 23, 41, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  transition: transform 0.3s var(--ease);
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  transition: transform 0.45s var(--ease), box-shadow 0.3s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 0 0 4px rgba(240, 180, 41, 0.18);
}

.brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #c9d3e8;
  letter-spacing: 1px;
}

.main-nav {
  margin-left: auto;
}

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

.main-nav a {
  color: #dfe6f5;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
  display: inline-block;
  position: relative;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

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

.main-nav a:hover::after,
.main-nav a:focus::after {
  transform: scaleX(1);
}

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

.icon-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  font-family: inherit;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.icon-btn:hover {
  background: var(--brand-2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.icon-btn:active {
  transform: translateY(0) scale(0.97);
}

.menu-toggle {
  display: none;
}

/* ============ Search ============ */
.search-wrap {
  position: relative;
}

.search-panel {
  position: absolute;
  right: 0;
  top: 46px;
  width: 320px;
  max-width: 86vw;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  color: var(--text);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: var(--shadow-hover);
  padding: 12px;
  display: none;
  animation: panelIn 0.28s var(--ease);
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.search-panel.open {
  display: block;
}

.search-panel input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.search-panel input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-results {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  max-height: 260px;
  overflow: auto;
}

.search-results li a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.search-results li a:hover {
  background: var(--bg-soft);
  text-decoration: none;
  transform: translateX(3px);
}

.search-empty {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 4px;
  margin: 0;
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  transition: background-color 0.35s var(--ease);
}

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

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

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

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

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

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

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 55%, var(--brand-3) 100%);
  color: #fff;
  padding: 52px 0 48px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -140px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 180, 41, 0.28), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
  animation: floatOrb 14s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -200px;
  left: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 150, 230, 0.22), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
  animation: floatOrb 18s ease-in-out infinite reverse;
}

@keyframes floatOrb {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-24px, 20px, 0) scale(1.06); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 34px;
  line-height: 1.35;
  margin: 0 0 14px;
  letter-spacing: 0.5px;
  animation: fadeUp 0.8s var(--ease) both;
}

.hero h1 .hl {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 8px;
  background: rgba(240, 180, 41, 0.22);
  border-radius: 4px;
  z-index: -1;
}

.hero-lead {
  font-size: 16.5px;
  color: #dbe3f3;
  margin: 0 0 20px;
  animation: fadeUp 0.8s 0.08s var(--ease) both;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: fadeUp 0.8s 0.16s var(--ease) both;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a1a1a;
  box-shadow: 0 6px 18px rgba(240, 180, 41, 0.28);
}

.btn-primary:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(240, 180, 41, 0.42);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.75);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
  animation: fadeUp 0.8s 0.24s var(--ease) both;
}

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

.stat:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(240, 180, 41, 0.45);
}

.stat b {
  display: block;
  font-size: 24px;
  color: var(--accent);
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 13px;
  color: #cfd9ee;
}

/* ============ Carousel ============ */
.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  background: #0b1220;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.slides {
  position: relative;
  aspect-ratio: 16 / 10;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #fff;
  transform: scale(1.03);
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide h3 {
  margin: 0 0 6px;
  font-size: 19px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.slide p {
  margin: 0;
  font-size: 13.5px;
  color: #e6ecf8;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.slide-1 { background: linear-gradient(160deg, #2b3a63, #4a5f97); }
.slide-2 { background: linear-gradient(160deg, #5a2f4a, #8a4a6e); }
.slide-3 { background: linear-gradient(160deg, #1f4a44, #2f7a63); }
.slide-4 { background: linear-gradient(160deg, #4a3a1f, #7a5f2f); }

.carousel-dots {
  position: absolute;
  bottom: 12px;
  right: 14px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

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

.carousel-dots button:hover {
  background: rgba(255, 255, 255, 0.8);
}

.carousel-dots button[aria-current="true"] {
  background: var(--accent);
  transform: scale(1.25);
  width: 20px;
  border-radius: 999px;
}

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

.section-soft {
  background: var(--bg-soft);
  transition: background-color 0.35s var(--ease);
}

.section-head {
  max-width: 820px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-head h2 {
  font-size: 27px;
  margin: 0 0 10px;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

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

h3 {
  font-size: 20px;
  margin: 26px 0 10px;
  letter-spacing: 0.3px;
}

h4 {
  font-size: 16.5px;
  margin: 18px 0 8px;
}

p {
  margin: 0 0 14px;
}

/* ============ Anchor nav ============ */
.anchor-nav {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.anchor-nav h2 {
  font-size: 16px;
  margin: 0 0 10px;
}

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

.anchor-nav a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--text);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.anchor-nav a:hover {
  background: var(--accent);
  color: #1a1a1a;
  text-decoration: none;
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ============ Grid & Cards ============ */
.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 {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(240, 180, 41, 0.45);
}

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

.card h3 {
  margin-top: 0;
}

.card ul {
  margin: 0;
  padding-left: 20px;
}

.card li {
  margin-bottom: 6px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

html[data-theme="dark"] .tag {
  color: var(--accent);
}

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

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero::before,
  .hero::after {
    animation: none;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============ Team ============ */
.team-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 4px 14px rgba(31, 42, 68, 0.18);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.team-card:hover .avatar {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 8px 22px rgba(240, 180, 41, 0.35);
}

.team-card h4 {
  margin: 0 0 4px;
}

.team-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ============ Articles ============ */
.article-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.article-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(240, 180, 41, 0.4);
}

.article-card:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.article-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  transition: color 0.25s var(--ease);
}

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

html[data-theme="dark"] .article-card:hover h3 {
  color: var(--accent);
}

.article-meta {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

.read-more {
  font-weight: 600;
  font-size: 14px;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.3s var(--ease), color 0.25s var(--ease);
}

.read-more:hover {
  text-decoration: none;
  gap: 10px;
  color: var(--accent-2);
}

html[data-theme="dark"] .read-more:hover {
  color: var(--accent);
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
}

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

.faq-item:hover {
  border-color: rgba(240, 180, 41, 0.5);
  box-shadow: 0 6px 20px rgba(31, 42, 68, 0.08);
}

.faq-item.open {
  border-color: var(--accent);
  box-shadow: 0 8px 26px rgba(240, 180, 41, 0.16);
}

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

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

.faq-item.open .faq-q {
  color: var(--accent-2);
}

html[data-theme="dark"] .faq-item.open .faq-q {
  color: var(--accent);
}

.faq-q .faq-icon {
  flex: 0 0 auto;
  color: var(--accent-2);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.35s var(--ease), color 0.25s var(--ease);
}

html[data-theme="dark"] .faq-q .faq-icon {
  color: var(--accent);
}

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

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-a-inner {
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 15px;
}

/* ============ HowTo ============ */
.howto {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 10px;
}

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

.howto-step::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  transition: transform 0.5s var(--ease);
}

.howto-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(240, 180, 41, 0.4);
}

.howto-step:hover::before {
  transform: scale(1.5);
}

.howto-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a1a1a;
  font-weight: 700;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(240, 180, 41, 0.35);
  transition: transform 0.35s var(--ease);
}

.howto-step:hover .num {
  transform: scale(1.12) rotate(-6deg);
}

.howto-step h4 {
  margin: 0 0 6px;
  position: relative;
  z-index: 1;
}

.howto-step p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

/* ============ Blockquote ============ */
blockquote.card {
  margin: 0;
  position: relative;
  padding-top: 26px;
}

blockquote.card::after {
  content: "“";
  position: absolute;
  top: 4px;
  left: 16px;
  font-size: 46px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
  font-family: Georgia, serif;
}

blockquote.card p {
  font-size: 15px;
  color: var(--text);
  font-style: italic;
}

blockquote.card footer {
  font-size: 13.5px;
  color: var(--muted);
  text-align: right;
  margin-top: 6px;
}

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-info dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 0;
  font-size: 15px;
}

.contact-info dt {
  color: var(--muted);
}

.contact-info dd {
  margin: 0;
  word-break: break-word;
}

.map-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-soft), var(--bg));
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 20px;
  position: relative;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.map-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
  pointer-events: none;
}

.map-box:hover {
  border-color: rgba(240, 180, 41, 0.5);
  box-shadow: var(--shadow);
}

.map-box p {
  position: relative;
  z-index: 1;
  margin: 0;
}

/* ============ Footer ============ */
.site-footer {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #cfd9ee;
  padding: 44px 0 24px;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 180, 41, 0.14), transparent 70%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.site-footer h3 {
  color: #fff;
  font-size: 15px;
  margin: 0 0 12px;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 8px;
}

.site-footer h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

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

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

.site-footer a {
  color: #cfd9ee;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.site-footer a:hover {
  color: var(--accent);
  padding-left: 4px;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 30px;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  color: #9fb0cd;
  position: relative;
  z-index: 1;
}

.legal {
  font-size: 12.5px;
  color: #9fb0cd;
  line-height: 1.9;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}

/* ============ Back to top ============ */
#backTop {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a1a1a;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(240, 180, 41, 0.38);
  display: none;
  z-index: 900;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

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

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

#backTop:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 32px rgba(240, 180, 41, 0.55);
}

#backTop:active {
  transform: translateY(-2px) scale(0.98);
}

/* ============ Responsive ============ */
@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .article-list {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .howto {
    grid-template-columns: 1fr;
  }
  .section-head h2 {
    font-size: 24px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 72px;
  }
  body {
    font-size: 15.5px;
  }
  .main-nav {
    position: fixed;
    inset: 66px 0 auto 0;
    background: rgba(31, 42, 68, 0.98);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    display: none;
    padding: 10px 16px 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-height: calc(100vh - 66px);
    overflow-y: auto;
  }
  html[data-theme="dark"] .main-nav {
    background: rgba(15, 23, 41, 0.98);
  }
  .main-nav.open {
    display: block;
    animation: navIn 0.3s var(--ease);
  }
  @keyframes navIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .main-nav ul {
    flex-direction: column;
    gap: 2px;
  }
  .main-nav a {
    display: block;
    padding: 12px;
  }
  .main-nav a::after {
    display: none;
  }
  .menu-toggle {
    display: inline-block;
  }
  .hero {
    padding: 36px 0 34px;
  }
  .hero h1 {
    font-size: 26px;
  }
  .hero-lead {
    font-size: 15.5px;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .section-head h2 {
    font-size: 22px;
  }
  .search-panel {
    width: 280px;
  }
  section {
    padding: 40px 0;
  }
  .btn {
    padding: 11px 18px;
    font-size: 14.5px;
  }
  .brand small {
    display: none;
  }
  .header-inner {
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 16px;
  }
  .hero h1 {
    font-size: 23px;
  }
  .search-panel {
    width: calc(100vw - 32px);
    right: -8px;
  }
  .stat b {
    font-size: 21px;
  }
  .card {
    padding: 16px;
  }
  .article-card {
    padding: 16px;
  }
}

/* ============ Print ============ */
@media print {
  .site-header,
  .site-footer,
  #backTop,
  .search-panel,
  .carousel-dots,
  .hero-actions {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
  .card,
  .article-card,
  .faq-item {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}