/* ============================================================
   小怡专属网盘 · 暖阳麦田主题（OpenList 版）
   通过 OpenList 后台「自定义头部」引入，改这个文件即时生效
   ============================================================ */

/* ---------- 壁纸层 ---------- */
html {
  background-color: #f2ddb8 !important;
}

/* body 必须完全透明，否则会盖住壁纸层 */
body {
  background: transparent !important;
  background-color: transparent !important;
}

/* 面包屑条默认是白底，去掉 */
div:has(.hope-breadcrumb__list),
.hope-breadcrumb {
  background: transparent !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("/media/bg.jpg") center 34% / cover no-repeat;
  filter: blur(0.4px) saturate(1.06) brightness(1.02);
  transform: scale(1.015);
  transform-origin: center;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(255, 249, 236, 0.26) 0%,
    rgba(255, 245, 224, 0.15) 40%,
    rgba(248, 226, 188, 0.24) 72%,
    rgba(240, 210, 165, 0.32) 100%
  );
  pointer-events: none;
}

/* ---------- 登录页：去掉默认蓝色色块 ---------- */
.hope-c-PJLV-ieMfKuk-css {
  background: transparent !important;
}

.hope-c-PJLV-ieMfKuk-css > div {
  background: transparent !important;
}

.hope-c-PJLV-ieMfKuk-css svg,
.hope-c-PJLV-ieMfKuk-css img {
  display: none !important;
}

/* 登录卡片 */
.hope-c-PJLV-ifjOQLV-css {
  background: rgba(255, 252, 246, 0.52) !important;
  backdrop-filter: blur(26px) saturate(1.2);
  -webkit-backdrop-filter: blur(26px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 24px 60px rgba(120, 80, 30, 0.20) !important;
}

/* 登录页标题（默认是蓝色，改成暖棕） */
.hope-c-PJLV-ifjOQLV-css .hope-heading {
  color: #a85f26 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* 登录页按钮（默认是蓝/紫马卡龙色） */
.hope-c-PJLV-ifjOQLV-css .hope-button {
  background: rgba(255, 255, 255, 0.62) !important;
  color: #6b4a30 !important;
  border: 1px solid rgba(200, 129, 58, 0.32) !important;
  box-shadow: none !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.hope-c-PJLV-ifjOQLV-css .hope-button:hover {
  background: rgba(255, 255, 255, 0.88) !important;
  transform: translateY(-1px);
}

/* 第二个按钮是「登录」 */
.hope-c-PJLV-ifjOQLV-css button:nth-of-type(2) {
  background: linear-gradient(135deg, #e8a94d, #c8813a) !important;
  color: #fffdf8 !important;
  border: none !important;
  font-weight: 600;
  letter-spacing: 2px;
  box-shadow: 0 8px 20px rgba(200, 129, 58, 0.32) !important;
}

/* ---------- 顶栏 ---------- */
.header {
  background: rgba(255, 250, 240, 0.30) !important;
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.42) !important;
}

/* ---------- 文件列表卡片 ---------- */
.obj-box {
  background: rgba(255, 252, 246, 0.52) !important;
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  box-shadow: 0 18px 46px rgba(120, 80, 30, 0.14) !important;
  border-radius: 16px !important;
}

.obj-box .list,
.obj-box .title {
  background: transparent !important;
}

/* 列表行 */
a.list-item {
  border-radius: 10px;
  transition: background 0.16s ease, transform 0.16s ease;
}

a.list-item:hover {
  background: rgba(255, 255, 255, 0.58) !important;
  transform: translateY(-1px);
}

a.list-item.selected,
a.list-item[data-selected="true"] {
  background: rgba(232, 169, 77, 0.28) !important;
}

/* ---------- 输入框 ---------- */
.hope-input,
input,
textarea {
  background: rgba(255, 255, 255, 0.60) !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
  color: #43301f !important;
}

.hope-input:focus,
input:focus {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(200, 129, 58, 0.75) !important;
  box-shadow: 0 0 0 3px rgba(232, 169, 77, 0.22) !important;
}

input::placeholder {
  color: rgba(107, 74, 48, 0.55) !important;
}

/* ---------- 弹窗 / 通知 ---------- */
.hope-modal__content,
.hope-modal__body,
.hope-popover__content,
.hope-menu__content,
.hope-notification {
  background: rgba(255, 252, 246, 0.86) !important;
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 52px rgba(120, 80, 30, 0.18) !important;
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-thumb {
  background: rgba(200, 129, 58, 0.32);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 129, 58, 0.5);
}

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

/* ============================================================
   背景音乐开关
   ============================================================ */
#xy-music {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99998;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  color: #b4652e;
  background: rgba(255, 252, 246, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px rgba(120, 80, 30, 0.22);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  user-select: none;
}

#xy-music:hover {
  transform: translateY(-2px) scale(1.05);
  background: rgba(255, 255, 255, 0.92);
}

#xy-music.off {
  color: #b9a894;
}

#xy-music.playing::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(200, 129, 58, 0.5);
  animation: xy-pulse 2.4s ease-out infinite;
}

@keyframes xy-pulse {
  0% { transform: scale(0.94); opacity: 0.9; }
  70% { transform: scale(1.2); opacity: 0; }
  100% { transform: scale(1.2); opacity: 0; }
}

#xy-music-tip {
  position: fixed;
  right: 76px;
  bottom: 28px;
  z-index: 99998;
  padding: 7px 13px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #43301f;
  background: rgba(255, 252, 246, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(120, 80, 30, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  white-space: nowrap;
}

#xy-music-tip.show {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- 深色模式 ---------- */
.hope-ui-dark body::after,
body.hope-ui-dark::after {
  background: linear-gradient(180deg, rgba(30, 22, 18, 0.42), rgba(26, 18, 14, 0.55));
}

.hope-ui-dark .obj-box,
.hope-ui-dark .header,
.hope-ui-dark .hope-c-PJLV-ifjOQLV-css {
  background: rgba(38, 27, 21, 0.55) !important;
  border-color: rgba(255, 220, 170, 0.18) !important;
}

/* ---------- 移动端 ---------- */
@media (max-width: 640px) {
  #xy-music {
    width: 40px;
    height: 40px;
    right: 14px;
    bottom: 14px;
  }

  #xy-music-tip {
    right: 62px;
    bottom: 20px;
    font-size: 12px;
  }

  .obj-box {
    border-radius: 12px !important;
  }
}
