* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
  background-attachment: fixed;
  color: #fff;
  line-height: 1.6;
  /* padding: 20px; */
  min-height: 100vh;
}
a {
  color: #f8e3b9;
  text-decoration: none;
  transition: all 0.3s ease;
}
a:visited {
  text-decoration: none;
}
a:hover {
  color: #fdbb2d;
}
a:active {
  color: #ff5e62;
}
a:focus {
  outline: none;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.6);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

/* 头部样式 */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.logo {
  max-width: 80px;
  height: auto;
}

.search-area {
  flex: 1;
  display: flex;
  justify-content: center;
  margin: 0 30px;
}

.search-box {
  display: flex;
  width: 100%;
  max-width: 400px;
}

.search-input {
  flex: 1;
  padding: 12px 20px;
  background: rgba(15, 18, 35, 0.7);
  border: 1px solid rgba(126, 87, 194, 0.3);
  border-right: none;
  border-radius: 30px 0 0 30px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: #291e05;
  box-shadow: 0 0 15px rgba(126, 87, 194, 0.5);
}

.search-button {
  padding: 12px 20px;
  background: linear-gradient(to right, #291e05, #310f0f);
  border: none;
  border-radius: 0 30px 30px 0;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-button:hover {
  background: linear-gradient(to right, #310f0f, #291e05);
  box-shadow: 0 0 15px rgba(126, 87, 194, 0.5);
}
.site-title {
  font-size: 2rem;
  line-height: 2rem;
  font-weight: 700;
  background: linear-gradient(to right, #fdbb2d, #ff5e62);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stats {
  text-align: right;
  background: rgba(0, 0, 0, 0.3);
  padding: 15px 25px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.stats h2 {
  font-size: 1.4rem;
  margin-bottom: 5px;
  color: #fdbb2d;
}

.stats p {
  font-size: 1rem;
  opacity: 0.9;
}

/* 公告区域样式 */
.announcement {
  background: rgba(253, 187, 45, 0.15);
  border-left: 4px solid #fdbb2d;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.announcement-icon {
  font-size: 1.5rem;
  margin-right: 15px;
  color: #fdbb2d;
}

.announcement-content {
  flex: 1;
}

.announcement-content p {
  margin: 0;
  font-size: 1.1rem;
}

/* 频道区域样式 */
.channels {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.video {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  align-items: center;
  text-align: center;
}
.video h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #fdbb2d;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.vodinfo {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}
.vodinfo img {
  max-width: 380px;
  height: auto;
  border: 4px solid #fff;
  margin-right: 10px;
}
.vodinfo-content {
  margin-left: 20px;
}
.vodinfo-item {
  background-color: rgba(0, 0, 0, 0.3);
  align-items: left;
  text-align: left;
  padding: 10px 20px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.vodinfo-title {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #ccc;
}
.vodinfo-desc {
  font-size: 16px;
  margin-bottom: 10px;
}
.tags-title {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 10px 20px;
  border-radius: 10px;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #ccc;
  text-align: left;
  margin-bottom: 50px;
}
#dplayer {
  width: 100%;
  height: auto;
  background-color: #000;
  border-radius: 10px;
}

    
.api-container {
  text-align: left;
  align-items: left;
  margin-bottom: 20px;
}
.api-container-title {
  font-size: 1.2rem;
  color: #fdbb2d;
}
.channels h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #fdbb2d;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.channel-category {
  margin-bottom: 25px;
}

.channel-category h3 {
  font-size: 1rem;
  margin-bottom: 15px;
  padding-bottom: 5px;
  color: #ebc87c;
  border-bottom: 2px solid #fdbb2d;
  display: inline-block;
}

.channel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}

.channel-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 10px;
  border-radius: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-size: 1rem;
  color: #f8e3b9;
}

.channel-item:hover {
  background: rgba(253, 187, 45, 0.8);
  color: #1a2a6c;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.channel-apibutton {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 20px;
}
.api-button {
  background: #fccb5f;
  color: #191515;
  padding: 5px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}
.api-button:hover {
  background: #eca50d;
}
.api-button:active {
  background: #eca50d;
}
.adv {
  display: flex;
  gap: 15px;
  flex-direction: column;
  margin-bottom: 15px;
  padding: 0 10px;
}
/* 最近更新样式 */
.updates {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.updates h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #fdbb2d;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.update-list {
  list-style: none;
  margin-bottom: 20px;
}

.update-item {
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.update-item-title {
  /* 不换行 超出显示省略号 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.update-item-time {
  min-width: 150px;
  text-align: right;
}

.update-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.update-item:last-child {
  border-bottom: none;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 25px;
  gap: 10px;
}

.page-btn {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-btn:hover {
  background: rgba(253, 187, 45, 0.8);
  color: #1a2a6c;
}

.page-btn.active {
  background: #fdbb2d;
  color: #1a2a6c;
  font-weight: bold;
}

.page-info {
  display: flex;
  align-items: center;
  margin: 0 15px;
  font-size: 1.1rem;
}

/* 友链样式 */
.friends-links {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.friends-links h2 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #fdbb2d;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.friend-list {
  display: flex;
  flex-wrap: wrap;
  /* justify-content: center; */
  gap: 10px;
}

.friend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
  transition: all 0.3s ease;
}

.friend-item:hover {
  transform: translateY(-5px);
}

.friend-icon {
  /* margin-bottom: 10px; */
  color: #fdbb2d;
  background: rgba(0, 0, 0, 0.6);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.friend-icon img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}
/* 版权信息样式 */
.copyright {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  opacity: 0.8;
}
/* 表格样式 */
.custom-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  margin: 20px 0;
  border: 1px solid #3e275a;
}

.custom-table th,
.custom-table td {
  padding: 12px 15px;
  text-align: left;
}

.custom-table thead {
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
}

.custom-table thead th {
  font-weight: 500;
  position: relative;
}

.custom-table tbody tr {
  border-bottom: 1px solid #3e275a;
  transition: background-color 0.2s ease;
}

.custom-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

.custom-table td {
  position: relative;
}

/* 精简紧凑的Pre样式 */
.custom-pre-container {
  position: relative;
}

.custom-pre {
  font-family: "Consolas", "Monaco", monospace;
  font-size: 13px;
  line-height: 1.2; /* 紧凑的行距 */
  color: #ccc; /* 简约的文字颜色 */
  background-color: rgba(0, 0, 0, 0.4); /* 浅灰色背景 */
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  position: relative;
  white-space: pre;
  border: 1px solid rgba(0, 0, 0, 0.6);
}

.custom-pre .comment,
.custom-pre .keyword,
.custom-pre .string,
.custom-pre .number,
.custom-pre .function,
.custom-pre .variable {
  color: inherit; /* 继承默认文字颜色 */
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: #e0e0e0;
  color: #333;
  border: none;
  border-radius: 3px;
  padding: 3px 6px;
  font-size: 11px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.copy-btn:hover {
  background-color: #d0d0d0;
}

.copy-btn.copied {
  background-color: #4caf50;
  color: white;
}

.line-numbers {
  counter-reset: line-number;
  margin: 0;
  padding: 0;
}

.line-numbers li {
  list-style-type: none;
  counter-increment: line-number;
  position: relative;
  padding-left: 2.5rem;
}

.line-numbers li:before {
  content: counter(line-number);
  position: absolute;
  left: 0;
  width: 2rem;
  color: #999;
  text-align: right;
  padding-right: 0.5rem;
  user-select: none;
  font-size: 12px;
}
/* 响应式设计 */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  .logo-area {
    margin-bottom: 20px;
    justify-content: center;
  }

  .stats {
    text-align: center;
    width: 100%;
  }

  .channel-list {
    justify-content: center;
  }

  .friend-list {
    gap: 15px;
  }

  .friend-item {
    width: 80px;
  }

  .announcement {
    flex-direction: column;
    text-align: center;
  }

  .announcement-icon {
    margin-right: 0;
    margin-bottom: 10px;
  }
}
