:root {
  --peach-50: #fff5f6;
  --peach-100: #ffe4e8;
  --peach-200: #ffc9d2;
  --peach-300: #ff9fb0;
  --peach-400: #f76d88;
  --peach-500: #e8536a;
  --peach-600: #d13a55;
  --peach-700: #b02a45;
  --peach-800: #8a1f36;
  --peach-900: #5c1424;

  --cream-50: #fffdf9;
  --cream-100: #fff8ef;
  --cream-200: #fdf0e2;
  --cream-300: #f7e3cd;

  --ink-900: #2b1d22;
  --ink-800: #3d2b31;
  --ink-700: #553b43;
  --ink-600: #6f5159;
  --ink-500: #8d6d75;
  --ink-400: #ab8d95;
  --ink-300: #c9b0b7;
  --ink-200: #e2d2d6;
  --ink-100: #f2e8ea;

  --bg-body: #fffdf9;
  --bg-surface: #ffffff;
  --bg-surface-soft: rgba(255, 255, 255, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --bg-glass-strong: rgba(255, 255, 255, 0.82);
  --text-primary: #2b1d22;
  --text-secondary: #6f5159;
  --text-muted: #8d6d75;
  --border-soft: rgba(232, 83, 106, 0.14);
  --border-glass: rgba(255, 255, 255, 0.6);
  --shadow-sm: 0 2px 8px rgba(138, 31, 54, 0.06);
  --shadow-md: 0 8px 24px rgba(138, 31, 54, 0.08);
  --shadow-lg: 0 18px 48px rgba(138, 31, 54, 0.12);
  --shadow-glow: 0 12px 36px rgba(232, 83, 106, 0.22);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --grad-hero: linear-gradient(135deg, #ffe4e8 0%, #fff5f6 35%, #fdf0e2 70%, #fff8ef 100%);
  --grad-accent: linear-gradient(135deg, #f76d88 0%, #e8536a 50%, #d13a55 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 228, 232, 0.7) 0%, rgba(253, 240, 226, 0.7) 100%);
  --grad-text: linear-gradient(120deg, #e8536a 0%, #f76d88 45%, #d13a55 100%);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", Georgia, serif;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 1180px;
  --nav-height: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-body: #1a1216;
    --bg-surface: #241a1f;
    --bg-surface-soft: rgba(36, 26, 31, 0.78);
    --bg-glass: rgba(45, 32, 38, 0.55);
    --bg-glass-strong: rgba(45, 32, 38, 0.85);
    --text-primary: #f7ecee;
    --text-secondary: #d6bcc2;
    --text-muted: #ab8d95;
    --border-soft: rgba(247, 109, 136, 0.18);
    --border-glass: rgba(247, 109, 136, 0.16);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.38);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.48);
    --shadow-glow: 0 12px 36px rgba(232, 83, 106, 0.3);
    --grad-hero: linear-gradient(135deg, #3a2029 0%, #2a1a20 35%, #33232a 70%, #1f1519 100%);
    --grad-soft: linear-gradient(135deg, rgba(58, 32, 41, 0.7) 0%, rgba(51, 35, 42, 0.7) 100%);
    --cream-50: #1a1216;
    --cream-100: #241a1f;
    --cream-200: #2d2026;
    --cream-300: #3a2a31;
    --ink-100: #2d2026;
    --ink-200: #3a2a31;
  }
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--bg-body);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 201, 210, 0.35) 0%, transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(253, 240, 226, 0.5) 0%, transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(255, 228, 232, 0.3) 0%, transparent 55%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-base), color var(--transition-base);
}

@media (prefers-color-scheme: dark) {
  body {
    background-image:
      radial-gradient(circle at 12% 8%, rgba(232, 83, 106, 0.12) 0%, transparent 42%),
      radial-gradient(circle at 88% 12%, rgba(138, 31, 54, 0.18) 0%, transparent 40%),
      radial-gradient(circle at 50% 100%, rgba(247, 109, 136, 0.1) 0%, transparent 55%);
  }
}

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

a {
  color: var(--peach-600);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
  color: var(--peach-500);
}

a:focus-visible {
  outline: 2px solid var(--peach-400);
  outline-offset: 3px;
  border-radius: 4px;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--peach-200);
  color: var(--peach-800);
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass-strong);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border-soft);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

header nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

header nav > a {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
  position: relative;
  padding: 6px 0;
  transition: transform var(--transition-fast);
}

header nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

header nav > a:hover {
  transform: translateY(-1px);
}

header nav > a:hover::after {
  transform: scaleX(1);
}

header nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

header nav ul li a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

header nav ul li a:hover {
  color: var(--peach-600);
  background: var(--grad-soft);
  transform: translateY(-2px);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
}

section {
  margin-top: 72px;
  scroll-margin-top: calc(var(--nav-height) + 24px);
  opacity: 0;
  transform: translateY(28px);
  animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  section {
    opacity: 1;
    transform: none;
    animation: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

#hero {
  margin-top: 40px;
  padding: 72px 48px;
  border-radius: var(--radius-xl);
  background: var(--grad-hero);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

#hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 109, 136, 0.28) 0%, transparent 68%);
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -140px;
  left: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 201, 210, 0.4) 0%, transparent 70%);
  pointer-events: none;
  animation: floatOrb 15s ease-in-out infinite reverse;
}

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

#hero h1 {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

#hero p {
  position: relative;
  z-index: 1;
  max-width: 820px;
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  line-height: 1.95;
  color: var(--text-secondary);
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 28px;
  padding-left: 20px;
  position: relative;
  letter-spacing: 0.02em;
}

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 14px rgba(232, 83, 106, 0.45);
}

h3 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--peach-700);
  margin: 32px 0 12px;
  padding-left: 4px;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

@media (prefers-color-scheme: dark) {
  h3 {
    color: var(--peach-300);
  }
}

h3:hover {
  color: var(--peach-500);
  transform: translateX(3px);
}

section > p,
section > article > p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.95;
  margin-bottom: 14px;
  text-align: justify;
  word-break: break-word;
}

article {
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base);
  position: relative;
  overflow: hidden;
}

article::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232, 83, 106, 0.3);
}

article:hover::before {
  opacity: 1;
}

article h3 {
  margin-top: 0;
  position: relative;
  z-index: 1;
}

article p {
  position: relative;
  z-index: 1;
}

article a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-accent);
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

article a::after {
  content: "→";
  font-size: 0.95em;
  transition: transform var(--transition-fast);
}

article a:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 40px rgba(232, 83, 106, 0.4);
  filter: brightness(1.05);
}

article a:hover::after {
  transform: translateX(4px);
}

#cases h3,
#testimonials h3,
#news h3,
#faq h3,
#howto h3 {
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

#cases h3:hover,
#testimonials h3:hover,
#news h3:hover,
#faq h3:hover,
#howto h3:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 83, 106, 0.28);
}

#faq h3 {
  cursor: default;
}

#faq h3 + p {
  padding: 0 20px 6px;
  margin-top: -4px;
}

#howto h3 {
  background: var(--grad-soft);
}

#news h3 + p:first-of-type {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: -4px;
}

#testimonials p {
  position: relative;
  padding: 18px 22px 18px 46px;
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  margin-bottom: 12px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

#testimonials p::before {
  content: "“";
  position: absolute;
  left: 16px;
  top: 8px;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--peach-300);
  opacity: 0.8;
}

#testimonials p:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 83, 106, 0.28);
}

#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

#sitemap ul li a,
#links ul li a {
  display: block;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 500;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
  position: relative;
  overflow: hidden;
}

#sitemap ul li a::before,
#links ul li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--grad-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-base);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: var(--peach-600);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 83, 106, 0.3);
  background: var(--bg-surface);
}

#sitemap ul li a:hover::before,
#links ul li a:hover::before {
  transform: scaleY(1);
}

#privacy,
#disclaimer,
#copyright,
#security {
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px 34px;
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

#privacy:hover,
#disclaimer:hover,
#copyright:hover,
#security:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

#contact p {
  padding: 4px 0;
}

#contact h3 + p,
#contact h3 ~ p {
  color: var(--text-secondary);
}

footer {
  margin-top: 80px;
  padding: 48px 24px 40px;
  background: var(--bg-glass-strong);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid var(--border-soft);
  text-align: center;
}

footer nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 24px;
}

footer nav ul li a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

footer nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-base);
}

footer nav ul li a:hover {
  color: var(--peach-600);
}

footer nav ul li a:hover::after {
  transform: scaleX(1);
}

footer p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-top: 6px;
}

footer p:last-child {
  margin-top: 14px;
  font-size: 0.78rem;
  opacity: 0.85;
}

@media (max-width: 1024px) {
  main {
    padding: 0 20px 64px;
  }
  #hero {
    padding: 56px 36px;
  }
  section {
    margin-top: 60px;
  }
}

@media (max-width: 860px) {
  header nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 20px;
  }
  header nav ul {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 2px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  header nav ul::-webkit-scrollbar {
    display: none;
  }
  header nav ul li a {
    white-space: nowrap;
    font-size: 0.86rem;
    padding: 7px 12px;
  }
  #hero {
    padding: 44px 26px;
    border-radius: var(--radius-lg);
  }
  h2 {
    padding-left: 16px;
  }
  h2::before {
    width: 5px;
  }
  article {
    padding: 22px 20px;
  }
  #privacy,
  #disclaimer,
  #copyright,
  #security {
    padding: 26px 22px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }
  main {
    padding: 0 16px 56px;
  }
  section {
    margin-top: 48px;
  }
  #hero {
    margin-top: 28px;
    padding: 36px 20px;
    border-radius: var(--radius-md);
  }
  #hero h1 {
    margin-bottom: 18px;
  }
  h2 {
    font-size: 1.3rem;
    margin-bottom: 22px;
  }
  h3 {
    font-size: 1.02rem;
    margin-top: 26px;
  }
  article {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }
  article a {
    width: 100%;
    justify-content: center;
  }
  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  #sitemap ul li a,
  #links ul li a {
    padding: 12px 14px;
    font-size: 0.86rem;
  }
  #testimonials p {
    padding: 16px 16px 16px 40px;
  }
  #cases h3,
  #testimonials h3,
  #news h3,
  #faq h3,
  #howto h3 {
    padding: 12px 16px;
  }
  #faq h3 + p {
    padding: 0 16px 4px;
  }
  footer {
    padding: 36px 16px 32px;
  }
  footer nav ul {
    gap: 6px 16px;
  }
}

@media (max-width: 380px) {
  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }
  header nav > a {
    font-size: 1.2rem;
  }
}

@media (hover: none) {
  article:hover,
  #cases h3:hover,
  #testimonials h3:hover,
  #news h3:hover,
  #faq h3:hover,
  #howto h3:hover,
  #testimonials p:hover,
  #sitemap ul li a:hover,
  #links ul li a:hover,
  #privacy:hover,
  #disclaimer:hover,
  #copyright:hover,
  #security:hover {
    transform: none;
  }
}

@media print {
  header,
  footer,
  #hero::before,
  #hero::after {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
  section {
    opacity: 1;
    transform: none;
    animation: none;
    page-break-inside: avoid;
  }
}