﻿[hidden] { display: none !important; }

.t-main { padding-top: 112px; }
.t-hero { padding: 54px 0 26px; }
.t-crumb { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 9px; color: var(--muted-2); letter-spacing: .04em; }
.t-crumb a { color: var(--mint); }
.t-crumb b { font-weight: 400; color: var(--muted); }
.t-hero h1 { margin: 14px 0 12px; font-size: clamp(42px, 5.2vw, 68px); font-weight: 400; line-height: 1.25; color: #f8fbfd; }
html[lang="zh"] .t-hero h1 { font-size: clamp(44px, 5.4vw, 72px); font-weight: 600; letter-spacing: -.04em; }
.t-hero p { max-width: 700px; color: var(--muted); font-size: 15px; line-height: 1.85; }

.t-section { padding: 22px 0 80px; }
.t-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }

.t-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(13,23,38,.9), rgba(6,12,21,.94));
  box-shadow: 0 35px 80px rgba(0,0,0,.35);
  overflow: hidden;
}

.t-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); padding: 0 18px; }
.t-tab { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 52px; padding: 0 14px; border: 0; background: transparent; color: var(--muted-2); font: inherit; font-size: 11px; cursor: pointer; }
.t-tab .icon { width: 15px; height: 15px; }
.t-tab.active { color: var(--mint); }
.t-tab.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 1px; background: var(--mint); box-shadow: 0 0 12px rgba(60,230,196,.7); }

.t-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 0; }
.t-lang { display: flex; align-items: center; gap: 8px; }
.t-lang label { font-size: 10px; color: var(--muted); }
.t-lang select { height: 32px; padding: 0 9px; border: 1px solid var(--line-2); border-radius: 7px; background: rgba(0,0,0,.22); color: var(--text); font: inherit; font-size: 10px; outline: 0; }
.t-max { font-family: var(--mono); font-size: 8px; color: var(--muted-2); }

.t-mode { padding: 16px 20px 0; }
.t-label { display: block; margin-bottom: 7px; font-size: 10px; color: var(--muted); }
.t-input { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 8px 0 12px; border: 1px solid var(--line-2); border-radius: 9px; background: rgba(0,0,0,.2); }
.t-input:focus-within { border-color: rgba(60,230,196,.5); box-shadow: 0 0 0 3px rgba(60,230,196,.06); }
.t-input > .icon { width: 16px; height: 16px; color: var(--mint); flex: none; }
.t-input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: #f4f8fc; font-family: var(--mono); font-size: 10px; direction: ltr; }
.t-input input::placeholder { color: rgba(238,244,251,.26); }
.t-input button { flex: none; height: 28px; padding: 0 9px; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(255,255,255,.04); color: var(--muted); font-size: 8.5px; }
.t-sub { margin-top: 8px; font-size: 8.5px; line-height: 1.6; color: var(--muted-2); }

.t-drop { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 26px 16px; border: 1px dashed rgba(60,230,196,.26); border-radius: 10px; background: rgba(60,230,196,.025); cursor: pointer; text-align: center; transition: border-color .25s, background .25s; }
.t-drop:hover { border-color: rgba(60,230,196,.55); background: rgba(60,230,196,.055); }
.t-drop .icon { width: 22px; height: 22px; color: var(--mint); }
.t-drop b { font-size: 11px; font-weight: 500; }
.t-drop span { font-size: 8.5px; color: var(--muted-2); }
.t-file { margin-top: 8px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; font-family: var(--mono); font-size: 9px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
.t-file button { border: 0; background: transparent; color: #ff9aab; font-size: 9px; }

.t-rights { display: flex; gap: 8px; align-items: flex-start; margin: 16px 20px 0; font-size: 9.5px; line-height: 1.65; color: var(--muted-2); cursor: pointer; }
.t-rights input { width: 14px; height: 14px; accent-color: var(--mint); flex: none; margin-top: 1px; }

.t-submit { width: calc(100% - 40px); height: 47px; margin: 14px 20px 18px; justify-content: center; border-radius: 9px; font-size: 11px; }
.t-submit:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }

.t-status { display: flex; gap: 12px; align-items: center; margin: 0 20px 18px; padding: 13px 14px; border: 1px solid rgba(60,230,196,.16); border-radius: 9px; background: rgba(60,230,196,.035); }
.t-status b { display: block; font-size: 10.5px; font-weight: 500; }
.t-status span:not(.t-spinner) { display: block; margin-top: 3px; font-size: 8.5px; color: var(--muted-2); }
.t-spinner { width: 17px; height: 17px; border: 2px solid rgba(60,230,196,.2); border-top-color: var(--mint); border-radius: 50%; animation: tspin .8s linear infinite; flex: none; }
@keyframes tspin { to { transform: rotate(360deg); } }

.t-error { margin: 0 20px 18px; padding: 16px; border: 1px solid rgba(255,92,122,.24); border-radius: 9px; background: rgba(255,92,122,.04); text-align: center; }
.t-error b { color: #ff9aab; font-size: 11px; }
.t-error p { margin-top: 6px; font-size: 9.5px; line-height: 1.7; color: var(--muted); }
.t-retry { margin-top: 8px; border: 0; background: transparent; color: var(--mint); font-size: 9.5px; }

.t-result { border-top: 1px solid var(--line); padding: 18px 20px 20px; }
.t-result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.t-result-head > div:first-child { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.t-badge { padding: 3px 6px; border: 1px solid rgba(60,230,196,.25); border-radius: 4px; color: var(--mint); font-family: var(--mono); font-size: 7px; letter-spacing: .1em; }
.t-result-head h2 { font-size: 13px; font-weight: 600; }
.t-actions { display: flex; gap: 5px; }
.t-actions button { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 6px; background: transparent; color: var(--muted); font-size: 8.5px; }
.t-actions button:hover { color: var(--mint); border-color: rgba(60,230,196,.35); }
.t-actions .icon { width: 12px; height: 12px; }
.t-text { max-height: 360px; overflow: auto; margin-top: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0,0,0,.14); font-size: 12px; line-height: 2; color: #e8f0f7; white-space: pre-wrap; }
.t-segments { margin-top: 10px; font-size: 9px; color: var(--muted-2); }
.t-segments summary { cursor: pointer; }
.t-segments > div { margin-top: 8px; max-height: 180px; overflow: auto; }
.t-seg { display: flex; gap: 8px; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.t-seg time { flex: none; font-family: var(--mono); font-size: 7.5px; color: var(--mint); }

.t-side { display: flex; flex-direction: column; gap: 10px; }
.t-side-card { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: rgba(13,21,34,.48); }
.t-side-card .eyebrow { margin-bottom: 12px; }
.t-side-card ol { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.t-side-card li { display: flex; gap: 9px; align-items: flex-start; }
.t-side-card li b { font-family: var(--mono); font-size: 8px; color: var(--mint); margin-top: 2px; }
.t-side-card li span { font-size: 9.5px; line-height: 1.6; color: var(--muted); }
.t-side-note { display: flex; gap: 8px; align-items: flex-start; }
.t-side-note .icon { width: 14px; height: 14px; color: var(--mint); flex: none; }
.t-side-note p { margin: 0; font-size: 9px; line-height: 1.7; color: var(--muted-2); }
.t-side-meta span { display: block; font-size: 8px; color: var(--muted-2); }
.t-side-meta b { display: block; margin-top: 5px; font-family: var(--mono); font-size: 11px; color: var(--mint); font-weight: 500; }
.t-side-meta small { display: block; margin-top: 3px; font-size: 8px; color: var(--muted-2); }

html[data-theme="light"] .t-hero h1 { color: #0b1726; }
html[data-theme="light"] .t-panel { background: rgba(255,255,255,.9); border-color: var(--line); }
html[data-theme="light"] .t-text { background: #f7f9fc; color: #0b1726; }
html[data-theme="light"] .t-side-card { background: rgba(255,255,255,.78); border-color: var(--line); }
html[data-theme="light"] .t-input input { color: #0b1726; }
html[data-theme="light"] .t-lang select { color: #0b1726; background: #fff; }

@media (max-width: 980px) {
  .t-layout { grid-template-columns: 1fr; }
  .t-side { display: grid; grid-template-columns: 1fr 1fr; }
  .t-side-meta { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .t-main { padding-top: 94px; }
  .t-hero { padding-top: 30px; }
  .t-hero h1 { font-size: 38px; }
  .t-hero p { font-size: 13px; }
  .t-tabs { padding: 0 10px; }
  .t-tab { height: 46px; padding: 0 8px; font-size: 10px; }
  .t-topline { padding: 13px 14px 0; flex-wrap: wrap; }
  .t-mode { padding: 13px 14px 0; }
  .t-rights { margin: 13px 14px 0; }
  .t-submit { width: calc(100% - 28px); margin: 13px 14px 14px; }
  .t-status, .t-error { margin-left: 14px; margin-right: 14px; }
  .t-result { padding: 15px 14px; }
  .t-result-head { flex-direction: column; }
  .t-text { max-height: 300px; font-size: 11px; }
  .t-side { grid-template-columns: 1fr; }
}
.t-lang-note { margin: 8px 20px 0; font-size: 8.5px; line-height: 1.6; color: #ffc66d; }
.t-elapsed { display: inline-block; margin-inline-start: 6px; font-family: var(--mono); font-size: 8px; color: var(--mint); }
.t-status span { display: inline; }
