/* /try 免注册体验页。沿用 style.css 的基础样式。 */

.try {
  padding-bottom: 96px;
}

.try-head {
  padding-top: 64px;
  padding-bottom: 28px;
  max-width: 820px;
}

.try-head h1 {
  margin: 0 0 14px;
  font: 600 44px/1.25 var(--serif);
}

.try-head .lead {
  margin: 0;
}

.try .wrap {
  max-width: 820px;
}

.try-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -30px rgba(28, 27, 25, 0.4);
}

.seg {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px;
  border-radius: 9px;
  background: #efede8;
}

.seg button {
  border: 0;
  background: transparent;
  height: 30px;
  padding: 0 14px;
  border-radius: 7px;
  font: 600 13.5px/1 var(--sans);
  color: var(--ink-2);
  cursor: pointer;
}

.seg button.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(28, 27, 25, 0.1);
}

.try-box input:not(.hp),
.try-box textarea {
  width: 100%;
  font: 400 16px/1.6 var(--sans);
  color: var(--ink);
  border: 1px solid #d6d2ca;
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  background: var(--surface);
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.try-box input:focus,
.try-box textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(28, 27, 25, 0.07);
}

.hint {
  margin: 8px 2px 0;
  font-size: 13px;
  color: var(--ink-3);
}

.try-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quota {
  margin-right: auto;
  font-size: 13px;
  color: var(--ink-3);
}

/* 进度 */
#progress {
  padding-top: 36px;
}

.steps-live {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  font-size: 13px;
  color: var(--ink-3);
}

.steps-live li {
  position: relative;
  padding-top: 14px;
  border-top: 2px solid var(--line);
  transition: color 0.3s, border-color 0.3s;
}

.steps-live li.doing {
  color: var(--ink);
  border-color: var(--accent);
  font-weight: 600;
}

.steps-live li.done {
  color: var(--ink-2);
  border-color: var(--ink);
}

.bar {
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
  display: none;
}

.live-msg {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-3);
}

/* 结果 */
#result {
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#result[hidden] {
  display: none;
}

.profile {
  padding: 26px 28px;
  border-radius: 18px;
  background: var(--ink);
  color: #f3f1ec;
}

.profile .eyebrow {
  color: #a9a59c;
  margin-bottom: 10px;
}

.p-title {
  margin: 0 0 6px;
  font: 600 26px/1.35 var(--serif);
}

.p-meta {
  margin: 0 0 16px;
  color: #a9a59c;
  font-size: 14px;
}

.p-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  font-size: 14.5px;
}

.p-points li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
  transform: rotate(45deg);
  margin-right: 10px;
  vertical-align: 3px;
}

.copies {
  display: grid;
  gap: 18px;
}

.copy {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  animation: card-in 0.5s var(--ease) both;
}

.copy-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.copy-head .pf {
  font-size: 12.5px;
}

.copy-head .risk {
  font-size: 12px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
}

.risk.ok {
  background: #e9f4ee;
  color: #2f7a52;
}

.risk.bad {
  background: #fcebe8;
  color: #c23a2b;
}

.copy-head .copy-all {
  margin-left: auto;
  border: 0;
  background: transparent;
  font: 600 13px/1 var(--sans);
  color: var(--ink-2);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
}

.copy-head .copy-all:hover {
  background: #f1efea;
}

.copy-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.copy-body h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.copy-body ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 14.5px;
}

.copy-body .body {
  margin: 0;
  white-space: pre-wrap;
  color: var(--ink-2);
  font-size: 14.5px;
}

.copy-body .tags {
  color: #3b5f8a;
  font-size: 13.5px;
}

mark.r {
  background: rgba(194, 58, 43, 0.1);
  color: inherit;
  text-decoration: underline wavy #c23a2b;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  cursor: help;
}

.next {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 26px 28px;
  border-radius: 18px;
  border: 1px solid var(--ink);
  background: var(--surface);
}

.next h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.next p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
}

.next-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: none;
}

@media (max-width: 640px) {
  .try-head {
    padding-top: 36px;
  }
  .try-head h1 {
    font-size: 30px;
  }
  .steps-live {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .steps-live li {
    padding: 6px 0 0 12px;
    border-top: 0;
    border-left: 2px solid var(--line);
  }
  .p-points {
    grid-template-columns: 1fr;
  }
  .next {
    flex-direction: column;
    align-items: flex-start;
  }
  .profile,
  .next {
    padding: 22px;
  }
}
