/* DT365 网盘下载卡片 —— 独立命名空间 dt365-pan，不与主题样式冲突 */
.dt365-pan {
  --dt365-pan-main: #3b6ff5;
  --dt365-pan-main-dark: #2848b2;
  margin: 28px 0;
  padding: 0;
  border: 1px solid #e5eaf3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(40, 72, 178, 0.07);
  overflow: hidden;
  font-size: 15px;
  line-height: 1.6;
  box-sizing: border-box;
  max-width: 100%;
}
.dt365-pan *,
.dt365-pan *::before,
.dt365-pan *::after { box-sizing: border-box; }

.dt365-pan__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--dt365-pan-main-dark), var(--dt365-pan-main));
}
.dt365-pan__head-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  flex: 0 0 auto;
}
.dt365-pan__title {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  letter-spacing: 0.5px;
}

.dt365-pan__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 6px 12px !important;
}
.dt365-pan__item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 12px 8px !important;
  margin: 0 !important;
  border-bottom: 1px dashed #edf1f8;
  background: transparent !important;
}
.dt365-pan__item:last-child { border-bottom: none; }
.dt365-pan__item::before { display: none !important; }

.dt365-pan__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  flex: 0 0 auto;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.dt365-pan__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.dt365-pan__name {
  font-weight: 600;
  color: #2b3445;
  font-size: 15px;
}
.dt365-pan__note {
  font-size: 13px;
  color: #8a93a3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dt365-pan__ops {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.dt365-pan__code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: #f3f6fc;
  border: 1px solid #e2e9f6;
  border-radius: 8px;
  font-size: 13px;
  color: #5b6b85;
  white-space: nowrap;
}
.dt365-pan__code b {
  font-family: Consolas, Menlo, monospace;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--dt365-pan-main-dark);
}
.dt365-pan__copy {
  border: 1px solid #d5dfef;
  background: #fff;
  color: #3b6ff5;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.dt365-pan__copy:hover { background: #eef3ff; }
.dt365-pan__copy.is-ok {
  background: #0fb58f;
  border-color: #0fb58f;
  color: #fff;
}

.dt365-pan__btn {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, var(--dt365-pan-main), var(--dt365-pan-main-dark)) !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  border: none !important;
  box-shadow: 0 4px 10px rgba(59, 111, 245, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.dt365-pan__btn:hover,
.dt365-pan__btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(59, 111, 245, 0.36);
  color: #fff !important;
  background: linear-gradient(135deg, var(--dt365-pan-main), var(--dt365-pan-main-dark)) !important;
}
.dt365-pan__btn svg { flex: 0 0 auto; }

.dt365-pan__tip {
  margin: 0 !important;
  padding: 10px 18px;
  background: #f8fafd;
  border-top: 1px solid #edf1f8;
  font-size: 13px;
  color: #97a1b2;
}

/* 登录可见提示卡 */
.dt365-pan--locked .dt365-pan__locktip {
  margin: 0 !important;
  padding: 18px;
  color: #5b6b85;
  font-size: 14px;
}
.dt365-pan--locked .dt365-pan__locktip a {
  color: var(--dt365-pan-main);
  font-weight: 600;
  text-decoration: underline;
}

/* 移动端 */
@media (max-width: 560px) {
  .dt365-pan__item {
    flex-wrap: wrap;
  }
  .dt365-pan__ops {
    width: 100%;
    justify-content: flex-start;
    padding-left: 52px;
  }
  .dt365-pan__btn { flex: 1 1 auto; justify-content: center; }
}
