*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
  background: #f5f5f7;
  color: #111;
  min-height: 100vh;
  padding: 24px 16px;
  -webkit-font-smoothing: antialiased;
}

/* 卡片 */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 48px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 头像 */
.avatar-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  margin-bottom: 24px;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  border: 3px solid #fff;
  object-fit: cover;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.sub {
  font-size: 13px;
  color: #aaa;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.line {
  width: 24px;
  height: 1.5px;
  background: #e0e0e0;
  margin-bottom: 28px;
  border-radius: 1px;
}

/* 标签 */
.tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.tab-row {
  display: flex;
  gap: 10px;
}

.tab {
  flex: 1;
  padding: 12px 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  background: #f5f5f7;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.tab:active {
  transform: scale(0.96);
  background: #eee;
}

/* 遮罩 */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 99;
  pointer-events: none;
  transition: background 0.3s;
}

.overlay.show {
  background: rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}

/* 抽屉 */
.drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.drawer.open {
  transform: translateY(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
  flex-shrink: 0;
}

.drawer-title {
  font-size: 18px;
  font-weight: 700;
}

.drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #888;
  cursor: pointer;
  transition: background 0.2s;
}

.drawer-close:active {
  background: #e0e0e0;
}

.drawer-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* 输入框 */
.input-box {
  display: flex;
  gap: 10px;
}

input {
  flex: 1;
  height: 46px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
  transition: border 0.2s;
}

input:focus {
  border-color: #5ba3f5;
}

button {
  height: 46px;
  min-width: 72px;
  padding: 0 24px;
  border: none;
  border-radius: 10px;
  background: #5ba3f5;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}

button:active {
  background: #4a93e5;
  transform: scale(0.97);
}

button.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* 结果 */
.result {
  margin-top: 20px;
}

.result-content {
  background: #f8f9fc;
  border-radius: 12px;
  padding: 20px;
  font-size: 13px;
  color: #444;
  line-height: 2;
  font-family: 'SF Mono', 'Menlo', 'Consolas', 'PingFang SC', monospace;
  white-space: pre-wrap;
  word-break: break-all;
}

/* 页脚 */
.footer {
  text-align: center;
  padding: 24px 0;
  font-size: 12px;
  color: #ccc;
}
