body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: url('https://qycloudreve.s.odn.cc/f/pJgUX/2025-07-05_14.20.dghn13.png') no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  padding: 0;
}
h1 {
  background: #2d8cf0;
  color: #fff;
  margin: 0;
  padding: 1em;
}
#problem-list {
  list-style: none;
  padding: 0 1em;
}
#problem-list li {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin: 1em 0;
  padding: 1em;
  border-radius: 6px;
  box-shadow: 0 2px 8px #0001;
}
#problem-list li a {
  text-decoration: none;
  color: #2d8cf0;
  font-weight: bold;
}
#search {
  margin: 1em;
  padding: 0.5em;
  width: 90%;
  max-width: 400px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
#problem-content {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin: 2em auto;
  padding: 2em;
  border-radius: 8px;
  max-width: 800px;
  box-shadow: 0 2px 12px #0002;
}
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(45, 140, 240, 0.18); 
  box-shadow: 0 2px 8px #0002;
  padding: 0;
  margin: 0 0 1em 0;
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.nav-container {
  display: flex;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.5em 1em;
  justify-content: space-between;
}
.nav-title {
  color: #fff;
  font-weight: bold;
  font-size: 1.2em;
  margin-right: 2em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5em;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1em;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: #ffd700;
}
@media (max-width: 600px) {
  .nav-container { flex-direction: column; align-items: flex-start; }
  .nav-title { margin-bottom: 0.5em; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 0.5em; }
  .sticky-nav a { margin: 0 1em 0.5em 0; }
}
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(45, 140, 240, 0.18);
  box-shadow: 0 2px 8px #0002;
  padding: 0;
  margin: 0 0 1em 0;
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.nav-container {
  display: flex;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.5em 1em;
  justify-content: space-between;
}

.nav-title {
  color: #fff;
  font-weight: bold;
  font-size: 1.2em;
  margin-right: 2em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5em;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1em;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: #ffd700;
}

/* 添加代码块样式 */
#problem-content pre {
  background-color: #2d2d2d;
  border-radius: 8px;
  padding: 16px;
  overflow: auto;
  color: #f8f8f2;
  font-family: 'Consolas', monospace;
  line-height: 1.5;
  margin: 20px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #2d8cf0;
}

#problem-content code {
  font-family: 'Consolas', monospace;
  background-color: rgba(45, 140, 240, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: #2d8cf0;
}

#problem-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* 添加加载动画 */
@keyframes loading {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#problem-content[data-loading="true"]::before {
  content: "";
  display: block;
  width: 40px;
  height: 40px;
  margin: 20px auto;
  border: 4px solid rgba(45, 140, 240, 0.2);
  border-top: 4px solid #2d8cf0;
  border-radius: 50%;
  animation: loading 1s linear infinite;
}