/* TJ-SCRIPT owner=守一(Mac) purpose=发币页与交易页样式 importance=medium lifetime=persistent
   配色沿用 palette.css 的暖白/雾蓝：正文 #365667，主按钮 #466d82，卡片 #ffffffd9 */

/* 🔴 卡片【外面】的字是压在背景视频上的，必须用白字。
   第一版我照 palette.css（那是给纯浅色背景写的）用了 #5b7a8a 深字，
   截图一看副标题和 Network / Token name 这些标签几乎看不见 —— 
   正是龙哥骂过的「字体颜色看着跟屎一样，看不清楚伤眼睛」。
   规矩：压在视频上 → 白字；落在白卡片里 → 深字。 */
.launch-intro { margin: 40px 0 28px; }
.launch-intro p {
  font-size: 11px; letter-spacing: .16em; color: #fff; margin: 0 0 10px; font-weight: 600;
  text-shadow: 0 1px 3px #0000004d;
}
.launch-intro h1 {
  margin: 0 0 12px; font-size: clamp(30px, 5vw, 46px); line-height: 1.1;
  color: #fff; text-shadow: 0 2px 10px #00000040;
}
.launch-intro span {
  display: block; max-width: 62ch; font-size: 14px; line-height: 1.8;
  color: #ffffffe8; text-shadow: 0 1px 4px #00000045;
}

/* 卡片要够实，否则视频透上来，里面的深色文字照样糊。 */
.launch-card {
  background: #fffffff2; border: 1px solid #ffffff6b; border-radius: 14px;
  padding: 28px; margin: 0 0 24px; box-shadow: 0 8px 34px #1e3d4d26;
  backdrop-filter: blur(10px);
}
.launch-card h2 { margin: 0 0 8px; font-size: 20px; }

.launch-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px;
}
.launch-grid label, .split-block > label {
  display: flex; flex-direction: column; gap: 7px;
  font-size: 12px; font-weight: 600; letter-spacing: .01em; color: #2f5265;
}
.launch-grid input, .launch-grid select {
  background: #f6f9fb; border: 1px solid #d6e2e8; border-radius: 9px;
  padding: 11px 13px; font-size: 14px; font-weight: 400; width: 100%;
}

/* ---- 分配比例 ---- */
.split-block { margin-top: 26px; padding-top: 24px; border-top: 1px solid #e2ebf0; }
#creator-bps {
  width: 100%; margin: 14px 0 4px; accent-color: #466d82; height: 22px;
}
.split-readout { display: flex; gap: 14px; margin-top: 10px; }
.split-side {
  flex: 1; background: #f0f5f8; border-radius: 10px; padding: 16px;
  display: flex; flex-direction: column; gap: 5px;
}
.split-side:last-child { background: #daeaf3; }
.split-side strong { font-size: 24px; line-height: 1; color: #34586e; }
.split-side span { font-size: 11px; letter-spacing: .06em; color: #647e8d; }
.split-side code { font-size: 12px; color: #4a6d80; overflow-wrap: anywhere; }
.split-note {
  font-size: 11.5px; line-height: 1.75; color: #5a7688; margin: 12px 0 0;
}

.advanced { margin-top: 24px; padding-top: 20px; border-top: 1px solid #e2ebf0; }
.advanced summary {
  cursor: pointer; font-size: 12px; font-weight: 600; color: #416a80;
  list-style: none; padding: 4px 0;
}
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary::before { content: '+ '; color: #9cbccb; }
.advanced[open] summary::before { content: '– '; }
.advanced .launch-grid { margin-top: 16px; }

.launch-actions {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; align-items: center;
}
.launch-actions button, .launch-actions a {
  padding: 12px 22px; border-radius: 9px; font-size: 13px; font-weight: 600;
  border: 1px solid #d6e2e8; background: transparent; cursor: pointer;
  text-decoration: none; display: inline-block;
}
.launch-actions .primary { background: #466d82; border-color: #466d82; color: #fff; }
.launch-actions .primary:hover { background: #365a70; }
.launch-actions .ghost:hover { background: #e3eef4; }
.launch-actions button:disabled { opacity: .5; cursor: not-allowed; }

#notice {
  background: #eaf2f7; border: 1px solid #d5e4ed; color: #3e6175;
  padding: 14px 18px; border-radius: 10px; font-size: 12.5px; line-height: 1.7; margin: 0 0 20px;
}
#notice.error { background: #fbf0e8; border-color: #e8d2c0; color: #8a5a3a; }

.result-list { margin: 18px 0 0; }
.result-list dt { font-size: 11px; letter-spacing: .06em; color: #647e8d; margin-top: 14px; }
.result-list dd { margin: 5px 0 0; }
.result-list code { font-size: 12.5px; overflow-wrap: anywhere; color: #34586e; }

/* ---- 交易页 ---- */
.trade-head { display: flex; gap: 18px; align-items: flex-start; margin: 36px 0 22px; flex-wrap: wrap; }
.trade-icon {
  width: 60px; height: 60px; border-radius: 16px; background: #d9eaf3; color: #365667;
  display: grid; place-items: center; font-size: 20px; font-weight: 700; flex: none;
}
.trade-title h1 {
  margin: 0 0 4px; font-size: 30px; line-height: 1.15;
  color: #fff; text-shadow: 0 2px 10px #00000040;
}
.trade-title span {
  font-size: 12px; letter-spacing: .08em; color: #ffffffd9; text-shadow: 0 1px 4px #00000045;
}

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0 0 22px; }
.stat {
  background: #ffffffed; border-radius: 10px; padding: 15px 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.stat span { font-size: 10.5px; letter-spacing: .07em; color: #647e8d; }
.stat strong { font-size: 18px; color: #34586e; line-height: 1.2; overflow-wrap: anywhere; }

.progress-track {
  height: 8px; background: #e1edf3; border-radius: 99px; overflow: hidden; margin: 6px 0 0;
}
.progress-fill { height: 100%; background: #668fa6; border-radius: 99px; transition: width .4s ease; }

.trade-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.trade-side { background: #f6f9fb; border: 1px solid #d6e2e8; border-radius: 12px; padding: 20px; }
.trade-side h3 { margin: 0 0 14px; font-size: 14px; }
.trade-side input {
  width: 100%; background: #fff; border: 1px solid #d6e2e8; border-radius: 9px;
  padding: 11px 13px; font-size: 15px; margin-bottom: 10px;
}
.trade-quote { font-size: 12px; line-height: 1.8; color: #5b7a8a; margin: 0 0 14px; min-height: 3.6em; }
.trade-quote b { color: #34586e; }

.creator-panel {
  margin-top: 20px; background: #daeaf3; border-radius: 12px; padding: 20px;
}
.creator-panel h3 { margin: 0 0 6px; font-size: 14px; }

@media (max-width: 560px) {
  .launch-card { padding: 20px; }
  .split-readout { flex-direction: column; }
  .launch-actions { flex-direction: column; align-items: stretch; }
  .launch-actions button, .launch-actions a { text-align: center; }
}

/* 🔴 品牌标从「深色方块 + 字母 S」换成真图标（T76：不许色块+字母）。
   img 版不需要背景色和字体，但要盖掉 revision.css / palette.css / cinema.css 里
   给 span 版写的那些属性，否则图标周围会留一圈底色。 */
img.brand-mark {
  background: transparent !important;
  border: 0 !important;
  width: 38px; height: 38px;
  border-radius: 10px;
  object-fit: contain;
  display: block;
  font-size: 0;            /* alt 文字不占位 */
}
@media (max-width: 520px) {
  img.brand-mark { width: 30px; height: 30px; }
}

/* 早鸟名额条 —— 这是可核验的链上事实，给它一个显眼但不聒噪的位置 */
.early-bird {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ffffff1f;
  border: 1px solid #ffffff38;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  backdrop-filter: blur(6px);
  text-shadow: 0 1px 2px #0b1a2266;
}
.early-bird b { font-weight: 700; }

/* ---- 代币身份：头像 + 简介 + 社交 ---- */
.identity-block { margin-top: 26px; padding-top: 24px; border-top: 1px solid #e2ebf0; }
.identity-head {
  margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: .01em; color: #2f5265;
}
.identity-note { display: block; font-weight: 400; font-size: 11.5px; color: #7b94a3; margin-top: 4px; }
.identity-row { display: flex; gap: 20px; align-items: flex-start; }
.identity-fields { flex: 1; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.identity-fields textarea {
  background: #f6f9fb; border: 1px solid #d6e2e8; border-radius: 9px;
  padding: 11px 13px; font: inherit; font-size: 14px; font-weight: 400;
  width: 100%; resize: vertical; color: inherit;
}
.identity-fields > label {
  display: flex; flex-direction: column; gap: 7px;
  font-size: 12px; font-weight: 600; letter-spacing: .01em; color: #2f5265;
}
.identity-fields input {
  background: #f6f9fb; border: 1px solid #d6e2e8; border-radius: 9px;
  padding: 11px 13px; font-size: 14px; font-weight: 400; width: 100%;
}

/* 图片选择器本身就是那个方块：点哪都能选，选完原地变成预览。 */
.logo-pick {
  position: relative; flex: none; width: 96px; height: 96px; border-radius: 14px;
  background: #f0f5f8; border: 1px dashed #bcd0dc; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.logo-pick:hover { border-color: #8bb0c4; background: #eaf2f7; }
.logo-pick img { width: 100%; height: 100%; object-fit: cover; }
.logo-pick span { font-size: 11px; letter-spacing: .06em; color: #7b94a3; pointer-events: none; }
.logo-pick input[type=file] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
}

@media (max-width: 560px) {
  .identity-row { flex-direction: column; align-items: stretch; }
  .logo-pick { align-self: flex-start; }
}

/* 交易页的头像位：链上那张图铺满圆角方块，读不到就还是字块。 */
.trade-icon { overflow: hidden; position: relative; }
.trade-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 🔴 交易页顶部压在视频上，字必须是白的 —— tokens.css 里那套深色是给白卡片用的。 */
#trade-body > .token-desc { color: #fff; text-shadow: 0 1px 8px #00000055; max-width: 60ch; }
#trade-body > .token-socials a { color: #fff; border-bottom-color: #ffffff66; }
/* 头像挂上后把兜底的字母收起来（字母留在 DOM 里，图挂了还能退回去）。 */
.trade-icon.has-image { font-size: 0; }
