:root {
  --brand: #e63946;
  --brand-dark: #c1121f;
  --brand-light: #ff6b7a;
  --accent: #457b9d;
  --accent-2: #2a9d8f;
  --ink: #1d3557;
  --ink-soft: #3d4a5c;
  --text: #2b3440;
  --text-muted: #64748b;
  --bg: #f6f8fb;
  --bg-alt: #ffffff;
  --bg-elev: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --border: #e2e8f0;
  --border-soft: #eef2f7;
  --shadow-sm: 0 2px 8px rgba(29, 53, 87, 0.06);
  --shadow: 0 8px 28px rgba(29, 53, 87, 0.1);
  --shadow-lg: 0 18px 48px rgba(29, 53, 87, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --maxw: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grad-hero: linear-gradient(135deg, #1d3557 0%, #2a4d7a 35%, #e63946 100%);
  --grad-brand: linear-gradient(135deg, #e63946 0%, #ff6b7a 100%);
  --grad-soft: linear-gradient(135deg, rgba(230, 57, 70, 0.08), rgba(69, 123, 157, 0.08));
  --focus: 0 0 0 3px rgba(230, 57, 70, 0.4);
}

html[data-theme="dark"],
html.dark {
  --brand: #ff5c6c;
  --brand-dark: #e63946;
  --brand-light: #ff8a95;
  --accent: #6fa8c9;
  --accent-2: #4ecdc4;
  --ink: #e8eef7;
  --ink-soft: #b8c4d6;
  --text: #d6dee9;
  --text-muted: #93a1b5;
  --bg: #0d1420;
  --bg-alt: #131c2b;
  --bg-elev: #182335;
  --glass: rgba(24, 35, 53, 0.66);
  --glass-border: rgba(255, 255, 255, 0.08);
  --border: #26344a;
  --border-soft: #1e2a3d;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
  --grad-hero: linear-gradient(135deg, #0a1220 0%, #1d3557 40%, #a4161a 100%);
  --grad-brand: linear-gradient(135deg, #ff5c6c 0%, #ff8a95 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 92, 108, 0.12), rgba(111, 168, 201, 0.12));
  --focus: 0 0 0 3px rgba(255, 92, 108, 0.45);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not(.light) {
    --brand: #ff5c6c;
    --brand-dark: #e63946;
    --brand-light: #ff8a95;
    --accent: #6fa8c9;
    --accent-2: #4ecdc4;
    --ink: #e8eef7;
    --ink-soft: #b8c4d6;
    --text: #d6dee9;
    --text-muted: #93a1b5;
    --bg: #0d1420;
    --bg-alt: #131c2b;
    --bg-elev: #182335;
    --glass: rgba(24, 35, 53, 0.66);
    --glass-border: rgba(255, 255, 255, 0.08);
    --border: #26344a;
    --border-soft: #1e2a3d;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
    --grad-hero: linear-gradient(135deg, #0a1220 0%, #1d3557 40%, #a4161a 100%);
    --grad-brand: linear-gradient(135deg, #ff5c6c 0%, #ff8a95 100%);
    --grad-soft: linear-gradient(135deg, rgba(255, 92, 108, 0.12), rgba(111, 168, 201, 0.12));
    --focus: 0 0 0 3px rgba(255, 92, 108, 0.45);
  }
}

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

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

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 12% -8%, rgba(230, 57, 70, 0.1), transparent 60%),
    radial-gradient(1000px 520px at 92% 4%, rgba(69, 123, 157, 0.12), transparent 62%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

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

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  color: var(--ink);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  position: relative;
  padding-bottom: 0.5em;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-brand);
  box-shadow: 0 2px 10px rgba(230, 57, 70, 0.35);
}

h3 {
  font-size: clamp(1.12rem, 1.7vw, 1.35rem);
  margin-top: 1.6em;
}

h4 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 1.1em;
}

ul, ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}

li {
  margin-bottom: 0.55em;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

blockquote {
  margin: 1.2em 0;
  padding: 1.1em 1.4em;
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--grad-soft);
  color: var(--ink-soft);
  font-style: normal;
}

blockquote p {
  margin: 0;
}

blockquote p::before {
  content: "\201C";
  color: var(--brand);
  font-size: 1.4em;
  font-weight: 700;
  margin-right: 2px;
}

time {
  color: var(--text-muted);
  font-size: 0.9em;
  font-variant-numeric: tabular-nums;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  transition: top 0.3s var(--ease);
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(29, 53, 87, 0.06);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(230, 57, 70, 0.28);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.brand:hover .brand-logo {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 10px 24px rgba(230, 57, 70, 0.42);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand);
}

.brand-slogan {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

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

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

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--brand);
  background: rgba(230, 57, 70, 0.08);
  transform: translateY(-1px);
}

.main-nav a:hover::after {
  width: 60%;
}

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

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

.site-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.14);
}

.site-search input {
  width: 190px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 7px 12px;
  font-size: 0.88rem;
  color: var(--text);
  font-family: inherit;
}

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

.site-search button {
  border: 0;
  cursor: pointer;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.site-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(230, 57, 70, 0.36);
  filter: brightness(1.05);
}

.theme-toggle,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.05rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.theme-toggle:hover {
  transform: rotate(180deg) scale(1.06);
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.theme-icon {
  line-height: 1;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border-soft);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  animation: slideDown 0.3s var(--ease);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 20px 16px;
  display: grid;
  gap: 2px;
}

.mobile-nav a {
  display: block;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-weight: 500;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.mobile-nav a:hover {
  background: rgba(230, 57, 70, 0.08);
  color: var(--brand);
  padding-left: 20px;
}

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

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

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--border);
}

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

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

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

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 20px 60px;
}

main > section {
  margin-bottom: 28px;
  padding: clamp(22px, 4vw, 44px);
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
  animation: fadeUp 0.7s var(--ease) both;
}

main > section:hover {
  box-shadow: var(--shadow);
  border-color: var(--border);
}

main > section:nth-child(2) { animation-delay: 0.05s; }
main > section:nth-child(3) { animation-delay: 0.1s; }
main > section:nth-child(4) { animation-delay: 0.15s; }
main > section:nth-child(5) { animation-delay: 0.2s; }

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

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl) !important;
  padding: clamp(24px, 4vw, 48px) !important;
  background: var(--grad-hero) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: var(--shadow-lg) !important;
  color: #f1faee;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.55), transparent 62%);
  filter: blur(30px);
  pointer-events: none;
  animation: floatGlow 12s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -12%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69, 123, 157, 0.5), transparent 64%);
  filter: blur(34px);
  pointer-events: none;
  animation: floatGlow 14s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-28px, 26px, 0) scale(1.12); }
}

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

.hero h1,
.hero h2,
.hero h3 {
  color: #fff;
}

.hero h2::after {
  background: linear-gradient(90deg, #ffd166, #e63946);
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

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

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

.slide svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(16px, 3vw, 32px);
  background: linear-gradient(to top, rgba(10, 18, 32, 0.92) 0%, rgba(10, 18, 32, 0.55) 55%, transparent 100%);
  color: #f1faee;
}

.slide-caption h2 {
  margin: 0 0 6px;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  color: #fff;
  padding-bottom: 0;
}

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

.slide-caption p {
  margin: 0;
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  color: rgba(241, 250, 238, 0.86);
  max-width: 62ch;
}

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

.slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
  z-index: 3;
}

.slider-controls button {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.slider-controls button:hover {
  background: var(--brand);
  border-color: var(--brand);
  transform: scale(1.1);
  box-shadow: 0 8px 22px rgba(230, 57, 70, 0.45);
}

.hero-text {
  max-width: 100%;
  color: rgba(241, 250, 238, 0.92);
}

.hero-text h1 {
  margin-bottom: 18px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.hero-lead {
  color: rgba(241, 250, 238, 0.86);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.85;
  max-width: 78ch;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 20px;
}

.stat {
  padding: 18px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  text-align: center;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.stat:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.stat-number {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #ffd166;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-unit {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-left: 2px;
}

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: rgba(241, 250, 238, 0.78);
  line-height: 1.4;
}

.hero-meta {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(241, 250, 238, 0.68);
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 1.2em 0 1.6em;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand), var(--accent));
  border-radius: 2px;
  opacity: 0.5;
}

.timeline li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  color: var(--text);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 3px solid var(--brand);
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.14);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.timeline li:hover::before {
  transform: scale(1.18);
  box-shadow: 0 0 0 6px rgba(230, 57, 70, 0.22);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.2em 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.feature-list li {
  margin: 0;
  padding: 16px 18px 16px 46px;
  position: relative;
  border-radius: var(--radius);
  background: var(--grad-soft);
  border: 1px solid var(--border-soft);
  color: var(--text);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
}

.feature-list li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(230, 57, 70, 0.28);
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 1.2em 0 0;
  display: grid;
  gap: 14px;
}

.news-list li {
  margin: 0;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--brand);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.news-list li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  background: var(--bg-alt);
}

.news-list h3 {
  margin: 4px 0 6px;
  font-size: 1.05rem;
}

.news-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.article-card {
  margin: 0 0 16px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.article-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--grad-brand);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(230, 57, 70, 0.24);
}

.article-card:hover::before {
  transform: scaleY(1);
}

.article-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

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

.article-summary {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 0.94rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand);
  position: relative;
}

.read-more::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.read-more:hover::after {
  transform: translateX(5px);
}

.article-body {
  margin: 16px 0 20px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--grad-soft);
  border: 1px solid var(--border-soft);
  animation: fadeUp 0.5s var(--ease);
}

.article-body h4 {
  margin-top: 0;
  color: var(--ink);
}

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

details {
  margin: 0 0 12px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

details:hover {
  border-color: rgba(230, 57, 70, 0.24);
  box-shadow: var(--shadow);
}

details[open] {
  border-color: rgba(230, 57, 70, 0.32);
}

summary {
  cursor: pointer;
  padding: 16px 52px 16px 20px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

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

summary::before {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-soft);
  color: var(--brand);
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

details[open] summary::before {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: var(--grad-brand);
  color: #fff;
}

summary:hover {
  color: var(--brand);
  background: rgba(230, 57, 70, 0.04);
}

details > p,
details > ul {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text);
  animation: fadeUp 0.35s var(--ease);
}

details > p {
  padding-top: 0;
}

.contact-list,
.sitemap-list,
.friend-links {
  list-style: none;
  padding: 0;
  margin: 1.2em 0;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.contact-list li:hover {
  transform: translateX(5px);
  border-color: rgba(230, 57, 70, 0.3);
  background: var(--bg-alt);
}

.sitemap-list,
.friend-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.sitemap-list li,
.friend-links li {
  margin: 0;
}

.sitemap-list a,
.friend-links a {
  display: block;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.sitemap-list a:hover,
.friend-links a:hover {
  transform: translateY(-3px);
  color: var(--brand);
  border-color: rgba(230, 57, 70, 0.35);
  box-shadow: var(--shadow-sm);
  background: var(--bg-alt);
}

#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.2em 0;
  display: grid;
  gap: 12px;
}

#howto ol > li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 62px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#howto ol > li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 6px 16px rgba(230, 57, 70, 0.32);
}

#howto ol > li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(230, 57, 70, 0.28);
}

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

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

#howto ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.16);
}

.site-footer {
  position: relative;
  margin-top: 20px;
  background: linear-gradient(160deg, #14213d 0%, #1d3557 55%, #0f1b30 100%);
  color: rgba(241, 250, 238, 0.82);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.32), transparent 62%);
  filter: blur(30px);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 56px) 20px 28px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.4fr;
  gap: 32px;
}

.footer-name {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.footer-desc {
  margin: 0 0 8px;
  color: rgba(241, 250, 238, 0.72);
  font-size: 0.92rem;
}

.footer-domain {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(241, 250, 238, 0.72);
}

.footer-domain a {
  color: #ffd166;
  font-weight: 600;
}

.footer-domain a:hover {
  color: #fff;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
}

.footer-nav li {
  margin: 0;
}

.footer-nav a {
  display: inline-block;
  padding: 4px 0;
  color: rgba(241, 250, 238, 0.74);
  font-size: 0.9rem;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer-nav a:hover {
  color: #ffd166;
  transform: translateX(4px);
}

.footer-meta p {
  margin: 0 0 8px;
  font-size: 0.86rem;
  color: rgba(241, 250, 238, 0.66);
  line-height: 1.7;
}

.footer-meta p:last-child {
  margin-bottom: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(241, 250, 238, 0.5);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: var(--grad-brand);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(230, 57, 70, 0.42);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), opacity 0.35s var(--ease);
  animation: popIn 0.4s var(--ease);
}

.back-to-top[hidden] {
  display: none;
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 18px 40px rgba(230, 57, 70, 0.55);
}

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

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

@media (max-width: 1080px) {
  .main-nav a {
    padding: 8px 9px;
    font-size: 0.86rem;
  }

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

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

  .footer-meta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .main-nav {
    display: none;
  }

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

  .mobile-nav {
    display: block;
  }

  .header-inner {
    gap: 12px;
  }

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

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

@media (max-width: 720px) {
  :root {
    --header-h: 64px;
    --radius-lg: 20px;
    --radius-xl: 24px;
  }

  .header-inner {
    padding: 0 14px;
    flex-wrap: wrap;
    min-height: 64px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand-slogan {
    display: none;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .site-search {
    flex: 1 1 100%;
    order: 3;
    margin-top: 4px;
  }

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

  .header-tools {
    margin-left: auto;
  }

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

  main {
    padding: 16px 14px 44px;
  }

  main > section {
    padding: 20px 18px;
    margin-bottom: 18px;
  }

  .hero {
    padding: 18px 16px !important;
  }

  .hero-slider {
    margin-bottom: 22px;
  }

  .slide-caption {
    position: static;
    background: linear-gradient(135deg, rgba(10, 18, 32, 0.9), rgba(29, 53, 87, 0.85));
    padding: 16px;
  }

  .slider-controls {
    top: auto;
    bottom: 0;
    transform: none;
    padding: 0 8px 8px;
  }

  .slider-controls button {
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
  }

  .hero-stats {
    gap: 10px;
    margin: 20px 0 16px;
  }

  .stat {
    padding: 14px 10px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .sitemap-list,
  .friend-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 16px 22px;
  }

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

  .back-to-top {
    right: 14px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  h2::after {
    width: 44px;
    height: 3px;
  }

  details > p,
  details > ul {
    padding-left: 16px;
    padding-right: 16px;
  }

  summary {
    padding: 14px 46px 14px 16px;
    font-size: 0.95rem;
  }
}

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

  .sitemap-list,
  .friend-links {
    grid-template-columns: 1fr;
  }

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

  .brand-logo {
    width: 36px;
    height: 36px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .back-to-top,
  .slider-controls,
  .site-search,
  .theme-toggle,
  .menu-toggle,
  .skip-link {
    display: none !important;
  }

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

  main > section {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }

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