/* 粉粉图床 —— 粉色可爱风 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  background: linear-gradient(160deg, #ffe4ee 0%, #fff5f8 45%, #ffeef4 100%);
  color: #5c4a55;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 顶部栏 */
.topbar {
  width: 100%;
  max-width: 860px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 16px 8px;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  color: #e05a8a;
  letter-spacing: 1px;
}

.user-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-chip {
  background: #fff;
  border: 1px solid #ffd0de;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: #b84a74;
  box-shadow: 0 2px 8px rgba(224, 90, 138, 0.08);
}

.user-chip .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6fd98b;
  margin-right: 6px;
}

.btn-logout {
  color: #b06a86;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid #ffd0de;
  border-radius: 999px;
  padding: 6px 14px;
  background: #fff;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: #ffe4ee;
}

/* 容器 */
.container {
  width: 100%;
  max-width: 860px;
  padding: 24px 16px 48px;
}

.panel {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  border: 1px solid #ffdde8;
  box-shadow: 0 12px 32px rgba(224, 90, 138, 0.1);
  padding: 36px 32px;
  margin-bottom: 20px;
}

.hidden {
  display: none !important;
}

/* 登录区 */
.welcome {
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 24px;
}

.btn-login {
  display: block;
  width: fit-content;
  margin: 0 auto 18px;
  padding: 14px 40px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(120deg, #ff7aa8, #f45c93);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(244, 92, 147, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(244, 92, 147, 0.45);
}

.hint {
  text-align: center;
  font-size: 12px;
  color: #b39aa8;
}

/* 登录错误提示 */
.login-error {
  background: #fff0f3;
  border: 1px solid #ffb3c1;
  color: #c9184a;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  text-align: center;
  margin-bottom: 18px;
}

/* 上传区 */
.drop-zone {
  border: 2px dashed #f2a8c3;
  border-radius: 18px;
  padding: 44px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #fffafc;
}

.drop-zone.dragging {
  border-color: #f45c93;
  background: #ffeef4;
  transform: scale(1.005);
}

.drop-icon {
  font-size: 38px;
  margin-bottom: 8px;
}

.drop-text {
  font-size: 16px;
  color: #8a6a78;
}

.link {
  color: #e05a8a;
  font-weight: 700;
  text-decoration: underline;
}

.drop-sub {
  margin-top: 10px;
  font-size: 12px;
  color: #c0a3af;
}

/* 从剪贴板粘贴按钮 */
.paste-row {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.btn-paste {
  border: 1px solid #f2a8c3;
  border-radius: 999px;
  background: #fff;
  color: #c14e7a;
  padding: 10px 26px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-paste:hover {
  background: #ffe4ee;
  transform: translateY(-1px);
}

/* 自动复制格式切换 */
.format-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.format-label {
  font-size: 13px;
  color: #b39aa8;
}

.fmt-btn {
  border: 1px solid #f2a8c3;
  border-radius: 999px;
  background: #fff;
  color: #c14e7a;
  padding: 6px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.fmt-btn.active {
  background: linear-gradient(120deg, #ff7aa8, #f45c93);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(244, 92, 147, 0.3);
}

.fmt-btn:not(.active):hover {
  background: #ffe4ee;
}

/* 预览 */
.preview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.preview .thumb {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid #ffdde8;
  box-shadow: 0 4px 12px rgba(224, 90, 138, 0.12);
}

/* 上传按钮 */
.btn-upload {
  display: block;
  margin: 22px auto 0;
  padding: 13px 56px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(120deg, #ff7aa8, #f45c93);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(244, 92, 147, 0.3);
  transition: all 0.15s;
}

.btn-upload:disabled {
  background: #f4cdda;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-upload:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(244, 92, 147, 0.42);
}

.status {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: #b84a74;
  min-height: 20px;
}

/* 结果区 */
#result-panel h2 {
  font-size: 18px;
  color: #e05a8a;
  margin-bottom: 18px;
}

.result-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fffafc;
  border: 1px solid #ffe0ea;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}

.result-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.result-info {
  flex: 1;
  min-width: 0;
}

.result-url {
  font-size: 12px;
  color: #7a5f6d;
  word-break: break-all;
  font-family: Consolas, Monaco, monospace;
  line-height: 1.5;
}

.result-name {
  font-size: 12px;
  color: #c0a3af;
  margin-bottom: 4px;
}

/* 结果卡片操作按钮组 */
.result-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-copy {
  flex-shrink: 0;
  border: 1px solid #f2a8c3;
  border-radius: 999px;
  background: #fff;
  color: #c14e7a;
  padding: 8px 18px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-copy:hover {
  background: #ffe4ee;
}

.btn-copy.copied {
  background: #6fd98b;
  border-color: #6fd98b;
  color: #fff;
}
