/* ============================================================
   Cursive Text Generator — styles
   Palette: soft lavender / pink dreamy aesthetic
   ============================================================ */

/* 本地自带字体（可变字体，单文件覆盖多字重），从原 bundle 抠出，无外链、离线/墙内可用 */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500 600;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/nunito.woff2') format('woff2');
}

:root {
  --accent: #b79ce6;
  --ink: #463c58;
  --ink-soft: #6f6389;
  --heading: #4a3a6e;
  --muted: #a294c2;
  --card: #ffffff;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

::selection { background: #e6d6fb; }

a { color: #8a6bc4; text-decoration: none; }
a:hover { color: #6b4ea8; }

@keyframes pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.035); }
  100% { transform: scale(1); }
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page {
  min-height: 100vh;
  background: linear-gradient(165deg, #f4edff 0%, #fbeef8 46%, #fff5ef 100%);
  padding: 0 18px 90px;
}

/* ---------- HERO ---------- */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
  padding: 52px 0 30px;
}
.brand {
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #a58fce;
  font-weight: 800;
  margin-bottom: 8px;
}
.hero-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(40px, 6.6vw, 64px);
  line-height: 1.02;
  margin: 6px 0 14px;
  color: var(--heading);
}
.hero-sub {
  max-width: 560px;
  margin: 0 auto;
  font-size: 16px;
  color: #8478a0;
  line-height: 1.55;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #eee0fa;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: #7a5fb0;
  white-space: nowrap;
  max-width: 100%;
  box-shadow: 0 6px 18px rgba(150, 120, 200, 0.10);
}

/* ---------- LAYOUT ---------- */
.layout {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: flex-start;
}
.left {
  flex: 1 1 440px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.right {
  flex: 1 1 360px;
  min-width: 300px;
  position: sticky;
  top: 12px;
}

/* ---------- INPUT ---------- */
.input-bar {
  position: sticky;
  top: 12px;
  z-index: 6;
  padding: 8px 0 4px;
  background: linear-gradient(180deg, rgba(248, 242, 255, 0.95) 60%, rgba(248, 242, 255, 0));
  backdrop-filter: blur(6px);
}
.input-wrap { position: relative; }
#text-input {
  width: 100%;
  padding: 17px 22px;
  font-size: 19px;
  font-family: var(--sans);
  color: var(--heading);
  background: #fff;
  border: 1.6px solid #ece0fb;
  border-radius: 18px;
  outline: none;
  box-shadow: 0 10px 30px rgba(150, 120, 200, 0.14);
}
#text-input::placeholder { color: #b8aecb; }
.char-count {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #c3b8d8;
  font-weight: 700;
  pointer-events: none;
}

/* ---------- STYLE WALL ---------- */
.wall-label {
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
  margin: 2px 2px 0;
}
.style-wall {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.style-card {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  padding: 15px 17px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(150, 120, 190, 0.10);
  cursor: pointer;
  border: 1.6px solid transparent;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.style-card:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(150, 120, 190, 0.16); }
.style-card.is-selected {
  border-color: var(--accent);
  background: #faf6ff;
  box-shadow: 0 9px 26px rgba(150, 120, 190, 0.18);
}
.style-card.is-copied { animation: pop .4s ease; }

.style-info { flex: 1; min-width: 0; }
.style-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.style-name {
  font-size: 10.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #b0a2ce;
  font-weight: 800;
}
.style-tag { font-size: 11px; color: #cdbfe6; font-weight: 600; }
.style-output {
  font-size: clamp(19px, 4.4vw, 25px);
  line-height: 1.45;
  color: #453a63;
  word-break: break-word;
}
.copy-pill {
  padding: 8px 17px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  flex: none;
  transition: all .2s ease;
  background: rgba(183, 156, 230, 0.14);
  color: var(--accent);
}
.style-card.is-copied .copy-pill { background: #e7f7ee; color: #3a9d6a; }

/* ---------- PREVIEW ---------- */
.preview-head { text-align: center; margin: 6px 0 14px; }
.preview-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #a58fce;
  font-weight: 800;
}
.preview-note { font-size: 13px; color: #9585b5; margin-top: 5px; }

.tabs {
  display: flex;
  gap: 5px;
  padding: 5px;
  background: #efe6fb;
  border-radius: 15px;
  margin-bottom: 16px;
}
.tab {
  flex: 1;
  text-align: center;
  padding: 9px 6px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  font-family: inherit;
  background: transparent;
  color: #a294c2;
  transition: all .2s ease;
}
.tab.is-active {
  background: #fff;
  color: #6b4ea8;
  box-shadow: 0 3px 10px rgba(150, 120, 190, 0.16);
}

.preview-stage { animation: floatIn .28s ease; }
.mock[hidden] { display: none; }

/* Mock 通用：系统 UI 字体模拟真实 App 观感；头像为矢量 SVG（assets/avatars/） */
.mock {
  font-family: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.avatar { border-radius: 50%; flex: none; display: block; }
.av-74 { width: 74px; height: 74px; }
.av-40 { width: 40px; height: 40px; }
.mock svg { display: block; }

/* iOS 状态栏（Instagram mock 用） */
.ios-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 4px 8px;
}
.ios-time { font-size: 13px; font-weight: 700; letter-spacing: .2px; }

/* Instagram mock：仿 profile 页 */
.mock-ig {
  background: #fff;
  border-radius: 24px;
  padding: 14px 16px 6px;
  box-shadow: 0 18px 46px rgba(150, 120, 200, 0.20);
  border: 1px solid #f1e9f8;
  color: #111;
}
.ig-nav { display: flex; align-items: center; gap: 10px; padding: 2px 0 14px; }
.ig-nav-user { font-size: 15.5px; font-weight: 700; flex: 1; }
.ig-top { display: flex; align-items: center; gap: 18px; }
.ig-top-right { flex: 1; }
/* 昵称在数字上方（参考真实 profile：头像右侧、stats 之上） */
.ig-dname { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: #111; }
.ig-stats { display: flex; justify-content: space-around; text-align: center; }
.ig-stats b { display: block; font-size: 16.5px; font-weight: 700; line-height: 1.2; }
.ig-stats span { font-size: 12.5px; color: #262626; }
.ig-bio { font-size: 13.5px; line-height: 1.55; margin-top: 12px; color: #111; }
/* 简介 = 单行；空态显示原始占位文案，输入后替换成草书 */
.ig-bio-cursive { font-size: 15px; word-break: break-word; }
.ig-follow {
  margin-top: 14px; padding: 9px 0; text-align: center;
  background: #4150f7; color: #fff; border-radius: 10px;
  font-size: 14.5px; font-weight: 600;
}
.ig-tabs { display: flex; margin-top: 16px; border-top: 1px solid #efefef; }
.ig-tab { flex: 1; display: flex; justify-content: center; padding: 10px 0; color: #8e8e8e; position: relative; }
.ig-tab.is-on { color: #262626; }
.ig-tab.is-on::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1.5px; background: #262626; }

/* Discord mock：仿频道聊天 */
.mock-dc {
  background: #313338;
  border-radius: 24px;
  padding: 0 0 14px;
  box-shadow: 0 18px 46px rgba(80, 60, 120, 0.28);
  overflow: hidden;
}
.dc-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid #26282c; }
.dc-hash { color: #80848e; font-size: 19px; font-weight: 700; line-height: 1; }
.dc-chan { color: #f2f3f5; font-size: 15px; font-weight: 700; flex: 1; }
.dc-search {
  display: flex; align-items: center; gap: 5px;
  background: #1e1f22; color: #87898c; font-size: 11.5px;
  border-radius: 6px; padding: 4px 10px;
}
.dc-msgs { padding: 14px 14px 4px; display: flex; flex-direction: column; gap: 14px; }
.dc-msg { display: flex; gap: 12px; align-items: flex-start; }
.dc-msg-body { flex: 1; min-width: 0; }
.dc-nameline { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dc-uname { font-size: 15px; font-weight: 600; word-break: break-word; }
.dc-uname--red { color: #e8636f; }
.dc-time { color: #949ba4; font-size: 11px; }
.dc-text { color: #dbdee1; font-size: 14px; line-height: 1.45; margin-top: 2px; }
.dc-inputbar {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 14px 0; background: #383a40; border-radius: 10px; padding: 9px 12px;
}
.dc-ph { flex: 1; color: #6d6f78; font-size: 14px; }
.dc-gif {
  border: 1.4px solid #b5bac1; color: #b5bac1;
  font-size: 9px; font-weight: 800; letter-spacing: .5px;
  border-radius: 4px; padding: 1px 3px;
}
.dc-typing { display: flex; align-items: center; gap: 4px; padding: 8px 16px 0; color: #949ba4; font-size: 11.5px; }
.dc-typing b { font-weight: 700; color: #dbdee1; margin-left: 4px; }
.dc-typing i {
  width: 4px; height: 4px; border-radius: 50%; background: #b5bac1;
  animation: dcTyping 1.2s infinite;
}
.dc-typing i:nth-child(2) { animation-delay: .2s; }
.dc-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes dcTyping {
  0%, 60%, 100% { opacity: .25; }
  30% { opacity: 1; }
}

/* TikTok mock：仿评论面板 */
.mock-tt {
  background: #fff;
  border-radius: 18px 18px 24px 24px;
  padding: 14px 0 8px;
  box-shadow: 0 18px 46px rgba(150, 120, 200, 0.20);
  border: 1px solid #f1e9f8;
  color: #161823;
}
.tt-head { position: relative; text-align: center; padding: 0 16px 12px; }
.tt-head-title { font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.tt-head-title svg { display: inline-block; }
.tt-close { position: absolute; right: 16px; top: 2px; }
.tt-comment { display: flex; gap: 12px; padding: 10px 16px; align-items: flex-start; }
.tt-c-body { flex: 1; min-width: 0; }
.tt-c-user { font-size: 13px; font-weight: 600; color: #8a8b91; }
.tt-c-text { font-size: 15px; line-height: 1.4; margin-top: 2px; word-break: break-word; }
.tt-c-meta { display: flex; gap: 16px; font-size: 12.5px; color: #8a8b91; margin-top: 7px; }
.tt-reply { font-weight: 600; }
.tt-viewreply {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: #8a8b91; font-weight: 600; margin-top: 12px;
}
.tt-viewreply::before { content: ""; width: 26px; height: 1px; background: #e0e0e2; }
.tt-c-side { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #8a8b91; padding-top: 4px; }
.tt-heart { font-size: 19px; line-height: 1; }
.tt-likes { font-size: 12px; font-weight: 600; }
.tt-c-side svg { margin-top: 9px; }
.tt-addbar {
  display: flex; align-items: center; gap: 13px;
  margin-top: 8px; padding: 12px 16px 6px; border-top: 1px solid #f1f1f2;
}
.tt-add-input {
  flex: 1; background: #f1f1f2; border-radius: 999px;
  padding: 10px 16px; font-size: 14.5px; color: #8a8b91;
}
.tt-add-icons { display: flex; gap: 14px; align-items: center; }
.tt-at { font-size: 17px; font-weight: 700; line-height: 1; }

.preview-foot {
  text-align: center;
  font-size: 12.5px;
  color: #b0a2ce;
  margin-top: 16px;
  line-height: 1.5;
}

/* ---------- SEO CONTENT ---------- */
.seo {
  max-width: 920px;
  margin: 82px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.seo-eyebrow {
  text-align: center;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #a58fce;
  font-weight: 800;
  margin-bottom: 2px;
}
.seo-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #f0e7fa;
  border-radius: 22px;
  padding: 28px 30px;
  box-shadow: 0 8px 26px rgba(150, 120, 200, 0.09);
}
.seo-card h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 28px;
  color: var(--heading);
  margin: 0 0 14px;
}
.seo-card p { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); }
.seo-card b { color: #5b4a80; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 14px; font-size: 15.5px; color: var(--ink-soft); }
.step-n {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: #efe6fb; color: #7a5fb0; font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span {
  padding: 8px 16px;
  background: #f6f0ff;
  border: 1px solid #eee0fa;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #7a5fb0;
}

.faq { display: flex; flex-direction: column; gap: 6px; }
.faq-q { font-size: 16px; font-weight: 800; color: var(--heading); margin: 12px 0 5px; }
.faq-q:first-child { margin-top: 0; }
.faq p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }

.seo-foot { text-align: center; font-size: 12.5px; color: #b8aecb; margin: 14px 0 0; }

/* ---------- MOBILE ---------- */
@media (max-width: 780px) {
  .right { position: static; }
  .seo-card { padding: 24px 22px; }
  .seo-card h2 { font-size: 24px; }
}
