/* 临时云盘 */
.drive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
}

.drive-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.drive-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.drive-drop {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  background: #fbfcfe;
}

.drive-drop:hover,
.drive-drop.dragging {
  border-color: var(--blue);
  color: var(--blue-dark);
  background: #f4f8ff;
}

.drive-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  margin-top: 14px;
}

.drive-field select,
.drive-field input {
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 14px;
}

.drive-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.drive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.drive-actions button {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 13.5px;
  cursor: pointer;
}

.drive-actions button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.drive-actions button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.drive-files {
  display: grid;
  gap: 10px;
}

.drive-file {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.drive-file-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.drive-file-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-countdown {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
}

.drive-countdown.soon {
  color: #9a5b00;
}

.drive-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.drive-file-actions button {
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 8px;
  padding: 4px 11px;
  font-size: 12.5px;
  cursor: pointer;
}

.drive-file-actions button.danger {
  border-color: #e8b4b4;
  color: var(--red);
}

.drive-share-result {
  border: 1px solid #cfe0ff;
  background: #f4f8ff;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.9;
  margin-top: 14px;
}

.drive-share-result code {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 8px;
  word-break: break-all;
  font-size: 12.5px;
}

.drive-empty {
  padding: 22px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .drive-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- 分享落地页 ---- */
.share-page {
  background: #eef1f6;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.share-wrap {
  width: 100%;
  max-width: 420px;
}

.share-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 12px 40px rgba(20, 40, 80, .08);
}

.share-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 14px;
}

.share-card h1 {
  font-size: 20px;
  margin: 0 0 6px;
}

.share-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 18px;
}

.share-form {
  display: flex;
  gap: 10px;
}

.share-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  font-size: 16px;
  letter-spacing: 3px;
  text-align: center;
}

.share-form button {
  padding: 11px 20px;
  border-radius: 11px;
  border: 0;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.share-form button:disabled { opacity: .6; }

.share-info { margin-top: 16px; font-size: 13px; }

.share-info button {
  margin-top: 12px;
  width: 100%;
  padding: 11px;
  border-radius: 11px;
  border: 0;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.share-file strong { display: block; font-size: 15px; margin-bottom: 4px; word-break: break-all; }
.share-file span { color: var(--muted); font-size: 12.5px; }
.share-hint { color: var(--muted); font-size: 12px; margin: 8px 0 0; line-height: 1.6; }
.share-error { color: var(--red); font-size: 13px; margin: 0; }
.share-foot { margin: 18px 0 0; font-size: 11.5px; color: var(--muted); text-align: center; }
