:root {
  --bg: #0f1117;
  --bg-elev: #171a24;
  --bg-soft: #1e2230;
  --text: #e8ecf4;
  --text-dim: #a2acbf;
  --text-mute: #6f7a90;
  --primary: #e94560;
  --primary-2: #ff7a5c;
  --accent: #5b8def;
  --accent-2: #8a5cf6;
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(23, 26, 36, 0.62);
  --glass-strong: rgba(23, 26, 36, 0.86);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --grad-banner: linear-gradient(135deg, #1a1a2e 0%, #16213e 45%, #0f3460 100%);
  --grad-brand: linear-gradient(135deg, #e94560 0%, #ff7a5c 100%);
  --grad-accent: linear-gradient(135deg, #5b8def 0%, #8a5cf6 100%);
  --grad-soft: linear-gradient(135deg, rgba(233, 69, 96, 0.16), rgba(91, 141, 239, 0.16));
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-elev: #ffffff;
  --bg-soft: #eef1f8;
  --text: #1b2030;
  --text-dim: #4a5468;
  --text-mute: #7c869c;
  --primary: #e0334f;
  --primary-2: #ff6b47;
  --accent: #3f6fe0;
  --accent-2: #7a4bea;
  --border: rgba(20, 30, 60, 0.1);
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --shadow-sm: 0 2px 10px rgba(30, 45, 90, 0.08);
  --shadow-md: 0 12px 32px rgba(30, 45, 90, 0.12);
  --shadow-lg: 0 24px 60px rgba(30, 45, 90, 0.18);
  --grad-banner: linear-gradient(135deg, #e8ecff 0%, #dfe7ff 45%, #ffe3ea 100%);
}

*,
*::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: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 8% -6%, rgba(233, 69, 96, 0.12), transparent 60%),
    radial-gradient(900px 520px at 96% 0%, rgba(91, 141, 239, 0.12), transparent 62%);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4 {
  line-height: 1.3;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 4px;
  background: var(--grad-brand);
}

h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text);
}

p {
  margin: 0 0 1em;
  color: var(--text-dim);
}

ul, ol {
  color: var(--text-dim);
}

blockquote {
  margin: 1.2em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--grad-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

blockquote p {
  margin: 0.3em 0;
  color: var(--text);
  font-style: italic;
}

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

::selection {
  background: var(--primary);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent-2));
  border-radius: 8px;
  border: 2px solid var(--bg);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

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

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

.logo svg {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(233, 69, 96, 0.35);
  transition: transform 0.5s var(--ease);
}

.logo:hover svg {
  transform: rotate(-8deg) scale(1.06);
}

.logo-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

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

#main-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-dim);
  position: relative;
  transition: color 0.25s var(--ease), background 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 {
  color: var(--text);
  background: var(--bg-soft);
}

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

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

#site-search {
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#site-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);
}

#search-input {
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  width: 170px;
  padding: 6px 0;
  outline: none;
}

#search-input::placeholder {
  color: var(--text-mute);
}

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

#site-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(233, 69, 96, 0.4);
}

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

#theme-toggle:hover,
#menu-toggle:hover {
  transform: translateY(-2px) rotate(6deg);
  border-color: var(--primary);
  background: var(--bg-elev);
}

#menu-toggle {
  display: none;
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.banner {
  margin: 24px 0 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.carousel {
  position: relative;
  background: var(--grad-banner);
  isolation: isolate;
}

.carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 220px at 18% 20%, rgba(233, 69, 96, 0.35), transparent 70%),
    radial-gradient(380px 200px at 84% 80%, rgba(91, 141, 239, 0.35), transparent 72%);
  pointer-events: none;
  z-index: 1;
}

.slide {
  display: none;
  animation: slideFade 0.7s var(--ease);
}

.slide.active {
  display: block;
}

.slide svg {
  width: 100%;
  height: auto;
  display: block;
}

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

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 17, 23, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.carousel-prev {
  left: 16px;
}

.carousel-next {
  right: 16px;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.4);
  transition: width 0.35s var(--ease), background 0.35s var(--ease);
}

.dot.active {
  width: 28px;
  background: var(--grad-brand);
}

.breadcrumb {
  margin: 18px 0 6px;
}

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

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

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

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

.section {
  margin: 28px 0;
  padding: 30px 30px 26px;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s var(--ease);
}

.section:hover {
  border-color: rgba(233, 69, 96, 0.28);
  box-shadow: var(--shadow-lg);
}

.section > p:last-child,
.section > .contact-info:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.02rem;
  color: var(--text-dim);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.stat {
  position: relative;
  padding: 22px 16px;
  border-radius: var(--radius);
  text-align: center;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.stat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.stat:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.stat:hover::before {
  opacity: 0.12;
}

.stat .num {
  position: relative;
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.stat .label {
  position: relative;
  display: block;
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--text-mute);
}

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

.news-list li {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.94rem;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.news-list li:hover {
  transform: translateX(6px);
  border-color: rgba(233, 69, 96, 0.35);
  background: var(--bg-elev);
}

.news-list time {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-accent);
  vertical-align: middle;
}

#articles .post {
  position: relative;
  margin: 0 0 18px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

#articles .post::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-brand);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease);
}

#articles .post:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 69, 96, 0.3);
  box-shadow: var(--shadow-md);
}

#articles .post:hover::after {
  transform: scaleY(1);
}

#articles .post h3 {
  margin-bottom: 6px;
}

#articles .post h3 a {
  color: var(--text);
}

#articles .post h3 a:hover {
  color: var(--primary);
}

.post .meta {
  font-size: 0.8rem;
  color: var(--text-mute);
  margin-bottom: 10px;
}

.post .excerpt {
  font-size: 0.94rem;
  margin-bottom: 12px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(233, 69, 96, 0.1);
  border: 1px solid rgba(233, 69, 96, 0.25);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

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

.read-more:hover {
  background: var(--grad-brand);
  color: #fff;
  transform: translateX(2px);
}

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

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 0 20px;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.faq-list details[open] {
  border-color: rgba(233, 69, 96, 0.35);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 34px 16px 0;
  font-weight: 600;
  color: var(--text);
  position: relative;
  transition: color 0.3s var(--ease);
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  background: var(--grad-accent);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

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

.faq-list summary:hover {
  color: var(--primary);
}

.faq-list details p {
  margin: 0 0 18px;
  padding-top: 2px;
  font-size: 0.94rem;
  animation: fadeUp 0.4s var(--ease);
}

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

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

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 58px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.94rem;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.35);
}

#howto ol li:hover {
  transform: translateX(6px);
  border-color: rgba(233, 69, 96, 0.35);
}

.contact-info p {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.contact-info strong {
  color: var(--text);
}

.contact-info a {
  color: var(--accent);
  border-bottom: 1px dashed rgba(91, 141, 239, 0.5);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.contact-info a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.sitemap-list,
.friend-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sitemap-list a,
.friend-links a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text-dim);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.sitemap-list a:hover,
.friend-links a:hover {
  transform: translateY(-3px);
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.35);
}

#site-footer {
  border-top: 1px solid var(--border);
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 24px;
  text-align: center;
}

.footer-inner p {
  margin: 6px 0;
  font-size: 0.86rem;
  color: var(--text-mute);
}

.footer-inner a {
  color: var(--text-dim);
}

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

#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 900;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--glass-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  box-shadow: var(--shadow-md);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease), background 0.3s var(--ease);
}

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

#back-to-top:hover {
  background: var(--grad-brand);
  color: #fff;
  transform: translateY(-4px);
}

.section,
.banner,
.breadcrumb {
  animation: revealUp 0.8s var(--ease) both;
}

.section:nth-of-type(2) { animation-delay: 0.05s; }
.section:nth-of-type(3) { animation-delay: 0.1s; }
.section:nth-of-type(4) { animation-delay: 0.15s; }

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

@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) {
  #search-input {
    width: 130px;
  }

  #main-nav a {
    padding: 8px 9px;
    font-size: 0.86rem;
  }
}

@media (max-width: 920px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 18px;
  }

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

  #main-nav {
    order: 5;
    flex-basis: 100%;
    margin-left: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease);
  }

  #main-nav.open {
    max-height: 520px;
  }

  #main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--border);
    margin-top: 6px;
  }

  #main-nav a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
  }

  #main-nav a::after {
    display: none;
  }

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

  #site-search {
    padding-left: 12px;
  }

  #search-input {
    width: 120px;
  }

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

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

  main {
    padding: 0 14px 44px;
  }

  .section {
    padding: 22px 18px 20px;
    margin: 20px 0;
    border-radius: var(--radius);
  }

  .banner {
    margin: 16px 0 4px;
    border-radius: var(--radius);
  }

  h2 {
    padding-left: 14px;
  }

  .carousel-prev,
  .carousel-next {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }

  .carousel-prev {
    left: 8px;
  }

  .carousel-next {
    right: 8px;
  }

  #articles .post {
    padding: 18px 16px;
  }

  .faq-list details {
    padding: 0 14px;
  }

  #howto ol li {
    padding: 12px 14px 12px 50px;
  }

  #howto ol li::before {
    left: 10px;
    width: 26px;
    height: 26px;
    font-size: 0.78rem;
  }

  .footer-inner {
    padding: 22px 16px;
  }

  #back-to-top {
    right: 14px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 520px) {
  .header-inner {
    padding: 10px 14px;
  }

  .logo-text {
    font-size: 1rem;
  }

  #site-search {
    display: none;
  }

  .stats {
    gap: 10px;
  }

  .stat {
    padding: 16px 10px;
  }

  .sitemap-list,
  .friend-links {
    gap: 8px;
  }

  .sitemap-list a,
  .friend-links a {
    padding: 7px 14px;
    font-size: 0.82rem;
  }

  .news-list li {
    padding: 12px 14px;
    font-size: 0.88rem;
  }
}