/* 组件：描边胶囊按钮、窗口框。 */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition:
    border-color 240ms var(--ease),
    background 240ms var(--ease),
    color 240ms var(--ease),
    transform 240ms var(--ease-out);
}

.button:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.button:active {
  transform: scale(0.98);
}

.button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

.button-primary:hover {
  background: #e8e8e8;
  border-color: #e8e8e8;
  color: #000000;
}

.button-small {
  padding: 8px 18px;
  font-size: 14px;
}

.button-large {
  padding: 14px 28px;
  font-size: 16px;
}

.button-block {
  width: 100%;
}

.button-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 14px;
  cursor: pointer;
  transition: color 200ms var(--ease);
}

.button-link:hover {
  color: #ffffff;
}

.button-link::after {
  content: "→";
  transition: transform 200ms var(--ease);
}

.button-link:hover::after {
  transform: translateX(3px);
}

.icon-button.nav-toggle {
  display: none;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  cursor: pointer;
  transition:
    border-color 200ms var(--ease),
    color 200ms var(--ease);
}

.icon-button:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.icon-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 窗口框。 */
.window-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
}

.window-frame img {
  width: 100%;
}
