:root {
  --gg-pink: #ff4d6d;
  --gg-pink-soft: #ff8fa3;
  --gg-pink-deep: #e6395b;
  --gg-purple: #7c3aed;
  --gg-purple-soft: #a78bfa;
  --gg-orange: #ff8c42;
  --gg-bg: #fff5f7;
  --gg-bg-alt: #ffffff;
  --gg-card: rgba(255, 255, 255, 0.72);
  --gg-card-solid: #ffffff;
  --gg-glass: rgba(255, 255, 255, 0.55);
  --gg-glass-border: rgba(255, 255, 255, 0.65);
  --gg-text: #2b1a2e;
  --gg-text-soft: #6b5568;
  --gg-text-muted: #9c8a99;
  --gg-border: rgba(255, 77, 109, 0.14);
  --gg-shadow: 0 8px 30px rgba(255, 77, 109, 0.12);
  --gg-shadow-hover: 0 16px 44px rgba(255, 77, 109, 0.22);
  --gg-radius: 20px;
  --gg-radius-sm: 12px;
  --gg-radius-lg: 28px;
  --gg-gradient: linear-gradient(135deg, #ff4d6d 0%, #ff8fa3 42%, #7c3aed 100%);
  --gg-gradient-soft: linear-gradient(135deg, rgba(255, 77, 109, 0.12), rgba(124, 58, 237, 0.12));
  --gg-transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --gg-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --gg-bg: #140a16;
    --gg-bg-alt: #1d0f20;
    --gg-card: rgba(38, 20, 42, 0.66);
    --gg-card-solid: #26142a;
    --gg-glass: rgba(45, 24, 50, 0.5);
    --gg-glass-border: rgba(255, 143, 163, 0.22);
    --gg-text: #fbeef3;
    --gg-text-soft: #d3bccb;
    --gg-text-muted: #9c86a0;
    --gg-border: rgba(255, 143, 163, 0.18);
    --gg-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    --gg-shadow-hover: 0 16px 44px rgba(255, 77, 109, 0.28);
    --gg-gradient-soft: linear-gradient(135deg, rgba(255, 77, 109, 0.18), rgba(124, 58, 237, 0.2));
  }
}

*,
*::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(--gg-font);
  background-color: var(--gg-bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 77, 109, 0.16), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(124, 58, 237, 0.16), transparent 46%),
    radial-gradient(circle at 50% 96%, rgba(255, 140, 66, 0.12), transparent 50%);
  background-attachment: fixed;
  color: var(--gg-text);
  line-height: 1.75;
  font-size: 16px;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--gg-pink-deep);
  text-decoration: none;
  transition: color var(--gg-transition), opacity var(--gg-transition);
}

a:hover {
  color: var(--gg-purple);
}

a:focus-visible {
  outline: 2px solid var(--gg-pink);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--gg-pink);
  color: #fff;
}

/* ============ HEADER ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px clamp(16px, 4vw, 48px);
  background: var(--gg-glass);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--gg-glass-border);
  box-shadow: 0 4px 24px rgba(255, 77, 109, 0.08);
}

header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 4px;
  max-width: 1200px;
  margin: 0 auto;
}

header nav a {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gg-text-soft);
  border-radius: 999px;
  white-space: nowrap;
  transition: color var(--gg-transition), background var(--gg-transition), transform var(--gg-transition);
}

header nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gg-gradient);
  transform: translateX(-50%);
  transition: width var(--gg-transition);
}

header nav a:hover {
  color: var(--gg-pink-deep);
  background: var(--gg-gradient-soft);
  transform: translateY(-2px);
}

header nav a:hover::after {
  width: 46%;
}

/* ============ MAIN LAYOUT ============ */
main {
  display: block;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 40px) 80px;
}

main > h1 {
  font-size: clamp(1.7rem, 4.6vw, 2.9rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
  padding: clamp(28px, 5vw, 52px) clamp(18px, 4vw, 40px);
  margin-bottom: clamp(24px, 4vw, 40px);
  color: #fff;
  background: var(--gg-gradient);
  background-size: 200% 200%;
  border-radius: var(--gg-radius-lg);
  box-shadow: 0 18px 48px rgba(255, 77, 109, 0.32);
  position: relative;
  overflow: hidden;
  animation: ggGradientShift 12s ease infinite;
}

main > h1::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 160%;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.22), transparent 50%);
  pointer-events: none;
}

main > h1 + p {
  font-size: clamp(0.98rem, 2vw, 1.1rem);
  color: var(--gg-text-soft);
  text-align: center;
  max-width: 860px;
  margin: 0 auto clamp(28px, 5vw, 52px);
  padding: 0 clamp(4px, 2vw, 20px);
}

@keyframes ggGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ============ SECTIONS ============ */
main > section {
  position: relative;
  background: var(--gg-card);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--gg-glass-border);
  border-radius: var(--gg-radius);
  padding: clamp(22px, 4vw, 40px) clamp(18px, 4vw, 44px);
  margin-bottom: clamp(20px, 3.5vw, 36px);
  box-shadow: var(--gg-shadow);
  transition: transform var(--gg-transition), box-shadow var(--gg-transition), border-color var(--gg-transition);
  animation: ggFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

main > section:hover {
  transform: translateY(-4px);
  box-shadow: var(--gg-shadow-hover);
  border-color: rgba(255, 77, 109, 0.3);
}

main > section::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(18px, 4vw, 44px);
  right: clamp(18px, 4vw, 44px);
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: var(--gg-gradient);
  opacity: 0.85;
}

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

main > section:nth-of-type(1) { animation-delay: 0.04s; }
main > section:nth-of-type(2) { animation-delay: 0.08s; }
main > section:nth-of-type(3) { animation-delay: 0.12s; }
main > section:nth-of-type(4) { animation-delay: 0.16s; }
main > section:nth-of-type(5) { animation-delay: 0.2s; }
main > section:nth-of-type(6) { animation-delay: 0.24s; }
main > section:nth-of-type(7) { animation-delay: 0.28s; }
main > section:nth-of-type(8) { animation-delay: 0.32s; }
main > section:nth-of-type(9) { animation-delay: 0.36s; }
main > section:nth-of-type(10) { animation-delay: 0.4s; }

/* ============ HEADINGS ============ */
main h2 {
  position: relative;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 800;
  line-height: 1.4;
  color: var(--gg-text);
  margin-bottom: clamp(14px, 2.4vw, 22px);
  padding-left: 18px;
}

main h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  bottom: 0.28em;
  width: 6px;
  border-radius: 6px;
  background: var(--gg-gradient);
  box-shadow: 0 0 12px rgba(255, 77, 109, 0.5);
}

main h3 {
  font-size: clamp(1.05rem, 2.3vw, 1.28rem);
  font-weight: 700;
  color: var(--gg-pink-deep);
  margin: clamp(18px, 3vw, 26px) 0 10px;
  line-height: 1.5;
}

main h4 {
  font-size: clamp(0.98rem, 2vw, 1.1rem);
  font-weight: 700;
  color: var(--gg-purple);
  margin: clamp(14px, 2.4vw, 20px) 0 6px;
  line-height: 1.55;
  display: flex;
  align-items: center;
  gap: 8px;
}

main h4::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gg-gradient);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.55);
}

main p {
  color: var(--gg-text-soft);
  font-size: clamp(0.94rem, 1.9vw, 1.02rem);
  margin-bottom: 12px;
}

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

main ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

main ul li {
  position: relative;
}

main ul li a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gg-text-soft);
  background: var(--gg-gradient-soft);
  border: 1px solid var(--gg-border);
  border-radius: 999px;
  transition: transform var(--gg-transition), color var(--gg-transition), box-shadow var(--gg-transition), background var(--gg-transition);
}

main ul li a:hover {
  color: #fff;
  background: var(--gg-gradient);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 24px rgba(255, 77, 109, 0.3);
}

/* ============ ARTICLE CARDS ============ */
#articles article {
  position: relative;
  padding: clamp(16px, 3vw, 24px);
  margin-bottom: 14px;
  background: var(--gg-card-solid);
  border: 1px solid var(--gg-border);
  border-radius: var(--gg-radius-sm);
  box-shadow: 0 4px 18px rgba(255, 77, 109, 0.07);
  transition: transform var(--gg-transition), box-shadow var(--gg-transition), border-color var(--gg-transition);
  overflow: hidden;
}

#articles article::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gg-gradient);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--gg-transition);
}

#articles article:hover {
  transform: translateX(6px) translateY(-3px);
  box-shadow: var(--gg-shadow-hover);
  border-color: rgba(255, 77, 109, 0.3);
}

#articles article:hover::after {
  transform: scaleY(1);
}

#articles article h3 {
  margin-top: 0;
  color: var(--gg-text);
}

#articles article p {
  font-size: 0.92rem;
  color: var(--gg-text-muted);
}

#articles article p + p {
  color: var(--gg-text-soft);
}

#articles article a {
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gg-pink-deep);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gg-gradient-soft);
  border: 1px solid var(--gg-border);
  transition: transform var(--gg-transition), color var(--gg-transition), background var(--gg-transition), box-shadow var(--gg-transition);
}

#articles article a:hover {
  color: #fff;
  background: var(--gg-gradient);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 77, 109, 0.3);
}

/* ============ FAQ ============ */
#faq h3 {
  position: relative;
  padding: 14px 18px 14px 44px;
  margin: 14px 0 8px;
  font-size: clamp(0.98rem, 2vw, 1.1rem);
  color: var(--gg-text);
  background: var(--gg-gradient-soft);
  border: 1px solid var(--gg-border);
  border-radius: var(--gg-radius-sm);
  transition: transform var(--gg-transition), box-shadow var(--gg-transition), color var(--gg-transition);
  cursor: default;
}

#faq h3::before {
  content: "Q";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: var(--gg-gradient);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(255, 77, 109, 0.4);
}

#faq h3:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 22px rgba(255, 77, 109, 0.18);
  color: var(--gg-pink-deep);
}

#faq h3 + p {
  padding: 0 18px 6px 44px;
  margin-bottom: 14px;
  border-left: 2px dashed var(--gg-border);
  margin-left: 12px;
}

/* ============ HOWTO ============ */
#howto h4 {
  padding: 12px 16px;
  background: var(--gg-card-solid);
  border: 1px solid var(--gg-border);
  border-radius: var(--gg-radius-sm);
  box-shadow: 0 3px 14px rgba(124, 58, 237, 0.08);
  transition: transform var(--gg-transition), box-shadow var(--gg-transition), border-color var(--gg-transition);
}

#howto h4:hover {
  transform: translateX(6px);
  box-shadow: 0 10px 26px rgba(124, 58, 237, 0.18);
  border-color: rgba(124, 58, 237, 0.35);
}

/* ============ REVIEWS ============ */
#reviews p {
  position: relative;
  padding: 16px 18px 16px 52px;
  margin-bottom: 12px;
  font-style: normal;
  color: var(--gg-text-soft);
  background: var(--gg-card-solid);
  border: 1px solid var(--gg-border);
  border-radius: var(--gg-radius-sm);
  box-shadow: 0 4px 18px rgba(255, 77, 109, 0.07);
  transition: transform var(--gg-transition), box-shadow var(--gg-transition);
}

#reviews p::before {
  content: "\201C";
  position: absolute;
  left: 16px;
  top: 4px;
  font-size: 2.6rem;
  line-height: 1;
  font-family: Georgia, serif;
  background: var(--gg-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

#reviews p:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--gg-shadow-hover);
}

/* ============ NEWS ============ */
#news h3 {
  padding: 14px 18px;
  margin-top: 16px;
  background: var(--gg-card-solid);
  border: 1px solid var(--gg-border);
  border-left: 5px solid var(--gg-pink);
  border-radius: var(--gg-radius-sm);
  color: var(--gg-text);
  box-shadow: 0 4px 16px rgba(255, 77, 109, 0.08);
  transition: transform var(--gg-transition), box-shadow var(--gg-transition), border-color var(--gg-transition);
}

#news h3:hover {
  transform: translateX(6px);
  box-shadow: 0 10px 26px rgba(255, 77, 109, 0.2);
  border-left-color: var(--gg-purple);
}

#news h3 + p {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gg-text-muted);
  padding: 6px 18px 0;
  letter-spacing: 0.04em;
}

#news h3 + p + p {
  padding: 6px 18px 0;
}

/* ============ CASES ============ */
#cases h3 {
  display: inline-block;
  padding: 6px 16px;
  margin-top: 20px;
  font-size: 0.98rem;
  color: #fff;
  background: var(--gg-gradient);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(255, 77, 109, 0.28);
  transition: transform var(--gg-transition), box-shadow var(--gg-transition);
}

#cases h3:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(255, 77, 109, 0.4);
}

#cases h3 + p {
  margin-top: 10px;
}

/* ============ CONTACT ============ */
#contact p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  padding: 11px 16px;
  margin-bottom: 8px;
  background: var(--gg-card-solid);
  border: 1px solid var(--gg-border);
  border-radius: var(--gg-radius-sm);
  font-size: 0.94rem;
  transition: transform var(--gg-transition), box-shadow var(--gg-transition), border-color var(--gg-transition);
}

#contact p:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 22px rgba(255, 77, 109, 0.16);
  border-color: rgba(255, 77, 109, 0.32);
}

#contact p a {
  font-weight: 700;
  word-break: break-all;
}

/* ============ AUTHOR ============ */
#author {
  background: var(--gg-gradient);
  border: none;
  color: #fff;
}

#author::before {
  background: rgba(255, 255, 255, 0.55);
}

#author h2 {
  color: #fff;
}

#author h2::before {
  background: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.7);
}

#author p {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 500;
}

#author:hover {
  box-shadow: 0 20px 52px rgba(255, 77, 109, 0.45);
}

/* ============ SITEMAP / LINKS ============ */
#sitemap ul,
#links ul {
  gap: 8px;
}

#sitemap ul li a,
#links ul li a {
  background: var(--gg-card-solid);
}

/* ============ LEGAL ============ */
#legal h2 {
  margin-top: 22px;
}

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

#legal p {
  padding: 12px 16px;
  background: var(--gg-card-solid);
  border: 1px solid var(--gg-border);
  border-radius: var(--gg-radius-sm);
  font-size: 0.92rem;
  transition: box-shadow var(--gg-transition), border-color var(--gg-transition);
}

#legal p:hover {
  box-shadow: 0 8px 22px rgba(255, 77, 109, 0.14);
  border-color: rgba(255, 77, 109, 0.3);
}

/* ============ FOOTER ============ */
footer {
  position: relative;
  padding: clamp(28px, 5vw, 48px) clamp(16px, 4vw, 40px);
  text-align: center;
  background: var(--gg-glass);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border-top: 1px solid var(--gg-glass-border);
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gg-gradient);
}

footer p {
  color: var(--gg-text-soft);
  font-size: 0.88rem;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

footer p:last-child {
  font-weight: 700;
  background: var(--gg-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  header nav {
    gap: 4px 2px;
  }

  header nav a {
    padding: 7px 11px;
    font-size: 0.84rem;
  }

  main > section {
    border-radius: var(--gg-radius-sm);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
    line-height: 1.7;
  }

  header {
    padding: 10px 12px;
  }

  header nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
  }

  header nav::-webkit-scrollbar {
    display: none;
  }

  header nav a {
    flex: 0 0 auto;
    padding: 7px 12px;
    font-size: 0.82rem;
  }

  main {
    padding: 18px 14px 56px;
  }

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

  main > section {
    padding: 20px 16px;
    margin-bottom: 16px;
  }

  main > section::before {
    left: 16px;
    right: 16px;
  }

  main h2 {
    padding-left: 14px;
  }

  main h2::before {
    width: 5px;
  }

  main ul {
    gap: 8px;
  }

  main ul li a {
    padding: 7px 13px;
    font-size: 0.84rem;
  }

  #faq h3 {
    padding: 12px 14px 12px 40px;
  }

  #faq h3 + p {
    padding-left: 40px;
    margin-left: 8px;
  }

  #reviews p {
    padding: 14px 14px 14px 44px;
  }

  #reviews p::before {
    left: 12px;
    font-size: 2.2rem;
  }

  #articles article {
    padding: 16px 14px;
  }

  #articles article:hover {
    transform: translateY(-3px);
  }
}

@media (max-width: 380px) {
  main > h1 {
    font-size: 1.45rem;
  }

  header nav a {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
}

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

/* ============ PRINT ============ */
@media print {
  header,
  footer,
  #sitemap,
  #links {
    display: none;
  }

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

  main > section,
  main > h1 {
    box-shadow: none;
    border: 1px solid #ddd;
    background: #fff;
    color: #000;
  }

  main h1,
  #author h2,
  #author p {
    color: #000;
  }
}