/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

@font-face {
  font-family: 'ZcoolQingKe';
  src: url('/ZCOOLQingKeHuangYou-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

.ZcoolQingKe {
  font-family: 'ZcoolQingKe', sans-serif;
}

@font-face {
  font-family: 'NotoSerifSC';
  src: url('/NotoSerifSC-SemiBold.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

.NotoSerifSC {
  font-family: 'NotoSerifSC', sans-serif;
}

.container {
  margin: 0 auto;
  padding: 0 1em; /* 可根据需要添加两边间距 */
  box-sizing: border-box;
}

body {
  font-family: Verdana, sans-serif;
  text-align: center;
  background-color: #B2EBF2;
  color: #000;
  height: auto;
  min-height: 100%;
  overflow-y: auto;
  padding-bottom: 50px;
}

.header {
  text-align: center;
  padding-top: 10px;
  user-select: none;
}

.logo-img {
  max-width: 90%;
  height: auto;
  display: inline-block;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin: 0 auto;
}

table {
  margin: 20px auto;
  border-collapse: collapse;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
  min-width: 500px;
  width: 500px;
  table-layout: fixed;
}

td {
  border: 1px solid #ccc;
  padding: 0;
  text-align: center;
  font-family: 'ZcoolQingKe', sans-serif;
  width: 50px;              /* 固定宽度 */
  height: 50px;
  vertical-align: middle;
  color: white;
  user-select: none;
  background-color: #171975;
}

th {
  background-color: #0D1B2A;
  color: white;
  font-weight: normal;
  font-family: 'ZcoolQingKe', sans-serif;
  padding: 5px;
  text-align: center;
  border: 1px solid #ccc;
  font-size: 0.9em;
}

td img {
  width: 44px;
  height: 44px;
  display: block;
  margin: 0 auto; /* 居中 */
  user-select: none;
}

td:nth-child(1) {
  background-color: #0D1B2A;
}

/*
td:nth-child(2) {
  background-color: rgba(220, 92, 92, 0.8);
}

td:nth-child(3), td:nth-child(4) {
  background-color: rgba(255, 140, 66, 0.8);
}

td:nth-child(5), td:nth-child(6), td:nth-child(7){
  background-color: rgba(245, 197, 66, 0.8);
}

td:nth-child(8) {
  background-color: rgba(92, 220, 160, 0.8);
}

td:nth-child(9), td:nth-child(10) {
  background-color: rgba(220, 92, 199, 0.8);
}
*/

caption .ZcoolQingKe {
  font-family: 'ZcoolQingKe', sans-serif;
  font-size: 1.8em;
  color: #B2EBF2;
  text-shadow:
    -2px  0   0 #000,
     2px  0   0 #000,
     0   -2px 0 #000,
     0    2px 0 #000,
    -2px -2px 0 #000,
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000;
  margin-bottom: 0.2em;
  margin-top: 0.4em;
}

.carousel-wrapper {
  text-align: center;
  width: 100%;
}

.carousel {
  width: 320px;
  max-width: 90vw;
  height: 360px;
  margin: 10px auto 10px auto;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-inner {
  width: 100%;
  height: 100%;
  background: rgba(156, 160, 255, 0.5);
  border-radius: 10px;
  position: relative;  /* 保持定位上下文 */
  overflow: hidden;
  display: flex;           /* 保证内部 flex 布局 */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid #5C5EDC; /* 更深蓝紫，明显边框 */
  box-sizing: border-box;    /* 计算边框尺寸 */
  padding: 10px;
}

.carousel-item {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.carousel-item.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel img {
  max-width: 100%;
  max-height: 300px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  user-select: none;
}

.carousel-item img.left66 {
  position: relative;
  left: -66px;
  z-index: 0;
}

.carousel-item img.left10 {
  position: relative;
  left: -10px;
  z-index: 0;
}

.carousel-item img.left15 {
  position: relative;
  left: -15px;
  z-index: 0;
}

.carousel-item img.right25 {
  position: relative;
  right: -25px;
  z-index: 0;
}

.carousel-name {
  background-color: black;
  color: white;
  padding: 2px 12px;
  font-size: 1.2em;
  font-family: 'NotoSerifSC', sans-serif;
  display: inline-block;
  margin-top: 10px;
}

.carousel-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  background-color: rgba(92, 94, 220, 1);
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0; /* 可自定圆角 */
}

.carousel-btn.left {
  left: 0;
}

.carousel-btn.right {
  right: 0;
}

.carousel-btn.left::before,
.carousel-btn.right::before {
  color: #B2EBF2;
  font-size: 24px;
  font-weight: 900;
  font-family: Arial, sans-serif;
  content: "<"; /* 默认左箭头 */
  user-select: none;
}

.carousel-btn.right::before {
  content: ">";
}

.character-review-box {
  background: #A7C5F9;
  color: white;
  padding: 10px;
  border-radius: 6px;
  font-family: sans-serif;
  font-size: 0.95em;
  width: 320px;      /* 固定宽度，和轮播宽度一致 */
  max-width: 90vw;   /* 移动端响应式 */
  margin: 10px auto 0 auto;
  box-sizing: border-box;
  border: 3px solid #5C5EDC;  /* 你可以调整宽度和颜色 */
}

.stars {
  font-size: 1.2em;
  color: #A7C5F9;
  margin-bottom: 2px;
  background-color: #5C5EDC;
  padding: 2px 12px;
  border-radius: 4px;
  display: inline-block;
}

.comments-scroll {
  max-height: 100px; /* 固定评论区高度 */
  overflow-y: auto;
  padding-right: 5px;
  line-height: 1.4;
}

/* 滚动条样式可选 */
.comments-scroll::-webkit-scrollbar {
  width: 6px;
}
.comments-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 3px;
}

#review-comments p {
  text-align: left;       /* 左对齐 */
  line-height: 1.2em;     /* 减小行间距，默认大约是1.5，1.2比较紧凑 */
  margin: 0.2em 0;        /* 上下间距稍微小一点 */
}

.username {
  color: #5C5EDC;      /* 蓝色或你喜欢的颜色 */
  font-weight: bold;
  margin-right: 4px;
}

.highlight {
  background-color: #F5C542;
}


