.dle-card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-start;
  margin: 2rem 0 0 0;
  padding: 0;
}
.dle-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0;
  width: calc(20% - 1.2rem); /* 5列布局 */
  min-width: 160px;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: stretch; /* ← 由 flex-start 改为 stretch，让内容宽度占满卡片 */
  transition: box-shadow 0.25s, transform 0.25s;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.dle-card:hover {
  box-shadow: 0 8px 24px rgba(227,24,55,0.18);
  transform: translateY(-8px) scale(1.04);
}
.dle-card .category-link {
  width: 100%;
  height: 120px;
  display: block;
  position: relative;
  padding: 0;
  background: none;
  color: inherit;
  border-radius: 0;
  font-weight: bold;
  text-align: left;
  text-decoration: none;
}
.dle-card-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.dle-card-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0; top: 0;
  background: linear-gradient(to top, rgba(30,30,30,0.82) 70%, rgba(30,30,30,0.18) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 0.7rem 0.7rem 0.7rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.dle-card:hover .dle-card-overlay,
.dle-card:focus-within .dle-card-overlay {
  opacity: 1;
  pointer-events: auto;
}
.dle-card-title {
  font-size: 1.12rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
  color: #E31837;
  text-shadow: 0 2px 8px rgba(0,0,0,0.13);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center; /* 标题居中 */
  width: 100%; /* 保证标题宽度占满卡片 */
}

/* 卡片描述只在悬停或聚焦时显示 */
.dle-card-desc {
  display: none;
}

.dle-card:hover .dle-card-desc,
.dle-card:focus-within .dle-card-desc {
  display: block;
  font-size: 0.97rem;
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 4px rgba(0,0,0,0.18);
  margin: 0.2em 0 0.2em 0;
  letter-spacing: 0.01em;
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  background: rgba(30,30,30,0.82);
  border-radius: 6px;
  padding: 0.5em;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.5em;
  z-index: 2;
}

/* 只在有内容时显示描述 */
.dle-card-desc:empty {
  display: none !important;
}

@media (max-width: 1200px) {
  .dle-card { width: calc(25% - 1.2rem); }
}
@media (max-width: 900px) {
  .dle-card { width: calc(33.33% - 1.2rem); }
}
@media (max-width: 700px) {
  .dle-card { width: calc(50% - 1.2rem); }
}
@media (max-width: 500px) {
  .dle-card { width: 100%; }
}

.costcodle-main-card {
  max-width: 900px;
  margin: 0 auto;
}

.costcodle-iframe-wrap {
  margin-bottom: 1.5rem;
  position: relative;
}

.costcodle-iframe-wrap iframe {
  width: 100%;
  min-height: 600px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: #eee;
  display: block;
}

.iframe-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.iframe-actions button {
  background: #E31837;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.iframe-actions button:hover,
.iframe-actions button:focus {
  background: #b9152c;
}

.costcodle-screenshot {
  text-align: center;
  margin-bottom: 1.5rem;
}
.costcodle-screenshot img {
  max-width: 320px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: #eee;
}

.costcodle-howto,
.costcodle-features {
  text-align: left;
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
}

.custom-share-box {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.custom-share-content {
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
  text-align: center;
}
.custom-share-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.custom-share-links {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.custom-share-links a {
  text-decoration: none;
  font-size: 1.5rem;
  transition: color 0.2s;
}
.custom-share-links a:hover {
  color: #E31837;
}
.custom-share-btn {
  background: #E31837;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  margin: 0 0.5rem;
  transition: background 0.2s;
}
.custom-share-btn.close {
  background: #888;
}
.custom-share-btn:hover,
.custom-share-btn:focus {
  background: #b9152c;
}
.custom-share-btn.close:hover,
.custom-share-btn.close:focus {
  background: #555;
}