:root {
  --sakura: #e8627a;
  --sakura-light: #ff8fa3;
  --sakura-dark: #c94a62;
  --sakura-pale: #ffd6de;
  --sakura-glow: rgba(232, 98, 122, 0.35);
  --bg: #fdf7f8;
  --bg-alt: #fff;
  --bg-glass: rgba(255, 255, 255, 0.65);
  --bg-glass-strong: rgba(255, 255, 255, 0.85);
  --text: #2e2836;
  --text-soft: #5c5566;
  --text-muted: #8a8295;
  --border: rgba(232, 98, 122, 0.18);
  --border-soft: rgba(46, 40, 54, 0.08);
  --shadow-sm: 0 2px 8px rgba(46, 40, 54, 0.06);
  --shadow-md: 0 8px 24px rgba(46, 40, 54, 0.08);
  --shadow-lg: 0 18px 48px rgba(46, 40, 54, 0.12);
  --shadow-glow: 0 10px 32px var(--sakura-glow);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
  --maxw: 1180px;
  --grad-banner: linear-gradient(135deg, #ffd6de 0%, #ffb3c6 30%, #e8627a 65%, #b84a6e 100%);
  --grad-btn: linear-gradient(135deg, #ff8fa3 0%, #e8627a 55%, #c94a62 100%);
  --grad-accent: linear-gradient(120deg, #e8627a 0%, #ff8fa3 50%, #ffc2d1 100%);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  --sakura: #ff7d95;
  --sakura-light: #ff9db0;
  --sakura-dark: #e8627a;
  --sakura-pale: #4a2630;
  --sakura-glow: rgba(255, 125, 149, 0.28);
  --bg: #14111a;
  --bg-alt: #1c1824;
  --bg-glass: rgba(34, 29, 43, 0.6);
  --bg-glass-strong: rgba(34, 29, 43, 0.85);
  --text: #f0eaf2;
  --text-soft: #c4bccd;
  --text-muted: #8f8799;
  --border: rgba(255, 125, 149, 0.22);
  --border-soft: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 10px 32px var(--sakura-glow);
  --grad-banner: linear-gradient(135deg, #3a1f2c 0%, #5c2a3d 35%, #a8445f 70%, #d15a78 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-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(232, 98, 122, 0.1), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(255, 143, 163, 0.12), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(232, 98, 122, 0.08), transparent 55%);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

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

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

a:hover,
a:focus-visible {
  color: var(--sakura-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

h1 {
  font-size: clamp(1.6rem, 4.2vw, 2.5rem);
  margin: 0 0 0.6em;
}

h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.85rem);
  margin: 0 0 0.7em;
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: var(--radius-pill);
  background: var(--grad-accent);
  box-shadow: 0 0 12px var(--sakura-glow);
}

h3 {
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  margin: 1.6em 0 0.5em;
}

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

ul, ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.45em;
}

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

blockquote {
  margin: 1.2em 0;
  padding: 1em 1.3em;
  border-left: 4px solid var(--sakura);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

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

time {
  font-variant-numeric: tabular-nums;
}

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

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

/* ============ HEADER ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 4px 24px rgba(46, 40, 54, 0.05);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 4px 14px var(--sakura-glow);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.brand:hover .brand-logo {
  transform: rotate(-18deg) scale(1.08);
  box-shadow: 0 6px 22px var(--sakura-glow);
}

.brand-text {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

#main-nav li {
  margin: 0;
}

#main-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

#main-nav a:hover,
#main-nav a:focus-visible {
  color: var(--sakura);
  background: rgba(232, 98, 122, 0.1);
  text-decoration: none;
  transform: translateY(-1px);
}

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

.site-search {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-search:focus-within {
  border-color: var(--sakura);
  box-shadow: 0 0 0 4px var(--sakura-glow);
}

.site-search input {
  width: 150px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
}

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

.site-search button {
  padding: 8px 14px;
  border: none;
  background: var(--grad-btn);
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.25s var(--ease);
}

.site-search button:hover {
  filter: brightness(1.08);
}

#theme-toggle,
#menu-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text);
  font-size: 1.05rem;
  cursor: pointer;
  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,
#menu-toggle:hover {
  transform: translateY(-2px) rotate(6deg);
  border-color: var(--sakura);
  box-shadow: var(--shadow-glow);
}

#menu-toggle {
  display: none;
}

/* ============ MAIN LAYOUT ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 60px;
}

main > section {
  margin: 0 0 28px;
  padding: 32px clamp(20px, 4vw, 44px);
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  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-md);
  border-color: var(--border);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes floatGlow {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.03); }
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 4px 8px;
}

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

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

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

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

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

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

/* ============ BANNER ============ */
.banner {
  position: relative;
  max-width: var(--maxw);
  margin: 8px auto 28px;
  min-height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grad-banner);
  box-shadow: var(--shadow-lg), inset 0 0 120px rgba(255, 255, 255, 0.12);
  isolation: isolate;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.4), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.18), transparent 40%);
  z-index: 0;
  pointer-events: none;
}

.banner::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 65%);
  animation: floatGlow 9s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 64px);
  padding-right: clamp(28px, 30%, 320px);
  opacity: 0;
  visibility: hidden;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), visibility 0.7s;
  z-index: 1;
}

.banner-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.banner-slide h1,
.banner-slide h2 {
  color: #fff;
  text-shadow: 0 3px 18px rgba(120, 30, 55, 0.35);
  padding-left: 0;
  margin-bottom: 0.5em;
  max-width: 720px;
}

.banner-slide h2::before {
  display: none;
}

.banner-slide p {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.94rem, 1.6vw, 1.08rem);
  max-width: 620px;
  margin-bottom: 1.6em;
  text-shadow: 0 2px 12px rgba(120, 30, 55, 0.3);
}

.btn {
  display: inline-block;
  align-self: flex-start;
  padding: 13px 32px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95);
  color: var(--sakura-dark);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(120, 30, 55, 0.25);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px) scale(1.03);
  background: #fff;
  color: var(--sakura);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(120, 30, 55, 0.35);
}

.banner-dots {
  position: absolute;
  bottom: 22px;
  left: clamp(28px, 5vw, 64px);
  display: flex;
  gap: 10px;
  z-index: 3;
}

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

.banner-dots .dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.banner-dots .dot.active {
  width: 30px;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

/* ============ INTRO ============ */
.intro-block {
  border-left: 5px solid var(--sakura) !important;
}

.intro-points {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 1.4em;
}

.intro-points li {
  margin: 0;
  padding: 14px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.intro-points li:hover {
  transform: translateY(-4px);
  border-color: var(--sakura);
  box-shadow: var(--shadow-glow);
}

/* ============ META LINE ============ */
.meta-line {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 8px 14px;
  margin: 0.6em 0 1em;
  background: rgba(232, 98, 122, 0.07);
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* ============ NEWS ============ */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid transparent;
  font-size: 0.92rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.news-list time {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sakura);
  padding: 2px 10px;
  background: rgba(232, 98, 122, 0.1);
  border-radius: var(--radius-pill);
}

/* ============ ARTICLES ============ */
#articles article {
  padding: 22px clamp(16px, 3vw, 28px);
  margin-bottom: 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#articles article:hover {
  transform: translateY(-5px);
  border-color: var(--sakura);
  box-shadow: var(--shadow-md);
}

#articles article h3 {
  margin-top: 0;
  color: var(--text);
  transition: color 0.3s var(--ease);
}

#articles article:hover h3 {
  color: var(--sakura);
}

#articles article .meta-line {
  margin: 0 0 0.8em;
  font-size: 0.78rem;
  background: transparent;
  padding: 0;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

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

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

/* ============ FAQ ============ */
#faq details {
  margin-bottom: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#faq details[open] {
  border-color: var(--sakura);
  box-shadow: var(--shadow-sm);
}

#faq summary {
  position: relative;
  padding: 16px 48px 16px 20px;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

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

#faq summary::after {
  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: rgba(232, 98, 122, 0.12);
  color: var(--sakura);
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

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

#faq summary:hover {
  background: rgba(232, 98, 122, 0.06);
  color: var(--sakura);
}

#faq details p {
  padding: 0 20px 18px;
  margin: 0;
  font-size: 0.92rem;
  animation: fadeIn 0.4s var(--ease);
}

/* ============ HOWTO ============ */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

#howto ol > li {
  position: relative;
  padding: 14px 18px 14px 58px;
  margin-bottom: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  counter-increment: step;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto ol > li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-btn);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px var(--sakura-glow);
}

#howto ol > li:hover {
  transform: translateX(6px);
  border-color: var(--sakura);
  box-shadow: var(--shadow-sm);
}

#howto ul li {
  padding-left: 4px;
}

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

.contact-list li {
  margin: 0;
  padding: 14px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.contact-list li:hover {
  border-color: var(--sakura);
  transform: translateY(-3px);
}

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

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

.sitemap-list a,
.friend-links a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  font-size: 0.86rem;
  color: var(--text-soft);
  transition: all 0.3s var(--ease);
}

.sitemap-list a:hover,
.friend-links a:hover {
  color: #fff;
  background: var(--grad-btn);
  border-color: transparent;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* ============ FOOTER ============ */
#site-footer {
  margin-top: 40px;
  padding: 48px 20px 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(232, 98, 122, 0.06) 100%);
  border-top: 1px solid var(--border-soft);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}

.footer-col h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--text);
  position: relative;
  padding-bottom: 8px;
}

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

.footer-col p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.8;
}

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

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 0.86rem;
  color: var(--text-soft);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.footer-col a:hover {
  color: var(--sakura);
  padding-left: 5px;
  text-decoration: none;
}

#site-footer > section {
  max-width: var(--maxw);
  margin: 0 auto 18px;
  padding: 18px 22px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}

#site-footer > section h2 {
  font-size: 0.98rem;
  margin-bottom: 0.5em;
  padding-left: 14px;
}

#site-footer > section h2::before {
  width: 4px;
}

#site-footer > section p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-copy {
  max-width: var(--maxw);
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============ BACK TO TOP ============ */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 900;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--grad-btn);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--sakura-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s, box-shadow 0.35s var(--ease);
}

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

#back-to-top:hover {
  box-shadow: 0 12px 32px var(--sakura-glow);
  transform: translateY(-4px) scale(1.06);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .site-search input {
    width: 110px;
  }
  #main-nav a {
    padding: 8px 9px;
    font-size: 0.85rem;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 64px;
  }

  .header-inner {
    padding: 0 16px;
    gap: 10px;
  }

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

  #main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-lg);
    transition: max-height 0.45s var(--ease), padding 0.45s var(--ease);
    padding: 0 16px;
  }

  #main-nav.open {
    max-height: 80vh;
    overflow-y: auto;
    padding: 12px 16px 20px;
  }

  #main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  #main-nav a {
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
  }

  .site-search {
    display: none;
  }

  .banner {
    min-height: 340px;
  }

  .banner-slide {
    padding-right: clamp(28px, 8vw, 80px);
  }

  main {
    padding: 0 14px 48px;
  }

  main > section {
    padding: 26px 18px;
    border-radius: var(--radius-md);
  }

  h2 {
    padding-left: 14px;
  }
}

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

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

  .banner {
    min-height: 400px;
    border-radius: var(--radius-md);
  }

  .banner-slide {
    padding: 26px 22px 60px;
    padding-right: 22px;
  }

  .btn {
    padding: 11px 26px;
    font-size: 0.9rem;
  }

  .banner-dots {
    left: 22px;
    bottom: 18px;
  }

  .intro-points,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .news-list li {
    flex-direction: column;
    gap: 6px;
  }

  #faq summary {
    padding: 14px 44px 14px 16px;
    font-size: 0.9rem;
  }

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

  #back-to-top {
    right: 16px;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }

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

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

@media print {
  #site-header,
  #back-to-top,
  .banner-dots,
  .site-search,
  #theme-toggle,
  #menu-toggle {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  main > section {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}