*, *::before, *::after{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: #bdc3c7 #ecf0f1;
}

::-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;
}

body {
  background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 60px;
}

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;
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.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);
}

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

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


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

.hd .link-list {
  padding: 0;
  height: 50px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  gap: 24px;
  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);
}

header {
  position: relative;
  z-index: 1;
  background: transparent;
  color: 4285f4;
  padding: 25px;
  text-align: center;
}

header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: #4285f422;
}

h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.description {
  font-size: 16px;
  opacity: 0.9;
}

.config-section {
  padding: 25px;
  border-bottom: 1px solid #eee;
}

h2 {
  font-size: 20px;
  color: #4285f4;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

h2 i {
  margin-right: 10px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  transition: border 0.3s;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  border-color: #4285f4;
  outline: none;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.checkbox-group input {
  margin-right: 10px;
}

.command-output {
  background: #f8f9fa88;
  padding: 20px;
  border-radius: 5px;
  margin-top: 20px;
  border-left: 4px solid #4285f4;
  overflow-x: auto;
}

.command-output code {
  font-family: "Courier New", monospace;
  color: #333;
  white-space: pre-wrap;
  word-break: break-all;
}

.btn {
  background: #4285f488;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.3s;
}

.btn:hover {
  background: #3367d688;
}

.btn-copy {
  background: #34a85388;
  margin-top: 15px;
}

.btn-copy:hover {
  background: #2d8d47;
}

.three-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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


.custom-ua {
  display: none;
  margin-top: 10px;
}

.footer {
  text-align: center;
  padding: 20px;
  color: #777;
  font-size: 14px;
}

.ua-example {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
  font-style: italic;
}

.os-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.os-btn {
  padding: 8px 15px;
  border: 2px solid #ddd;
  border-radius: 5px;
  background: #f8f9fa88;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

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

.path-hint {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

.proxy-format-hint {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
  font-style: italic;
}

.option-hint {
  font-size: 12px;
  color: #666;
  margin-left: 28px;
  margin-top: -5px;
  margin-bottom: 10px;
  font-style: italic;
}

/* 参数分类容器 */
.option-category {
  margin-bottom: 25px;
  padding: 15px;
  border-radius: 8px;
  background: #fdfdfd88;
  border-left: 5px solid #ccc;
}

.option-category h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

.category-security {
  border-color: #d9534f;
}

.category-privacy {
  border-color: #5bc0de;
}

.category-ui {
  border-color: #5cb85c;
}

.category-network {
  border-color: #f0ad4e;
}

.donate {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  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%;
  text-align: center;
  padding: 5px 10px;
  text-align: center;
  background-color: #ffffff88;
  border-top: 1px solid #43484f;
}

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

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



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

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

  .three-columns,
  .two-columns {
    grid-template-columns: 1fr;
  }
}