/* ============================================================
   不合理蛙官网 · 深色版样式
   叠在 style.css 之上，只在 [data-theme="dark"] 作用域里生效，
   浅色版（默认不加载本文件的作用域）保持原样。
   色板仍按 Notion 规范的结构：一个紫色主色、近黑正文、发丝线分块，
   深色下把画布压到近黑，紫提亮一档，靠微光和分层卡片做质感。
   ============================================================ */

[data-theme="dark"] {
  --primary: #7b68ff;                    /* 深底上的 Notion 紫，提亮一档 */
  --primary-deep: #b3a7ff;               /* 深底上的强调文字、当前导航文字 */
  --primary-press: #8f7eff;
  --primary-soft-hover: rgba(123, 104, 255, 0.16);
  --brand-dark: #f4f4f6;                 /* 深色版里翻成浅色块，位置保留 */
  --ink: #f4f4f6;
  --ink-secondary: #c3c4cb;
  --ink-mute: #8a8b93;
  --on-primary: #ffffff;
  --canvas: #08090b;
  --canvas-soft: #0b0c0f;
  --canvas-cream: #0f1013;
  --hairline: rgba(255, 255, 255, 0.09);
  --hairline-input: rgba(255, 255, 255, 0.18);
  --ruby: #ff6bd1;
  --shadow-color: 0, 0, 0;

  --shadow-1: rgba(0, 0, 0, 0.35) 0 1px 2px;
  --shadow-2: rgba(0, 0, 0, 0.55) 0 12px 32px;
}

[data-theme="dark"] ::selection {
  background: rgba(123, 104, 255, 0.35);
  color: #ffffff;
}

/* ---------- 顶部导航 ---------- */

[data-theme="dark"] .header {
  background-color: rgba(8, 9, 11, 0.86);
}

[data-theme="dark"] .header--home .header__inner {
  background-color: rgba(16, 17, 21, 0.72);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 32px rgba(0, 0, 0, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .nav__link:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .nav__link--active {
  background-color: var(--primary-soft-hover);
}

[data-theme="dark"] .header--home .nav__link--active {
  background-color: transparent;
  color: var(--ink);
}

[data-theme="dark"] .theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* ---------- 按钮 ---------- */

[data-theme="dark"] .btn--indigo {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 6px 20px rgba(123, 104, 255, 0.3);
}

[data-theme="dark"] .btn--indigo:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 28px rgba(123, 104, 255, 0.45);
}

[data-theme="dark"] .btn--outline:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

/* ---------- 首页第一屏：近黑画布 + 网格 + 两团微光 ---------- */

[data-theme="dark"] .hero--studio {
  background-color: #08090b;
  background-image:
    radial-gradient(ellipse 55% 65% at 74% 42%, rgba(123, 104, 255, 0.2), transparent 62%),
    radial-gradient(ellipse 45% 50% at 10% 4%, rgba(255, 107, 209, 0.07), transparent 66%),
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: auto, auto, 168px 168px, 168px 168px;
}

[data-theme="dark"] .hero--studio h1 {
  background-image: linear-gradient(180deg, #ffffff 0%, #ffffff 52%, #b0b0c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="dark"] .hero--studio .hero__lead {
  color: #b9bac2;
}

[data-theme="dark"] .hero__orb {
  opacity: 0.9;
}

/* 文字这一侧压一层暗幕，粒子球的词不抢标题 */
[data-theme="dark"] .hero--studio::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 9, 11, 0.92) 0%, rgba(8, 9, 11, 0.55) 36%, rgba(8, 9, 11, 0) 62%);
  pointer-events: none;
}

@media (max-width: 900px) {
  [data-theme="dark"] .hero__orb {
    opacity: 0.34;
  }

  [data-theme="dark"] .hero--studio::after {
    background: linear-gradient(180deg, rgba(8, 9, 11, 0.5) 0%, rgba(8, 9, 11, 0.72) 45%, rgba(8, 9, 11, 0.5) 100%);
  }
}

/* ---------- 区块与卡片 ---------- */

[data-theme="dark"] .section--soft {
  background-color: #0b0c0f;
}

[data-theme="dark"] .section--cream {
  background-color: #0f1013;
}

[data-theme="dark"] .page-head {
  background-image: radial-gradient(ellipse 60% 120% at 50% 0%, rgba(123, 104, 255, 0.09), transparent 70%);
}

[data-theme="dark"] .defs__item,
[data-theme="dark"] .split__media,
[data-theme="dark"] .qr {
  background-color: #101115;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 48%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 48px rgba(0, 0, 0, 0.45);
}

/* 涟漪示意图：深底上把深蓝线翻成浅线 */
[data-theme="dark"] .split__media svg [stroke="#0a1530"] {
  stroke: #e9e9f2;
}

[data-theme="dark"] .split__media svg [fill="#0a1530"] {
  fill: #e9e9f2;
}

/* ---------- 步进条 ---------- */

[data-theme="dark"] .steps__num {
  background-color: #f4f4f6;
  color: #08090b;
}

[data-theme="dark"] .steps__item:not(:last-child)::before {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ---------- 勾选清单 ---------- */

[data-theme="dark"] .list-check li::before {
  background-color: rgba(123, 104, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5 10.5l3.2 3.2L15 7" fill="none" stroke="%238b7bff" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

/* ---------- 创始人挂绳卡 ---------- */

[data-theme="dark"] .hang__thread {
  background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .hang__clip [fill="#c8c4be"] {
  fill: #5a5c66;
}

[data-theme="dark"] .hang__clip [fill="#e5e3df"] {
  fill: #1a1b22;
}

[data-theme="dark"] .hang__clip [stroke="#c8c4be"] {
  stroke: #4a4c55;
}

[data-theme="dark"] .flip__face--front {
  background-color: #101115;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 52%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 48px rgba(0, 0, 0, 0.5);
}

/* 浮雕头像的三层：高光、投影、主体，整组压成深色，保留下轮廓 */
[data-theme="dark"] .flip__portrait svg [fill="#ffffff"] {
  fill: #3d3e4a;
}

[data-theme="dark"] .flip__portrait svg [fill="#e5e3df"] {
  fill: #05060a;
}

[data-theme="dark"] .flip__portrait svg [fill="#ede9e4"] {
  fill: #24252f;
}

/* 背面：把浅色糖果渐变换成同色系的深宝石渐变，流光保留但收暗 */
[data-theme="dark"] .flip__face--back {
  background:
    linear-gradient(140deg,
      #10261d 0%,
      #0c1f2b 18%,
      #191331 36%,
      #2a1224 54%,
      #2a1a0f 70%,
      #17160f 84%,
      #10261d 100%);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 48px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .flip__face--back::before {
  background: conic-gradient(from 200deg at var(--mx, 50%) var(--my, 50%),
    rgba(255, 168, 214, 0.2),
    rgba(166, 200, 255, 0.2),
    rgba(170, 240, 214, 0.2),
    rgba(255, 240, 168, 0.2),
    rgba(222, 176, 255, 0.2),
    rgba(255, 168, 214, 0.2));
  mix-blend-mode: soft-light;
}

[data-theme="dark"] .flip__face--back::after {
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.07) 12%,
    rgba(255, 255, 255, 0) 34%);
}

[data-theme="dark"] .flip__go {
  background-color: #f4f4f6;
  color: #08090b;
}

[data-theme="dark"] .profile__avatar {
  background-color: #101115;
}

[data-theme="dark"] .profile__avatar svg [fill="#e6e0f5"] {
  fill: #1c1d26;
}

[data-theme="dark"] .profile__avatar svg [fill="#5645d4"] {
  fill: #8b7bff;
}

[data-theme="dark"] .profile__qr svg [fill="#e6e0f5"] {
  fill: #1c1d26;
}

[data-theme="dark"] .profile__qr svg [fill="#5645d4"] {
  fill: #8b7bff;
}

[data-theme="dark"] .profile__qr img {
  background-color: #ffffff;
}

/* ---------- 页内行动区与占位提示 ---------- */

[data-theme="dark"] .cta {
  background-color: #0b0c0f;
}

[data-theme="dark"] .placeholder {
  background-color: rgba(255, 196, 84, 0.07);
  border-color: rgba(255, 196, 84, 0.4);
  color: #f0d9a8;
}

/* ---------- 联系页二维码 ---------- */

[data-theme="dark"] .qr img {
  border-radius: 10px;
  background-color: #ffffff;
}

/* ---------- 页脚 ---------- */

[data-theme="dark"] .footer {
  background-color: #08090b;
}
