/* 2025-1-26 */
.dmy-overall-body {
  background-color: #f0f4f8;
  color: #1a1a2e;
  font-size: 14px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.dmylink-zhihu-box {
  padding-top: 200px;
  max-width: 560px;
  margin: auto;
  word-break: break-all;
}

@media (max-width: 450px) {
  .dmylink-zhihu-box {
    padding-top: 100px;
    width: 92%;
  }
}

.dmylink-zhihu-title {
  position: relative;
  z-index: 9997;
  background-color: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 
    0 1px 2px rgba(30, 136, 229, 0.04),
    0 4px 16px rgba(30, 136, 229, 0.06),
    0 8px 32px rgba(30, 136, 229, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: top center;
  animation: cardStretch 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  overflow: hidden;
}

.dmylink-zhihu-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1e88e5, #42a5f5, #64b5f6, #1e88e5);
  background-size: 200% 100%;
  animation: gradientFlow 3s ease infinite;
}

.dmylink-zhihu-title:hover {
  box-shadow: 
    0 2px 4px rgba(30, 136, 229, 0.06),
    0 8px 24px rgba(30, 136, 229, 0.1),
    0 16px 48px rgba(30, 136, 229, 0.12);
  transform: translateY(-2px);
}

.dmylink-zhihu-title-text {
  color: #1a1a2e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  opacity: 0;
  animation: contentFadeIn 0.5s ease-out 0.5s forwards;
  letter-spacing: -0.3px;
}

.dmylink-zhihu-title-icon p {
  font-size: 14px;
  color: #5a6a7a;
  line-height: 26px;
  margin-bottom: 10px;
  opacity: 0;
  animation: contentFadeIn 0.5s ease-out 0.6s forwards;
}

.dmylink-zhihu-titlelink {
  font-size: 14px;
  color: #4a5568;
  line-height: 26px;
  margin-bottom: 28px;
}

* {
  margin: 0;
  padding: 0;
}

.dmylink-zhihu-titlelink a {
  color: #1e88e5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.dmylink-zhihu-titlelink a:hover {
  color: #1565c0;
  text-decoration: underline;
}

.dmylink-zhihu-titlelink-p-no2 {
  margin-top: 14px;
  word-wrap: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  color: #6b7b8b;
  opacity: 0;
  animation: contentFadeIn 0.5s ease-out 0.7s forwards;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 13px;
  background-color: #f5f8fb;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #e8edf2;
}

.dmylink-zhihu-link-a {
  margin-top: 22px;
  padding-top: 28px;
  text-align: right;
  border-top: 1px solid #eef2f6;
  opacity: 0;
  animation: contentFadeIn 0.5s ease-out 0.8s forwards;
}

.dmylink-zhihu-link-a a {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 28px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  background-color: #1e88e5;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 2px 8px rgba(30, 136, 229, 0.25);
  position: relative;
  overflow: hidden;
}

.dmylink-zhihu-link-a a::after {
  content: '→';
  font-size: 16px;
  transition: transform 0.3s ease;
}

.dmylink-zhihu-link-a a:hover {
  background-color: #1565c0;
  box-shadow: 0 4px 20px rgba(30, 136, 229, 0.4);
  transform: translateY(-2px);
}

.dmylink-zhihu-link-a a:hover::after {
  transform: translateX(3px);
}

.dmylink-zhihu-logo img {
  display: block;
  width: 200px;
  margin-right: auto;
  margin-bottom: 24px;
  opacity: 0;
  animation: contentFadeIn 0.5s ease-out 0.3s forwards;
}

/* 卡片伸缩入场动画：扁平 -> 向下拉伸恢复正常 */
@keyframes cardStretch {
  0% {
    transform: scaleY(0.08) scaleX(1.02);
    opacity: 0;
    border-radius: 24px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  40% {
    transform: scaleY(0.25) scaleX(1.01);
    opacity: 0.6;
    border-radius: 20px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  70% {
    transform: scaleY(0.85) scaleX(1.005);
    opacity: 0.9;
    border-radius: 18px;
    padding-top: 28px;
    padding-bottom: 28px;
  }
  100% {
    transform: scaleY(1) scaleX(1);
    opacity: 1;
    border-radius: 16px;
    padding-top: 36px;
    padding-bottom: 36px;
  }
}

/* 内容淡入动画 */
@keyframes contentFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 顶部渐变流动动画 */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 脉冲动画 */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* 加载 Spinner */
.dmylink-zhihu-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.dmylink-zhihu-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e1e8ed;
  border-top-color: #1e88e5;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 倒计时数字脉冲 */
.dmylink-zhihu-countdown {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: #1e88e5;
  margin: 0 4px;
  animation: pulse 1s ease-in-out infinite;
}