/* 兔剪剪官网 — 排版 / 配色 / 字体系统 */
:root {
  /* 紫白主视觉 */
  --bg: #faf8ff;
  --bg-subtle: #f3effa;
  --bg-elevated: #ffffff;
  --text: #141118;
  --text-muted: #575260;
  --text-soft: #7c7788;
  --border: rgb(88 28 135 / 0.08);
  --border-strong: rgb(88 28 135 / 0.14);
  --accent: #6c5ce7;
  --accent-hover: #5b4fd6;
  --accent-glow: #a78bfa;
  --accent-soft: rgb(108 92 231 / 0.14);
  --accent-soft-2: rgb(108 92 231 / 0.07);
  --dark: #120a1c;
  --dark-mid: #1f1430;
  --dark-muted: #b4aec4;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(31 20 48 / 0.05),
    0 12px 40px rgb(88 28 135 / 0.09);
  --shadow-sm: 0 1px 3px rgb(31 20 48 / 0.06);
  --font: "Noto Sans SC", system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --header-h: 68px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --space-section: clamp(72px, 10vw, 112px);
  --space-tight: clamp(48px, 7vw, 80px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(
      ellipse 120% 80% at 100% -20%,
      rgb(108 92 231 / 0.09),
      transparent 52%
    ),
    radial-gradient(
      ellipse 80% 55% at 0% 100%,
      rgb(167 139 250 / 0.07),
      transparent 48%
    );
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgb(250 248 255 / 0.88);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(
    145deg,
    var(--accent) 0%,
    #7c3aed 48%,
    var(--accent-glow) 100%
  );
  box-shadow: 0 4px 16px rgb(108 92 231 / 0.38);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-desktop a {
  padding: 9px 15px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--text);
  background: rgb(108 92 231 / 0.07);
}

.nav-desktop a[aria-current="page"] {
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s var(--ease), background 0.2s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--text);
  color: #fff;
}

.btn-primary:hover {
  background: #2d2640;
}

.btn-accent {
  background: linear-gradient(165deg, var(--accent) 0%, #5b4fd6 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgb(108 92 231 / 0.32);
}

.btn-accent:hover {
  background: linear-gradient(165deg, var(--accent-hover) 0%, #4c3db8 100%);
  box-shadow: 0 6px 24px rgb(108 92 231 / 0.36);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgb(108 92 231 / 0.06);
  border-color: var(--border-strong);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  padding: 20px;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-mobile.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-mobile a {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
}

.nav-mobile a:hover,
.nav-mobile a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}

@media (max-width: 900px) {
  .nav-desktop,
  .header-actions .btn-ghost {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-mobile {
    display: flex;
  }
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

@media (max-width: 540px) {
  .container {
    width: min(1180px, calc(100% - 32px));
  }

  body {
    font-size: 16px;
  }
}

/* —— Footer —— */
.site-footer {
  background: linear-gradient(180deg, var(--dark-mid) 0%, var(--dark) 100%);
  color: var(--dark-muted);
  padding: 72px 0 36px;
  margin-top: var(--space-section);
  border-top: 1px solid rgb(167 139 250 / 0.15);
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.5;
  max-width: 280px;
}

.footer-col h4 {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 14px;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  font-size: 13px;
  line-height: 1.5;
  color: rgb(180 174 196 / 0.95);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

a.footer-icp {
  color: inherit;
  text-decoration: none;
}

a.footer-icp:hover {
  color: #fff;
  text-decoration: underline;
}

/* —— Sections通用 —— */
.section {
  padding: var(--space-section) 0;
}

.section-tight {
  padding: var(--space-tight) 0;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.18;
  margin: 0 0 18px;
}

.section-desc {
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  color: var(--text-muted);
  max-width: 36em;
  margin: 0 0 44px;
  line-height: 1.65;
}

/* 区块标题居中（首页 FAQ 等） */
.section-head--center {
  text-align: center;
}

.section-head--center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.section-head--center .section-title {
  max-width: none;
}

/* 移动端导航内主按钮 */
.nav-mobile-cta {
  margin-top: 16px;
  text-align: center;
}

/* —— Toast —— */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 14px 22px;
  background: var(--text);
  color: #fff;
  border-radius: 12px;
  font-size: 14px;
  z-index: 200;
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  pointer-events: none;
  box-shadow: var(--shadow);
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* —— Reveal on scroll —— */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
