:root {
  --bg: #0a0a14;
  --bg-elev: #12121f;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --glass: rgba(20, 20, 38, 0.55);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text: #e8e8f2;
  --text-muted: #9a9ab0;
  --text-dim: #6c6c85;
  --primary: #e94560;
  --primary-soft: rgba(233, 69, 96, 0.15);
  --accent: #7b5cff;
  --accent-2: #00d4ff;
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 35%, #0f3460 70%, #533483 100%);
  --gradient-text: linear-gradient(120deg, #e94560 0%, #7b5cff 50%, #00d4ff 100%);
  --gradient-btn: linear-gradient(135deg, #e94560 0%, #7b5cff 100%);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
  --maxw: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f5fb;
    --bg-elev: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --glass: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(20, 20, 60, 0.1);
    --text: #1a1a2e;
    --text-muted: #5a5a72;
    --text-dim: #8a8aa0;
    --primary: #d6314c;
    --primary-soft: rgba(214, 49, 76, 0.1);
    --accent: #6440e0;
    --accent-2: #0090c0;
    --gradient-hero: linear-gradient(135deg, #e8e9f5 0%, #dde4f7 35%, #cfe0f5 70%, #e6d9f7 100%);
    --shadow: 0 10px 40px rgba(30, 30, 70, 0.12);
    --shadow-soft: 0 4px 20px rgba(30, 30, 70, 0.08);
  }
}

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(123, 92, 255, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(233, 69, 96, 0.1), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

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

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

a:hover,
a:focus-visible {
  color: var(--accent-2);
}

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

::selection {
  background: var(--primary-soft);
  color: var(--text);
}

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

#site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(123, 92, 255, 0.08), transparent);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.logo svg {
  border-radius: 8px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.logo:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.logo span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#site-header nav {
  flex: 1;
  min-width: 0;
}

#site-header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

#site-header nav ul::-webkit-scrollbar {
  display: none;
}

#site-header nav a {
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

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

#site-header nav a:hover {
  color: var(--text);
  background: var(--bg-card);
}

#site-header nav a:hover::after {
  transform: scaleX(1);
}

#site-header form {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

#site-header form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#site-header input[type="search"] {
  width: 170px;
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  transition: width 0.35s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

#site-header input[type="search"]::placeholder {
  color: var(--text-dim);
}

#site-header input[type="search"]:focus {
  width: 220px;
  border-color: var(--accent);
  background: var(--bg-card-hover);
  outline: none;
}

#site-header button[type="submit"] {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-btn);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

#site-header button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(233, 69, 96, 0.35);
  filter: brightness(1.08);
}

#site-header button[type="submit"]:active {
  transform: translateY(0);
}

/* ---------- Breadcrumb ---------- */
body > nav[aria-label="面包屑导航"] {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px 0;
}

body > nav[aria-label="面包屑导航"] ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

body > nav[aria-label="面包屑导航"] li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-dim);
  opacity: 0.6;
}

body > nav[aria-label="面包屑导航"] a {
  color: var(--text-muted);
}

body > nav[aria-label="面包屑导航"] a:hover {
  color: var(--primary);
}

body > nav[aria-label="面包屑导航"] [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Main / Sections ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 80px;
}

main > section {
  margin: 56px 0;
  padding: 40px clamp(20px, 4vw, 48px);
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

main > section:hover {
  border-color: rgba(123, 92, 255, 0.28);
  box-shadow: var(--shadow);
}

main > section > h2 {
  position: relative;
  margin: 0 0 28px;
  padding-bottom: 14px;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

main > section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient-btn);
}

h3 {
  margin: 32px 0 12px;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.5;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

h3::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-btn);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

h4 {
  margin: 20px 0 8px;
  font-size: 1rem;
  color: var(--text);
}

p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

strong {
  color: var(--text);
}

ul,
ol {
  margin: 0 0 20px;
  padding-left: 1.4em;
  color: var(--text-muted);
}

li {
  margin: 8px 0;
}

li::marker {
  color: var(--primary);
}

/* ---------- Hero ---------- */
#hero {
  position: relative;
  margin-top: 24px;
  padding: clamp(36px, 6vw, 72px) clamp(22px, 5vw, 64px);
  background: var(--gradient-hero);
  background-size: 200% 200%;
  animation: heroShift 18s ease infinite;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

#hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.35), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
  animation: floatBlob 14s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -45%;
  left: -12%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.28), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
  animation: floatBlob 18s ease-in-out infinite reverse;
}

@keyframes heroShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 24px) scale(1.08); }
}

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

#hero h1 {
  margin: 0 0 20px;
  font-size: clamp(1.65rem, 4.4vw, 3rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--text);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

#hero > p {
  max-width: 820px;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  color: var(--text-muted);
}

#hero figure {
  margin: 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

#hero figure:hover {
  transform: translateY(-6px) scale(1.006);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

#hero figure svg {
  width: 100%;
  height: auto;
}

#hero figcaption {
  padding: 12px 18px;
  font-size: 0.82rem;
  color: var(--text-dim);
  background: var(--bg-elev);
  border-top: 1px solid var(--glass-border);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  color: #fff;
  background: var(--gradient-btn);
  box-shadow: 0 8px 24px rgba(233, 69, 96, 0.3);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

.hero-actions a + a {
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: none;
}

.hero-actions a:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(233, 69, 96, 0.4);
  filter: brightness(1.06);
  color: #fff;
}

.hero-actions a + a:hover {
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 10px 26px rgba(123, 92, 255, 0.28);
}

/* ---------- Cards: articles / news ---------- */
#news,
#article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

#news > h2,
#article > h2 {
  grid-column: 1 / -1;
}

#news article,
#article article {
  position: relative;
  padding: 24px 26px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  overflow: hidden;
}

#news article::before,
#article article::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.08), transparent 45%, rgba(123, 92, 255, 0.08));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

#news article:hover,
#article article:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: rgba(123, 92, 255, 0.35);
  box-shadow: var(--shadow);
}

#news article:hover::before,
#article article:hover::before {
  opacity: 1;
}

#news article h3,
#article article h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

#news article h3::before,
#article article h3::before {
  display: none;
}

#news article time,
#article article time {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 12px;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 999px;
  position: relative;
  z-index: 1;
}

#news article p,
#article article p {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  font-size: 0.94rem;
}

#article article a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

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

#article article a:hover {
  color: var(--accent-2);
}

#article article a:hover::after {
  transform: translateX(5px);
}

/* ---------- Blockquote / Case ---------- */
blockquote {
  margin: 20px 0;
  padding: 20px 24px;
  background: var(--bg-card);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

blockquote:hover {
  transform: translateX(6px);
  background: var(--bg-card-hover);
}

blockquote p {
  margin: 0 0 10px;
  font-style: italic;
  color: var(--text-muted);
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* ---------- HowTo steps ---------- */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 12px;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 16px 20px 16px 64px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  margin: 0;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-btn);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.3);
}

#howto ol li:hover {
  transform: translateX(6px);
  border-color: rgba(123, 92, 255, 0.35);
  background: var(--bg-card-hover);
}

#howto ul li {
  padding: 6px 0 6px 4px;
}

/* ---------- FAQ ---------- */
#faq details {
  margin-bottom: 12px;
  padding: 4px 22px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#faq details:hover {
  border-color: rgba(123, 92, 255, 0.3);
  background: var(--bg-card-hover);
}

#faq details[open] {
  border-color: rgba(233, 69, 96, 0.4);
  box-shadow: var(--shadow-soft);
  background: var(--bg-card-hover);
}

#faq summary {
  position: relative;
  padding: 16px 40px 16px 0;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 0.25s var(--ease);
}

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

#faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.35s var(--ease);
}

#faq details[open] summary {
  color: var(--primary);
}

#faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

#faq details p {
  margin: 0 0 18px;
  padding-top: 4px;
  font-size: 0.94rem;
  animation: fadeSlide 0.4s var(--ease);
}

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

/* ---------- Contact / Address ---------- */
#contact address {
  font-style: normal;
  padding: 22px 26px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

#contact address:hover {
  border-color: rgba(0, 212, 255, 0.35);
  transform: translateY(-3px);
}

#contact address p {
  margin: 6px 0;
}

#contact address p:first-child {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Sitemap / Links ---------- */
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap li,
#links li {
  margin: 0;
}

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.86rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  transform: translateY(-3px);
  color: var(--text);
  background: var(--primary-soft);
  border-color: rgba(233, 69, 96, 0.45);
  box-shadow: 0 6px 18px rgba(233, 69, 96, 0.2);
}

/* ---------- Footer ---------- */
footer {
  position: relative;
  margin-top: 40px;
  padding: 56px 24px 32px;
  background: var(--bg-elev);
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
}

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

footer > section {
  max-width: var(--maxw);
  margin: 0 auto 28px;
}

footer h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

footer p {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

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

footer a:hover {
  color: var(--primary);
}

footer > p {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

footer small {
  font-size: inherit;
}

/* ---------- Back to top ---------- */
body > nav[aria-label="页内快捷导航"] {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
}

body > nav[aria-label="页内快捷导航"] a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  font-size: 0;
  color: #fff;
  background: var(--gradient-btn);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(233, 69, 96, 0.4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

body > nav[aria-label="页内快捷导航"] a::before {
  content: "↑";
  font-size: 1.15rem;
  line-height: 1;
}

body > nav[aria-label="页内快捷导航"] a:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 32px rgba(233, 69, 96, 0.5);
  filter: brightness(1.1);
  color: #fff;
}

/* ---------- Scroll reveal ---------- */
@supports (animation-timeline: view()) {
  main > section,
  #news article,
  #article article {
    animation: revealUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }

  @keyframes revealUp {
    from {
      opacity: 0;
      transform: translateY(36px) scale(0.985);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  #news,
  #article {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  #article {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 1024px) {
  #site-header input[type="search"] {
    width: 130px;
  }

  #site-header input[type="search"]:focus {
    width: 160px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: auto;
  }

  #site-header {
    height: auto;
    position: sticky;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 12px 18px;
    gap: 12px;
  }

  #site-header nav {
    order: 3;
    flex-basis: 100%;
  }

  #site-header nav ul {
    padding-bottom: 4px;
  }

  #site-header form {
    margin-left: auto;
  }

  main > section {
    margin: 40px 0;
    padding: 32px 22px;
    border-radius: var(--radius);
  }

  #hero {
    margin-top: 18px;
    border-radius: var(--radius);
  }
}

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

  .header-inner {
    padding: 10px 14px;
  }

  .logo {
    font-size: 0.98rem;
  }

  .logo svg {
    width: 30px;
    height: 30px;
  }

  #site-header form {
    flex-basis: 100%;
    order: 4;
  }

  #site-header input[type="search"] {
    flex: 1;
    width: auto;
  }

  #site-header input[type="search"]:focus {
    width: auto;
  }

  main {
    padding: 0 14px 60px;
  }

  body > nav[aria-label="面包屑导航"] {
    padding: 10px 14px 0;
  }

  main > section {
    margin: 28px 0;
    padding: 26px 18px;
    border-radius: var(--radius-sm);
  }

  #hero {
    padding: 30px 18px;
  }

  #hero h1 {
    font-size: clamp(1.4rem, 6.5vw, 1.9rem);
  }

  #hero figure {
    margin: 22px 0;
    border-radius: var(--radius-sm);
  }

  #hero figcaption {
    padding: 10px 14px;
    font-size: 0.76rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions a {
    width: 100%;
    padding: 12px 20px;
  }

  #news article,
  #article article {
    padding: 18px 16px;
  }

  #howto ol li {
    padding: 14px 16px 14px 56px;
  }

  #howto ol li::before {
    left: 14px;
    width: 28px;
    height: 28px;
    font-size: 0.82rem;
  }

  #faq details {
    padding: 2px 16px;
  }

  #faq summary {
    font-size: 0.92rem;
    padding: 14px 34px 14px 0;
  }

  blockquote {
    padding: 16px 18px;
  }

  footer {
    padding: 40px 16px 26px;
  }

  body > nav[aria-label="页内快捷导航"] {
    right: 14px;
    bottom: 16px;
  }

  body > nav[aria-label="页内快捷导航"] a {
    width: 42px;
    height: 42px;
  }
}

@media (hover: none) {
  #news article:hover,
  #article article:hover,
  main > section:hover,
  #hero figure:hover,
  #howto ol li:hover,
  blockquote:hover,
  #contact address:hover,
  #sitemap a:hover,
  #links a:hover {
    transform: none;
  }
}