:root {
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 24px 64px rgba(15, 23, 42, 0.09);
  --text: #101828;
  --muted: #5f6b7b;
  --blue: #1178ff;
  --blue-soft: rgba(17, 120, 255, 0.1);
  --green: #1aa772;
  --red: #e25353;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans SC", "PingFang SC", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(17, 120, 255, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(46, 204, 164, 0.14), transparent 22%),
    linear-gradient(180deg, #f6f8fb 0%, #eef2f6 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.26) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 70%);
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 24px auto 48px;
}

.hero-card,
.glass-card,
.history-item,
.info-card,
.filter-pill,
.tab-chip,
.primary-button,
.secondary-button,
.ghost-button,
.form-card,
.preview-card {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-card,
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 22px;
  padding: 30px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(17, 120, 255, 0.16), transparent 68%);
}

.hero-copy h1,
.section-heading h2,
.seo-copy h3,
.info-card h3 {
  margin: 0;
}

.hero-copy h1 {
  margin-top: 12px;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-copy p,
.hero-stat span,
.section-meta,
.seo-copy p,
.feature-line span,
.status-label,
.history-subline,
.inline-stat,
.info-card p,
.info-card li {
  color: var(--muted);
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-actions,
.action-row,
.tab-bar,
.history-tools,
.filter-pills,
.feature-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.secondary-button,
.ghost-button,
.tab-chip,
.filter-pill {
  appearance: none;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button,
.secondary-button,
.ghost-button {
  padding: 13px 18px;
  border-radius: 999px;
}

.primary-button {
  background: linear-gradient(180deg, #1984ff 0%, #0b6def 100%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(17, 120, 255, 0.24);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.ghost-button {
  background: transparent;
  color: var(--blue);
  border: 1px solid rgba(17, 120, 255, 0.18);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.tab-chip:hover,
.filter-pill:hover {
  transform: translateY(-1px);
}

.hero-panel {
  display: grid;
  gap: 14px;
  align-content: end;
}

.hero-stat {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.hero-stat strong,
.history-title,
.status-strip strong,
.inline-stat strong {
  display: block;
}

.tab-bar {
  position: sticky;
  top: 14px;
  z-index: 10;
  margin: 18px 0;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.tab-chip {
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--muted);
}

.tab-chip.is-active,
.tab-chip:focus-visible {
  background: #fff;
  color: var(--text);
  outline: none;
}

.content-stack {
  display: grid;
  gap: 20px;
}

.glass-card {
  padding: 24px;
  border-radius: var(--radius-xl);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.section-heading--compact {
  align-items: center;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(340px, 430px) 1fr;
  gap: 18px;
}

.form-card,
.preview-card,
.history-item,
.info-card,
.history-empty {
  background: var(--surface-strong);
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.form-card,
.preview-card {
  border-radius: var(--radius-lg);
  padding: 20px;
}

.field-label {
  display: block;
  margin: 0 0 8px;
  font-weight: 600;
}

input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.94);
  padding: 14px 16px;
  margin-bottom: 14px;
  color: var(--text);
}

input:focus {
  outline: 2px solid rgba(17, 120, 255, 0.18);
  border-color: rgba(17, 120, 255, 0.24);
}

.seo-copy {
  margin-bottom: 12px;
}

.seo-copy h3 {
  font-size: 1.12rem;
  margin-bottom: 6px;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.feature-line {
  align-items: baseline;
  gap: 10px;
}

.feature-line strong {
  min-width: 42px;
}

video {
  width: 100%;
  min-height: 360px;
  border-radius: 22px;
  background: linear-gradient(160deg, #d9eafe, #eef6ff 42%, #f7fbff);
}

.status-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.8));
}

.status-meta {
  text-align: right;
  font-size: 0.92rem;
  color: var(--muted);
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.progress-track--large {
  margin-top: 14px;
  height: 10px;
}

.progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f72ff, #3ab7ff);
}

.history-tools {
  align-items: center;
  gap: 10px;
}

.history-tools input {
  width: 260px;
  margin: 0;
}

.filter-pills {
  gap: 8px;
}

.filter-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.07);
  color: var(--muted);
  font-size: 0.88rem;
}

.filter-pill.is-active {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: rgba(17, 120, 255, 0.12);
}

.inline-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.inline-stat {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(15, 23, 42, 0.05);
  font-size: 0.92rem;
}

.inline-stat strong {
  display: inline;
  margin-left: 4px;
  color: var(--text);
}

.history-list,
.settings-grid {
  display: grid;
  gap: 14px;
}

.history-item,
.info-card,
.history-empty {
  padding: 18px;
  border-radius: 22px;
}

.history-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.history-title {
  margin-bottom: 4px;
  font-size: 1rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-pill.active {
  background: rgba(17, 120, 255, 0.12);
  color: var(--blue);
}

.status-pill.done {
  background: rgba(26, 167, 114, 0.12);
  color: var(--green);
}

.status-pill.failed {
  background: rgba(226, 83, 83, 0.12);
  color: var(--red);
}

.settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card ul,
.info-card ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.info-card a {
  color: var(--blue);
  text-decoration: none;
}

.info-card--contact li {
  list-style: none;
  margin-left: -18px;
}

@media (max-width: 960px) {
  .hero-card,
  .workspace-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .status-strip,
  .history-top {
    flex-direction: column;
    align-items: stretch;
  }

  .history-tools input {
    width: 100%;
  }
}
