@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=ZCOOL+XiaoWei&display=swap");

:root {
  --bg-main: #f6f4e8;
  --bg-soft: #fffdf6;
  --ink: #1f2f33;
  --ink-soft: #4d5d61;
  --brand: #d2682f;
  --brand-deep: #ab4d1d;
  --brand-alt: #178a80;
  --line: #d7d0bc;
  --ok: #1a8e57;
  --error: #c7402e;
  --warn: #a96b0f;
  --shadow: 0 14px 36px rgba(76, 56, 21, 0.12);
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 12%, rgba(23, 138, 128, 0.17), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(210, 104, 47, 0.16), transparent 30%),
    linear-gradient(145deg, #faf7ed 0%, #f3f5ee 46%, #fffdf8 100%);
}

.page-shell {
  width: min(1120px, 94vw);
  margin: 36px auto 64px;
}

.hero-banner,
.panel,
.notice-panel,
.feature-card,
.status-box,
.tool-header {
  background: rgba(255, 253, 246, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-banner {
  padding: 32px 34px;
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: "";
  position: absolute;
  right: -54px;
  top: -58px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(23, 138, 128, 0.34), rgba(23, 138, 128, 0));
}

.kicker {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-alt);
  font-weight: 700;
}

.headline {
  margin: 12px 0 8px;
  font-family: "ZCOOL XiaoWei", "STZhongsong", "SimSun", serif;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.subhead {
  margin: 0 0 22px;
  color: var(--ink-soft);
  max-width: 720px;
}

.feature-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 188px;
}

.feature-card p {
  margin: 10px 0 20px;
  color: var(--ink-soft);
}

.feature-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-top h2 {
  margin: 0;
  font-size: 20px;
}

.feature-tag {
  width: fit-content;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.feature-tag.live {
  color: #f8f5e6;
  background: linear-gradient(120deg, #1e8f82, #256a5f);
}

.feature-tag.plan {
  color: #6a4a1e;
  background: #f3dfb8;
}

.featured {
  border-color: rgba(23, 138, 128, 0.48);
}

.notice-panel {
  margin-top: 18px;
  padding: 18px 20px;
}

.notice-panel h3 {
  margin: 0 0 8px;
}

.notice-panel p {
  margin: 0;
  color: var(--ink-soft);
}

.tool-header {
  padding: 24px 26px;
  margin-bottom: 14px;
}

.tool-header h1 {
  margin: 8px 0 10px;
  font-family: "ZCOOL XiaoWei", "STZhongsong", "SimSun", serif;
  font-size: clamp(28px, 4vw, 42px);
}

.tool-header p {
  margin: 0;
  color: var(--ink-soft);
}

.back-link {
  display: inline-flex;
  text-decoration: none;
  color: var(--brand-alt);
  font-weight: 700;
}

.scheduler-form {
  display: grid;
  gap: 14px;
}

.panel {
  padding: 18px 20px;
}

.panel.compact {
  padding-bottom: 10px;
}

.panel-head {
  margin-bottom: 12px;
}

.panel-head.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-head h2 {
  margin: 0;
  font-size: 18px;
}

.toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toggle-chip {
  border: 1px solid #c9c2af;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  background: #fffef8;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.toggle-chip:hover {
  transform: translateY(-1px);
  border-color: #8f9f9d;
}

.toggle-chip.selected {
  color: #f9f6ed;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.constraints-list {
  display: grid;
  gap: 10px;
}

.constraint-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr auto;
  gap: 10px;
  align-items: center;
}

.constraint-row select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cfc6b2;
  border-radius: 10px;
  background: #fffef8;
  color: var(--ink);
  font-size: 14px;
}

.constraint-row .btn {
  white-space: nowrap;
}

.payload-preview {
  margin: 0;
  border-radius: 10px;
  border: 1px dashed #bdc7c6;
  background: #f7faf8;
  color: #2f4d49;
  padding: 12px;
  white-space: pre-wrap;
  line-height: 1.5;
  font-size: 13px;
}

.payload-preview.hidden {
  display: none;
}

.action-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.status-box {
  margin-top: 14px;
  padding: 16px 18px;
}

.status-box h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.status-box p {
  margin: 0;
}

.status-box.info {
  border-color: #b7c8c6;
  background: #eef7f6;
}

.status-box.loading {
  border-color: #e2be79;
  background: #fff6df;
}

.status-box.success {
  border-color: #8ac2a2;
  background: #e8f8ee;
  color: #1f6c48;
}

.status-box.error {
  border-color: #e5a3a0;
  background: #ffeceb;
  color: #902d27;
}

.hint {
  margin: 10px 0 0;
  color: #617276;
  font-size: 13px;
}

.hint.inline {
  margin: 0;
}

.btn {
  border: 0;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.btn-primary {
  color: #fff8f0;
  background: linear-gradient(125deg, var(--brand), var(--brand-deep));
}

.btn-large {
  padding: 11px 20px;
  font-size: 15px;
}

.btn-ghost {
  border: 1px solid #aac3c0;
  background: #f7fffd;
  color: #1f6660;
}

.btn-disabled {
  background: #ebe6d8;
  color: #7c7564;
}

.btn-danger {
  border: 1px solid #e2aba2;
  background: #fff4f2;
  color: #a83f32;
}

[data-animate] {
  opacity: 0;
  transform: translateY(8px);
}

[data-animate].enter {
  animation: fade-rise 0.52s ease forwards;
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .constraint-row {
    grid-template-columns: 1fr;
  }

  .panel-head.between {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(1120px, 96vw);
    margin-top: 20px;
  }

  .hero-banner,
  .panel,
  .tool-header,
  .notice-panel,
  .feature-card,
  .status-box {
    border-radius: var(--radius-md);
  }

  .headline,
  .tool-header h1 {
    line-height: 1.16;
  }

  .btn,
  .toggle-chip,
  .constraint-row select {
    font-size: 15px;
  }
}
