/* ============================================================
   idindoo 设计系统
   参照 Apple 官网产品页：大留白、大圆角、清晰层级、克制配色
   ============================================================ */

:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #63636a;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --blue: #0071e3;
  --blue-dark: #00549f;
  --blue-tint: #eaf3fe;
  --cyan: #00a3bf;
  --green: #14683c;
  --green-tint: #e8f7ee;
  --orange: #8a3d00;
  --orange-tint: #fff3e6;
  --red: #c8102e;
  --red-tint: #fdeced;

  --r-card: 28px;
  --r-tile: 20px;
  --r-input: 16px;
  --r-pill: 980px;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, 0.05), 0 24px 56px rgba(0, 0, 0, 0.1);
  --shadow-3: 0 4px 12px rgba(0, 0, 0, 0.06), 0 40px 80px rgba(0, 0, 0, 0.14);

  --wrap: 1120px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 浏览器默认面主题化 */
::selection {
  background: rgba(0, 113, 227, 0.18);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

input,
select,
textarea,
button {
  font: inherit;
  color: inherit;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  background: var(--surface);
  font-size: 16px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

input::placeholder,
textarea::placeholder {
  color: #6e6e73;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #b6b6bd;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%236e6e73' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

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

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

code,
kbd {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

/* ------------------------------ 布局 ------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section--tight {
  padding: 56px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

.stack {
  display: grid;
  gap: 14px;
}

/* ------------------------------ 顶部导航 ------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 253, 0.94);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 56px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
  flex: none;
}

.nav-mark svg {
  width: 15px;
  height: 15px;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 6px;
  flex: 1;
}

.nav-links a {
  color: var(--ink-2);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

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

/* ------------------------------ 按钮 ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  text-decoration: none;
}

.btn:hover {
  background: var(--blue-dark);
  text-decoration: none;
}

.btn:active {
  transform: scale(0.975);
}

.btn[disabled],
.btn.is-disabled {
  background: #c7c7cc;
  border-color: transparent;
  cursor: not-allowed;
  transform: none;
}

.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn--secondary:hover {
  background: var(--bg-alt);
  border-color: #b6b6bd;
}

.btn--ghost {
  background: transparent;
  color: var(--blue);
  padding: 0 10px;
}

.btn--ghost:hover {
  background: transparent;
  color: var(--blue-dark);
}

.btn--danger {
  background: var(--red);
}

.btn--danger:hover {
  background: #a30d26;
}

.btn--sm {
  min-height: 34px;
  padding: 0 16px;
  font-size: 14px;
}

.btn--lg {
  min-height: 52px;
  padding: 0 30px;
  font-size: 18px;
}

.btn--block {
  width: 100%;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 17px;
}

.link-arrow svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ------------------------------ 卡片 ------------------------------ */
.card {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
  padding: 28px;
}

.card--pad-lg {
  padding: 40px;
}

.card--flat {
  box-shadow: none;
  border: 1px solid var(--line-soft);
}

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.card--link {
  display: block;
  color: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card--link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  text-decoration: none;
}

/* 图标与标题并排 */
.card-head-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.card-head-row h3 {
  margin: 0;
}

/* 行内图标：与标题并排，不用方块容器 */
.inline-icon {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--blue);
}

.inline-icon--cyan {
  color: var(--cyan);
}

.inline-icon--warm {
  color: var(--orange);
}

/* 顶部渐变条：参考卡片样式 */
.accent-bar {
  height: 5px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, #0a84ff, #46d0e8);
}

.accent-bar--cyan {
  background: linear-gradient(90deg, #00b4d8, #6ee7b7);
}

.accent-bar--warm {
  background: linear-gradient(90deg, #ff9f0a, #ffd60a);
}

/* 图标方块 */
.icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #0a84ff, #0059b3);
  color: #fff;
  flex: none;
}

.icon-tile svg {
  width: 22px;
  height: 22px;
}

.icon-tile--cyan {
  background: linear-gradient(160deg, #22b8cf, #00798f);
}

.icon-tile--warm {
  background: linear-gradient(160deg, #ff9f0a, #d97706);
}

.icon-tile--ink {
  background: linear-gradient(160deg, #3a3a3c, #1d1d1f);
}

/* 特性列表 */
.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.5;
}

.feature-list svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 3px;
  color: var(--green);
}

/* ------------------------------ Hero ------------------------------ */
.hero {
  padding: 76px 0 72px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 4.4vw, 56px);
  max-width: 15em;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.hero-lede {
  font-size: 21px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 30em;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 14px;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-note svg {
  width: 15px;
  height: 15px;
  color: var(--green);
}

/* ------------------------------ 终端预览 ------------------------------ */
.console {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: #fbfbfd;
}

.console-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d2d2d7;
}

.console-dot:nth-child(1) {
  background: #ff5f57;
}
.console-dot:nth-child(2) {
  background: #febc2e;
}
.console-dot:nth-child(3) {
  background: #28c840;
}

.console-title {
  margin-left: 8px;
  font-size: 13px;
  color: var(--muted);
}

.console-body {
  padding: 22px 22px 24px;
}

.console-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.console-status strong {
  font-size: 17px;
  font-weight: 600;
}

.console-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--green-tint);
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
}

.console-badge svg {
  width: 13px;
  height: 13px;
}

.console-list {
  display: grid;
  gap: 12px;
}

.console-row {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-2);
}

.console-row svg {
  width: 18px;
  height: 18px;
}

.console-row.is-done svg {
  color: var(--green);
}

.console-row.is-running svg {
  color: var(--blue);
}

.console-row.is-done {
  color: var(--muted);
}

.console-pct {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 13px;
}

.progress {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--line-soft);
  overflow: hidden;
}

.progress > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0a84ff, #46d0e8);
  transition: width 0.6s var(--ease);
}

/* ------------------------------ 平台卡 ------------------------------ */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.platform {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.platform:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

.platform-body {
  padding: 28px 30px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.platform-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.platform-top h3 {
  font-size: 25px;
  margin: 0;
}

.platform-tag {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--bg-alt);
}

/* 产品界面预览 */
.mock {
  border-radius: var(--r-tile);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #fff;
  margin-bottom: 22px;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: #f5f5f7;
  border-bottom: 1px solid var(--line-soft);
}

.mock-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d2d2d7;
}

.mock-bar span {
  margin-left: 6px;
  font-size: 12px;
  color: var(--muted);
}

.mock-body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 9px;
}

.mock-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-2);
  padding: 8px 11px;
  border-radius: 9px;
  background: #f7f7f9;
}

.mock-line strong {
  font-weight: 600;
  font-size: 12px;
}

.mock-chip {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--blue-tint);
  color: var(--blue-dark);
}

.mock-chip--green {
  background: var(--green-tint);
  color: var(--green);
}

.mock-chip--orange {
  background: var(--orange-tint);
  color: var(--orange);
}

/* ------------------------------ 表单 ------------------------------ */
.form {
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field > label {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.field-hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.field-error {
  font-size: 13px;
  color: var(--red);
  display: none;
}

.field.is-invalid .field-error {
  display: block;
}

.field.is-invalid input,
.field.is-invalid select {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.12);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-error {
  display: none;
  padding: 12px 16px;
  border-radius: var(--r-input);
  background: var(--red-tint);
  color: var(--red);
  font-size: 14px;
}

.form-error.is-visible {
  display: block;
}

.form-note {
  display: none;
  padding: 12px 16px;
  border-radius: var(--r-input);
  background: var(--green-tint);
  color: var(--green);
  font-size: 14px;
  line-height: 1.5;
}

.form-note.is-visible {
  display: block;
}

.form-note.is-warn {
  background: var(--orange-tint);
  color: var(--orange);
}

/* 开关 */
.switch {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-input);
  background: var(--surface);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.switch:hover {
  border-color: var(--line);
  background: var(--bg-alt);
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-track {
  position: relative;
  width: 46px;
  height: 28px;
  border-radius: var(--r-pill);
  background: #d2d2d7;
  flex: none;
  margin-top: 2px;
  transition: background 0.25s var(--ease);
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s var(--ease);
}

.switch input:checked + .switch-track {
  background: var(--green);
}

.switch input:checked + .switch-track::after {
  transform: translateX(18px);
}

.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.switch-text {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.45;
}

.switch-text small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

/* 平台选择 */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.choice {
  position: relative;
  display: block;
  padding: 20px;
  border: 2px solid var(--line-soft);
  border-radius: var(--r-tile);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}

.choice:hover {
  border-color: #b6b6bd;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice:has(input:checked) {
  border-color: var(--blue);
  background: #f7fbff;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.choice:has(input:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.choice-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.choice-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.choice-check {
  margin-left: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  flex: none;
}

.choice:has(input:checked) .choice-check {
  background: var(--blue);
  border-color: var(--blue);
}

.choice-check svg {
  width: 12px;
  height: 12px;
  color: #fff;
  opacity: 0;
}

.choice:has(input:checked) .choice-check svg {
  opacity: 1;
}

/* 高级设置 */
.advanced {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-tile);
  background: var(--surface);
  overflow: hidden;
}

.advanced summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
}

.advanced summary::-webkit-details-marker {
  display: none;
}

.advanced summary:hover {
  background: var(--bg-alt);
}

.advanced summary svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform 0.25s var(--ease);
}

.advanced[open] summary svg {
  transform: rotate(180deg);
}

.advanced-body {
  padding: 6px 22px 22px;
  display: grid;
  gap: 18px;
  border-top: 1px solid var(--line-soft);
}

/* ------------------------------ 风险提示 ------------------------------ */
.risk {
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.risk-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 26px;
  background: var(--orange-tint);
  color: var(--orange);
  font-size: 18px;
  font-weight: 600;
}

.risk-head svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.risk-body {
  padding: 24px 26px 26px;
  display: grid;
  gap: 12px;
}

.risk-body p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}

.risk-body p strong {
  color: var(--ink);
  font-weight: 600;
}

/* ------------------------------ 步骤时间线 ------------------------------ */
.timeline {
  display: grid;
  gap: 2px;
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.tl-step {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 22px;
  background: var(--surface);
  transition: background 0.25s var(--ease);
}

.tl-step + .tl-step {
  border-top: 1px solid var(--line-soft);
}

.tl-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--line-soft);
  color: var(--muted);
  flex: none;
}

.tl-icon svg {
  width: 14px;
  height: 14px;
}

.tl-step.is-running {
  background: #f7fbff;
}

.tl-step.is-running .tl-icon {
  background: var(--blue);
  color: #fff;
}

.tl-step.is-done .tl-icon {
  background: var(--green);
  color: #fff;
}

.tl-step.is-failed .tl-icon {
  background: var(--red);
  color: #fff;
}

.tl-title {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
}

.tl-detail {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.tl-state {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* 日志 */
.log {
  margin-top: 20px;
  border-radius: var(--r-tile);
  background: #1d1d1f;
  color: #e8e8ed;
  padding: 18px 20px;
  max-height: 320px;
  overflow-y: auto;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-all;
}

.log::-webkit-scrollbar {
  width: 10px;
}

.log::-webkit-scrollbar-thumb {
  background: #48484a;
  border-radius: var(--r-pill);
  border: 3px solid #1d1d1f;
}

.log-line {
  color: #a1a1a6;
}

.log-line.is-new {
  color: #f5f5f7;
}

/* ------------------------------ 完成页 ------------------------------ */
.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.result-card {
  border-radius: var(--r-tile);
  border: 1px solid var(--line-soft);
  background: var(--surface);
  padding: 22px 24px;
}

.result-card h4 {
  font-size: 15px;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 500;
}

.kv {
  display: grid;
  gap: 10px;
}

.kv-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 14px;
}

.kv-row dt {
  color: var(--muted);
}

.kv-row dd {
  margin: 0;
  color: var(--ink);
  word-break: break-all;
  font-variant-numeric: tabular-nums;
}

.kv-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13.5px;
}

/* ------------------------------ 表格 ------------------------------ */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.table th,
.table td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}

.table td {
  color: var(--ink-2);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background: var(--bg-alt);
}

/* ------------------------------ 认证页 ------------------------------ */
.auth {
  min-height: calc(100vh - 56px);
  display: grid;
  place-items: center;
  padding: 56px 24px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-2);
  padding: 36px 34px 34px;
}

.auth-card h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.auth-card > p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 26px;
}

.auth-foot {
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* ------------------------------ 弹窗 ------------------------------ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.32);
}

.modal.is-open {
  display: grid;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  max-height: 84vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-3);
  padding: 30px 32px 28px;
}

.modal-card h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.modal-card > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* ------------------------------ 提示条 ------------------------------ */
.toast-host {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 200;
  display: grid;
  gap: 10px;
  justify-items: center;
  pointer-events: none;
}

.toast {
  background: #1d1d1f;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-size: 14px;
  box-shadow: var(--shadow-2);
  animation: toast-in 0.32s var(--ease);
}

.toast--error {
  background: var(--red);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------ 状态条 ------------------------------ */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-alt);
  color: var(--muted);
}

.status-pill--running {
  background: var(--blue-tint);
  color: var(--blue-dark);
}

.status-pill--success {
  background: var(--green-tint);
  color: var(--green);
}

.status-pill--failed {
  background: var(--red-tint);
  color: var(--red);
}

/* ------------------------------ 页脚 ------------------------------ */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 40px 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--ink-2);
}

/* ------------------------------ 响应式 ------------------------------ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

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

@media (max-width: 820px) {
  .platform-grid,
  .grid-2,
  .result-grid,
  .choice-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .section {
    padding: 60px 0;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-lede {
    font-size: 18px;
  }

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

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions .btn,
  .modal-actions .btn {
    width: 100%;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .card,
  .card--pad-lg {
    padding: 24px 22px;
  }

  .tl-step {
    grid-template-columns: 26px 1fr;
    padding: 14px 16px;
  }

  .tl-state {
    grid-column: 2;
  }

  .kv-row {
    grid-template-columns: 76px 1fr;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    gap: 12px;
  }

  .nav-brand span:last-child {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .nav-brand span:last-child {
    display: none;
  }

  .nav-actions {
    gap: 8px;
  }
}

.field-optional {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--blue-soft, rgba(0, 113, 227, 0.1));
  color: var(--blue-dark, #00549f);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  vertical-align: 1px;
}

/* ---------------- 云厂商购买入口 ---------------- */
.cloud-shops-block {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.cloud-shops-block--compact {
  margin-top: 22px;
  margin-bottom: 26px;
  padding-top: 22px;
}

.cloud-shops-head h3 {
  font-size: 19px;
  margin: 0 0 6px;
}

.cloud-shops-head p {
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 62ch;
}

.cloud-shops {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cloud-shop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 104px;
  padding: 14px 10px 12px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  flex: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: transform 180ms cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 180ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.cloud-shop__mark {
  display: grid;
  place-items: center;
  height: 52px;
}

.cloud-shop__logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 14px;
}

.cloud-shop__logo--wide {
  width: 84px;
  height: 40px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 0;
}

.cloud-shop__name {
  font-size: 12.5px;
  line-height: 1.2;
  color: var(--muted);
}

.cloud-shop:hover,
.cloud-shop:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

.cloud-shop:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .cloud-shop {
    width: 92px;
    padding: 12px 8px 10px;
    border-radius: 20px;
  }

  .cloud-shop__logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .cloud-shop__logo--wide {
    width: 72px;
    height: 34px;
  }
}
