:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #1c212899;
  --text-title: #58a6ff;
  --text-primary: #c9d1d9;
  --text-secondary: #58a6ff;
  --accent-color: #58a6ff22;
  --border-color: #43484f;
  --warning-color: #da363399;
  --success-color: #238636;
  --card-bg: #161b2299;
  --header-gradient: linear-gradient(135deg, #1a2332 0%, #0d1117 100%);
}

.light-mode {
  --bg-primary: #ffffff;
  --bg-secondary: #f6f8fa;
  --bg-tertiary: #f0f4f888;
  --text-title: #0969da;
  --text-primary: #24292f;
  --text-secondary: #57606a;
  --accent-color: #0969da22;
  --border-color: #d0d7de;
  --warning-color: #cf222e88;
  --success-color: #1a7f37;
  --card-bg: #f6f8fa88;
  --header-gradient: linear-gradient(135deg, #f0f4f8 0%, #e1e8f0 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  transition:
  background-color 0.3s,
  color 0.3s,
  border-color 0.3s;
  scrollbar-width: thin;
  scrollbar-color: #bdc3c7 #ecf0f1;
}

strong {
  padding: 0 2px;
  color: #1aad19;
}

::-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-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  padding: 0;
  margin: 0;
}

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

.fixed-controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  gap: 15px;
  align-items: center;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  /* background: var(--header-gradient); */
  padding: 30px 0;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  position: relative;
}

.theme-toggle {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  width: 60px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
}

.theme-toggle i {
  font-size: 14px;
  color: var(--text-primary);
}

.theme-toggle .toggle-circle {
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--accent-color);
  border-radius: 50%;
  left: 3px;
  transition: transform 0.3s;
}

.light-mode .theme-toggle .toggle-circle {
  transform: translateX(30px);
}

.github-href {
  gap: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  text-decoration: none;
  margin: 0 5px;
  padding: 2px 5px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  font-weight: 600;
  transition: all 0.3s;
}

.github-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  font-weight: 600;
  transition: all 0.3s;
}

.github-btn:hover,
.github-href:hover {
  background: var(--bg-tertiary);
  transform: translateY(-2px);
}

.github-btn i {
  font-size: 1.2rem;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--text-title);
  text-shadow: 0px 0px 1px #000;
}

header p {
  font-size: 1.1rem;
  max-width: 1200px;
  margin: 0 auto;
  color: var(--text-primary);
  text-shadow: 0px 0px 1px #fff;
}

.tip {
  background-color: #d1ecf1;
  padding: 15px;
  border-radius: 4px;
  margin: 15px 0;
}

.important {
  background-color: #f8d7da;
  padding: 15px;
  border-radius: 4px;
  margin: 15px 0;
}

.warning-banner {
  background: linear-gradient(90deg, var(--warning-color), #f78166aa);
  color: var(--text-primary);
  padding: 15px;
  border-radius: 8px;
  margin: 25px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.warning-banner i {
  font-size: 1.5rem;
}

.section-title {
  display: flex;
  align-items: center;
  width: fit-content;
  margin: 30px 0 20px;
  padding: 10px;
  border-bottom: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1.8rem;
  color: var(--text-title);
  background: var(--card-bg);
}

.section-title span {
  font-size: 1rem;
  padding: 0 5px;
}

.airport-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.airport-table th {
  background: var(--accent-color);
  color: var(--text-primary);
  padding: 15px;
  text-align: left;
}

.airport-table td {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
}

.airport-table td a {
  color: var(--text-primary);
  text-decoration: none;
}

.airport-table td a:hover {
  text-decoration: underline;
}

.airport-table tr:last-child td {
  border-bottom: none;
}

.airport-table tr:hover {
  background: var(--bg-tertiary);
}

.airport-table td a.btn {
  display: inline-block;
  width: 66px;
  background: var(--success-color);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.airport-table td a.btn:hover {
  background: #2ea043;
  transform: translateY(-2px);
  text-decoration: none;
}

.protocol-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
  margin: 2px;
  background: #f5f5f5;
  color: #757575;
}

.vless {
  background-color: #fff3e0;
  color: #ef6c00;
  border: 1px solid #ffcc80;
}

.ss {
  background-color: #e1f5fe;
  color: #0277bd;
  border: 1px solid #81d4fa;
}

.tls {
  background-color: #e1aafe;
  color: #60f;
  border: 1px solid #8156fa;
}
}

.trojan {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.vmess {
  background-color: #f3e5f5;
  color: #7b1fa2;
  border: 1px solid #ce93d8;
}

.hy2 {
  background-color: #e0f2f1;
  color: #00695c;
  border: 1px solid #80cbc4;
}

.notice {
  background: var(--bg-tertiary);
  border-left: 4px solid #d29922;
  padding: 15px;
  margin: 20px 0;
  border-radius: 4px;
}

.notice-title {
  font-weight: bold;
  margin-bottom: 5px;
  color: #d29922;
}

.notice a {
  color: var(--text-primary);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.feature-card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.feature-card p {
  white-space: wrap;
  word-wrap: break-word;
  word-break: break-all;
}

.feature-card i {
  font-size: 2rem;
  color: var(--text-title);
  margin-bottom: 15px;
}

.feature-card h3 {
  margin-bottom: 10px;
  color: var(--text-title);
}

.links {
  position: sticky;
  bottom: 0;
  z-index: 99999;
  background: var(--bg-primary);
  padding: 5px 10px;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.links a {
  color: var(--text-primary);
  text-decoration: none;
}

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

footer {
  text-align: center;
  padding-bottom: 30px;
  /* margin-top: 50px; */
  /* border-top: 1px solid var(--border-color); */
  color: var(--text-primary);
  font-size: 0.9rem;
}

.highlight {
  color: var(--text-title);
  font-weight: 600;
}

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

@media (max-width: 768px) {
  .create-time,
  .protocol {
    display: none;
  }

  .airport-table {
    display: block;
    overflow-x: auto;
  }

  header h1 {
    font-size: 2rem;
  }

  .fixed-controls {
    position: fixed;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    margin: 10px auto;
    justify-content: center;
  }
}
