body.single {
  font-family: "Inter", "Noto Sans", sans-serif;
  background: #000000;
  color: #e0e0e0;
  line-height: 1.8;
  font-size: 16px;
  margin: 0;
  padding: 0;
}
a {
  color: #ff4d4d;
  text-decoration: none;
  transition: 0.2s;
}
a:hover {
  color: #ff8080;
}
img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.single-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  background: rgba(17, 17, 17, 0.9);
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.05);
}
.single-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: #fff;
  text-align: center;
}
.single-meta {
  color: #999999;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.single-meta span {
  margin-right: 1rem;
}
.single-thumbnail {
  margin-bottom: 1.5rem;
}
.single-thumbnail img {
  width: 100%;
  border-radius: 8px;
}
.single-content {
  font-size: 1rem;
  line-height: 1.9;
  color: #e0e0e0;
}
.single-content h2,
.single-content h3,
.single-content h4 {
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  margin: 2rem 0 1rem;
  line-height: 1.4;
}
.single-content p {
  margin-bottom: 1rem;
}
.single-content a {
  color: #ff6767;
}
.single-content a:hover {
  text-decoration: underline;
}
.single-content ul,
.single-content ol {
  margin: 1rem 0 1rem 2rem;
}
.single-content ul li,
.single-content ol li {
  margin-bottom: 0.5rem;
}
.single-content code {
  background: #1a1a1a;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  color: #ff9b9b;
}
.single-content pre {
  background: #1a1a1a;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  color: #eaeaea;
}
.single-content blockquote {
  border-left: 4px solid #ff4d4d;
  background: #0f0f0f;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #b3b3b3;
}
.single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.single-content table th,
.single-content table td {
  border: 1px solid #1f1f1f;
  padding: 0.75rem 1rem;
}
.single-content table th {
  background: #111;
  color: #fff;
}
.single-content table tr:nth-child(even) {
  background: #0b0b0b;
}
.single-content table tr:hover {
  background: #151515;
}
.single-tags {
  margin-top: 2rem;
  font-size: 0.9rem;
}
.single-tags a {
  display: inline-block;
  margin: 0 0.5rem 0.5rem 0;
  background: #1a1a1a;
  color: #999999;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: 0.3s;
}
.single-tags a:hover {
  background: #ff4d4d;
  color: #fff;
}
.single-nav {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #1f1f1f;
  padding-top: 1.5rem;
  margin-top: 2rem;
}
.single-nav a {
  color: #ff4d4d;
  font-weight: 600;
  transition: 0.2s;
}
.single-nav a:hover {
  color: #ff8080;
}
.single-nav .next {
  margin-top: 2rem;
  text-align: right;
}
.single-nav .next a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 360px;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}
.single-nav .next a .title {
  display: inline-block;
  max-width: 9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.single-nav .next a .arrow {
  flex-shrink: 0;
  font-weight: 500;
}
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.related-posts .related-title {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
}
.related-posts .related-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 0;
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-posts .related-item {
  flex: 0 0 48%;
  max-width: 48%;
  box-sizing: border-box;
}
.related-posts .related-item a {
  display: block;
  color: #aaa;
  font-size: 1rem;
  text-decoration: none;
  /* ✅ 限制标题长度避免撑布局 */
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}
.related-posts .related-item a:hover {
  color: #ff4d4d;
}
.breadcrumb {
  font-size: 0.9rem;
  color: #999999;
  margin-bottom: 4.5rem;
}
.breadcrumb a {
  color: #999999;
}
.breadcrumb a:hover {
  color: #ff4d4d;
}
.breadcrumb span {
  margin: 0 0.25rem;
}
