html { 
  font-size: 62.5%; 
  scroll-behavior: smooth;
}

body { 
  margin: 0; 
  font-family: 'Courier New', monospace, Arial; 
  background: #000; 
  color: #00f6ff; 
  overflow-x: hidden;
  line-height: 1.6;
}

/* 启动界面 */
#bootScreen {
  position: fixed; 
  inset: 0; 
  background: #000; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  z-index: 9999;
}

.boot-text { 
  text-align: center; 
  font-family: monospace; 
  font-size: 1.6rem;
}

.progress-box { 
  width: 360px; 
  height: 14px; 
  border: 1px solid #00f6ff; 
  margin: 16px auto; 
  background: rgba(0, 0, 0, 0.5);
}

.progress-bar { 
  height: 100%; 
  width: 0%; 
  background: linear-gradient(90deg, #00f6ff, #7f00ff, #00f6ff); 
  transition: width 0.15s linear; 
  box-shadow: 0 0 10px #00f6ff;
}

.blink { 
  animation: blink 1s infinite; 
  margin-top: 20px;
  color: #ff6ce2;
}

@keyframes blink { 
  50% { opacity: 0; } 
}

/* 粒子背景 */
#particleCanvas { 
  position: fixed; 
  inset: 0; 
  z-index: -1; 
}

/* 语言切换按钮 */
.language-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 10px;
}

.language-btn {
  background: rgba(0, 246, 255, 0.1);
  border: 1px solid #00f6ff;
  color: #00f6ff;
  padding: 8px 16px;
  cursor: pointer;
  font-family: monospace;
  font-size: 1.2rem;
  transition: all 0.3s;
  border-radius: 3px;
  min-width: 80px;
}

.language-btn.active {
  background: #00f6ff;
  color: #000;
  font-weight: bold;
  box-shadow: 0 0 15px #00f6ff;
}

.language-btn:hover {
  background: rgba(0, 246, 255, 0.3);
  transform: translateY(-2px);
}

/* 语言内容切换 */
.lang-content {
  display: none;
}

.lang-content.active {
  display: block;
}

/* 布局 */
.container { 
  display: flex; 
  min-height: 100vh; 
  padding-top: 80px;
}

/* 左侧导航 */
.sidebar { 
  width: 220px; 
  background: rgba(17, 17, 17, 0.9); 
  padding: 2rem; 
  border-right: 1px solid rgba(0, 246, 255, 0.2);
  backdrop-filter: blur(10px);
  position: fixed;
  height: calc(100vh - 80px);
  overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
  width: 5px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #00f6ff;
  border-radius: 3px;
}

.sidebar ul { 
  list-style: none; 
  padding: 0; 
  margin: 0;
}

.sidebar li { 
  margin-bottom: 1.5rem; 
  cursor: pointer; 
  text-transform: uppercase; 
  color: #00f6ff; 
  font-size: 1.4rem; 
  padding: 1.2rem; 
  border-left: 3px solid transparent; 
  transition: all 0.3s;
  border-radius: 0 5px 5px 0;
}

.sidebar li:hover {
  color: #ff6ce2;
  border-left: 3px solid #ff6ce2;
  background: rgba(255, 108, 226, 0.1);
  transform: translateX(5px);
}

.sidebar li.active {
  border-left: 3px solid #00f6ff;
  background: rgba(0, 246, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 246, 255, 0.3);
}

main#content { 
  flex: 1; 
  padding: 2rem; 
  margin-left: 220px;
  overflow-y: auto;
  max-width: calc(100vw - 240px);
}

/* 内容区域样式 */
.content-section {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.content-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 文章内容样式 */
.article {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 246, 255, 0.2);
  border-radius: 8px;
  padding: 3rem;
  margin: 2rem 0;
  line-height: 1.8;
  backdrop-filter: blur(5px);
  box-shadow: 0 0 30px rgba(0, 246, 255, 0.1);
}

.article h2 {
  color: #ff6ce2;
  font-size: 2.8rem;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid rgba(255, 108, 226, 0.3);
  padding-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article h3 {
  color: #00f6ff;
  font-size: 2rem;
  margin: 2.5rem 0 1.5rem;
  padding-left: 10px;
  border-left: 4px solid #00f6ff;
}

.article p {
  margin: 1.5rem 0;
  font-size: 1.6rem;
  text-align: justify;
}

.article ul, .article ol {
  margin: 1.5rem 0;
  padding-left: 3rem;
}

.article li {
  margin: 1rem 0;
  font-size: 1.6rem;
  padding-left: 1rem;
}

.article li:before {
  content: "►";
  color: #00f6ff;
  margin-right: 10px;
}

.article code {
  background: rgba(0, 246, 255, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  color: #00f6ff;
  font-size: 1.4rem;
}

.code-block {
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid #00f6ff;
  border-radius: 5px;
  padding: 2rem;
  margin: 2.5rem 0;
  overflow-x: auto;
  position: relative;
}

.code-block:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00f6ff, #7f00ff, #00f6ff);
}

.code-block pre {
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 1.4rem;
  line-height: 1.6;
  color: #00f6ff;
  white-space: pre-wrap;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-card {
  background: rgba(0, 246, 255, 0.05);
  border: 1px solid rgba(0, 246, 255, 0.2);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00f6ff, #ff6ce2, #00f6ff);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: #ff6ce2;
  box-shadow: 0 10px 30px rgba(0, 246, 255, 0.2);
}

.feature-card:hover:before {
  transform: translateX(0);
}

.feature-card h4 {
  color: #ff6ce2;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  font-weight: bold;
}

.feature-card p {
  font-size: 1.4rem;
  line-height: 1.7;
  color: #a0e7ff;
}

/* 滚动条美化 */
main::-webkit-scrollbar { 
  width: 10px; 
}

main::-webkit-scrollbar-track { 
  background: rgba(0, 0, 0, 0.3); 
}

main::-webkit-scrollbar-thumb { 
  background: linear-gradient(180deg, #00f6ff, #7f00ff); 
  border-radius: 5px; 
}

main::-webkit-scrollbar-thumb:hover { 
  background: linear-gradient(180deg, #00f6ff, #ff6ce2); 
}

/* Footer */
.footer { 
  text-align: center; 
  font-size: 1.2rem; 
  color: #8a8a8a; 
  padding: 3rem 1rem; 
  background: rgba(0, 0, 0, 0.8); 
  border-top: 1px solid rgba(0, 246, 255, 0.2); 
  margin-top: 4rem;
  backdrop-filter: blur(10px);
}

.footer p {
  margin: 0.5rem 0;
  font-size: 1.3rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .container {
    flex-direction: column;
  }
  
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    margin-left: 0;
  }
  
  main#content {
    margin-left: 0;
    max-width: 100%;
  }
  
  .feature-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .sidebar {
    padding: 1rem;
  }
  
  .sidebar li {
    font-size: 1.2rem;
    padding: 0.8rem;
  }
  
  .article {
    padding: 2rem;
  }
  
  .article h2 {
    font-size: 2.2rem;
  }
  
  .article h3 {
    font-size: 1.8rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .language-switcher {
    top: 10px;
    right: 10px;
  }
  
  .language-btn {
    padding: 6px 12px;
    font-size: 1.1rem;
    min-width: 70px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 55%;
  }
  
  .progress-box {
    width: 280px;
  }
  
  .article {
    padding: 1.5rem;
  }
  
  .code-block {
    padding: 1.5rem;
  }
  
  .code-block pre {
    font-size: 1.2rem;
  }
}