* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a{
  text-decoration: none;
  display: block;
}
html,
body {
  width: var(--screen-w);
  height: 100%;
}
@font-face {
  font-family: "sys";
  /* 定义字体名称 */
  font-style: normal;
  /* 字体样式（正常、斜体等） */
  font-weight: 700;
  /* 字体粗细 */
  font-display: swap;
  /* 字体加载策略 */
  src:
    url("../fonts/ns.woff") format("woff"),
    url("../fonts/ns.ttf") format("truetype");
  /* 提供多种格式 */
}

:root {
   --screen-w: 100vw; 
  --white-color: #fff;
  --venue-teach-color: #661b7f;
  --venue-visit-color: #3441aa;
  --box-shadow-light: 0 8px 20px rgba(0, 0, 0, 0.15);
  --ts-today-venue-size: 150px;
  --ts-today-venue-right: 50px;
  --ts-today-venue-top: 50px;
  --ts-icon-size: 15px;

  --ts-today-venue-linear-from: #8c4ce1;
  --ts-today-venue-linear-to: #6b62da;

  --ts-scroll-bar-width: 6px;
  --ts-scroll-bar-color: var(--white-color);

  --round-full: 9999px;
}

.ts-panel-outer {
  position: relative;

  z-index: 10;
}

.ts-panel {
  width: 600px;
  /* aspect-ratio: 1.25/1; */
  border-radius: 10px;
  /* overflow: hidden; */
  background-image: url("../images/ts-today-venue-bg-rb.png");
  background-size: 35% auto;
  background-position: 112% 112%;
  background-repeat: no-repeat;
  padding: 0 10px 20px;
  /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); */
  position: relative;
  /* border: 1px solid rgba(255, 255, 255, 0.5); */
  border: 1px solid #bda0d3;
}

.ts-panel::before,
.ts-panel::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.ts-panel::before {
  width: calc(var(--ts-icon-size) * 1.3);
  height: calc(var(--ts-icon-size) * 1.3);
  content: "";
  position: absolute;
  top: calc(var(--ts-today-venue-size) * 0.35);
  right: -8px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--ts-today-venue-linear-to);
  /* background-color: red; */
  border-radius: 0 6px 0 0;
  z-index: 1;
}

.ts-panel::after {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-image: linear-gradient(90deg, var(--ts-today-venue-linear-from) 0%, var(--ts-today-venue-linear-to) 100%);
  border-radius: 10px;
}

.ts-panel-wrapper.active .ts-panel {
  transform: scale(1);
  opacity: 1;
}

.ts-panel-close {
  width: 30px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 100%;
  position: absolute;
  top: 10px;
  right: 10px;
}
.ts-panel-close i {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: 40%;
  background-repeat: no-repeat;
  background-image: url(../images/close-btn.png);
  transition: 0.6s;
}
.ts-panel-close i:hover {
  transform: rotate(180deg);
}

.ts-panel-header {
  padding: 30px 20px;
  text-align: center;
}

.ts-panel-header h2 {
  color: var(--white-color);
  font-size: 30px;
  letter-spacing: 2px;
  font-family: "sys", "Microsoft Yahei", sans-serif;
}

.ts-panel-content {
  width: 100%;
  max-height: 400px;
  padding: 0 16px;
  overflow-y: auto;
}

.ts-venue-card {
  background: var(--white-color);
  padding: 13px 0;
  margin-bottom: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.ts-venue-card:last-child {
  margin-bottom: 0;
}

.ts-venue-type {
  width: 120px;
  font-size: 28px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 5px;
  letter-spacing: 2px;
}

.ts-venue-type.teach {
  color: var(--venue-teach-color);
}

.ts-venue-type.visit {
  color: var(--venue-visit-color);
}

.ts-venue-info {
  width: calc(100% - 120px);
  padding: 0 20px 0 35px;
  border-left: 2px solid #c4c4c4;
}

.ts-venue-info-title {
  width: 100%;
  font-size: 17px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ts-venue-info-list {
  width: 100%;
  margin-top: 10px;
}

.ts-venue-info-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  font-size: 14px;
  color: #494645;
  margin-bottom: 5px;
}

.ts-venue-info-item:last-child {
  margin-bottom: 0;
}

/* 自定义滚动条样式 */
.ts-scroll::-webkit-scrollbar {
  width: var(--ts-scroll-bar-width);
  height: var(--ts-scroll-bar-width);
}

/* 滚动条里面小方块 */
.ts-scroll::-webkit-scrollbar-thumb {
  border-radius: 5px;
  /* -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); */
  background: var(--ts-scroll-bar-color);
}

/* 滚动条里面轨道 */
.ts-scroll::-webkit-scrollbar-track {
  /* -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); */
  border-radius: 0;
  background: transparent;
}

.ts-scroll::-ms-scrollbar {
  width: var(--ts-scroll-bar-width);
  height: var(--ts-scroll-bar-width);
}

/* 滚动条里面小方块 */
.ts-scroll::-ms-scrollbar-thumb {
  border-radius: 5px;
  /* -ms-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); */
  background: var(--ts-scroll-bar-color);
}

/* 滚动条里面轨道 */
.ts-scroll::-ms-scrollbar-track {
  /* -ms-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); */
  border-radius: 0;
  background: transparent;
}
@media (max-width: 850px) {
 :root{
  --ts-today-venue-size: 100px;
 }
}
@media (max-width: 767px) {
  .ts-panel-outer {
    width: 100%;
    height: 100%;
  }
  .ts-panel {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    background-position: 112% 104%;
  }
  .ts-panel::before {
    display: none;
  }
  .ts-panel::after {
    border-radius: 0;
  }
  .ts-panel-content {
    max-height: none;
    flex: 1;
    padding: 0 8px;
  }
  .ts-panel-header {
    padding: 20px 15px;
  }
  .ts-panel-header h2 {
    font-size: 20px;
    letter-spacing: 1.5px;
    padding: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  .ts-venue-card {
    flex-direction: column;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 76, 225, 0.1);
  }
  .ts-venue-card:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
  .ts-venue-type {
    width: auto;
    font-size: 17px;
    padding-right: 0;
    margin-bottom: 12px;
    padding: 2px 20px;
    border-radius: var(--round-full);
    background: linear-gradient(135deg, var(--ts-today-venue-linear-from) 0%, var(--ts-today-venue-linear-to) 100%);
    color: var(--white-color) !important;
    font-weight: 600;
    letter-spacing: 1px;
  }
  .ts-venue-type.teach {
    background: linear-gradient(135deg, #661b7f 0%, #8b4ce1 100%);
  }
  .ts-venue-type.visit {
    background: linear-gradient(135deg, #3441aa 0%, #5a4fd6 100%);
  }
  .ts-venue-info {
    width: 100%;
    padding: 0;
    border-left: none;
    border-top: none;
    padding-top: 0;
  }
  .ts-venue-info-title {
    font-size: 15px;
    font-weight: 600;
    color: #2d2d2d;
    line-height: 1.5;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e0e0e0;
  }
  .ts-venue-info-list {
    margin-top: 0;
  }
  .ts-venue-info-item {
    grid-template-columns: 1fr;
    font-size: 13px;
    grid-gap: 6px;
    color: #555;
    line-height: 1.6;
  }
  /* .ts-venue-info-item span:first-child {
    color: #888;
    font-size: 12px;
  } */
  .ts-panel-close {
    width: 26px;
    height: 26px;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
  }
  .ts-panel-close i {
    background-size: 35%;
  }
}
