/* ============================================================
   WWT 的网盘 — Deepspace 深色主题
   放置位置：网盘根目录 branding/custom.css
   回滚方法：删除或重命名本文件，刷新页面即恢复默认亮色
   ============================================================ */

:root {
  /* 品牌色 */
  --blue: #5b8cff;
  --dark-blue: #3f73e8;

  /* 背景与表面 */
  --background: #0f1420;          /* 页面底色：深空蓝黑 */
  --surfacePrimary: #1a2233;      /* 卡片 / 顶栏 / 侧栏 */
  --surfaceSecondary: #242f45;    /* 输入框 / 悬浮层 */
  --moon-grey: #242f45;

  /* 文字 */
  --textPrimary: #c7d0e0;         /* 次要文字 */
  --textSecondary: #e8edf5;       /* 主要文字 */

  /* 边框与分割线 */
  --borderPrimary: rgba(255, 255, 255, 0.08);
  --borderSecondary: rgba(255, 255, 255, 0.16);
  --divider: rgba(255, 255, 255, 0.06);
  --dividerPrimary: rgba(0, 0, 0, 0.25);
  --dividerSecondary: rgba(0, 0, 0, 0.5);

  /* 选中项 */
  --item-selected: rgba(91, 140, 255, 0.18);

  /* 图标色微调（深色下更醒目） */
  --icon-blue: #5b8cff;
  --icon-green: #3ddc84;
  --icon-yellow: #ffd166;
  --icon-orange: #ff9f6e;
  --icon-red: #ff6b6b;
  --icon-violet: #b08cff;
}

/* ---------- 全局 ---------- */

body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system,
    "Segoe UI", Roboto, sans-serif;
}

/* ---------- 登录页 ---------- */

#login {
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(91, 140, 255, 0.15), transparent),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(176, 140, 255, 0.10), transparent),
    var(--background);
}

#login .card {
  border-radius: 16px;
  border: 1px solid var(--borderPrimary);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

#login .card-title,
#login .card-action {
  background: var(--surfaceSecondary);
}

/* ---------- 卡片 / 面板 ---------- */

.card {
  border-radius: 12px;
  border: 1px solid var(--borderPrimary);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

/* ---------- 按钮 ---------- */

.button {
  border-radius: 8px;
  font-weight: 500;
  transition: filter 0.15s ease, transform 0.05s ease;
}

.button:hover {
  filter: brightness(1.15);
}

.button:active {
  transform: translateY(1px);
}

/* ---------- 输入框 ---------- */

.input {
  border-radius: 8px;
}

/* ---------- 文件列表 ---------- */

.item {
  border-radius: 8px;
  transition: background 0.12s ease;
}

/* 列表模式行 hover 更明显 */
.item:hover {
  background: rgba(91, 140, 255, 0.08);
}

/* ---------- 滚动条（WebKit） ---------- */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--surfaceSecondary);
  border-radius: 6px;
  border: 2px solid var(--background);
}

::-webkit-scrollbar-thumb:hover {
  background: #31405e;
}

::-webkit-scrollbar-track {
  background: transparent;
}
