:root {
  --ink: #182521;
  --muted: #68716d;
  --paper: #f4f0e8;
  --card: #fffdf8;
  --line: #d8d4ca;
  --green: #174f3a;
  --green-soft: #e1eee6;
  --orange: #ed713c;
  --orange-soft: #fff0e6;
  --red: #a33a32;
  --red-soft: #f9e8e5;
  --shadow: 0 18px 55px rgba(39, 47, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 9% 10%, rgba(237, 113, 60, 0.08), transparent 22rem),
    linear-gradient(rgba(24, 37, 33, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 37, 33, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 32px 32px, 32px 32px, auto;
  color: var(--ink);
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  min-height: 100vh;
}

.desktop-notice {
  display: none;
}

button,
textarea,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(237, 113, 60, 0.35);
  outline-offset: 3px;
}

.site-header {
  width: min(1120px, calc(100% - 40px));
  height: 84px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(24, 37, 33, 0.14);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 9px 9px 9px 2px;
}

.header-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.header-note span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3e9b62;
  box-shadow: 0 0 0 4px rgba(62, 155, 98, 0.12);
}

main {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 86px 0 64px;
  text-align: center;
}

.eyebrow,
.section-number {
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 24px;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(46px, 7vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 700;
}

.hero h1 em {
  color: var(--green);
  font-style: normal;
  position: relative;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 0;
  bottom: -6px;
  height: 9px;
  background: url("data:image/svg+xml,%3Csvg width='420' height='9' viewBox='0 0 420 9' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6C104 1 303 2 418 5' stroke='%23ed713c' stroke-width='3' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.hero-copy {
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
}

.steps li:not(:last-child)::after {
  content: "";
  width: 54px;
  height: 1px;
  margin: 0 16px;
  background: var(--line);
}

.steps b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  background: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}

.workspace,
.result-section {
  padding: 38px;
  border: 1px solid rgba(24, 37, 33, 0.13);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.93);
  box-shadow: var(--shadow);
}

.workspace-heading,
.result-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.workspace-heading h2,
.result-header h2 {
  margin: 7px 0 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 29px;
}

.workspace-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  border-radius: 12px;
  background: #ebe7de;
}

.tab {
  padding: 13px 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.tab.is-active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 2px 9px rgba(28, 36, 32, 0.08);
}

.tab-panel {
  padding-top: 24px;
}

.access-code-wrap {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr);
  align-items: center;
  gap: 8px 14px;
  margin-top: 18px;
  padding: 15px 17px;
  border: 1px solid #e1b998;
  border-radius: 12px;
  background: var(--orange-soft);
}

.access-code-wrap label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.access-code-wrap input {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.access-code-wrap span {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
}

.drop-zone {
  width: 100%;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1.5px dashed #a7aca5;
  border-radius: 15px;
  background: #faf8f2;
  color: var(--muted);
  cursor: pointer;
  transition: 160ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: var(--orange);
  background: var(--orange-soft);
  transform: translateY(-1px);
}

.drop-zone strong {
  margin-top: 6px;
  color: var(--ink);
  font-size: 18px;
}

.drop-zone > span:last-child {
  font-size: 13px;
}

.upload-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}

.upload-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.file-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 90px;
  padding: 15px 18px;
  border: 1px solid #b9c9c0;
  border-radius: 14px;
  background: var(--green-soft);
}

.file-badge {
  width: 52px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px 8px 8px 2px;
  background: var(--green);
  color: white;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.file-meta {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}

.file-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta span {
  color: var(--muted);
  font-size: 13px;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 25px;
}

.icon-button:hover {
  background: rgba(24, 37, 33, 0.08);
}

.gentle-hint {
  margin: 13px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.editor-label {
  display: flex;
  justify-content: space-between;
  margin: 0 2px 9px;
  color: var(--muted);
  font-size: 12px;
}

#html-input {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #faf8f2;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
}

#html-input:focus {
  border-color: var(--green);
}

.form-error {
  margin-top: 18px;
  padding: 12px 15px;
  border: 1px solid #edc4be;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 13px;
}

.primary-button {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: white;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(23, 79, 58, 0.17);
  transition: 150ms ease;
}

.primary-button:hover:not(:disabled) {
  background: #103f2e;
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.primary-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-button.is-loading::before {
  content: "";
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.primary-button.is-loading svg {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.result-section {
  margin-top: 26px;
  animation: rise 300ms ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.verdict {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.verdict.pass {
  color: var(--green);
  background: var(--green-soft);
}

.verdict.fail {
  color: var(--red);
  background: var(--red-soft);
}

.summary-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.summary-item {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #faf8f2;
}

.summary-item b {
  display: block;
  font-family: Georgia, serif;
  font-size: 25px;
}

.summary-item span {
  color: var(--muted);
  font-size: 11px;
}

.checks-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.check-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 11px;
  padding: 15px 17px;
  background: #fffefa;
  font-size: 13px;
  line-height: 1.6;
}

.check-item + .check-item {
  border-top: 1px solid #e5e1d8;
}

.check-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.check-item.success .check-icon {
  color: var(--green);
  background: var(--green-soft);
}

.check-item.warning .check-icon {
  color: #9b581c;
  background: #fff0d9;
}

.check-item.error .check-icon {
  color: var(--red);
  background: var(--red-soft);
}

.preview-wrap {
  overflow: hidden;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.preview-toolbar {
  height: 45px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
  background: #f5f3ed;
  color: var(--muted);
  font-size: 11px;
}

.preview-toolbar > span {
  display: flex;
  gap: 5px;
}

.preview-toolbar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8c4ba;
}

.preview-toolbar a {
  justify-self: end;
  color: var(--green);
  text-decoration: none;
}

#preview-frame {
  width: 100%;
  height: 430px;
  display: block;
  border: 0;
  background: white;
}

.publish-bar,
.blocked-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 22px;
  padding: 20px;
  border-radius: 14px;
}

.publish-bar {
  border: 1px solid #b9c9c0;
  background: var(--green-soft);
}

.blocked-bar {
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
  border: 1px solid #edc4be;
  background: var(--red-soft);
}

.publish-bar > div,
.blocked-bar {
  line-height: 1.5;
}

.publish-bar strong,
.blocked-bar strong {
  display: block;
  font-size: 14px;
}

.publish-bar span,
.blocked-bar span {
  color: var(--muted);
  font-size: 12px;
}

.primary-button.compact {
  width: auto;
  min-width: 190px;
  min-height: 46px;
  margin: 0;
  padding: 0 20px;
}

.success-section {
  position: relative;
  overflow: hidden;
  margin-top: 26px;
  padding: 46px;
  border-radius: 22px;
  background: var(--green);
  color: white;
  box-shadow: var(--shadow);
  animation: rise 300ms ease both;
}

.success-section::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -110px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 35px rgba(255, 255, 255, 0.035),
    0 0 0 70px rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.success-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: white;
  color: var(--green);
  font-size: 24px;
  font-weight: 900;
}

.section-number.light {
  color: #fac3a7;
}

.success-section h2 {
  margin: 8px 0 8px;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(28px, 5vw, 40px);
}

.success-section p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.route-title {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 26px;
}

.route-title span {
  color: #fac3a7;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.route-title strong {
  font-size: 15px;
}

.domain-resources {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.domain-resources details {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 10px;
}

.domain-resources summary {
  cursor: pointer;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.domain-resources details > p {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  line-height: 1.7;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin-top: 10px;
}

.resource-links a,
.domain-result a {
  color: #ffd0b9;
  font-size: 11px;
}
.aliyun-guide {
  overflow: hidden;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.aliyun-guide > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 17px;
  list-style: none;
}

.aliyun-guide > summary::-webkit-details-marker {
  display: none;
}

.aliyun-guide > summary span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.aliyun-guide > summary b {
  padding: 3px 7px;
  border-radius: 999px;
  background: #ff6a00;
  color: white;
  font-size: 10px;
}

.aliyun-guide > summary small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.guide-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0 14px 15px;
  list-style: none;
}

.guide-steps li {
  overflow: hidden;
  border-radius: 12px;
  background: white;
  color: var(--ink);
}

.guide-copy {
  padding: 12px 14px;
}

.guide-copy b {
  font-size: 13px;
}

.guide-copy p {
  margin: 5px 0 0;
  color: #5c6b66;
  font-size: 11px;
  line-height: 1.65;
}

.guide-steps a {
  display: block;
  border-top: 1px solid #e8eeeb;
  background: #f4f7f5;
  text-align: center;
}

.guide-steps img {
  display: block;
  width: 100%;
  max-height: 370px;
  margin: auto;
  object-fit: contain;
}

.guide-steps .guide-image-narrow {
  width: auto;
  max-width: 100%;
  max-height: 330px;
}

.aliyun-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0 14px 15px;
}

.aliyun-actions a {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: white;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.aliyun-actions .guide-primary {
  border-color: #ff7a1a;
  background: #ff6a00;
}

.other-provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.other-provider-grid > div {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.other-provider-grid b {
  color: white;
  font-size: 11px;
}

.other-provider-grid a {
  color: #ffd0b9;
  font-size: 11px;
  text-decoration: none;
}
.link-box {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 27px;
  padding: 8px 8px 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.link-box a {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: white;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  font-family: Consolas, monospace;
  font-size: 13px;
}

.link-box button {
  min-width: 100px;
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: white;
  color: var(--green);
  cursor: pointer;
  font-weight: 800;
}

.success-section .expiry-note {
  margin-top: 7px;
  color: #fac3a7;
}

.domain-choice {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.choice-label {
  color: #fac3a7;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.domain-choice h3 {
  margin: 7px 0 4px;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 21px;
}

.domain-input-row {
  display: flex;
  gap: 9px;
  margin-top: 15px;
}

.provider-select {
  display: grid;
  gap: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

.provider-select select {
  min-height: 43px;
  padding: 0 30px 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9px;
  background: white;
  color: var(--ink);
}

.domain-input-row input {
  min-width: 0;
  flex: 1;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.domain-input-row button,
.domain-result button {
  padding: 0 17px;
  border: 0;
  border-radius: 9px;
  background: white;
  color: var(--green);
  cursor: pointer;
  font-weight: 800;
}

.domain-input-row button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.domain-result {
  margin-top: 14px;
  padding: 14px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.12);
}

.domain-result p {
  margin: 0 0 11px;
  color: white;
  line-height: 1.7;
}

.domain-result button {
  min-height: 38px;
}
.success-section .safety-note {
  margin-top: 13px;
  font-size: 11px;
}

.explainers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 66px 0 90px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
  overflow: hidden;
}

.explainers article {
  padding: 28px;
  background: rgba(244, 240, 232, 0.95);
}

.explainers article > span {
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
}

.explainers h3 {
  margin: 9px 0 11px;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 18px;
}

.explainers p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

footer a {
  color: var(--green);
}

footer {
  width: min(1120px, calc(100% - 40px));
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto;
  border-top: 1px solid rgba(24, 37, 33, 0.14);
  color: var(--muted);
  font-size: 11px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  .desktop-notice {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 20px;
    background: var(--ink);
    color: white;
    text-align: center;
    font-size: 12px;
  }

  .desktop-notice span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
  }

  .site-header {
    height: 68px;
  }

  main {
    width: min(100% - 24px, 960px);
  }

  .hero {
    padding: 58px 0 44px;
  }

  .hero h1 {
    font-size: clamp(37px, 11vw, 48px);
  }

  .hero-copy {
    padding: 0 10px;
    font-size: 15px;
  }

  .steps li:not(:last-child)::after {
    width: 16px;
    margin: 0 9px;
  }

  .steps span {
    display: none;
  }

  .workspace,
  .result-section {
    padding: 24px 18px;
    border-radius: 17px;
  }

  .workspace-heading,
  .result-header {
    align-items: flex-start;
  }

  .workspace-heading {
    display: block;
  }

  .workspace-heading > p {
    margin-top: 9px;
  }

  .tab {
    padding-inline: 8px;
    font-size: 13px;
  }

  .drop-zone {
    min-height: 205px;
  }

  .summary-row {
    grid-template-columns: repeat(2, 1fr);
  }

  #preview-frame {
    height: 330px;
  }

  .publish-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button.compact {
    width: 100%;
  }

  .success-section {
    padding: 34px 22px;
  }

  .domain-input-row {
    flex-direction: column;
  }

  .domain-input-row button {
    min-height: 43px;
  }
  .link-box {
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
  }

  .link-box a {
    padding: 5px;
  }

  .explainers {
    grid-template-columns: 1fr;
    margin: 44px 0 60px;
  }

  footer a {
  color: var(--green);
}

footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
  }
}
