:root {
  --brand: #E85D75;
  --brand-dark: #C94560;
  --brand-light: #FDF3F4;
  --accent: #F2A65A;
  --accent-soft: #FFF4E8;
  --ink: #2A2024;
  --ink-soft: #5C4A50;
  --muted: #8A7A80;
  --bg: #FFFBFB;
  --bg-alt: #FDF6F7;
  --card: #FFFFFF;
  --border: #F0E2E5;
  --border-strong: #E6D2D6;
  --shadow-sm: 0 2px 8px rgba(42, 32, 36, 0.05);
  --shadow-md: 0 8px 24px rgba(42, 32, 36, 0.08);
  --shadow-lg: 0 16px 48px rgba(42, 32, 36, 0.12);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.6);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #FF7A92;
    --brand-dark: #E85D75;
    --brand-light: #2A1C22;
    --accent: #F2B26A;
    --accent-soft: #2E2419;
    --ink: #F5EDEF;
    --ink-soft: #CFC0C5;
    --muted: #A08F96;
    --bg: #161014;
    --bg-alt: #1D1519;
    --card: #221A1F;
    --border: #362A30;
    --border-strong: #46363D;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
    --glass: rgba(34, 26, 31, 0.72);
    --glass-border: rgba(255, 255, 255, 0.08);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(232, 93, 117, 0.07), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(242, 166, 90, 0.07), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

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

h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  background: linear-gradient(120deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--ink);
}

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

ul, ol {
  padding-left: 1.4em;
  color: var(--ink-soft);
}

li {
  margin-bottom: 0.4em;
}

time {
  color: var(--muted);
  font-size: 0.875rem;
}

blockquote {
  margin: 1.5em 0;
  padding: 1.1em 1.4em;
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-style: italic;
  box-shadow: var(--shadow-sm);
}

blockquote p {
  margin: 0;
}

address {
  font-style: normal;
}

/* ============ Header ============ */
header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 20px;
  font-size: 0.8rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.topbar nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar nav a {
  color: var(--muted);
  font-size: 0.8rem;
}

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

.brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo svg {
  width: 48px;
  height: 48px;
  transition: transform 0.4s var(--ease);
  filter: drop-shadow(0 4px 10px rgba(232, 93, 117, 0.3));
}

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

.brandname {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brandname strong {
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.brandname small {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

form[role="search"] {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1 1 320px;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px 4px 4px 18px;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

form[role="search"]:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(232, 93, 117, 0.14);
}

form[role="search"] label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

form[role="search"] input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  padding: 8px 0;
  min-width: 0;
}

form[role="search"] input::placeholder {
  color: var(--muted);
}

form[role="search"] button {
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  padding: 9px 22px;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

form[role="search"] button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(232, 93, 117, 0.35);
}

form[role="search"] button:active {
  transform: translateY(0);
}

.mainnav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mainnav::-webkit-scrollbar {
  display: none;
}

.mainnav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  white-space: nowrap;
}

.mainnav a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.mainnav a:hover {
  background: var(--brand-light);
  color: var(--brand);
  transform: translateY(-2px);
}

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

.breadcrumb {
  margin-bottom: 20px;
}

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

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--border-strong);
}

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

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

/* ============ Sections ============ */
section {
  margin-bottom: 28px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.7s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

@supports not (animation-timeline: view()) {
  section {
    animation: none;
  }
}

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

section > h2:first-child {
  margin-top: 0;
}

/* Banner */
#banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FFE3E8 0%, #FFF0E2 45%, #FDF3F4 100%);
  border: none;
  color: var(--ink);
}

#banner::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 320px;
  background: radial-gradient(circle at 30% 40%, rgba(232, 93, 117, 0.25), transparent 60%),
              radial-gradient(circle at 75% 30%, rgba(242, 166, 90, 0.28), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

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

#banner h1 {
  margin-bottom: 0.5em;
}

#banner p {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 860px;
}

#banner figure {
  margin: 24px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--card);
}

#banner figure svg {
  width: 100%;
  height: auto;
  display: block;
}

#banner figcaption {
  padding: 12px 18px;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  text-align: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 20px 12px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-soft);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

.stats strong {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.2;
}

/* ============ Articles ============ */
#articles {
  display: grid;
  gap: 20px;
}

#articles > h2 {
  grid-column: 1 / -1;
}

#articles article {
  padding: 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  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(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}

#articles article h3 {
  margin-bottom: 0.35em;
}

#articles article h3 + p {
  margin-top: 0;
  font-size: 0.85rem;
}

#articles article a {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 4px;
}

#articles article a::after {
  content: " →";
  transition: margin 0.25s var(--ease);
  display: inline-block;
}

#articles article a:hover::after {
  margin-left: 4px;
}

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

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

#faq summary {
  cursor: pointer;
  padding: 16px 48px 16px 20px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  position: relative;
  transition: color 0.25s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand);
  transition: transform 0.3s var(--ease);
  line-height: 1;
}

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

#faq summary:hover {
  color: var(--brand);
}

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

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

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 12px 16px 12px 56px;
  margin-bottom: 10px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

#howto ol li:hover {
  transform: translateX(4px);
  border-color: var(--brand);
}

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

#contact address li {
  padding: 14px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
  margin: 0;
}

#contact address li:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
}

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

#sitemap ul li {
  margin: 0;
}

#sitemap ul a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.9rem;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  transition: all 0.25s var(--ease);
}

#sitemap ul a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232, 93, 117, 0.3);
}

#sitemap h3 {
  margin-top: 1.4em;
}

/* ============ News ============ */
#news ul {
  list-style: none;
  padding: 0;
}

#news li {
  position: relative;
  padding: 12px 0 12px 22px;
  margin: 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
  transition: color 0.25s var(--ease);
}

#news li:last-child {
  border-bottom: none;
}

#news li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.4em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  transition: transform 0.25s var(--ease);
}

#news li:hover::before {
  transform: scale(1.6);
}

#news time {
  display: inline-block;
  margin-right: 10px;
  font-weight: 600;
  color: var(--brand);
}

/* ============ EEAT ============ */
#eeat {
  background: linear-gradient(135deg, var(--brand-light), var(--accent-soft));
  border-color: var(--border-strong);
}

/* ============ Footer ============ */
footer[role="contentinfo"] {
  margin-top: 20px;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-top: 1px solid var(--border);
  padding: 48px 20px 24px;
}

.footer-main {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-main h2 {
  font-size: 1.25rem;
  padding-left: 0;
  margin-bottom: 0.5em;
}

.footer-main h2::before {
  display: none;
}

.footer-main h3 {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.8em;
}

.footer-main p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.6em;
}

.footer-main nav ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
}

.footer-main nav a {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.footer-main nav a:hover {
  color: var(--brand);
}

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

/* ============ Animations ============ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 16px;
  }

  .topbar nav {
    gap: 14px;
  }

  .brandbar {
    padding: 12px 16px;
    gap: 14px;
  }

  .brandname strong {
    font-size: 1.15rem;
  }

  form[role="search"] {
    flex: 1 1 100%;
    max-width: none;
  }

  .mainnav {
    padding: 0 16px 10px;
  }

  main {
    padding: 18px 16px 48px;
  }

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

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 4px;
  }

  #banner p {
    font-size: 0.95rem;
  }

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

  .stats strong {
    font-size: 1.35rem;
  }

  #articles article {
    padding: 18px;
  }

  #contact address ul {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-main nav ul {
    grid-template-columns: repeat(2, 1fr);
  }

  footer[role="contentinfo"] {
    padding: 36px 16px 20px;
  }
}

@media (max-width: 420px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .mainnav a {
    padding: 7px 12px;
    font-size: 0.85rem;
  }
}