:root {
  --brand: #e8452c;
  --brand-dark: #c7351f;
  --brand-light: #ff6b4a;
  --accent: #ffb347;
  --accent-2: #ff7e5f;
  --gradient-banner: linear-gradient(135deg, #e8452c 0%, #ff7e5f 45%, #ffb347 100%);
  --gradient-hero: linear-gradient(120deg, #2b1055 0%, #7597de 100%);
  --bg: #f7f5f2;
  --bg-alt: #ffffff;
  --bg-elevated: #ffffff;
  --text: #1f2329;
  --text-secondary: #52575e;
  --text-muted: #8a9099;
  --border: rgba(31, 35, 41, 0.1);
  --border-strong: rgba(31, 35, 41, 0.18);
  --shadow-sm: 0 2px 8px rgba(31, 35, 41, 0.06);
  --shadow-md: 0 8px 24px rgba(31, 35, 41, 0.09);
  --shadow-lg: 0 16px 48px rgba(31, 35, 41, 0.13);
  --shadow-brand: 0 10px 30px rgba(232, 69, 44, 0.28);
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-blur: 16px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --header-h: 68px;
  --max-w: 1200px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
  --brand: #ff6b4a;
  --brand-dark: #e8452c;
  --brand-light: #ff8a6e;
  --accent: #ffc266;
  --accent-2: #ff9a76;
  --gradient-banner: linear-gradient(135deg, #b3311d 0%, #d95f3f 45%, #e8a04a 100%);
  --gradient-hero: linear-gradient(120deg, #14122b 0%, #2d3a6b 100%);
  --bg: #0f1115;
  --bg-alt: #161a21;
  --bg-elevated: #1c212a;
  --text: #eef1f5;
  --text-secondary: #b6bdc8;
  --text-muted: #7d8694;
  --border: rgba(238, 241, 245, 0.1);
  --border-strong: rgba(238, 241, 245, 0.2);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  --shadow-brand: 0 10px 30px rgba(255, 107, 74, 0.22);
  --glass-bg: rgba(28, 33, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(232, 69, 44, 0.07), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(255, 179, 71, 0.09), transparent 40%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

img,
svg {
  max-width: 100%;
  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);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
button {
  -webkit-tap-highlight-color: transparent;
}

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

p {
  color: var(--text-secondary);
}

::selection {
  background: rgba(232, 69, 44, 0.22);
  color: var(--text);
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

.visually-hidden,
.skip-link:not(:focus) {
  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;
  top: 8px;
  left: 8px;
  z-index: 9999;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  box-shadow: var(--shadow-brand);
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  color: #fff;
}

/* ============ HEADER ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 var(--border), 0 6px 24px rgba(31, 35, 41, 0.05);
  transition: background-color 0.4s var(--ease), box-shadow 0.3s var(--ease);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.brand-logo {
  border-radius: 12px;
  box-shadow: var(--shadow-brand);
  transition: transform 0.5s var(--ease-bounce), box-shadow 0.3s var(--ease);
}

.brand:hover .brand-logo {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 14px 34px rgba(232, 69, 44, 0.4);
}

.brand-name {
  font-size: 1.28rem;
  background: var(--gradient-banner);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

.main-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  display: inline-block;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  white-space: nowrap;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

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

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

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 46%;
}

.site-search {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 4px 4px 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.site-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(232, 69, 44, 0.14), var(--shadow-md);
  transform: translateY(-1px);
}

.site-search input {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  width: 150px;
  padding: 6px 0;
  transition: width 0.35s var(--ease);
}

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

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

.site-search button {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--gradient-banner);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-brand);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.site-search button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 32px rgba(232, 69, 44, 0.42);
  filter: brightness(1.05);
}

.site-search button:active {
  transform: translateY(0) scale(0.98);
}

#theme-toggle,
#menu-toggle {
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#theme-toggle:hover,
#menu-toggle:hover {
  color: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

#theme-toggle:active,
#menu-toggle:active {
  transform: translateY(0) scale(0.97);
}

#menu-toggle {
  display: none;
}

/* ============ BANNER ============ */
.banner {
  position: relative;
  max-width: var(--max-w);
  width: calc(100% - 48px);
  margin: 28px auto 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--gradient-banner);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  isolation: isolate;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.32), transparent 46%),
    radial-gradient(circle at 8% 92%, rgba(255, 255, 255, 0.18), transparent 42%);
  pointer-events: none;
  z-index: 1;
}

.banner::after {
  content: "";
  position: absolute;
  top: -60%;
  right: -12%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  filter: blur(10px);
  pointer-events: none;
  z-index: 1;
  animation: banner-float 9s ease-in-out infinite;
}

@keyframes banner-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-26px, 22px, 0) scale(1.08); }
}

.banner-slides {
  position: relative;
  z-index: 2;
  min-height: 320px;
}

.banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  padding: 56px 64px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(22px) scale(0.985);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease), visibility 0.65s;
}

.banner-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.banner-slide h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 22ch;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.16);
}

.banner-slide p {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  max-width: 56ch;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.14);
}

.banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 13px 30px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

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

.banner-cta:hover {
  background: #fff;
  color: var(--brand-dark);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.banner-cta:hover::after {
  transform: translateX(5px);
}

.banner-dots {
  position: absolute;
  left: 64px;
  bottom: 26px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.banner-dots button {
  width: 34px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.45);
  transition: background-color 0.35s var(--ease), width 0.35s var(--ease), transform 0.35s var(--ease);
}

.banner-dots button:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: scaleY(1.3);
}

.banner-dots button[aria-selected="true"] {
  width: 52px;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  max-width: var(--max-w);
  width: calc(100% - 48px);
  margin: 20px auto 0;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--text-muted);
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--text-secondary);
  padding: 2px 6px;
  border-radius: 6px;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.breadcrumb a:hover {
  color: var(--brand);
  background: rgba(232, 69, 44, 0.08);
}

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

/* ============ STATS ============ */
.stats {
  max-width: var(--max-w);
  width: calc(100% - 48px);
  margin: 36px auto 0;
  padding: 34px 28px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient-banner);
}

.stats h2 {
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 26px;
}

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

.stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 16px 10px;
  border-radius: var(--radius-md);
  position: relative;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}

.stats li:hover {
  transform: translateY(-6px);
  background: rgba(232, 69, 44, 0.06);
}

.stats li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 22%;
  height: 56%;
  width: 1px;
  background: var(--border);
}

.stat-num {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  background: var(--gradient-banner);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.stats li span {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============ SECTION ============ */
.section {
  max-width: var(--max-w);
  width: calc(100% - 48px);
  margin: 56px auto 0;
  padding: 44px 40px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}

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

.section > h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  margin-bottom: 22px;
  padding-bottom: 16px;
  position: relative;
  letter-spacing: -0.02em;
}

.section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 68px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--gradient-banner);
  box-shadow: 0 4px 14px rgba(232, 69, 44, 0.3);
}

.section h3 {
  font-size: 1.16rem;
  margin: 30px 0 12px;
  color: var(--text);
  position: relative;
  padding-left: 16px;
}

.section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 5px;
  height: 0.95em;
  border-radius: var(--radius-pill);
  background: var(--gradient-banner);
}

.section h4 {
  font-size: 1.02rem;
  margin: 20px 0 8px;
  color: var(--brand);
  font-weight: 700;
}

.section p {
  margin-bottom: 14px;
  font-size: 0.97rem;
}

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

.section ul:not([class]) {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.section ul:not([class]) li {
  position: relative;
  padding-left: 30px;
  color: var(--text-secondary);
  font-size: 0.96rem;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}

.section ul:not([class]) li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gradient-banner);
  box-shadow: 0 0 0 4px rgba(232, 69, 44, 0.12);
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s var(--ease);
}

.section ul:not([class]) li:hover {
  transform: translateX(6px);
  color: var(--text);
}

.section ul:not([class]) li:hover::before {
  transform: scale(1.35);
  box-shadow: 0 0 0 6px rgba(232, 69, 44, 0.16);
}

.section ol {
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.section ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 58px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.96rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.section ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gradient-banner);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: var(--shadow-brand);
}

.section ol li:hover {
  transform: translateX(6px);
  border-color: var(--brand);
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}

/* ============ NEWS ============ */
#news ul {
  display: grid;
  gap: 10px;
}

#news li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

#news li:hover {
  transform: translateX(6px);
  border-color: var(--brand);
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}

#news time {
  flex-shrink: 0;
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: rgba(232, 69, 44, 0.1);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ============ ARTICLE CARDS ============ */
#articles {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

#articles:hover {
  box-shadow: none;
}

#articles > h2 {
  padding-left: 0;
}

#articles > p {
  margin-bottom: 24px;
}

.article-card {
  position: relative;
  padding: 26px 28px;
  margin-bottom: 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  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;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-banner);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease);
}

.article-card::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 69, 44, 0.12), transparent 68%);
  opacity: 0;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232, 69, 44, 0.32);
}

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

.article-card:hover::after {
  opacity: 1;
  transform: scale(1.15);
}

.article-card h3 {
  margin-top: 0;
  font-size: 1.14rem;
  padding-left: 0;
  position: relative;
  z-index: 1;
  transition: color 0.3s var(--ease);
}

.article-card h3::before {
  display: none;
}

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

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 8px 0 12px;
  position: relative;
  z-index: 1;
}

.article-meta time {
  color: var(--brand);
  font-weight: 600;
}

.article-card > p:not(.article-meta) {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
}

.article-card > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}

.article-card > a::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.article-card > a:hover {
  gap: 10px;
}

.article-card > a:hover::after {
  transform: translateX(4px);
}

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

.faq-item:hover {
  border-color: rgba(232, 69, 44, 0.4);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.faq-item:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(232, 69, 44, 0.12);
}

.faq-question {
  position: relative;
  margin: 0;
  padding: 18px 56px 18px 22px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.faq-question::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-banner);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease);
}

.faq-question::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.4s var(--ease);
}

.faq-item:hover .faq-question {
  color: var(--brand);
  background: rgba(232, 69, 44, 0.04);
}

.faq-item:hover .faq-question::before {
  transform: scaleY(1);
}

.faq-item.is-open .faq-question {
  color: var(--brand);
  background: rgba(232, 69, 44, 0.06);
}

.faq-item.is-open .faq-question::before {
  transform: scaleY(1);
}

.faq-item.is-open .faq-question::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-answer {
  padding: 0 22px 18px 22px;
  border-top: 1px solid transparent;
  transition: border-color 0.35s var(--ease);
}

.faq-item.is-open .faq-answer {
  border-top-color: var(--border);
}

.faq-answer p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  padding-top: 16px;
  margin: 0;
}

/* ============ CONTACT ============ */
.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 20px 0 26px;
}

.contact-list li {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.94rem;
  position: relative;
  padding-left: 46px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.contact-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-banner);
  box-shadow: 0 0 0 4px rgba(232, 69, 44, 0.12);
}

.contact-list li:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}

/* ============ SITEMAP ============ */
.sitemap-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.sitemap-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.93rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.sitemap-list li a::before {
  content: "›";
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}

.sitemap-list li a:hover {
  transform: translateX(6px);
  color: var(--brand);
  border-color: var(--brand);
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
}

.sitemap-list li a:hover::before {
  transform: translateX(3px);
}

/* ============ FRIEND LINKS ============ */
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.friend-links li a {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-bounce), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.friend-links li a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-banner);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  z-index: -1;
}

.friend-links li a:hover {
  transform: translateY(-3px) scale(1.04);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-brand);
}

.friend-links li a:hover::before {
  opacity: 1;
}

/* ============ LEGAL ============ */
#legal p {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border-left: 4px solid var(--brand);
  font-size: 0.94rem;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

#legal p:hover {
  background: var(--bg-alt);
  transform: translateX(4px);
}

/* ============ AUTHOR ============ */
#author ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

#author li {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

#author li:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}

#author time {
  color: var(--brand);
  font-weight: 600;
}

/* ============ FOOTER ============ */
#site-footer {
  margin-top: 64px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

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

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-inner > p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

#site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
}

#site-footer nav a {
  display: inline-block;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 0.87rem;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

#site-footer nav a:hover {
  color: var(--brand);
  background: rgba(232, 69, 44, 0.08);
  transform: translateY(-2px);
}

/* ============ BACK TO TOP ============ */
#back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 900;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  background: var(--gradient-banner);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: var(--shadow-brand);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.92);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease-bounce), visibility 0.35s, box-shadow 0.35s var(--ease);
}

#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#back-to-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 18px 40px rgba(232, 69, 44, 0.45);
}

#back-to-top:active {
  transform: translateY(-1px) scale(0.98);
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stats li,
.article-card,
.faq-item {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.stats li.is-visible,
.article-card.is-visible,
.faq-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .header-inner {
    gap: 14px;
  }
  .site-search input {
    width: 120px;
  }
  .site-search input:focus {
    width: 150px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    order: 10;
    flex-basis: 100%;
    display: none;
  }
  .main-nav.is-open {
    display: block;
    animation: nav-drop 0.35s var(--ease);
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 0;
  }
  .main-nav a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
  }
  .main-nav a::after {
    display: none;
  }
  #menu-toggle {
    display: inline-block;
  }
  .site-search {
    flex: 1 1 auto;
    min-width: 0;
  }
  .site-search input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
  .site-search input:focus {
    width: auto;
  }
  .banner-slide {
    padding: 44px 36px 68px;
  }
  .banner-dots {
    left: 36px;
  }
  .stats ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .stats li:not(:last-child)::after {
    display: none;
  }
  .stats li:nth-child(odd)::after {
    content: "";
    display: block;
    position: absolute;
    right: -7px;
    top: 22%;
    height: 56%;
    width: 1px;
    background: var(--border);
  }
  .section {
    padding: 32px 26px;
  }
}

@keyframes nav-drop {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }
  .header-inner {
    padding: 0 16px;
    min-height: 60px;
    gap: 10px;
  }
  .brand-name {
    font-size: 1.1rem;
  }
  .brand-logo {
    width: 34px;
    height: 34px;
  }
  .site-search {
    order: 12;
    flex-basis: 100%;
    padding: 4px 4px 4px 14px;
  }
  .site-search input {
    font-size: 0.88rem;
  }
  .site-search button {
    padding: 8px 14px;
    font-size: 0.84rem;
  }
  #theme-toggle,
  #menu-toggle {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .banner {
    width: calc(100% - 32px);
    margin-top: 18px;
    border-radius: var(--radius-lg);
  }
  .banner-slides {
    min-height: 300px;
  }
  .banner-slide {
    padding: 34px 22px 62px;
    gap: 12px;
  }
  .banner-slide h2 {
    font-size: 1.32rem;
    max-width: 100%;
  }
  .banner-slide p {
    font-size: 0.9rem;
  }
  .banner-cta {
    padding: 11px 24px;
    font-size: 0.9rem;
  }
  .banner-dots {
    left: 22px;
    bottom: 20px;
    gap: 8px;
  }
  .banner-dots button {
    width: 26px;
    height: 5px;
  }
  .banner-dots button[aria-selected="true"] {
    width: 40px;
  }
  .breadcrumb,
  .stats,
  .section {
    width: calc(100% - 32px);
  }
  .stats {
    padding: 24px 16px;
    margin-top: 24px;
  }
  .stats ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .stats li {
    padding: 12px 6px;
  }
  .stats li:nth-child(odd)::after {
    display: none;
  }
  .stat-num {
    font-size: 1.5rem;
  }
  .stats li span {
    font-size: 0.78rem;
  }
  .section {
    padding: 26px 18px;
    margin-top: 34px;
    border-radius: var(--radius-md);
  }
  .section > h2 {
    font-size: 1.24rem;
    margin-bottom: 18px;
    padding-bottom: 13px;
  }
  .section h3 {
    font-size: 1.05rem;
    margin-top: 24px;
  }
  .section p,
  .section ul:not([class]) li,
  .section ol li {
    font-size: 0.92rem;
  }
  .section ol li {
    padding: 12px 14px 12px 50px;
  }
  .section ol li::before {
    left: 12px;
    width: 26px;
    height: 26px;
    font-size: 0.78rem;
  }
  .article-card {
    padding: 20px 18px;
    border-radius: var(--radius-md);
  }
  .article-card h3 {
    font-size: 1.05rem;
  }
  .faq-question {
    padding: 15px 46px 15px 16px;
    font-size: 0.96rem;
  }
  .faq-question::after {
    right: 18px;
    width: 10px;
    height: 10px;
  }
  .faq-answer {
    padding: 0 16px 16px;
  }
  .contact-list {
    grid-template-columns: 1fr;
  }
  .sitemap-list {
    grid-template-columns: 1fr;
  }
  .friend-links {
    flex-direction: column;
  }
  .friend-links li a {
    justify-content: center;
  }
  #author ul {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    padding: 30px 16px;
  }
  #back-to-top {
    right: 16px;
    bottom: 16px;
    padding: 11px 16px;
    font-size: 0.8rem;
  }
}

@media (max-width: 380px) {
  .brand-name {
    display: none;
  }
  .stats ul {
    grid-template-columns: 1fr;
  }
  .banner-slide h2 {
    font-size: 1.18rem;
  }
}

@media (hover: none) {
  .article-card:hover,
  .section ul:not([class]) li:hover,
  .section ol li:hover,
  .contact-list li:hover,
  #author li:hover,
  #news li:hover {
    transform: none;
  }
}

@media print {
  #site-header,
  #back-to-top,
  .banner-dots,
  .site-search,
  #theme-toggle,
  #menu-toggle {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .section,
  .article-card,
  .banner {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}