:root { --bg: #0b0b0b; --panel: #1c1c1c; --line: rgba(255,255,255,.08); --t1: #f5f5f5; --t2: #fffc; --t3: #fff9; --brand: #e5243b; --font: "Nunito Sans", system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--t1); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
.grow { flex: 1; }

/* top bar */
.cr-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 24px 0 40px; background: rgba(11,11,11,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.cr-back { width: 36px; height: 36px; display: grid; place-items: center; color: var(--t1); border-radius: 10px; }
.cr-back:hover { background: rgba(255,255,255,.06); }
.cr-wm { font-size: 22px; text-decoration: none; display: inline-flex; }
.cr-sep { width: 1px; height: 16px; background: rgba(255,255,255,.2); }
.cr-crumb { font-size: 13px; font-weight: 800; color: var(--t2); }
.cr-saved { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--t3); }
.cr-saved svg { width: 14px; height: 14px; }
.cr-bells { position: relative; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #141414; color: #ffcc4d; font-weight: 900; cursor: pointer; }
.cr-bells i { position: absolute; right: 6px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: #e8204f; }

/* 你想遇見誰？ */
.cr-start { display: grid; grid-template-columns: minmax(0, 47%) 1fr; min-height: calc(100dvh - 56px); }
.cr-wall { position: relative; overflow: hidden; display: flex; gap: 18px; padding: 0 0 0 0; mask-image: linear-gradient(to right, #000 75%, transparent); -webkit-mask-image: linear-gradient(to right, #000 75%, transparent); }
.cr-wall-in { position: absolute; inset: -30% -10% -30% -10%; display: flex; gap: 18px; transform: rotate(-12deg); }
.cr-col { flex: 1; display: flex; flex-direction: column; gap: 18px; animation: crUp 60s linear infinite; }
.cr-col:nth-child(even) { animation-name: crDown; }
.cr-col img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 15%; border-radius: 14px; display: block; filter: brightness(.82); }
@keyframes crUp { to { transform: translateY(-50%); } } @keyframes crDown { from { transform: translateY(-50%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .cr-col { animation: none; } }
.cr-start-main { align-self: center; width: min(476px, 100%); margin: 40px auto; padding: 0 20px; }
.cr-start-main h1 { margin: 0 0 8px; font-size: 34px; font-weight: 900; }
.cr-sub { margin: 0 0 18px; color: var(--t2); font-size: 13px; line-height: 1.6; }
.cr-spark { border-radius: 14px; background: #141414; border: 1px solid var(--line); overflow: hidden; }
.cr-spark:focus-within { border-color: rgba(255,255,255,.25); }
.cr-spark textarea { width: 100%; height: 150px; padding: 14px; border: 0; outline: 0; background: none; resize: none; font-size: 14px; line-height: 1.6; }
.cr-spark-media { display: flex; gap: 8px; padding: 12px 12px 0; }
.cr-spark-media .th { position: relative; width: 64px; height: 84px; border-radius: 8px; overflow: hidden; background: #222; }
.cr-spark-media img, .cr-spark-media video { width: 100%; height: 100%; object-fit: cover; }
.cr-spark-media button { position: absolute; right: 2px; top: 2px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; font-size: 12px; cursor: pointer; }
.cr-spark-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); }
.cr-chip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: #1d1d1d; font-size: 12px; font-weight: 800; cursor: pointer; }
.cr-chip svg { width: 15px; height: 15px; }
.cr-count { font-size: 11px; color: var(--t3); }
.cr-gen { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 900; font-size: 13px; cursor: pointer; }
.cr-gen:disabled { background: #232323; color: var(--t3); cursor: default; }
.cr-gen svg { width: 16px; height: 16px; }
.cr-guide { display: flex; align-items: center; gap: 5px; width: max-content; margin: 12px 0 0 auto; height: 30px; padding: 0 10px; border-radius: 999px; background: rgba(229,36,59,.18); color: #fff; font-size: 12px; font-weight: 800; text-decoration: none; }
.cr-guide svg { width: 15px; height: 15px; color: #ff7aa2; } .cr-guide .s { width: 13px; }
.cr-or { position: relative; margin: 26px 0 14px; text-align: center; font-size: 11px; color: var(--t3); }
.cr-or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.cr-or span { position: relative; padding: 0 10px; background: var(--bg); }
.cr-direct { position: relative; overflow: hidden; display: flex; align-items: center; padding: 22px 18px; border-radius: 14px; background: #161616 var(--img, none) right center / 55% auto no-repeat; border: 1px solid var(--line); }
.cr-direct::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #161616 45%, rgba(22,22,22,.2)); }
.cr-direct > div { position: relative; }
.cr-direct b { font-size: 16px; } .cr-direct p { margin: 4px 0 12px; font-size: 12px; color: var(--t2); }
.cr-white { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; color: #111; font-weight: 900; font-size: 12px; cursor: pointer; }
.cr-white svg { width: 15px; height: 15px; }
.cr-resume { margin-top: 12px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #121212; border: 1px dashed rgba(255,255,255,.15); font-size: 13px; }
.cr-resume button { margin-left: auto; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: #1e1e1e; font-weight: 800; font-size: 12px; cursor: pointer; }

/* stepper */
.cr-main { width: min(980px, 100%); margin: 0 auto; padding: 30px 20px 80px; }
.cr-stepper { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 0 0 30px; padding: 0; list-style: none; }
.cr-stepper li { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; color: var(--t3); }
.cr-stepper li + li::before { content: ""; width: 46px; height: 1px; margin-right: 7px; background: rgba(255,255,255,.18); }
.cr-stepper i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; border: 1px solid rgba(255,255,255,.25); }
.cr-stepper li.on { color: #fff; } .cr-stepper li.on i { background: #fff; color: #111; border-color: #fff; }
.cr-stepper li.done { color: var(--t2); } .cr-stepper li.done i { background: var(--brand); border-color: var(--brand); color: #fff; font-size: 0; }
.cr-stepper li.done i::after { content: "✓"; font-size: 11px; }
.cr-step-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.cr-step-head h1 { margin: 0 0 4px; font-size: 24px; font-weight: 900; }
.cr-link { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; font-weight: 800; font-size: 13px; cursor: pointer; }
.cr-link svg { width: 17px; height: 17px; }
.cr-grid { display: grid; grid-template-columns: 296px 1fr; gap: 44px; align-items: start; }
.cr-side { position: sticky; top: 80px; }
.cr-portrait { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: #151515; border: 1px solid var(--line); display: grid; place-items: center; }
.cr-portrait img, .cr-portrait video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cr-portrait-empty { display: grid; justify-items: center; gap: 10px; padding: 20px; font-size: 12px; color: var(--t3); text-align: center; }
.cr-portrait-empty svg { width: 26px; height: 26px; }
.cr-portrait.loading { background: linear-gradient(100deg, #151515 30%, #232323 50%, #151515 70%) 0 0 / 300% 100%; animation: shimmer 1.3s linear infinite; }
.cr-portrait.loading::after { content: attr(data-msg); position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-size: 12px; color: var(--t2); }
@keyframes shimmer { to { background-position: -150% 0; } }
.cr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.cr-soft { display: flex; align-items: center; justify-content: center; gap: 5px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: #1a1a1a; font-size: 12px; font-weight: 800; cursor: pointer; }
.cr-soft svg { width: 15px; height: 15px; }
.cr-soft:hover { background: #222; }
.cr-soft:disabled { opacity: .5; cursor: default; }
.cr-soft.wide { width: 100%; margin-top: 10px; height: 42px; }
.cr-tiny { margin: 10px 0 0; font-size: 11px; color: var(--t3); line-height: 1.6; }
.cr-f { display: grid; gap: 8px; margin-bottom: 20px; }
.cr-f .lab { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 800; }
.cr-f input, .cr-f textarea { width: 100%; padding: 12px 15px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); outline: 0; font-size: 14px; line-height: 1.6; resize: vertical; }
.cr-f input:focus, .cr-f textarea:focus { border-color: rgba(255,255,255,.3); }
.cr-f input::placeholder, .cr-f textarea::placeholder { color: #fff7; }
.cr-mini { border: 0; background: none; font-size: 11px; font-weight: 800; color: var(--t2); cursor: pointer; }
.cr-mini:hover { color: #fff; }
.cr-under { display: flex; justify-content: space-between; font-size: 11px; color: var(--t3); }
.cr-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-pills button { height: 34px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #1e1e1e; font-size: 12px; font-weight: 800; cursor: pointer; }
.cr-pills button.on { background: #fff; color: #111; }
.cr-more { margin-bottom: 20px; border-radius: 10px; border: 1px solid var(--line); background: #151515; }
.cr-more summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; cursor: pointer; list-style: none; }
.cr-more summary::-webkit-details-marker { display: none; }
.cr-more summary b { display: block; font-size: 13px; } .cr-more summary small { font-size: 11px; color: var(--t3); }
.cr-more[open] summary svg { transform: rotate(180deg); }
.cr-more .cr-f { padding: 0 14px; }
.cr-foot { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.cr-need { flex: 1; font-size: 11px; color: var(--t3); }
.cr-ghost, .cr-next { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 10px; font-size: 13px; font-weight: 900; cursor: pointer; text-decoration: none; }
.cr-ghost { border: 1px solid var(--line); background: #1e1e1e; color: #fff; }
.cr-ghost:hover { background: #262626; }
.cr-next { margin-left: auto; border: 1px solid var(--line); background: #fff; color: #111; }
.cr-foot .cr-need + .cr-ghost + .cr-next { margin-left: 0; }
.cr-next:disabled { background: #1a1a1a; color: var(--t3); cursor: default; }
.cr-next svg { width: 16px; height: 16px; }
.cr-card { padding: 16px; border-radius: 14px; background: #121212; border: 1px solid var(--line); margin-bottom: 14px; }
.cr-card.loading { min-height: 420px; background: linear-gradient(100deg, #121212 30%, #1d1d1d 50%, #121212 70%) 0 0 / 300% 100%; animation: shimmer 1.3s linear infinite; }
.cr-card.loading > * { visibility: hidden; }
.cr-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.cr-card-tags span { padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 700; color: #f4b3c8; background: rgba(229,36,59,.22); }
.cr-bible summary { cursor: pointer; font-weight: 800; font-size: 13px; color: var(--t2); padding: 6px 0; }
.cr-bible > div { font-size: 13px; line-height: 1.7; color: var(--t2); }
.cr-bible h4 { margin: 12px 0 4px; font-size: 12px; color: #fff; letter-spacing: .04em; }
.cr-bible ul { margin: 0; padding-left: 18px; }

.cr-busy { position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: rgba(28,28,28,.96); border: 1px solid var(--line); font-weight: 800; font-size: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.5); white-space: nowrap; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #e0336b; animation: dot 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { opacity: .25; transform: translateY(-3px); } }
.cr-toast { position: fixed; left: 50%; top: 76px; z-index: 260; transform: translateX(-50%); padding: 10px 16px; border-radius: 12px; background: rgba(30,30,30,.97); border: 1px solid var(--line); font-weight: 700; font-size: 14px; max-width: calc(100vw - 32px); text-align: center; }

@media (max-width: 860px) {
  .cr-start { grid-template-columns: 1fr; }
  .cr-wall { height: 210px; mask-image: linear-gradient(to bottom, #000 60%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); }
  .cr-start-main { margin-top: 0; }
  .cr-grid { grid-template-columns: 1fr; gap: 20px; }
  .cr-side { position: static; width: min(260px, 100%); margin: 0 auto; }
  .cr-top { padding-left: 12px; padding-right: 12px; }
  .cr-stepper { gap: 8px; } .cr-stepper li + li::before { width: 16px; margin-right: 4px; }
  .cr-stepper li { font-size: 12px; }
  .cr-foot { flex-wrap: wrap; } .cr-need { flex-basis: 100%; }
  .cr-next { margin-left: 0; flex: 1; justify-content: center; }
}
