/* Textory 落地页 · v4.47 设计规范对齐 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--ui); -webkit-font-smoothing: antialiased; }
.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); }
.logo { width: 24px; height: 24px; border: 1.5px solid var(--gold); border-radius: var(--r-pill); position: relative; }
.logo::after { content: ''; position: absolute; inset: 5px 5px auto 5px; height: 6px; border-top: 1.5px solid var(--gold); border-radius: var(--r-sm) var(--r-sm) 0 0; }
nav { display: flex; align-items: center; justify-content: space-between; max-width: 1080px; margin: 0 auto; padding: 22px 28px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-family: var(--mono); font-size: var(--fs-body); font-weight: 700; letter-spacing: 1px; color: var(--ink); }
.btn-dark { display: inline-flex; align-items: center; gap: var(--sp-2); background: var(--ink); color: var(--cream); border: none; border-radius: var(--r-sm); padding: 11px 20px; font-size: var(--fs-sm); font-weight: 500; cursor: pointer; }
.hero { max-width: 880px; margin: 40px auto 0; padding: 0 28px; text-align: center; }
.kicker { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 3px; color: var(--label); text-transform: uppercase; }
h1 { font-family: var(--serif); font-size: var(--fs-display); font-weight: 600; color: var(--ink); line-height: var(--lh-tight); letter-spacing: -1px; margin: var(--sp-4) 0 0; }
.sub { font-size: var(--fs-h3); color: var(--text-dim); margin-top: 18px; line-height: var(--lh-normal); }
.composer { max-width: 720px; margin: 34px auto 0; background: var(--card); border: 1px solid var(--border-input); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); padding: 20px 20px 14px; text-align: left; }
.composer textarea { width: 100%; border: none; outline: none; font-family: var(--serif-cn); font-size: var(--fs-h2); color: var(--ink-soft); line-height: 1.65; min-height: 88px; background: transparent; resize: none; }
.composer textarea::placeholder { color: var(--placeholder); }
.att-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-2); min-height: 0; }
.att-chip { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-sm); color: var(--text); background: var(--line-soft); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px 10px; }
.att-chip span.x { cursor: pointer; color: var(--faint); margin-left: 2px; }
.composer-bar { display: flex; align-items: center; justify-content: space-between; margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--line-soft); }
.composer-left, .composer-right { display: flex; align-items: center; gap: 6px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: none; background: none; color: var(--muted); border-radius: var(--r-sm); cursor: pointer; transition: background .12s, color .12s; }
.icon-btn:hover { background: var(--line-soft); color: var(--ink); }
.round-btn { width: 40px; height: 40px; border-radius: var(--r-pill); background: var(--ink); color: var(--cream); display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; flex: none; }
.round-btn:hover { opacity: .92; }
.genre-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; margin-top: 22px; max-width: 720px; margin-left: auto; margin-right: auto; }
.genre-tile { font-size: var(--fs-sm); color: var(--ink-soft); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-pill); padding: var(--sp-2) var(--sp-4); cursor: pointer; transition: all .12s; white-space: nowrap; }
.genre-tile:hover { border-color: var(--gold-line); color: var(--gold-deep); background: var(--gold-soft); }
.genre-tile.on { border-color: var(--gold-line); color: var(--gold-deep); background: var(--gold-soft); }
.hero-links { margin-top: var(--sp-4); display: flex; align-items: center; justify-content: center; gap: 14px; font-size: var(--fs-sm); color: var(--faint); flex-wrap: wrap; }
.hero-links a { color: var(--gold-deep); border-bottom: 1px solid var(--line-dash); cursor: pointer; text-decoration: none; }
.feats { max-width: 1000px; margin: 56px auto 60px; padding: 0 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 20px; }
.feat .n { font-family: var(--mono); font-size: var(--fs-xs); color: var(--label); letter-spacing: 1px; }
.feat h3 { font-family: var(--serif-cn); font-size: var(--fs-h2); font-weight: 600; color: var(--ink); margin: var(--sp-2) 0 var(--sp-2); }
.feat p { font-size: var(--fs-sm); color: var(--text-dim); line-height: 1.7; }
footer { text-align: center; padding: 30px; font-size: var(--fs-sm); color: var(--faint); }
@keyframes tx-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.composer-plus-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(42, 33, 24, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.composer-bar .icon-btn,
.composer-bar .round-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-sizing: border-box;
}
.composer-plus-btn:hover { border-color: rgba(176, 133, 28, 0.45); color: var(--gold-deep); background: var(--card); }
.attach-sheet {
  position: fixed;
  inset: 0;
  z-index: 650;
  background: rgba(15, 11, 6, 0.28);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  animation: tx-fade .15s;
}
.attach-sheet-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px 16px;
  box-shadow: var(--shadow-pop);
}
.attach-sheet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.attach-sheet-grid-3 { grid-template-columns: repeat(3, 1fr); }
.attach-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, var(--surface, #F3EEE2) 100%);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.attach-tile:hover {
  border-color: rgba(176, 133, 28, 0.4);
  box-shadow: 0 4px 12px rgba(42, 33, 24, 0.08);
  transform: translateY(-1px);
}
.attach-tile-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gold-soft, #FBF3DC);
}
.attach-tile-lbl { font-size: 12px; font-weight: 600; color: var(--ink); }
.attach-sheet-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--line-soft);
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
}
@media (min-width: 600px) {
  .attach-sheet { align-items: center; }
}
@media (max-width: 760px) { h1 { font-size: 42px; } .feats { grid-template-columns: 1fr 1fr; } }
