/* GH图床 —— 自定义样式（其余由 mdui 提供） */

:root {
  --page-max: 860px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: rgb(var(--mdui-color-surface-container-low));
}

.app-bar {
  position: sticky;
  top: 0;
  z-index: 10;
}

.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 16px 12px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 说明卡片 */
.notice {
  padding: 14px 16px;
  border-radius: 16px;
}

.notice-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.notice-icon {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 22px;
  color: rgb(var(--mdui-color-primary));
}

.notice-body p {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.6;
}

.notice-body p:last-child {
  margin-bottom: 0;
}

.notice-body a {
  color: rgb(var(--mdui-color-primary));
}

/* 上传区 */
.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  border-radius: 20px;
  border-style: dashed;
  transition: background-color 0.2s, border-color 0.2s;
}

.drop-zone.is-dragover {
  background: rgb(var(--mdui-color-primary-container));
  border-color: rgb(var(--mdui-color-primary));
}

.drop-icon {
  font-size: 56px;
  color: rgb(var(--mdui-color-outline));
}

.drop-title {
  margin: 12px 0 4px;
  font-size: 16px;
  font-weight: 500;
}

.drop-tip {
  margin: 0;
  font-size: 12px;
  color: rgb(var(--mdui-color-outline));
}

/* 工具栏 */
.toolbar {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* 结果列表 */
.result-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  align-items: flex-start;
}

.result-thumb {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 12px;
  overflow: hidden;
  background: rgb(var(--mdui-color-surface-container-highest));
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-thumb mdui-circular-progress {
  --size: 32px;
}

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

.result-name {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-link {
  display: block;
  font-size: 12px;
  color: rgb(var(--mdui-color-outline));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.result-link:hover {
  color: rgb(var(--mdui-color-primary));
}

.result-actions {
  display: flex;
  gap: 2px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.result-error {
  font-size: 12px;
  color: rgb(var(--mdui-color-error));
}

/* 页脚 */
.footer {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 12px 40px;
  text-align: center;
  font-size: 12px;
  color: rgb(var(--mdui-color-outline));
}

.footer p {
  margin: 0 0 12px;
  line-height: 1.6;
}

.footer a {
  color: rgb(var(--mdui-color-primary));
}

.footer-divider {
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.footer-links a {
  text-decoration: none;
}

.dot {
  opacity: 0.5;
}
