/*
 * tie-tu-copy.css — 贴图号文案二创独立页面
 * 只作用于 #ttc，不动贴图号原有表单；手机端自己堆叠，不依赖 tie-tu-mobile.js。
 */
#ttc {
  margin: 26px 0 4px;
  padding: 28px 30px 30px;
  border: 1px solid var(--hairline, rgba(15, 45, 32, .085));
  border-radius: var(--r-lg, 20px);
  background: var(--frost-fill, rgba(255, 255, 255, .78));
  box-shadow: var(--frost-shadow, 0 1px 2px rgba(12, 45, 30, .032), 0 8px 20px -18px rgba(12, 45, 30, .2));
}

#ttc * { box-sizing: border-box; }
#ttc [hidden] { display: none !important; }

/* 独立页面：标题区与内容卡共用同一宽度，不再挤在贴图号页底部。 */
#tie-tu-copy .skill-page-head,
#tie-tu-copy #ttc { width: min(1160px, 100%); margin-left: auto; margin-right: auto; }
#tie-tu-copy .skill-page-head { margin-top: 26px; margin-bottom: 22px; }
#tie-tu-copy .skill-page-head h1 { font-size: 28px; letter-spacing: -.02em; }
#tie-tu-copy .skill-page-head p { max-width: 760px; }
#tie-tu-copy #ttc { margin-top: 0; margin-bottom: 0; }

.ttc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.ttc-title { font-size: 19px; font-weight: 650; letter-spacing: -.02em; color: var(--ink, #1d1d1f); }
.ttc-sub { margin-top: 5px; font-size: 13px; line-height: 1.6; color: var(--sub, #6e6e73); }
.ttc-quota { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--sub, #6e6e73); }
.ttc-count { padding: 6px 12px; border-radius: 999px; background: var(--sage-soft, rgba(47, 125, 79, .1)); color: var(--sage, #2f7d4f); font-weight: 600; white-space: nowrap; }
.ttc-count.warn { background: var(--orange-soft, rgba(178, 80, 0, .1)); color: var(--orange, #b25000); }
.ttc-open { border: 0; background: none; padding: 0; color: var(--sage, #2f7d4f); font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.ttc-tabs { display: inline-flex; gap: 4px; margin: 22px 0 20px; padding: 4px; border: 1px solid var(--hairline, rgba(15, 45, 32, .085)); border-radius: 999px; background: rgba(255, 255, 255, .5); }
.ttc-tab { border: 0; background: none; padding: 7px 18px; border-radius: 999px; font-size: 13px; color: var(--sub, #6e6e73); cursor: pointer; }
.ttc-tab[aria-selected="true"] { background: #fff; color: var(--sage, #2f7d4f); font-weight: 600; box-shadow: 0 1px 3px rgba(12, 45, 30, .08); }

.ttc-body { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 28px; }
.ttc-form { min-width: 0; }
.ttc-field { display: block; margin-bottom: 16px; font-size: 12px; color: var(--sub, #6e6e73); }
.ttc-field > span { display: block; margin-bottom: 7px; font-weight: 600; color: var(--ink, #1d1d1f); }
.ttc-field small { display: block; margin-top: 6px; font-size: 11px; line-height: 1.5; color: var(--text-4, #86868b); }
.ttc-field textarea, .ttc-field input {
  display: block; width: 100%; padding: 11px 13px; border: 1px solid var(--line-2, rgba(0, 0, 0, .12));
  border-radius: var(--r-sm, 10px); background: rgba(255, 255, 255, .82); color: var(--ink, #1d1d1f);
  font: inherit; font-size: 13px; line-height: 1.6; resize: vertical; outline: none;
}
.ttc-field textarea:focus, .ttc-field input:focus { border-color: var(--sage, #2f7d4f); }
.ttc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.ttc-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 128px; padding: 18px; border: 1px dashed var(--line-3, rgba(0, 0, 0, .16));
  border-radius: var(--r-md, 14px); background: rgba(255, 255, 255, .55); cursor: pointer; text-align: center;
}
.ttc-drop:hover { border-color: var(--sage, #2f7d4f); }
.ttc-drop strong { font-size: 13px; font-weight: 600; color: var(--ink, #1d1d1f); }
.ttc-drop small { font-size: 11px; color: var(--text-4, #86868b); }
.ttc-preview { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--hairline, rgba(15, 45, 32, .085)); border-radius: var(--r-md, 14px); background: rgba(255, 255, 255, .55); }
.ttc-preview img { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; }
.ttc-preview div { min-width: 0; flex: 1; font-size: 12px; color: var(--sub, #6e6e73); overflow-wrap: anywhere; }
.ttc-preview button { border: 0; background: none; color: var(--text-3, #6e6e73); cursor: pointer; font-size: 12px; }

.ttc-run { width: 100%; margin-top: 4px; padding: 12px 18px; border: 0; border-radius: var(--r-sm, 10px); background: var(--sage, #2f7d4f); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.ttc-run:hover { filter: brightness(1.06); }
.ttc-run:disabled { opacity: .55; cursor: default; }
.ttc-status { margin-top: 11px; min-height: 18px; font-size: 12px; line-height: 1.5; color: var(--sub, #6e6e73); }
.ttc-status.error { color: var(--bad, #d70015); }

.ttc-out { min-width: 0; }
.ttc-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 260px; padding: 24px; border: 1px dashed var(--hairline, rgba(15, 45, 32, .085)); border-radius: var(--r-md, 14px); text-align: center; }
.ttc-empty strong { font-size: 14px; font-weight: 600; color: var(--ink, #1d1d1f); }
.ttc-empty p { margin: 8px 0 0; font-size: 12px; line-height: 1.7; color: var(--sub, #6e6e73); }

.ttc-block { position: relative; margin-bottom: 14px; padding: 15px 46px 15px 16px; border: 1px solid var(--hairline, rgba(15, 45, 32, .085)); border-radius: var(--r-md, 14px); background: rgba(255, 255, 255, .58); }
.ttc-block .ttc-k { font-size: 11px; color: var(--sub, #6e6e73); margin-bottom: 7px; }
.ttc-block .ttc-v { font-size: 14px; line-height: 1.7; color: var(--ink, #1d1d1f); overflow-wrap: anywhere; white-space: pre-wrap; }
.ttc-block.hero .ttc-v { font-size: 17px; font-weight: 650; }
.ttc-copy { position: absolute; top: 13px; right: 13px; border: 0; background: none; padding: 4px 7px; border-radius: 7px; color: var(--sage, #2f7d4f); font-size: 11px; cursor: pointer; opacity: .72; }
.ttc-copy:hover { opacity: 1; background: var(--sage-soft, rgba(47, 125, 79, .1)); }
.ttc-alt { display: flex; flex-direction: column; gap: 9px; }
.ttc-alt div { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.6; color: var(--ink, #1d1d1f); }
.ttc-alt em { flex: none; font-style: normal; font-size: 11px; color: var(--sage, #2f7d4f); font-weight: 600; padding-top: 2px; }
.ttc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ttc-tag { padding: 5px 11px; border-radius: 999px; background: var(--sage-soft, rgba(47, 125, 79, .1)); color: var(--sage, #2f7d4f); font-size: 12px; cursor: pointer; }
.ttc-note { font-size: 11px; line-height: 1.6; color: var(--text-4, #86868b); }
.ttc-redo { width: 100%; margin-top: 2px; padding: 10px 16px; border: 1px solid var(--line-2, rgba(0, 0, 0, .12)); border-radius: var(--r-sm, 10px); background: rgba(255, 255, 255, .7); color: var(--ink, #1d1d1f); font-size: 13px; font-weight: 600; cursor: pointer; }
.ttc-redo:disabled { opacity: .55; cursor: default; }

@media (max-width: 760px) {
  #ttc { margin: 20px -2px 0; padding: 22px 18px 24px; }
  #tie-tu-copy #ttc { margin: 18px 0 0; padding: 22px 18px 24px; }
  .ttc-body { grid-template-columns: 1fr; gap: 20px; }
  .ttc-two { grid-template-columns: 1fr; }
  .ttc-head { gap: 12px; }
  .ttc-quota { width: 100%; justify-content: space-between; }
}
