:root {
  --rose-primary: #c2185b;
  --rose-primary-light: #e91e63;
  --rose-primary-dark: #880e4f;
  --rose-accent: #ff6b9d;
  --rose-soft: #fce4ec;
  --rose-bg: #fff8fa;
  --rose-surface: #ffffff;
  --rose-surface-alt: #fdf2f6;
  --rose-text: #2d1b26;
  --rose-text-secondary: #6d5560;
  --rose-text-muted: #9e8a94;
  --rose-border: rgba(194, 24, 91, 0.12);
  --rose-shadow: 0 4px 24px rgba(194, 24, 91, 0.08);
  --rose-shadow-lg: 0 12px 48px rgba(194, 24, 91, 0.14);
  --rose-glass: rgba(255, 255, 255, 0.72);
  --rose-glass-border: rgba(255, 255, 255, 0.5);
  --rose-radius: 18px;
  --rose-radius-sm: 12px;
  --rose-radius-lg: 28px;
  --rose-transition: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  --rose-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --rose-max-width: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --rose-primary: #f06292;
    --rose-primary-light: #ff80ab;
    --rose-primary-dark: #c2185b;
    --rose-accent: #ff8fb3;
    --rose-soft: #3a1a2e;
    --rose-bg: #140a10;
    --rose-surface: #1e1219;
    --rose-surface-alt: #261620;
    --rose-text: #f5e6ee;
    --rose-text-secondary: #c9aebc;
    --rose-text-muted: #8a6e7c;
    --rose-border: rgba(240, 98, 146, 0.18);
    --rose-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --rose-shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.55);
    --rose-glass: rgba(30, 18, 25, 0.72);
    --rose-glass-border: rgba(240, 98, 146, 0.15);
  }
}

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

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

body {
  font-family: var(--rose-font);
  background: var(--rose-bg);
  color: var(--rose-text);
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--rose-transition), color var(--rose-transition);
}

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

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

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

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

ul {
  list-style: none;
}

/* ===== HEADER ===== */
header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--rose-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--rose-glass-border);
  transition: background var(--rose-transition), box-shadow var(--rose-transition);
}

header[role="banner"]:hover {
  box-shadow: var(--rose-shadow);
}

nav[aria-label="主导航"] {
  max-width: var(--rose-max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  flex-wrap: wrap;
  gap: 8px;
}

nav[aria-label="主导航"] > a[aria-label="玫瑰视频首页"] {
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rose-primary), var(--rose-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.04em;
  white-space: nowrap;
  position: relative;
  transition: transform var(--rose-transition);
}

nav[aria-label="主导航"] > a[aria-label="玫瑰视频首页"]:hover {
  transform: scale(1.04);
}

nav[aria-label="主导航"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
}

nav[aria-label="主导航"] ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--rose-text-secondary);
  border-radius: 100px;
  white-space: nowrap;
  position: relative;
  transition: all var(--rose-transition);
}

nav[aria-label="主导航"] ul li a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--rose-primary), var(--rose-accent));
  border-radius: 2px;
  transition: transform var(--rose-transition);
}

nav[aria-label="主导航"] ul li a:hover {
  color: var(--rose-primary);
  background: var(--rose-soft);
}

nav[aria-label="主导航"] ul li a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* ===== MAIN ===== */
main {
  max-width: var(--rose-max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ===== BANNER ===== */
#banner {
  position: relative;
  margin: 32px 0 48px;
  padding: 72px 48px;
  border-radius: var(--rose-radius-lg);
  background: linear-gradient(135deg, #c2185b 0%, #e91e63 35%, #ff6b9d 70%, #ffb3c6 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--rose-shadow-lg);
  isolation: isolate;
}

#banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 70%);
  border-radius: 50%;
  animation: roseFloat 8s ease-in-out infinite;
  z-index: -1;
}

#banner::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: roseFloat 10s ease-in-out infinite reverse;
  z-index: -1;
}

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

#banner h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  position: relative;
}

#banner p {
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  line-height: 1.9;
  max-width: 780px;
  opacity: 0.95;
  margin-bottom: 16px;
  position: relative;
}

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

/* ===== SECTIONS ===== */
main > section {
  margin-bottom: 56px;
  padding: 40px 36px;
  background: var(--rose-surface);
  border-radius: var(--rose-radius);
  border: 1px solid var(--rose-border);
  box-shadow: var(--rose-shadow);
  transition: background var(--rose-transition), border-color var(--rose-transition), box-shadow var(--rose-transition), transform var(--rose-transition);
  opacity: 0;
  transform: translateY(32px);
  animation: roseReveal 0.7s ease forwards;
}

main > section:nth-child(1) { animation-delay: 0.05s; }
main > section:nth-child(2) { animation-delay: 0.1s; }
main > section:nth-child(3) { animation-delay: 0.15s; }
main > section:nth-child(4) { animation-delay: 0.2s; }
main > section:nth-child(5) { animation-delay: 0.25s; }
main > section:nth-child(6) { animation-delay: 0.3s; }
main > section:nth-child(7) { animation-delay: 0.35s; }
main > section:nth-child(8) { animation-delay: 0.4s; }
main > section:nth-child(9) { animation-delay: 0.45s; }
main > section:nth-child(10) { animation-delay: 0.5s; }
main > section:nth-child(11) { animation-delay: 0.55s; }
main > section:nth-child(12) { animation-delay: 0.6s; }
main > section:nth-child(13) { animation-delay: 0.65s; }
main > section:nth-child(14) { animation-delay: 0.7s; }
main > section:nth-child(15) { animation-delay: 0.75s; }
main > section:nth-child(16) { animation-delay: 0.8s; }
main > section:nth-child(17) { animation-delay: 0.85s; }
main > section:nth-child(18) { animation-delay: 0.9s; }
main > section:nth-child(19) { animation-delay: 0.95s; }
main > section:nth-child(20) { animation-delay: 1s; }
main > section:nth-child(21) { animation-delay: 1.05s; }

@keyframes roseReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main > section:hover {
  border-color: var(--rose-primary);
  box-shadow: var(--rose-shadow-lg);
  transform: translateY(-4px);
}

/* ===== HEADINGS ===== */
main > section > h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 28px;
  padding-bottom: 16px;
  position: relative;
  color: var(--rose-text);
  letter-spacing: 0.03em;
}

main > section > h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--rose-primary), var(--rose-accent));
  transition: width var(--rose-transition);
}

main > section:hover > h2::after {
  width: 100px;
}

main > section h3 {
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--rose-primary);
  letter-spacing: 0.02em;
  position: relative;
  padding-left: 16px;
}

main > section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--rose-primary), var(--rose-accent));
}

main > section h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 22px 0 10px;
  color: var(--rose-text);
  padding-left: 14px;
  border-left: 3px solid var(--rose-accent);
}

main > section p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--rose-text-secondary);
  margin-bottom: 14px;
}

main > section p:last-child {
  margin-bottom: 0;
}

/* ===== LISTS ===== */
main > section ul {
  margin: 12px 0 20px;
  padding: 0;
}

main > section ul li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 0.93rem;
  line-height: 1.8;
  color: var(--rose-text-secondary);
  border-bottom: 1px solid var(--rose-border);
  transition: padding-left var(--rose-transition), color var(--rose-transition), background var(--rose-transition);
}

main > section ul li:last-child {
  border-bottom: none;
}

main > section ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-primary), var(--rose-accent));
  transition: transform var(--rose-transition), box-shadow var(--rose-transition);
}

main > section ul li:hover {
  padding-left: 36px;
  color: var(--rose-primary);
  background: var(--rose-soft);
  border-radius: var(--rose-radius-sm);
}

main > section ul li:hover::before {
  transform: translateY(-50%) scale(1.4);
  box-shadow: 0 0 12px var(--rose-accent);
}

/* ===== BLOCKQUOTES ===== */
blockquote {
  position: relative;
  margin: 20px 0;
  padding: 24px 28px 24px 48px;
  background: var(--rose-surface-alt);
  border-radius: var(--rose-radius-sm);
  border-left: 4px solid var(--rose-primary);
  transition: transform var(--rose-transition), box-shadow var(--rose-transition), background var(--rose-transition);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  left: 16px;
  font-size: 3rem;
  line-height: 1;
  color: var(--rose-primary);
  opacity: 0.25;
  font-family: Georgia, serif;
}

blockquote:hover {
  transform: translateX(6px);
  box-shadow: var(--rose-shadow);
}

blockquote p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--rose-text-secondary);
  font-style: italic;
  margin-bottom: 10px;
}

blockquote cite {
  display: block;
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 600;
  color: var(--rose-primary);
  text-align: right;
}

/* ===== ARTICLES ===== */
main > section article {
  padding: 24px 28px;
  margin-bottom: 20px;
  background: var(--rose-surface-alt);
  border-radius: var(--rose-radius-sm);
  border: 1px solid transparent;
  transition: transform var(--rose-transition), box-shadow var(--rose-transition), border-color var(--rose-transition), background var(--rose-transition);
}

main > section article:last-child {
  margin-bottom: 0;
}

main > section article:hover {
  transform: translateY(-4px) scale(1.008);
  box-shadow: var(--rose-shadow-lg);
  border-color: var(--rose-primary);
}

main > section article h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

main > section article p {
  font-size: 0.92rem;
  margin-bottom: 10px;
}

main > section article p:first-of-type {
  font-size: 0.82rem;
  color: var(--rose-text-muted);
  font-weight: 500;
}

main > section article a {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--rose-primary), var(--rose-accent));
  color: #fff;
  transition: transform var(--rose-transition), box-shadow var(--rose-transition), opacity var(--rose-transition);
}

main > section article a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(194, 24, 91, 0.35);
  color: #fff;
  opacity: 0.95;
}

/* ===== FAQ ===== */
#faq h3 {
  cursor: default;
  padding: 16px 20px 16px 36px;
  margin: 16px 0 0;
  background: var(--rose-surface-alt);
  border-radius: var(--rose-radius-sm) var(--rose-radius-sm) 0 0;
  border-left: 4px solid var(--rose-primary);
  transition: background var(--rose-transition), color var(--rose-transition);
}

#faq h3::before {
  left: 16px;
}

#faq h3:hover {
  background: var(--rose-soft);
}

#faq h3 + p {
  padding: 16px 20px 20px 36px;
  margin: 0 0 16px;
  background: var(--rose-surface-alt);
  border-radius: 0 0 var(--rose-radius-sm) var(--rose-radius-sm);
  border-left: 4px solid var(--rose-primary);
  border-top: 1px solid var(--rose-border);
}

/* ===== HOWTO ===== */
#howto h3 {
  margin-top: 32px;
}

#howto h4 {
  font-size: 0.95rem;
  color: var(--rose-primary);
  background: var(--rose-soft);
  padding: 10px 16px;
  border-radius: var(--rose-radius-sm);
  border-left: 3px solid var(--rose-primary);
  display: inline-block;
  margin: 18px 0 10px;
}

/* ===== CONTACT ===== */
#contact ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

#contact ul li {
  padding: 14px 18px 14px 36px;
  background: var(--rose-surface-alt);
  border-radius: var(--rose-radius-sm);
  border-bottom: none;
  border: 1px solid var(--rose-border);
  font-size: 0.9rem;
}

#contact ul li::before {
  left: 14px;
}

#contact ul li:hover {
  padding-left: 36px;
  background: var(--rose-soft);
  transform: translateY(-2px);
  box-shadow: var(--rose-shadow);
}

/* ===== SITEMAP & LINKS ===== */
#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

#sitemap ul li,
#links ul li {
  padding: 0;
  border-bottom: none;
}

#sitemap ul li::before,
#links ul li::before {
  display: none;
}

#sitemap ul li a,
#links ul li a {
  display: block;
  padding: 10px 16px;
  background: var(--rose-surface-alt);
  border-radius: var(--rose-radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--rose-text-secondary);
  border: 1px solid var(--rose-border);
  transition: all var(--rose-transition);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  background: linear-gradient(135deg, var(--rose-primary), var(--rose-accent));
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(194, 24, 91, 0.3);
}

/* ===== LEGAL ===== */
#legal h2 {
  font-size: 1.15rem;
  margin-top: 28px;
}

#legal h2:first-child {
  margin-top: 0;
}

#legal p {
  font-size: 0.9rem;
}

/* ===== UPDATES ===== */
#updates p:first-of-type,
#updates p:nth-of-type(2) {
  font-size: 0.82rem;
  color: var(--rose-text-muted);
  font-weight: 500;
}

/* ===== FOOTER ===== */
footer[role="contentinfo"] {
  background: linear-gradient(135deg, var(--rose-primary-dark), var(--rose-primary));
  color: rgba(255, 255, 255, 0.92);
  padding: 48px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

footer[role="contentinfo"]::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

footer[role="contentinfo"] p {
  font-size: 0.88rem;
  line-height: 2;
  margin-bottom: 6px;
  position: relative;
  opacity: 0.9;
}

footer[role="contentinfo"] p:first-child {
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 1;
  margin-bottom: 12px;
}

footer[role="contentinfo"] a {
  color: #ffb3c6;
}

footer[role="contentinfo"] a:hover {
  color: #fff;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--rose-primary-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  main {
    padding: 0 20px 60px;
  }

  main > section {
    padding: 32px 24px;
  }

  #banner {
    padding: 56px 32px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  nav[aria-label="主导航"] {
    padding: 0 16px;
    min-height: 56px;
  }

  nav[aria-label="主导航"] > a[aria-label="玫瑰视频首页"] {
    font-size: 1.15rem;
  }

  nav[aria-label="主导航"] ul {
    gap: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
    width: 100%;
  }

  nav[aria-label="主导航"] ul::-webkit-scrollbar {
    display: none;
  }

  nav[aria-label="主导航"] ul li a {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  main {
    padding: 0 14px 48px;
  }

  #banner {
    margin: 20px 0 32px;
    padding: 40px 24px;
    border-radius: var(--rose-radius);
  }

  #banner h1 {
    font-size: 1.4rem;
    margin-bottom: 16px;
  }

  #banner p {
    font-size: 0.9rem;
    line-height: 1.8;
  }

  main > section {
    padding: 26px 18px;
    margin-bottom: 32px;
    border-radius: var(--rose-radius-sm);
  }

  main > section > h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
  }

  main > section h3 {
    font-size: 1rem;
    margin: 22px 0 10px;
  }

  main > section p {
    font-size: 0.9rem;
    line-height: 1.85;
  }

  main > section ul li {
    font-size: 0.88rem;
    padding: 7px 0 7px 24px;
  }

  main > section ul li:hover {
    padding-left: 28px;
  }

  blockquote {
    padding: 18px 18px 18px 38px;
  }

  blockquote::before {
    font-size: 2.2rem;
    left: 12px;
  }

  main > section article {
    padding: 18px 16px;
  }

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

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

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

  footer[role="contentinfo"] p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  #banner {
    padding: 32px 18px;
  }

  #banner h1 {
    font-size: 1.25rem;
  }

  main > section {
    padding: 22px 14px;
  }

  main > section > h2 {
    font-size: 1.1rem;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }

  #faq h3 {
    padding: 12px 14px 12px 30px;
    font-size: 0.95rem;
  }

  #faq h3 + p {
    padding: 12px 14px 16px 30px;
  }
}

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

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

/* ===== PRINT ===== */
@media print {
  header[role="banner"],
  footer[role="contentinfo"] {
    display: none;
  }

  main > section {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
    opacity: 1;
    transform: none;
    animation: none;
  }

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