:root {
  --brand: #FF6B9D;
  --brand-2: #FFB3C7;
  --brand-3: #FFD3E0;
  --accent: #7C5CFF;
  --accent-2: #C9B8FF;
  --ink: #2B2B38;
  --ink-soft: #3A3A48;
  --muted: #6B6B7B;
  --muted-2: #8E8E9E;
  --bg: #FFF8FA;
  --bg-alt: #FFFFFF;
  --card: #FFFFFF;
  --line: #F0DCE3;
  --line-strong: #E6C9D4;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --shadow-sm: 0 2px 8px rgba(255, 107, 157, 0.06);
  --shadow-md: 0 10px 28px rgba(255, 107, 157, 0.12);
  --shadow-lg: 0 22px 54px rgba(255, 107, 157, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 68px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body.dark {
  --brand: #FF7FAD;
  --brand-2: #B85C7E;
  --brand-3: #4A2A38;
  --accent: #A18CFF;
  --accent-2: #4A3F7A;
  --ink: #EDEDF2;
  --ink-soft: #D6D6E0;
  --muted: #A5A5B8;
  --muted-2: #8A8A9E;
  --bg: #16161D;
  --bg-alt: #1D1D26;
  --card: #24242E;
  --line: #33333F;
  --line-strong: #3F3F4D;
  --glass: rgba(36, 36, 46, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 22px 54px rgba(0, 0, 0, 0.5);
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% -6%, rgba(255, 107, 157, 0.10), transparent 42%),
    radial-gradient(circle at 92% 4%, rgba(124, 92, 255, 0.08), transparent 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

body.dark {
  background-image:
    radial-gradient(circle at 12% -6%, rgba(255, 127, 173, 0.10), transparent 42%),
    radial-gradient(circle at 92% 4%, rgba(161, 140, 255, 0.10), transparent 40%);
}

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

a:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ Header ============ */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: 0.5px;
  flex: 0 0 auto;
  transition: transform 0.3s var(--ease);
}

.logo:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.logo svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 4px 10px rgba(255, 107, 157, 0.35));
  transition: transform 0.5s var(--ease);
}

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

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

nav.main-nav a {
  position: relative;
  display: inline-block;
  color: var(--ink-soft);
  font-size: 15px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s var(--ease);
}

nav.main-nav a:hover {
  color: var(--brand);
  text-decoration: none;
}

nav.main-nav a:hover::after {
  transform: scaleX(1);
}

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

.search-box {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.14);
}

.search-box input {
  width: 150px;
  padding: 8px 16px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
}

.search-box input::placeholder {
  color: var(--muted-2);
}

.search-box button {
  border: 0;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--brand), #F0508A);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.25s var(--ease), transform 0.25s var(--ease);
}

.search-box button:hover {
  filter: brightness(1.06);
}

.search-box button:active {
  transform: scale(0.97);
}

.btn-theme,
.btn-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.btn-theme:hover,
.btn-menu:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.btn-theme:active,
.btn-menu:active {
  transform: scale(0.94);
}

.btn-menu {
  display: none;
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  padding: 16px 20px 4px;
  font-size: 13.5px;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
}

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

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

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

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 60px 0 48px;
  overflow: hidden;
  background:
    linear-gradient(135deg, #FFF0F5 0%, #F7EEFF 48%, #EAF0FF 100%);
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.35), transparent 70%);
  animation: floatBlob 14s ease-in-out infinite alternate;
}

.hero::after {
  width: 460px;
  height: 460px;
  bottom: -200px;
  right: -140px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.28), transparent 70%);
  animation: floatBlob 18s ease-in-out infinite alternate-reverse;
}

body.dark .hero {
  background: linear-gradient(135deg, #241E2A 0%, #201C2E 50%, #1B1B2A 100%);
}

@keyframes floatBlob {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(40px, 30px, 0) scale(1.12); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.35;
  letter-spacing: -0.3px;
  margin-bottom: 18px;
  color: var(--ink);
}

.hero h1 span {
  background: linear-gradient(120deg, var(--brand) 10%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand);
}

.hero p.lead {
  font-size: 17px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 26px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 8px;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.hero-visual:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg) translateY(-6px);
  box-shadow: 0 32px 70px rgba(255, 107, 157, 0.28);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.35), transparent 45%);
  pointer-events: none;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background-color 0.28s var(--ease), color 0.28s var(--ease);
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #F0508A 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 107, 157, 0.35);
}

.btn-primary:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(255, 107, 157, 0.45);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-ghost {
  background: var(--card);
  color: var(--brand);
  border: 1px solid var(--brand);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  color: var(--brand);
  text-decoration: none;
  background: var(--brand-3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-ghost:active {
  transform: translateY(-1px) scale(0.98);
}

/* ============ Sections ============ */
main {
  display: block;
}

section {
  position: relative;
  padding: 64px 0;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

section:nth-child(even) {
  background: var(--bg-alt);
}

body.dark section:nth-child(even) {
  background: #1B1B24;
}

h2 {
  position: relative;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.42;
  letter-spacing: -0.2px;
  margin-bottom: 12px;
  color: var(--ink);
}

h2 .sub {
  display: block;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--brand);
}

h3 {
  font-size: 21px;
  line-height: 1.5;
  margin: 30px 0 12px;
  color: var(--ink);
}

h3:first-child {
  margin-top: 0;
}

h4 {
  font-size: 17px;
  line-height: 1.5;
  margin: 18px 0 8px;
  color: var(--ink);
}

p {
  margin-bottom: 14px;
  color: var(--ink-soft);
}

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

.lead-p {
  font-size: 17px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 900px;
}

/* ============ Grids ============ */
.grid-2,
.grid-3,
.grid-4,
.article-list {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

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

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

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* ============ Cards ============ */
.card {
  position: relative;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), border-color 0.32s var(--ease);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3,
.card h4 {
  margin-top: 0;
  font-size: 18px;
}

.card p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 0;
}

/* ============ Stats ============ */
.stat {
  padding: 28px 14px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), border-color 0.32s var(--ease);
}

.stat:hover {
  transform: translateY(-5px);
  border-color: var(--brand-2);
  box-shadow: var(--shadow-md);
}

.stat .num {
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.stat .label {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

/* ============ Timeline ============ */
.timeline {
  position: relative;
  list-style: none;
  margin-top: 26px;
  padding-left: 26px;
  border-left: 3px solid var(--brand-2);
}

.timeline li {
  position: relative;
  margin-bottom: 26px;
  transition: transform 0.3s var(--ease);
}

.timeline li:last-child {
  margin-bottom: 0;
}

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

.timeline li:hover::before {
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.25);
}

.timeline .year {
  display: inline-block;
  font-weight: 700;
  font-size: 16px;
  color: var(--brand);
}

.timeline p {
  margin: 4px 0 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* ============ Article cards ============ */
.article-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), border-color 0.32s var(--ease);
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.article-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.55;
  transition: color 0.25s var(--ease);
}

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

.article-card .meta {
  margin-bottom: 10px;
  font-size: 12.5px;
  color: var(--muted-2);
  letter-spacing: 0.2px;
}

.article-card .summary {
  flex: 1;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.article-card .more {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  transition: transform 0.28s var(--ease), letter-spacing 0.28s var(--ease);
}

.article-card .more:hover {
  text-decoration: none;
  letter-spacing: 0.5px;
  transform: translateX(4px);
}

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

.faq-item:hover {
  border-color: var(--line-strong);
}

.faq-item.open {
  border-color: var(--brand-2);
  box-shadow: var(--shadow-md);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.6;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.faq-q:hover {
  color: var(--brand);
  background: rgba(255, 107, 157, 0.04);
}

.faq-q .icon {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.32s var(--ease);
}

.faq-item.open .faq-q .icon {
  transform: rotate(45deg);
}

.faq-a {
  display: none;
  padding: 0 20px 18px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--muted);
  animation: fadeSlide 0.36s var(--ease);
}

.faq-item.open .faq-a {
  display: block;
}

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

/* ============ HowTo steps ============ */
.howto-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.howto-step:hover {
  transform: translateX(4px);
  border-color: var(--brand-2);
  box-shadow: var(--shadow-md);
}

.howto-step .step-num {
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #F0508A);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 6px 16px rgba(255, 107, 157, 0.35);
}

.howto-step h4 {
  margin: 0 0 6px;
}

.howto-step p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
}

/* ============ Testimonials ============ */
.testimonial {
  position: relative;
  padding: 26px 24px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), border-color 0.32s var(--ease);
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 4px;
  left: 18px;
  font-size: 56px;
  line-height: 1;
  color: var(--brand-2);
  opacity: 0.55;
  font-family: Georgia, serif;
  pointer-events: none;
}

.testimonial:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.testimonial p {
  position: relative;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-soft);
  font-style: italic;
}

.testimonial .who {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  font-style: normal;
}

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 28px;
}

.contact-info h3 {
  margin-top: 0;
}

.contact-info p {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.85;
}

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

/* ============ Footer ============ */
footer.site-footer {
  position: relative;
  padding: 52px 0 26px;
  background: #2B2B38;
  color: #C9C9D6;
  font-size: 14px;
  overflow: hidden;
}

footer.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand));
  background-size: 200% 100%;
  animation: gradientShift 6s linear infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

footer.site-footer a {
  color: #FFB3C7;
}

footer.site-footer a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}

.footer-grid h4 {
  margin: 0 0 14px;
  font-size: 15px;
  color: #fff;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.footer-grid li a {
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
  display: inline-block;
}

.footer-grid li a:hover {
  transform: translateX(3px);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid #3D3D4D;
  text-align: center;
  font-size: 13px;
  line-height: 1.9;
  color: #8E8E9E;
}

body.dark footer.site-footer {
  background: #121218;
}

/* ============ Back to top ============ */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #F0508A);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 107, 157, 0.42);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.back-top.show {
  display: flex;
  animation: popIn 0.3s var(--ease);
}

.back-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 32px rgba(255, 107, 157, 0.55);
}

.back-top:active {
  transform: scale(0.94);
}

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

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

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

/* ============ Carousel ============ */
.carousel {
  position: relative;
  margin-top: 28px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.carousel-track {
  display: flex;
  transition: transform 0.55s var(--ease);
  will-change: transform;
}

.carousel-slide {
  display: flex;
  flex: 0 0 100%;
  min-width: 100%;
  align-items: center;
  gap: 26px;
  padding: 36px 32px;
}

.carousel-slide svg {
  flex: 0 0 110px;
  width: 110px;
  height: 110px;
  filter: drop-shadow(0 8px 20px rgba(255, 107, 157, 0.22));
}

.carousel-slide h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.5;
}

.carousel-slide p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line-strong);
  cursor: pointer;
  transition: width 0.3s var(--ease), background-color 0.3s var(--ease), border-radius 0.3s var(--ease);
}

.carousel-dots button:hover {
  background: var(--brand-2);
}

.carousel-dots button.active {
  width: 26px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

/* ============ Notice ============ */
.notice {
  margin: 20px 0;
  padding: 16px 20px;
  background: rgba(255, 107, 157, 0.08);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

body.dark .notice {
  background: rgba(255, 127, 173, 0.10);
  color: #D8C8D0;
}

/* ============ Tag list ============ */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  list-style: none;
}

.tag-list a {
  display: inline-block;
  padding: 7px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: var(--ink-soft);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.tag-list a:hover {
  color: var(--brand);
  border-color: var(--brand);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 107, 157, 0.18);
}

/* ============ Author box ============ */
.author-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.author-box svg {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(255, 107, 157, 0.28);
}

.author-box h4 {
  margin: 0 0 4px;
}

.author-box p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 32px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 60px;
  }

  .nav-wrap {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 16px 20px 20px;
    background: var(--glass);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    animation: navDrop 0.3s var(--ease);
  }

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

  nav.main-nav.open {
    display: block;
  }

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

  nav.main-nav a {
    display: block;
    padding: 11px 8px;
    border-bottom: 1px solid var(--line);
    border-radius: 8px;
  }

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

  nav.main-nav a:hover {
    background: rgba(255, 107, 157, 0.08);
  }

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

  .search-box input {
    width: 110px;
  }

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

  .hero {
    padding: 40px 0 36px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-visual {
    transform: none;
    border-radius: var(--radius-md);
  }

  .hero-visual:hover {
    transform: translateY(-4px);
  }

  .hero p.lead {
    font-size: 16px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .article-list,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 44px 0;
  }

  .carousel-slide {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 22px;
  }

  .carousel-slide svg {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
  }

  .author-box {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

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

  .container {
    padding: 0 16px;
  }

  .logo {
    font-size: 17px;
    gap: 8px;
  }

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

  .search-box {
    display: none;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero p.lead {
    font-size: 15px;
  }

  .hero-cta {
    gap: 10px;
  }

  .btn {
    padding: 11px 22px;
    font-size: 14.5px;
  }

  h2 {
    font-size: 21px;
  }

  h3 {
    font-size: 18.5px;
  }

  .card,
  .article-card,
  .testimonial {
    padding: 18px;
  }

  .howto-step {
    padding: 16px;
    gap: 14px;
  }

  .howto-step .step-num {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .faq-q {
    padding: 14px 16px;
    font-size: 15px;
  }

  .faq-a {
    padding: 0 16px 16px;
  }

  .timeline {
    padding-left: 22px;
  }

  .timeline li::before {
    left: -31px;
  }

  .back-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }

  .footer-bottom {
    font-size: 12px;
  }
}

/* ============ Reduced motion ============ */
@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============ Print ============ */
@media print {
  header.site-header,
  .back-top,
  .hero-visual,
  .carousel-dots,
  footer.site-footer {
    display: none !important;
  }

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

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