@font-face {
    font-family: 'AlibabaSans';
    src: url('/style/AlibabaPuHuiTi-3-45-Light.otf') format('opentype'),
         url('/style/AlibabaPuHuiTi-3-45-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
  font-family: "AlibabaSans", sans-serif;
  background-color: #111827; /* Dark background */
  color: #e5e7eb; /* Light text color */
  margin: 0;
  padding: 0;
  padding-bottom: 4em;
  line-height: 1.6;
  overflow: auto;
}

body::-webkit-scrollbar {
  display: none;
   width: 0;
}

header {
  background-color: #1f2937; /* Dark header */
  color: #facc15; /* Highlight color */
  padding: 2em 1.5em;
  text-align: center;
  border-bottom: 2px solid #3b82f6;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  user-select: none;
}

h1 {
  font-size: 2rem;
  margin: 0.5em 0;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  user-select: none;
}

h2 {
  color: #facc15; /* Highlight color */
  font-size: 1.8rem;
  margin-bottom: 1em;
  font-weight: 600;
  user-select: none;
}

a {
  color: #8b5cf6; /* Dark link color */
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: none;
  color: #facc15;
  transform: translateY(-2px);
}

main {
  max-width: 900px;
  margin: 2em auto;
  padding: 1.5em 2.5em;
}

section {
  background-color: #1e293b; /* 深色背景 */
  border-radius: 8px;
  padding: 1.5em 2em;
  margin-bottom: 2em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
ul {
  padding-left: 1.5em;
  list-style-type: none;
}

li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

li a {
  color: #8b5cf6;
  transition: color 0.3s, transform 0.3s;
}

li a:hover {
  color: #facc15;
  transform: scale(1.05);
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #1f2937; /* Dark footer */
  text-align: center;
  padding: 1.3em 0;
  color: #94a3b8;
  border-top: 2px solid #3b82f6;
  font-size: 0.9rem;
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.05);
}

footer a {
  color: #8b5cf6;
  font-weight: bold;
  text-decoration: none;
  margin: 0 1em;
}

footer a:hover {
  color: #facc15;
  text-decoration: underline;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  padding: 1rem;
  position: relative;
}

.card {
  display: block;
  background: #374151; /* Dark card background */
  padding: 1rem;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  color: #e5e7eb; /* Light text */
  transition: background 0.3s;
  user-select: none;
}

.card:hover {
  background: #4b5563;
}

.card.disabled {
  background: #334155;
  pointer-events: none;
  color: #9ca3af;
}

.feature-grid.auto {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.feature-grid.fixed {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 800px) {
  main {
    max-width: 90vw; 
    padding: 0 1em;
  }

  section {
    padding: 1em 1.2em;
  }
  .feature-grid.fixed {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

button {
  background-color: rgba(59, 130, 246, 0.25);
  color: #dbeafe;
  padding: 0.7em 1.5em;
  border: 1.5px solid rgba(96, 165, 250, 0.6);
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

button:hover {
  background-color: rgba(96, 165, 250, 0.4);
  border-color: rgba(147, 197, 253, 0.8);
  color: #eff6ff;
}

.scrollbar-custom {
  overflow-y: auto;
}

.scrollbar-custom::-webkit-scrollbar {
  width: 2px;
}

.scrollbar-custom::-webkit-scrollbar-track {
  background: #1f2937;
  border-radius: 4px;
}

.scrollbar-custom::-webkit-scrollbar-thumb {
  background-color: #8b5cf6;
  border-radius: 4px;
}

.scrollbar-custom::-webkit-scrollbar-thumb:hover {
  background-color: #a78bfa;
}

input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 0.8em;
  border: 1px solid #374151; /* Dark input border */
  border-radius: 5px;
  font-size: 1rem;
  margin-bottom: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: #8b5cf6; /* Focus border color */
  outline: none;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

textarea {
  resize: vertical;
}
