
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #ecf0f1;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: #bdc3c7;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #95a5a6;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #bdc3c7 #ecf0f1;
}

html,
body {
  display: block;
  width: 100%;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

body::before {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: url(https://www.loliapi.com/acg/pe/) #fff;
  background-position: right center;
  background-size: auto 100%;
  background-attachment: fixed;
  opacity: 0.5;
}

.container {
  position: relative;
  z-index: 1;
  width: 100% !important;
  background: transparent;
}


.language-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.lang-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.lang-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: white;
  text-decoration: none;
}

.lang-btn:active {
  transform: translateY(0);
}

.lang-icon {
  font-size: 16px;
}

.switch-container {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 140px;
  height: 40px;
  margin-left: 5px;
  padding: 0 5px;
  border: 1px solid #d6e9c6;
  border-radius: 4px;
  background-color: #00000022;
}

/* 开关容器样式 */
.switch-container .switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin-bottom: 0;
}

/* 隐藏默认的checkbox */
.switch-container .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* 开关背景 */
.switch-container .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

/* 圆形滑块 */
.switch-container .slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  border-radius: 50%;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
}

/* 当开关被选中时 */
.switch-container input:checked+.slider {
  background-color: #4caf50;
}

.switch-container input:checked+.slider:before {
  transform: translateX(26px);
}

/* 小圆点样式 */
.switch-container .switch-text {
  height: 40px;
  line-height: 40px;
  margin-left: 2px;
  font-size: 20px;
  vertical-align: middle;
  color: #fff;
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  transform: translateX(150%);
  transition: transform 0.3s;
  z-index: 9999;
}

.notification.show {
  transform: translateX(0);
}

.shortcuts-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.shortcut-item {
  margin-right: 5px;
  margin-bottom: 10px;
  padding: 2px 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  text-align: center;
}

.shortcut-item:active {
  background: #999;
}

.hd {
  width: 100%;
  height: 50px;
  background: transparent;
  font-size: 20px;
  letter-spacing: 2px;
}

.hd .link-list {
  padding: 0 16px;
  height: 50px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
  align-content: center;
}

.hd .link-list a {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.hd .link-list a:hover {
  transform: translateY(-2px);
}

.main {
  padding: 16px 16px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.main h1 {
  margin-bottom: 10px;
  margin-top: 10px;
  padding: 5px;
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  color: #1890ff;
}

.main .form {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100%;
  margin-bottom: 5px;
  border-radius: 8px;
  overflow: hidden;
}

.main .form input {
  flex: 1;
  height: 40px;
  border-top: 1px solid #0e90d2;
  border-left: 1px solid #0e90d2;
  border-bottom: 1px solid #0e90d2;
  border-right: 0px;
  padding-left: 10px;
  background: #ffffffcc;
}

.main .form input:focus {
  outline: #0e90d2;
}

.main .form input::placeholder {
  color: #888;
  font-weight: bold;
  font-size: 20px;
  letter-spacing: 1px;
}

.main .form img {
  margin-left: -4px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.main .form .clear {
  position: absolute;
  display: none;
  right: 45px;
  top: 8px;
  width: 25px;
  height: 25px;
  line-height: 25px;
  text-align: center;
  font-size: 30px;
  margin-bottom: 0;
  color: #888;
  transform: rotateZ(45deg);
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
}

.form-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0 !important;
}

.form-group>div {
  margin-bottom: 5px;
}

.form-group .alert {
  display: flex;
  align-items: center;
  flex: 1;
  height: 40px;
  margin-left: 5px;
  padding-bottom: 0;
  padding: 0 5px;
  white-space: wrap;
  color: #1a541b;
  background-color: #dff0d899;
}

.os-selector {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.os-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  padding: 0 5px;
  border: 2px solid #ddd;
  border-radius: 5px;
  background: #f8f9faee;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s;
  white-space: nowrap;
}

.os-btn.active {
  background: #4285f4ee;
  color: white;
  border-color: #4285f4;
}

.main p {
  font-size: 15px;
}

.main a {
  color: #333 !important;
}

.main .alert {
  color: #fff;
  background-color: #00000022;
}

.main .alert p {
  font-weight: bold;
}

.main .alert a {
  color: #501445;
  text-decoration: underline;
}

.main h2 {
  font-size: 16px;
  font-weight: bold;
}

.mvbox {
  position: relative !important;
  height: 480px !important;
  background: transparent !important;
  overflow: hidden;
}

#player-container,
#player-container video {
  position: relative !important;
  left: 0 !important;
  top: 0 !important;
  transform: none !important;
  width: 100%;
  height: 100%;
  background: #00000033;
  background-repeat: no-repeat;
  background-position: center center;
  border-radius: 4px;
  overflow: hidden;
}

#pre {
  white-space: wrap;
  margin-bottom: 0 !important;
  background-color: #f5f5f5aa;
}

.donate {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 24px auto;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
}

.afd {
  width: 140px;
  height: 40px;
  margin-left: 10px;
  border-radius: 8px;
  border: 1px solid #1890ff;
  background: url(../img/afd.png);
  background-repeat: no-repeat;
  background-size: 140px 40px;
  background-position: center center;
  cursor: pointer;
}

.links {
  position: fixed;
  bottom: 0;
  z-index: 99999;
  width: 100%;
  margin-bottom: 0;
  padding: 5px 10px;
  text-align: center;
  background-color: #00000088;
  color: #fff;
}

.links a {
  color: #eee;
  text-decoration: none;
}

.links a:hover {
  color: #fff;
  text-decoration: underline;
}

.links a:active {
  color: #aaa;
  text-decoration: underline;
}

.links a:focus {
  color: #fff;
  text-decoration: underline;
}

.accordion {
  background-color: #dff0d888;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 20px;
  transition: box-shadow 0.3s ease;
}

.accordion:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.accordion-header {
  padding: 5px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #3498db00;
  color: white;
  transition: background-color 0.3s ease;
  -webkit-user-select: none;
  user-select: none;
  font-size: 16px;
}

.accordion-header:hover {
  background-color: #2980b911;
}

.accordion-header h2 {
  margin: 10px 0;
  transition: transform 0.2s ease;
  color: #333;
}

.accordion-header:active h2 {
  transform: scale(0.98);
}

.accordion-icon {
  font-size: 20px;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  font-weight: bold;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
  opacity: 0;
  background-color: #dff0d800;
}

.accordion-content-inner {
  padding: 20px;
  line-height: 1.6;
  color: #555;
}

.accordion-content p {
  margin-bottom: 15px;
}

.accordion-content p:last-child {
  margin-bottom: 0;
}

.accordion.active .accordion-content {
  max-height: 500px;
  opacity: 1;
}

.accordion.active .accordion-icon {
  transform: rotate(135deg);
}

.result {
  padding: 0 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
}

.result.success {
  background: #d4edda;
  color: #155724;
  opacity: 1;
}

.result.error {
  background: #f8d7da;
  color: #721c24;
  opacity: 1;
}

@media all and (orientation: portrait) {
  body::before {
    background: url(https://www.loliapi.com/acg/pe/) #fff;
    background-size: auto 100%;
  }
}

/* 响应式设计 */

@media screen and (max-width: 768px) {
  .language-switcher {
    top: 10px;
    right: 10px;
  }

  .lang-btn {
    padding: 10px 16px;
    font-size: 12px;
  }

  .main h1 {
    font-size: 24px;
  }

  .form-group .alert {
    min-width: 100%;
    height: fit-content;
  }

  .mvbox {
    height: 200px !important;
  }

  .shortcut-item {
    width: 30%;
  }

  #play-pause.shortcut-item {
    width: 100%;
  }

  .shortcut-item .key {
    display: none;
  }

  .accordion-header {
    padding: 15px;
  }

  .accordion-header h2 {
    font-size: 1.1rem;
  }
}