/* 字体定义 */
@font-face {
  font-family: "MapleMonoNF CN";
  src: url("/static/fonts/MapleMono-NF-CN-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MapleMonoNF CN";
  src: url("/static/fonts/MapleMono-NF-CN-Italic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "MapleMonoNF CN";
  src: url("/static/fonts/MapleMono-NF-CN-Light.ttf") format("truetype");
  font-weight: lighter;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MapleMonoNF CN";
  src: url("/static/fonts/MapleMono-NF-CN-Medium.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  font-family: "MapleMonoNF CN";
  /* background-color: rgba(255, 255, 255, 0.1); */
}

/* 背景 */
body {
  background-image: url("/static/images/131141069_p16.png");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3) !important;
  /* 白色半透明遮罩 */
  z-index: -1;
}

main {
  background-color: rgba(255, 255, 255, 0.8);
  /* 内容区域更不透明 */
  border-radius: 8px;
  padding: 2rem;
  margin: 1rem auto;
  /* max-width: 1200px; */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* 调整页脚透明度 */
footer {
  background-color: rgba(248, 249, 250, 0.6);
  border-top: 1px solid rgba(234, 234, 234, 0.5);
}

/* 调整模态框透明度 */
.domain-modal-content {
  background: rgba(255, 255, 255, 0.95);
}

/* Footer 样式 */
footer {
  background-color: #f8f9fa;
  border-top: 1px solid #eaeaea;
  padding: 1.5rem 0;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: #4a6fa5;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.footer-links a:hover {
  color: #3a5a8c;
  text-decoration: underline;
}

.footer-info {
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* 域名提示模态框样式 */
.domain-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.domain-modal.active {
  display: flex;
}

.domain-modal-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.domain-modal h3 {
  margin-top: 0;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.domain-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.domain-list li {
  margin: 0.5rem 0;
}

.domain-list a {
  color: #4a6fa5;
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.domain-list a:hover {
  background-color: #f0f4f8;
  text-decoration: underline;
}

.domain-modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

.powered-by {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

.powered-by a {
  color: #4a6fa5;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.powered-by a:hover {
  color: #3a5a8c;
  text-decoration: underline;
}

/* 导航栏容器 */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Logo 样式 */
.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.logo a {
  text-decoration: none;
  color: #495057;
  font-weight: 500;
}

.logo a:hover {
  color: #007bff;
}

/* 导航菜单样式 */
.nav-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-toggle {
  background: #007bff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
}

.nav-toggle:hover {
  background: #0056b3;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.4);
}

.nav-expand {
  position: absolute;
  top: 100%;
  right: 0;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  min-width: 200px;
  display: none;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  z-index: 1001;
}

.nav-expand.expanded {
  display: flex;
  animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.nav-expand a {
  text-decoration: none;
  color: #495057;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-expand a:hover {
  background: #007bff;
  color: white;
}

/* 响应式设计 - 移动端也使用 + 菜单 */
@media (max-width: 768px) {
  .nav-menu {
    display: flex;
    /* 确保在移动端显示 + 菜单 */
  }

  /* 移动端调整导航菜单样式 */
  .nav-expand {
    position: fixed;
    top: 70px;
    right: 1rem;
    left: 1rem;
    min-width: auto;
    border-radius: 8px;
  }

  .nav-expand a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}

/* 回到顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(75, 154, 239, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 998;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #007bff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.back-to-top:active {
  transform: translateY(-1px);
}
