/* 适配德恺主题的文章页面样式 */

/* 文章 Hero 区域样式 */
.single-page .tic-hero h1 {
  font-size: clamp(46px, 5vw, 70px);
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.single-page .hero-subtitle {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 5.4em;
  line-height: 1.8;
}

.single-page .tic-hero-visual {
  background: transparent;
  min-height: auto;
}

.single-page .hero-image-1 {
  position: relative;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 400px;
  object-fit: cover;
  animation: none;
  border: none;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.24);
  border-radius: 12px;
  background: transparent;
}

/* 基础样式重置 */
.xny-entry {
  color: #d1d5db;
  line-height: 1.8;
}

.xny-entry h1,
.xny-entry h2,
.xny-entry h3,
.xny-entry h4,
.xny-entry h5,
.xny-entry h6 {
  color: #ffffff;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 700;
}

.xny-entry h1 {
  font-size: 2.5rem;
}

.xny-entry h2 {
  font-size: 2rem;
  border-left: 4px solid #18c8ff;
  padding-left: 16px;
}

.xny-entry h3 {
  font-size: 1.5rem;
}

.xny-entry p {
  margin-bottom: 1em;
  color: #b8c7df;
}

.xny-entry a {
  color: #18c8ff;
  text-decoration: none;
  transition: color 0.2s;
}

.xny-entry a:hover {
  color: #22d3ee;
  text-decoration: underline;
}

/* 列表样式 */
.xny-entry ul,
.xny-entry ol {
  margin: 1em 0;
  padding-left: 2em;
}

.xny-entry li {
  margin: 0.5em 0;
  color: #b8c7df;
}

.xny-entry ul li::marker {
  color: #18c8ff;
}

.xny-entry ol li::marker {
  color: #18c8ff;
  font-weight: 600;
}

/* 引用样式 */
.xny-entry blockquote {
  border-left: 4px solid #18c8ff;
  background: rgba(24, 200, 255, 0.08);
  padding: 1em 1.5em;
  margin: 1.5em 0;
  border-radius: 0 8px 8px 0;
}

.xny-entry blockquote p {
  margin: 0;
  color: #d7efff;
  font-style: italic;
}

/* 代码样式 */
.xny-entry code {
  background: rgba(34, 211, 238, 0.15);
  color: #67e8f9;
  padding: 0.2em 0.5em;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.xny-entry pre {
  background: rgba(5, 16, 36, 0.95);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 8px;
  padding: 1.5em;
  overflow-x: auto;
  margin: 1.5em 0;
}

.xny-entry pre code {
  background: none;
  padding: 0;
  color: #a5f3fc;
}

/* 表格样式 */
.xny-entry table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.xny-entry th,
.xny-entry td {
  border: 1px solid rgba(34, 211, 238, 0.2);
  padding: 0.75em 1em;
  text-align: left;
}

.xny-entry th {
  background: rgba(24, 200, 255, 0.1);
  color: #8fe9ff;
  font-weight: 600;
}

.xny-entry td {
  color: #b8c7df;
}

.xny-entry tr:nth-child(even) {
  background: rgba(5, 16, 36, 0.5);
}

/* 图片样式 */
.xny-entry img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1em 0;
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.xny-entry figure {
  margin: 1.5em 0;
}

.xny-entry figcaption {
  text-align: center;
  color: #9ca3af;
  font-size: 0.9em;
  margin-top: 0.5em;
}

/* 文章详情容器 */
.article-detail {
  background: rgba(5, 16, 36, 0.85);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 8px;
  padding: 2em;
  box-shadow: inset 0 0 30px rgba(24, 200, 255, 0.06);
}

/* 文章元信息 */
.article-meta {
  display: flex;
  gap: 1.5em;
  margin-bottom: 1.5em;
  padding-bottom: 1em;
  border-bottom: 1px solid rgba(34, 211, 238, 0.2);
}

.article-meta span {
  color: #93c5fd;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

/* 侧边栏样式 */
.info-sidebar {
  display: grid;
  gap: 1.5em;
}

.info-sidebar section {
  background: rgba(5, 16, 36, 0.85);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 8px;
  padding: 1.5em;
  box-shadow: inset 0 0 30px rgba(24, 200, 255, 0.06);
}

.info-sidebar h3 {
  color: #8fe9ff;
  font-size: 1.2rem;
  margin-bottom: 1em;
  border-bottom: 2px solid rgba(24, 200, 255, 0.3);
  padding-bottom: 0.5em;
}

.info-sidebar ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-sidebar li {
  padding: 0.75em 0;
  border-bottom: 1px solid rgba(34, 211, 238, 0.15);
}

.info-sidebar li:last-child {
  border-bottom: none;
}

.info-sidebar li a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
}

.info-sidebar li a:hover {
  color: #18c8ff;
}

.info-sidebar .tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
}

.info-sidebar .tag-cloud span {
  background: rgba(24, 200, 255, 0.1);
  color: #67e8f9;
  padding: 0.5em 1em;
  border-radius: 999px;
  font-size: 0.9em;
  border: 1px solid rgba(34, 211, 238, 0.25);
}

/* 相关文章卡片 */
.case-list-card {
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.case-list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(34, 211, 238, 0.5);
}

.case-list-card .case-photo {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1em;
}

.case-list-card .case-photo img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}

.case-list-card:hover .case-photo img {
  transform: scale(1.05);
}

.case-list-card .case-label {
  display: inline-block;
  background: rgba(24, 200, 255, 0.15);
  color: #67e8f9;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  font-size: 0.85em;
  font-weight: 600;
  margin-bottom: 0.75em;
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.case-list-card h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 0.5em;
}

.case-list-card p {
  color: #b8c7df;
  line-height: 1.6;
}

.case-list-card .case-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 1em;
  color: #18c8ff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.case-list-card .case-link:hover {
  color: #22d3ee;
}

/* 文章导航 */
.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  margin-top: 2em;
  padding-top: 2em;
  border-top: 1px solid rgba(34, 211, 238, 0.2);
}

.nav-links a {
  
  align-items: center;
  gap: 0.5em;
  padding: 1em 1.5em;
  background: rgba(24, 200, 255, 0.08);
  color: #67e8f9;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  transition: all 0.2s;
  flex: 1;
  max-width: 48%;
}

.nav-links a:hover {
  background: rgba(24, 200, 255, 0.15);
  border-color: rgba(34, 211, 238, 0.5);
  color: #8fe9ff;
}

.nav-links a:first-child {
  justify-content: flex-start;
}

.nav-links a:last-child {
  justify-content: flex-end;
}



/* 响应式设计 */
@media (max-width: 991px) {
  .info-layout {
    grid-template-columns: 1fr;
  }
  
  .info-sidebar {
    order: 2;
  }
  
  .nav-links {
    flex-direction: column;
  }
  
  .nav-links a {
    max-width: 100%;
    justify-content: center !important;
    text-align: center;
  }
  
  .all-case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .article-detail {
    padding: 1.5em;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 0.5em;
  }
  
  .xny-entry h1 {
    font-size: 2rem;
  }
  
  .xny-entry h2 {
    font-size: 1.5rem;
  }
  
  .all-case-grid {
    grid-template-columns: 1fr;
  }
}
